1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libiconv 1.16.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libiconv'
589PACKAGE_TARNAME='libiconv'
590PACKAGE_VERSION='1.16'
591PACKAGE_STRING='libiconv 1.16'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="lib/iconv.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632gt_needs=
633ac_header_list=
634ac_func_list=
635enable_option_checking=no
636ac_subst_vars='gltests_LTLIBOBJS
637gltests_LIBOBJS
638gl_LTLIBOBJS
639gl_LIBOBJS
640am__EXEEXT_FALSE
641am__EXEEXT_TRUE
642LTLIBOBJS
643LIBOBJS
644subdirs
645DLL_VARIABLE
646WOE32DLL
647SRCLIBOBJS
648LIBICRT_LTLIBDEPS
649LIBICRT_LIBDEPS
650gltests_WITNESS
651LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
652LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
653LIBUNISTRING_UNIWIDTH_H
654LIBUNISTRING_UNITYPES_H
655HAVE_UNISTD_H
656NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
657NEXT_UNISTD_H
658UNISTD_H_DEFINES_STRUCT_TIMESPEC
659PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661TIME_H_DEFINES_STRUCT_TIMESPEC
662NEXT_AS_FIRST_DIRECTIVE_TIME_H
663NEXT_TIME_H
664REPLACE_LOCALTIME
665REPLACE_GMTIME
666GNULIB_GETTIMEOFDAY
667REPLACE_TZSET
668REPLACE_TIMEGM
669REPLACE_STRFTIME
670REPLACE_NANOSLEEP
671REPLACE_MKTIME
672REPLACE_LOCALTIME_R
673REPLACE_CTIME
674HAVE_TIMEZONE_T
675HAVE_TZSET
676HAVE_TIMEGM
677HAVE_STRPTIME
678HAVE_NANOSLEEP
679HAVE_DECL_LOCALTIME_R
680GNULIB_TZSET
681GNULIB_TIME_RZ
682GNULIB_TIME_R
683GNULIB_TIMEGM
684GNULIB_STRPTIME
685GNULIB_STRFTIME
686GNULIB_NANOSLEEP
687GNULIB_LOCALTIME
688GNULIB_MKTIME
689GNULIB_CTIME
690WINDOWS_STAT_INODES
691WINDOWS_64_BIT_OFF_T
692NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
693NEXT_SYS_TYPES_H
694NEXT_AS_FIRST_DIRECTIVE_STRING_H
695NEXT_STRING_H
696HAVE_WINSOCK2_H
697UNDEFINE_STRTOK_R
698REPLACE_STRSIGNAL
699REPLACE_STRERROR_R
700REPLACE_STRERROR
701REPLACE_STRTOK_R
702REPLACE_STRCASESTR
703REPLACE_STRSTR
704REPLACE_STRNLEN
705REPLACE_STRNDUP
706REPLACE_STRNCAT
707REPLACE_STRDUP
708REPLACE_STRCHRNUL
709REPLACE_STPNCPY
710REPLACE_MEMMEM
711REPLACE_MEMCHR
712HAVE_STRVERSCMP
713HAVE_DECL_STRSIGNAL
714HAVE_DECL_STRERROR_R
715HAVE_DECL_STRTOK_R
716HAVE_STRCASESTR
717HAVE_STRSEP
718HAVE_STRPBRK
719HAVE_DECL_STRNLEN
720HAVE_DECL_STRNDUP
721HAVE_DECL_STRDUP
722HAVE_STRCHRNUL
723HAVE_STPNCPY
724HAVE_STPCPY
725HAVE_RAWMEMCHR
726HAVE_DECL_MEMRCHR
727HAVE_MEMPCPY
728HAVE_DECL_MEMMEM
729HAVE_MEMCHR
730HAVE_FFSLL
731HAVE_FFSL
732HAVE_EXPLICIT_BZERO
733HAVE_MBSLEN
734GNULIB_STRVERSCMP
735GNULIB_STRSIGNAL
736GNULIB_STRERROR_R
737GNULIB_STRERROR
738GNULIB_MBSTOK_R
739GNULIB_MBSSEP
740GNULIB_MBSSPN
741GNULIB_MBSPBRK
742GNULIB_MBSCSPN
743GNULIB_MBSCASESTR
744GNULIB_MBSPCASECMP
745GNULIB_MBSNCASECMP
746GNULIB_MBSCASECMP
747GNULIB_MBSSTR
748GNULIB_MBSRCHR
749GNULIB_MBSCHR
750GNULIB_MBSNLEN
751GNULIB_MBSLEN
752GNULIB_STRTOK_R
753GNULIB_STRCASESTR
754GNULIB_STRSTR
755GNULIB_STRSEP
756GNULIB_STRPBRK
757GNULIB_STRNLEN
758GNULIB_STRNDUP
759GNULIB_STRNCAT
760GNULIB_STRDUP
761GNULIB_STRCHRNUL
762GNULIB_STPNCPY
763GNULIB_STPCPY
764GNULIB_RAWMEMCHR
765GNULIB_MEMRCHR
766GNULIB_MEMPCPY
767GNULIB_MEMMEM
768GNULIB_MEMCHR
769GNULIB_FFSLL
770GNULIB_FFSL
771GNULIB_EXPLICIT_BZERO
772NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
773NEXT_STDLIB_H
774NEXT_AS_FIRST_DIRECTIVE_STDIO_H
775NEXT_STDIO_H
776GL_GENERATE_STDINT_H_FALSE
777GL_GENERATE_STDINT_H_TRUE
778STDINT_H
779HAVE_SYS_INTTYPES_H
780HAVE_SYS_BITYPES_H
781HAVE_C99_STDINT_H
782WINT_T_SUFFIX
783WCHAR_T_SUFFIX
784SIG_ATOMIC_T_SUFFIX
785SIZE_T_SUFFIX
786PTRDIFF_T_SUFFIX
787HAVE_SIGNED_WINT_T
788HAVE_SIGNED_WCHAR_T
789HAVE_SIGNED_SIG_ATOMIC_T
790BITSIZEOF_WINT_T
791BITSIZEOF_WCHAR_T
792BITSIZEOF_SIG_ATOMIC_T
793BITSIZEOF_SIZE_T
794BITSIZEOF_PTRDIFF_T
795HAVE_STDINT_H
796NEXT_AS_FIRST_DIRECTIVE_STDINT_H
797NEXT_STDINT_H
798HAVE_SYS_TYPES_H
799HAVE_INTTYPES_H
800HAVE_WCHAR_H
801HAVE_UNSIGNED_LONG_LONG_INT
802HAVE_LONG_LONG_INT
803GNULIB_OVERRIDES_WINT_T
804NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
805NEXT_STDDEF_H
806GL_GENERATE_STDDEF_H_FALSE
807GL_GENERATE_STDDEF_H_TRUE
808STDDEF_H
809HAVE_MAX_ALIGN_T
810REPLACE_NULL
811HAVE__BOOL
812GL_GENERATE_STDBOOL_H_FALSE
813GL_GENERATE_STDBOOL_H_TRUE
814STDBOOL_H
815WINDOWS_64_BIT_ST_SIZE
816WINDOWS_STAT_TIMESPEC
817NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
818NEXT_SYS_STAT_H
819ASM_SYMBOL_PREFIX
820REPLACE_VSPRINTF
821REPLACE_VSNPRINTF
822REPLACE_VPRINTF
823REPLACE_VFPRINTF
824REPLACE_VDPRINTF
825REPLACE_VASPRINTF
826REPLACE_TMPFILE
827REPLACE_STDIO_WRITE_FUNCS
828REPLACE_STDIO_READ_FUNCS
829REPLACE_SPRINTF
830REPLACE_SNPRINTF
831REPLACE_RENAMEAT
832REPLACE_RENAME
833REPLACE_REMOVE
834REPLACE_PRINTF
835REPLACE_POPEN
836REPLACE_PERROR
837REPLACE_OBSTACK_PRINTF
838REPLACE_GETLINE
839REPLACE_GETDELIM
840REPLACE_FTELLO
841REPLACE_FTELL
842REPLACE_FSEEKO
843REPLACE_FSEEK
844REPLACE_FREOPEN
845REPLACE_FPURGE
846REPLACE_FPRINTF
847REPLACE_FOPEN
848REPLACE_FFLUSH
849REPLACE_FDOPEN
850REPLACE_FCLOSE
851REPLACE_DPRINTF
852HAVE_VDPRINTF
853HAVE_VASPRINTF
854HAVE_RENAMEAT
855HAVE_POPEN
856HAVE_PCLOSE
857HAVE_FTELLO
858HAVE_FSEEKO
859HAVE_DPRINTF
860HAVE_DECL_VSNPRINTF
861HAVE_DECL_SNPRINTF
862HAVE_DECL_OBSTACK_PRINTF
863HAVE_DECL_GETLINE
864HAVE_DECL_GETDELIM
865HAVE_DECL_FTELLO
866HAVE_DECL_FSEEKO
867HAVE_DECL_FPURGE
868GNULIB_VSPRINTF_POSIX
869GNULIB_VSNPRINTF
870GNULIB_VPRINTF_POSIX
871GNULIB_VPRINTF
872GNULIB_VFPRINTF_POSIX
873GNULIB_VFPRINTF
874GNULIB_VDPRINTF
875GNULIB_VSCANF
876GNULIB_VFSCANF
877GNULIB_VASPRINTF
878GNULIB_TMPFILE
879GNULIB_STDIO_H_SIGPIPE
880GNULIB_STDIO_H_NONBLOCKING
881GNULIB_SPRINTF_POSIX
882GNULIB_SNPRINTF
883GNULIB_SCANF
884GNULIB_RENAMEAT
885GNULIB_RENAME
886GNULIB_REMOVE
887GNULIB_PUTS
888GNULIB_PUTCHAR
889GNULIB_PUTC
890GNULIB_PRINTF_POSIX
891GNULIB_PRINTF
892GNULIB_POPEN
893GNULIB_PERROR
894GNULIB_PCLOSE
895GNULIB_OBSTACK_PRINTF_POSIX
896GNULIB_OBSTACK_PRINTF
897GNULIB_GETLINE
898GNULIB_GETDELIM
899GNULIB_GETCHAR
900GNULIB_GETC
901GNULIB_FWRITE
902GNULIB_FTELLO
903GNULIB_FTELL
904GNULIB_FSEEKO
905GNULIB_FSEEK
906GNULIB_FSCANF
907GNULIB_FREOPEN
908GNULIB_FREAD
909GNULIB_FPUTS
910GNULIB_FPUTC
911GNULIB_FPURGE
912GNULIB_FPRINTF_POSIX
913GNULIB_FPRINTF
914GNULIB_FOPEN
915GNULIB_FGETS
916GNULIB_FGETC
917GNULIB_FFLUSH
918GNULIB_FDOPEN
919GNULIB_FCLOSE
920GNULIB_DPRINTF
921NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
922NEXT_SIGNAL_H
923REPLACE_RAISE
924REPLACE_PTHREAD_SIGMASK
925HAVE_SIGHANDLER_T
926HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
927HAVE_STRUCT_SIGACTION_SA_SIGACTION
928HAVE_SIGACTION
929HAVE_SIGINFO_T
930HAVE_SIGSET_T
931HAVE_RAISE
932HAVE_PTHREAD_SIGMASK
933HAVE_POSIX_SIGNALBLOCKING
934GNULIB_SIGACTION
935GNULIB_SIGPROCMASK
936GNULIB_SIGNAL_H_SIGPIPE
937GNULIB_RAISE
938GNULIB_PTHREAD_SIGMASK
939APPLE_UNIVERSAL_BUILD
940HAVE_MSVC_INVALID_PARAMETER_HANDLER
941REPLACE_UTIMENSAT
942REPLACE_STAT
943REPLACE_MKNOD
944REPLACE_MKFIFO
945REPLACE_MKDIR
946REPLACE_LSTAT
947REPLACE_FUTIMENS
948REPLACE_FSTATAT
949REPLACE_FSTAT
950HAVE_UTIMENSAT
951HAVE_MKNODAT
952HAVE_MKNOD
953HAVE_MKFIFOAT
954HAVE_MKFIFO
955HAVE_MKDIRAT
956HAVE_LSTAT
957HAVE_LCHMOD
958HAVE_FUTIMENS
959HAVE_FSTATAT
960HAVE_FCHMODAT
961GNULIB_OVERRIDES_STRUCT_STAT
962GNULIB_UTIMENSAT
963GNULIB_STAT
964GNULIB_MKNODAT
965GNULIB_MKNOD
966GNULIB_MKFIFOAT
967GNULIB_MKFIFO
968GNULIB_MKDIRAT
969GNULIB_LSTAT
970GNULIB_LCHMOD
971GNULIB_FUTIMENS
972GNULIB_FSTATAT
973GNULIB_FSTAT
974GNULIB_FCHMODAT
975GL_GENERATE_LIMITS_H_FALSE
976GL_GENERATE_LIMITS_H_TRUE
977LIMITS_H
978NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
979NEXT_LIMITS_H
980NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
981NEXT_FCNTL_H
982REPLACE_OPENAT
983REPLACE_OPEN
984REPLACE_FCNTL
985HAVE_OPENAT
986HAVE_FCNTL
987GNULIB_OPENAT
988GNULIB_OPEN
989GNULIB_NONBLOCKING
990GNULIB_FCNTL
991EOVERFLOW_VALUE
992EOVERFLOW_HIDDEN
993ENOLINK_VALUE
994ENOLINK_HIDDEN
995EMULTIHOP_VALUE
996EMULTIHOP_HIDDEN
997GL_GENERATE_ERRNO_H_FALSE
998GL_GENERATE_ERRNO_H_TRUE
999ERRNO_H
1000NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1001NEXT_ERRNO_H
1002PRAGMA_COLUMNS
1003PRAGMA_SYSTEM_HEADER
1004INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1005INCLUDE_NEXT
1006UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1007UNISTD_H_HAVE_WINSOCK2_H
1008REPLACE_WRITE
1009REPLACE_USLEEP
1010REPLACE_UNLINKAT
1011REPLACE_UNLINK
1012REPLACE_TTYNAME_R
1013REPLACE_TRUNCATE
1014REPLACE_SYMLINKAT
1015REPLACE_SYMLINK
1016REPLACE_SLEEP
1017REPLACE_RMDIR
1018REPLACE_READLINKAT
1019REPLACE_READLINK
1020REPLACE_READ
1021REPLACE_PWRITE
1022REPLACE_PREAD
1023REPLACE_LSEEK
1024REPLACE_LINKAT
1025REPLACE_LINK
1026REPLACE_LCHOWN
1027REPLACE_ISATTY
1028REPLACE_GETPASS
1029REPLACE_GETPAGESIZE
1030REPLACE_GETGROUPS
1031REPLACE_GETLOGIN_R
1032REPLACE_GETDTABLESIZE
1033REPLACE_GETDOMAINNAME
1034REPLACE_GETCWD
1035REPLACE_FTRUNCATE
1036REPLACE_FCHOWNAT
1037REPLACE_FACCESSAT
1038REPLACE_DUP2
1039REPLACE_DUP
1040REPLACE_CLOSE
1041REPLACE_CHOWN
1042HAVE_SYS_PARAM_H
1043HAVE_OS_H
1044HAVE_DECL_TTYNAME_R
1045HAVE_DECL_TRUNCATE
1046HAVE_DECL_SETHOSTNAME
1047HAVE_DECL_GETUSERSHELL
1048HAVE_DECL_GETPAGESIZE
1049HAVE_DECL_GETLOGIN_R
1050HAVE_DECL_GETLOGIN
1051HAVE_DECL_GETDOMAINNAME
1052HAVE_DECL_FDATASYNC
1053HAVE_DECL_FCHDIR
1054HAVE_DECL_ENVIRON
1055HAVE_USLEEP
1056HAVE_UNLINKAT
1057HAVE_SYMLINKAT
1058HAVE_SYMLINK
1059HAVE_SLEEP
1060HAVE_SETHOSTNAME
1061HAVE_READLINKAT
1062HAVE_READLINK
1063HAVE_PWRITE
1064HAVE_PREAD
1065HAVE_PIPE2
1066HAVE_PIPE
1067HAVE_LINKAT
1068HAVE_LINK
1069HAVE_LCHOWN
1070HAVE_GROUP_MEMBER
1071HAVE_GETPASS
1072HAVE_GETPAGESIZE
1073HAVE_GETLOGIN
1074HAVE_GETHOSTNAME
1075HAVE_GETGROUPS
1076HAVE_GETDTABLESIZE
1077HAVE_FTRUNCATE
1078HAVE_FSYNC
1079HAVE_FDATASYNC
1080HAVE_FCHOWNAT
1081HAVE_FCHDIR
1082HAVE_FACCESSAT
1083HAVE_EUIDACCESS
1084HAVE_DUP3
1085HAVE_DUP2
1086HAVE_CHOWN
1087GNULIB_WRITE
1088GNULIB_USLEEP
1089GNULIB_UNLINKAT
1090GNULIB_UNLINK
1091GNULIB_UNISTD_H_SIGPIPE
1092GNULIB_UNISTD_H_NONBLOCKING
1093GNULIB_TTYNAME_R
1094GNULIB_TRUNCATE
1095GNULIB_SYMLINKAT
1096GNULIB_SYMLINK
1097GNULIB_SLEEP
1098GNULIB_SETHOSTNAME
1099GNULIB_RMDIR
1100GNULIB_READLINKAT
1101GNULIB_READLINK
1102GNULIB_READ
1103GNULIB_PWRITE
1104GNULIB_PREAD
1105GNULIB_PIPE2
1106GNULIB_PIPE
1107GNULIB_LSEEK
1108GNULIB_LINKAT
1109GNULIB_LINK
1110GNULIB_LCHOWN
1111GNULIB_ISATTY
1112GNULIB_GROUP_MEMBER
1113GNULIB_GETUSERSHELL
1114GNULIB_GETPASS
1115GNULIB_GETPAGESIZE
1116GNULIB_GETLOGIN_R
1117GNULIB_GETLOGIN
1118GNULIB_GETHOSTNAME
1119GNULIB_GETGROUPS
1120GNULIB_GETDTABLESIZE
1121GNULIB_GETDOMAINNAME
1122GNULIB_GETCWD
1123GNULIB_FTRUNCATE
1124GNULIB_FSYNC
1125GNULIB_FDATASYNC
1126GNULIB_FCHOWNAT
1127GNULIB_FCHDIR
1128GNULIB_FACCESSAT
1129GNULIB_EUIDACCESS
1130GNULIB_ENVIRON
1131GNULIB_DUP3
1132GNULIB_DUP2
1133GNULIB_DUP
1134GNULIB_CLOSE
1135GNULIB_CHOWN
1136GNULIB_CHDIR
1137REPLACE_WCTOMB
1138REPLACE_UNSETENV
1139REPLACE_STRTOLD
1140REPLACE_STRTOD
1141REPLACE_SETSTATE
1142REPLACE_SETENV
1143REPLACE_REALPATH
1144REPLACE_REALLOC
1145REPLACE_RANDOM_R
1146REPLACE_RANDOM
1147REPLACE_QSORT_R
1148REPLACE_PUTENV
1149REPLACE_PTSNAME_R
1150REPLACE_PTSNAME
1151REPLACE_MKSTEMP
1152REPLACE_MBTOWC
1153REPLACE_MALLOC
1154REPLACE_INITSTATE
1155REPLACE_CANONICALIZE_FILE_NAME
1156REPLACE_CALLOC
1157HAVE_DECL_UNSETENV
1158HAVE_UNLOCKPT
1159HAVE_SYS_LOADAVG_H
1160HAVE_STRUCT_RANDOM_DATA
1161HAVE_STRTOULL
1162HAVE_STRTOLL
1163HAVE_STRTOLD
1164HAVE_STRTOD
1165HAVE_DECL_SETSTATE
1166HAVE_SETSTATE
1167HAVE_DECL_SETENV
1168HAVE_SETENV
1169HAVE_SECURE_GETENV
1170HAVE_RPMATCH
1171HAVE_REALPATH
1172HAVE_REALLOCARRAY
1173HAVE_RANDOM_R
1174HAVE_RANDOM_H
1175HAVE_RANDOM
1176HAVE_QSORT_R
1177HAVE_PTSNAME_R
1178HAVE_PTSNAME
1179HAVE_POSIX_OPENPT
1180HAVE_MKSTEMPS
1181HAVE_MKSTEMP
1182HAVE_MKOSTEMPS
1183HAVE_MKOSTEMP
1184HAVE_MKDTEMP
1185HAVE_MBTOWC
1186HAVE_DECL_INITSTATE
1187HAVE_INITSTATE
1188HAVE_GRANTPT
1189HAVE_GETSUBOPT
1190HAVE_DECL_GETLOADAVG
1191HAVE_CANONICALIZE_FILE_NAME
1192HAVE_ATOLL
1193HAVE__EXIT
1194GNULIB_WCTOMB
1195GNULIB_UNSETENV
1196GNULIB_UNLOCKPT
1197GNULIB_SYSTEM_POSIX
1198GNULIB_STRTOULL
1199GNULIB_STRTOLL
1200GNULIB_STRTOLD
1201GNULIB_STRTOD
1202GNULIB_SETENV
1203GNULIB_SECURE_GETENV
1204GNULIB_RPMATCH
1205GNULIB_REALPATH
1206GNULIB_REALLOC_POSIX
1207GNULIB_REALLOCARRAY
1208GNULIB_RANDOM_R
1209GNULIB_RANDOM
1210GNULIB_QSORT_R
1211GNULIB_PUTENV
1212GNULIB_PTSNAME_R
1213GNULIB_PTSNAME
1214GNULIB_POSIX_OPENPT
1215GNULIB_MKSTEMPS
1216GNULIB_MKSTEMP
1217GNULIB_MKOSTEMPS
1218GNULIB_MKOSTEMP
1219GNULIB_MKDTEMP
1220GNULIB_MBTOWC
1221GNULIB_MALLOC_POSIX
1222GNULIB_GRANTPT
1223GNULIB_GETSUBOPT
1224GNULIB_GETLOADAVG
1225GNULIB_CANONICALIZE_FILE_NAME
1226GNULIB_CALLOC_POSIX
1227GNULIB_ATOLL
1228GNULIB__EXIT
1229GL_GENERATE_ALLOCA_H_FALSE
1230GL_GENERATE_ALLOCA_H_TRUE
1231ALLOCA_H
1232ALLOCA
1233GL_COND_LIBTOOL_FALSE
1234GL_COND_LIBTOOL_TRUE
1235EILSEQ
1236BROKEN_WCHAR_H
1237USE_MBSTATE_T
1238HAVE_WCHAR_T
1239ICONV_CONST
1240POSUB
1241LTLIBINTL
1242LIBINTL
1243INTLLIBS
1244INTL_MACOSX_LIBS
1245XGETTEXT_EXTRA_OPTIONS
1246MSGMERGE
1247XGETTEXT_015
1248XGETTEXT
1249GMSGFMT_015
1250MSGFMT_015
1251GMSGFMT
1252MSGFMT
1253GETTEXT_MACRO_VERSION
1254USE_NLS
1255LTLIBICONV
1256LIBICONV
1257HAVE_VISIBILITY
1258CFLAG_VISIBILITY
1259WINDRES
1260WOE32
1261RC
1262LN
1263CP
1264USE_EXTRA_ENCODINGS
1265RELOCATABLE_STRIP
1266RELOCATABLE_BUILD_DIR
1267RELOCATABLE_SRC_DIR
1268RELOCATABLE_CONFIG_H_DIR
1269RELOCATABLE_LIBRARY_PATH
1270RELOCATABLE_VIA_WRAPPER_FALSE
1271RELOCATABLE_VIA_WRAPPER_TRUE
1272RELOCATABLE_VIA_LD_FALSE
1273RELOCATABLE_VIA_LD_TRUE
1274INSTALL_PROGRAM_ENV
1275RELOCATABLE_LDFLAGS
1276RELOCATABLE
1277LT_SYS_LIBRARY_PATH
1278OTOOL64
1279OTOOL
1280LIPO
1281NMEDIT
1282DSYMUTIL
1283MANIFEST_TOOL
1284ac_ct_AR
1285LN_S
1286NM
1287ac_ct_DUMPBIN
1288DUMPBIN
1289LD
1290FGREP
1291SED
1292LIBTOOL
1293OBJDUMP
1294DLLTOOL
1295AS
1296RANLIB
1297ARFLAGS
1298AR
1299EGREP
1300GREP
1301host_os
1302host_vendor
1303host_cpu
1304host
1305build_os
1306build_vendor
1307build_cpu
1308build
1309CPP
1310am__fastdepCC_FALSE
1311am__fastdepCC_TRUE
1312CCDEPMODE
1313am__nodep
1314AMDEPBACKSLASH
1315AMDEP_FALSE
1316AMDEP_TRUE
1317am__include
1318DEPDIR
1319OBJEXT
1320EXEEXT
1321ac_ct_CC
1322CPPFLAGS
1323LDFLAGS
1324CFLAGS
1325CC
1326AM_BACKSLASH
1327AM_DEFAULT_VERBOSITY
1328AM_DEFAULT_V
1329AM_V
1330am__untar
1331am__tar
1332AMTAR
1333am__leading_dot
1334SET_MAKE
1335AWK
1336mkdir_p
1337MKDIR_P
1338INSTALL_STRIP_PROGRAM
1339STRIP
1340install_sh
1341MAKEINFO
1342AUTOHEADER
1343AUTOMAKE
1344AUTOCONF
1345ACLOCAL
1346VERSION
1347PACKAGE
1348CYGPATH_W
1349am__isrc
1350INSTALL_DATA
1351INSTALL_SCRIPT
1352INSTALL_PROGRAM
1353target_alias
1354host_alias
1355build_alias
1356LIBS
1357ECHO_T
1358ECHO_N
1359ECHO_C
1360DEFS
1361mandir
1362localedir
1363libdir
1364psdir
1365pdfdir
1366dvidir
1367htmldir
1368infodir
1369docdir
1370oldincludedir
1371includedir
1372localstatedir
1373sharedstatedir
1374sysconfdir
1375datadir
1376datarootdir
1377libexecdir
1378sbindir
1379bindir
1380program_transform_name
1381prefix
1382exec_prefix
1383PACKAGE_URL
1384PACKAGE_BUGREPORT
1385PACKAGE_STRING
1386PACKAGE_VERSION
1387PACKAGE_TARNAME
1388PACKAGE_NAME
1389PATH_SEPARATOR
1390SHELL
1391am__quote'
1392ac_subst_files=''
1393ac_user_opts='
1394enable_option_checking
1395enable_silent_rules
1396enable_dependency_tracking
1397enable_largefile
1398enable_static
1399enable_shared
1400with_pic
1401enable_fast_install
1402with_aix_soname
1403with_gnu_ld
1404with_sysroot
1405enable_libtool_lock
1406enable_relocatable
1407enable_extra_encodings
1408enable_rpath
1409with_libiconv_prefix
1410enable_nls
1411with_libintl_prefix
1412'
1413      ac_precious_vars='build_alias
1414host_alias
1415target_alias
1416CC
1417CFLAGS
1418LDFLAGS
1419LIBS
1420CPPFLAGS
1421CPP
1422LT_SYS_LIBRARY_PATH'
1423ac_subdirs_all='libcharset'
1424
1425# Initialize some variables set by options.
1426ac_init_help=
1427ac_init_version=false
1428ac_unrecognized_opts=
1429ac_unrecognized_sep=
1430# The variables have the same names as the options, with
1431# dashes changed to underlines.
1432cache_file=/dev/null
1433exec_prefix=NONE
1434no_create=
1435no_recursion=
1436prefix=NONE
1437program_prefix=NONE
1438program_suffix=NONE
1439program_transform_name=s,x,x,
1440silent=
1441site=
1442srcdir=
1443verbose=
1444x_includes=NONE
1445x_libraries=NONE
1446
1447# Installation directory options.
1448# These are left unexpanded so users can "make install exec_prefix=/foo"
1449# and all the variables that are supposed to be based on exec_prefix
1450# by default will actually change.
1451# Use braces instead of parens because sh, perl, etc. also accept them.
1452# (The list follows the same order as the GNU Coding Standards.)
1453bindir='${exec_prefix}/bin'
1454sbindir='${exec_prefix}/sbin'
1455libexecdir='${exec_prefix}/libexec'
1456datarootdir='${prefix}/share'
1457datadir='${datarootdir}'
1458sysconfdir='${prefix}/etc'
1459sharedstatedir='${prefix}/com'
1460localstatedir='${prefix}/var'
1461includedir='${prefix}/include'
1462oldincludedir='/usr/include'
1463docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1464infodir='${datarootdir}/info'
1465htmldir='${docdir}'
1466dvidir='${docdir}'
1467pdfdir='${docdir}'
1468psdir='${docdir}'
1469libdir='${exec_prefix}/lib'
1470localedir='${datarootdir}/locale'
1471mandir='${datarootdir}/man'
1472
1473ac_prev=
1474ac_dashdash=
1475for ac_option
1476do
1477  # If the previous option needs an argument, assign it.
1478  if test -n "$ac_prev"; then
1479    eval $ac_prev=\$ac_option
1480    ac_prev=
1481    continue
1482  fi
1483
1484  case $ac_option in
1485  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1486  *=)   ac_optarg= ;;
1487  *)    ac_optarg=yes ;;
1488  esac
1489
1490  # Accept the important Cygnus configure options, so we can diagnose typos.
1491
1492  case $ac_dashdash$ac_option in
1493  --)
1494    ac_dashdash=yes ;;
1495
1496  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1497    ac_prev=bindir ;;
1498  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1499    bindir=$ac_optarg ;;
1500
1501  -build | --build | --buil | --bui | --bu)
1502    ac_prev=build_alias ;;
1503  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1504    build_alias=$ac_optarg ;;
1505
1506  -cache-file | --cache-file | --cache-fil | --cache-fi \
1507  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1508    ac_prev=cache_file ;;
1509  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1510  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1511    cache_file=$ac_optarg ;;
1512
1513  --config-cache | -C)
1514    cache_file=config.cache ;;
1515
1516  -datadir | --datadir | --datadi | --datad)
1517    ac_prev=datadir ;;
1518  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1519    datadir=$ac_optarg ;;
1520
1521  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1522  | --dataroo | --dataro | --datar)
1523    ac_prev=datarootdir ;;
1524  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1525  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1526    datarootdir=$ac_optarg ;;
1527
1528  -disable-* | --disable-*)
1529    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530    # Reject names that are not valid shell variable names.
1531    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532      as_fn_error $? "invalid feature name: $ac_useropt"
1533    ac_useropt_orig=$ac_useropt
1534    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535    case $ac_user_opts in
1536      *"
1537"enable_$ac_useropt"
1538"*) ;;
1539      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1540	 ac_unrecognized_sep=', ';;
1541    esac
1542    eval enable_$ac_useropt=no ;;
1543
1544  -docdir | --docdir | --docdi | --doc | --do)
1545    ac_prev=docdir ;;
1546  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1547    docdir=$ac_optarg ;;
1548
1549  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1550    ac_prev=dvidir ;;
1551  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1552    dvidir=$ac_optarg ;;
1553
1554  -enable-* | --enable-*)
1555    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1556    # Reject names that are not valid shell variable names.
1557    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1558      as_fn_error $? "invalid feature name: $ac_useropt"
1559    ac_useropt_orig=$ac_useropt
1560    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561    case $ac_user_opts in
1562      *"
1563"enable_$ac_useropt"
1564"*) ;;
1565      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1566	 ac_unrecognized_sep=', ';;
1567    esac
1568    eval enable_$ac_useropt=\$ac_optarg ;;
1569
1570  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1571  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1572  | --exec | --exe | --ex)
1573    ac_prev=exec_prefix ;;
1574  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1575  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1576  | --exec=* | --exe=* | --ex=*)
1577    exec_prefix=$ac_optarg ;;
1578
1579  -gas | --gas | --ga | --g)
1580    # Obsolete; use --with-gas.
1581    with_gas=yes ;;
1582
1583  -help | --help | --hel | --he | -h)
1584    ac_init_help=long ;;
1585  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1586    ac_init_help=recursive ;;
1587  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1588    ac_init_help=short ;;
1589
1590  -host | --host | --hos | --ho)
1591    ac_prev=host_alias ;;
1592  -host=* | --host=* | --hos=* | --ho=*)
1593    host_alias=$ac_optarg ;;
1594
1595  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1596    ac_prev=htmldir ;;
1597  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1598  | --ht=*)
1599    htmldir=$ac_optarg ;;
1600
1601  -includedir | --includedir | --includedi | --included | --include \
1602  | --includ | --inclu | --incl | --inc)
1603    ac_prev=includedir ;;
1604  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1605  | --includ=* | --inclu=* | --incl=* | --inc=*)
1606    includedir=$ac_optarg ;;
1607
1608  -infodir | --infodir | --infodi | --infod | --info | --inf)
1609    ac_prev=infodir ;;
1610  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1611    infodir=$ac_optarg ;;
1612
1613  -libdir | --libdir | --libdi | --libd)
1614    ac_prev=libdir ;;
1615  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1616    libdir=$ac_optarg ;;
1617
1618  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1619  | --libexe | --libex | --libe)
1620    ac_prev=libexecdir ;;
1621  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1622  | --libexe=* | --libex=* | --libe=*)
1623    libexecdir=$ac_optarg ;;
1624
1625  -localedir | --localedir | --localedi | --localed | --locale)
1626    ac_prev=localedir ;;
1627  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1628    localedir=$ac_optarg ;;
1629
1630  -localstatedir | --localstatedir | --localstatedi | --localstated \
1631  | --localstate | --localstat | --localsta | --localst | --locals)
1632    ac_prev=localstatedir ;;
1633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1634  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1635    localstatedir=$ac_optarg ;;
1636
1637  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1638    ac_prev=mandir ;;
1639  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1640    mandir=$ac_optarg ;;
1641
1642  -nfp | --nfp | --nf)
1643    # Obsolete; use --without-fp.
1644    with_fp=no ;;
1645
1646  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1647  | --no-cr | --no-c | -n)
1648    no_create=yes ;;
1649
1650  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1651  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1652    no_recursion=yes ;;
1653
1654  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1655  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1656  | --oldin | --oldi | --old | --ol | --o)
1657    ac_prev=oldincludedir ;;
1658  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1659  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1660  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1661    oldincludedir=$ac_optarg ;;
1662
1663  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1664    ac_prev=prefix ;;
1665  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1666    prefix=$ac_optarg ;;
1667
1668  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1669  | --program-pre | --program-pr | --program-p)
1670    ac_prev=program_prefix ;;
1671  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1672  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1673    program_prefix=$ac_optarg ;;
1674
1675  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1676  | --program-suf | --program-su | --program-s)
1677    ac_prev=program_suffix ;;
1678  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1679  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1680    program_suffix=$ac_optarg ;;
1681
1682  -program-transform-name | --program-transform-name \
1683  | --program-transform-nam | --program-transform-na \
1684  | --program-transform-n | --program-transform- \
1685  | --program-transform | --program-transfor \
1686  | --program-transfo | --program-transf \
1687  | --program-trans | --program-tran \
1688  | --progr-tra | --program-tr | --program-t)
1689    ac_prev=program_transform_name ;;
1690  -program-transform-name=* | --program-transform-name=* \
1691  | --program-transform-nam=* | --program-transform-na=* \
1692  | --program-transform-n=* | --program-transform-=* \
1693  | --program-transform=* | --program-transfor=* \
1694  | --program-transfo=* | --program-transf=* \
1695  | --program-trans=* | --program-tran=* \
1696  | --progr-tra=* | --program-tr=* | --program-t=*)
1697    program_transform_name=$ac_optarg ;;
1698
1699  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1700    ac_prev=pdfdir ;;
1701  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1702    pdfdir=$ac_optarg ;;
1703
1704  -psdir | --psdir | --psdi | --psd | --ps)
1705    ac_prev=psdir ;;
1706  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1707    psdir=$ac_optarg ;;
1708
1709  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710  | -silent | --silent | --silen | --sile | --sil)
1711    silent=yes ;;
1712
1713  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1714    ac_prev=sbindir ;;
1715  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1716  | --sbi=* | --sb=*)
1717    sbindir=$ac_optarg ;;
1718
1719  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1720  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1721  | --sharedst | --shareds | --shared | --share | --shar \
1722  | --sha | --sh)
1723    ac_prev=sharedstatedir ;;
1724  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1725  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1726  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1727  | --sha=* | --sh=*)
1728    sharedstatedir=$ac_optarg ;;
1729
1730  -site | --site | --sit)
1731    ac_prev=site ;;
1732  -site=* | --site=* | --sit=*)
1733    site=$ac_optarg ;;
1734
1735  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1736    ac_prev=srcdir ;;
1737  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1738    srcdir=$ac_optarg ;;
1739
1740  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1741  | --syscon | --sysco | --sysc | --sys | --sy)
1742    ac_prev=sysconfdir ;;
1743  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1744  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1745    sysconfdir=$ac_optarg ;;
1746
1747  -target | --target | --targe | --targ | --tar | --ta | --t)
1748    ac_prev=target_alias ;;
1749  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1750    target_alias=$ac_optarg ;;
1751
1752  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1753    verbose=yes ;;
1754
1755  -version | --version | --versio | --versi | --vers | -V)
1756    ac_init_version=: ;;
1757
1758  -with-* | --with-*)
1759    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1760    # Reject names that are not valid shell variable names.
1761    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1762      as_fn_error $? "invalid package name: $ac_useropt"
1763    ac_useropt_orig=$ac_useropt
1764    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765    case $ac_user_opts in
1766      *"
1767"with_$ac_useropt"
1768"*) ;;
1769      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1770	 ac_unrecognized_sep=', ';;
1771    esac
1772    eval with_$ac_useropt=\$ac_optarg ;;
1773
1774  -without-* | --without-*)
1775    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1776    # Reject names that are not valid shell variable names.
1777    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1778      as_fn_error $? "invalid package name: $ac_useropt"
1779    ac_useropt_orig=$ac_useropt
1780    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1781    case $ac_user_opts in
1782      *"
1783"with_$ac_useropt"
1784"*) ;;
1785      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1786	 ac_unrecognized_sep=', ';;
1787    esac
1788    eval with_$ac_useropt=no ;;
1789
1790  --x)
1791    # Obsolete; use --with-x.
1792    with_x=yes ;;
1793
1794  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1795  | --x-incl | --x-inc | --x-in | --x-i)
1796    ac_prev=x_includes ;;
1797  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1798  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1799    x_includes=$ac_optarg ;;
1800
1801  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1802  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1803    ac_prev=x_libraries ;;
1804  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1805  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1806    x_libraries=$ac_optarg ;;
1807
1808  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1809Try \`$0 --help' for more information"
1810    ;;
1811
1812  *=*)
1813    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1814    # Reject names that are not valid shell variable names.
1815    case $ac_envvar in #(
1816      '' | [0-9]* | *[!_$as_cr_alnum]* )
1817      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1818    esac
1819    eval $ac_envvar=\$ac_optarg
1820    export $ac_envvar ;;
1821
1822  *)
1823    # FIXME: should be removed in autoconf 3.0.
1824    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1825    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1826      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1827    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1828    ;;
1829
1830  esac
1831done
1832
1833if test -n "$ac_prev"; then
1834  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1835  as_fn_error $? "missing argument to $ac_option"
1836fi
1837
1838if test -n "$ac_unrecognized_opts"; then
1839  case $enable_option_checking in
1840    no) ;;
1841    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1842    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1843  esac
1844fi
1845
1846# Check all directory arguments for consistency.
1847for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1848		datadir sysconfdir sharedstatedir localstatedir includedir \
1849		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1850		libdir localedir mandir
1851do
1852  eval ac_val=\$$ac_var
1853  # Remove trailing slashes.
1854  case $ac_val in
1855    */ )
1856      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1857      eval $ac_var=\$ac_val;;
1858  esac
1859  # Be sure to have absolute directory names.
1860  case $ac_val in
1861    [\\/$]* | ?:[\\/]* )  continue;;
1862    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1863  esac
1864  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1865done
1866
1867# There might be people who depend on the old broken behavior: `$host'
1868# used to hold the argument of --host etc.
1869# FIXME: To remove some day.
1870build=$build_alias
1871host=$host_alias
1872target=$target_alias
1873
1874# FIXME: To remove some day.
1875if test "x$host_alias" != x; then
1876  if test "x$build_alias" = x; then
1877    cross_compiling=maybe
1878  elif test "x$build_alias" != "x$host_alias"; then
1879    cross_compiling=yes
1880  fi
1881fi
1882
1883ac_tool_prefix=
1884test -n "$host_alias" && ac_tool_prefix=$host_alias-
1885
1886test "$silent" = yes && exec 6>/dev/null
1887
1888
1889ac_pwd=`pwd` && test -n "$ac_pwd" &&
1890ac_ls_di=`ls -di .` &&
1891ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1892  as_fn_error $? "working directory cannot be determined"
1893test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1894  as_fn_error $? "pwd does not report name of working directory"
1895
1896
1897# Find the source files, if location was not specified.
1898if test -z "$srcdir"; then
1899  ac_srcdir_defaulted=yes
1900  # Try the directory containing this script, then the parent directory.
1901  ac_confdir=`$as_dirname -- "$as_myself" ||
1902$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1903	 X"$as_myself" : 'X\(//\)[^/]' \| \
1904	 X"$as_myself" : 'X\(//\)$' \| \
1905	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1906$as_echo X"$as_myself" |
1907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1908	    s//\1/
1909	    q
1910	  }
1911	  /^X\(\/\/\)[^/].*/{
1912	    s//\1/
1913	    q
1914	  }
1915	  /^X\(\/\/\)$/{
1916	    s//\1/
1917	    q
1918	  }
1919	  /^X\(\/\).*/{
1920	    s//\1/
1921	    q
1922	  }
1923	  s/.*/./; q'`
1924  srcdir=$ac_confdir
1925  if test ! -r "$srcdir/$ac_unique_file"; then
1926    srcdir=..
1927  fi
1928else
1929  ac_srcdir_defaulted=no
1930fi
1931if test ! -r "$srcdir/$ac_unique_file"; then
1932  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1933  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1934fi
1935ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1936ac_abs_confdir=`(
1937	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1938	pwd)`
1939# When building in place, set srcdir=.
1940if test "$ac_abs_confdir" = "$ac_pwd"; then
1941  srcdir=.
1942fi
1943# Remove unnecessary trailing slashes from srcdir.
1944# Double slashes in file names in object file debugging info
1945# mess up M-x gdb in Emacs.
1946case $srcdir in
1947*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1948esac
1949for ac_var in $ac_precious_vars; do
1950  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1951  eval ac_env_${ac_var}_value=\$${ac_var}
1952  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1953  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1954done
1955
1956#
1957# Report the --help message.
1958#
1959if test "$ac_init_help" = "long"; then
1960  # Omit some internal or obsolete options to make the list less imposing.
1961  # This message is too long to be a string in the A/UX 3.1 sh.
1962  cat <<_ACEOF
1963\`configure' configures libiconv 1.16 to adapt to many kinds of systems.
1964
1965Usage: $0 [OPTION]... [VAR=VALUE]...
1966
1967To assign environment variables (e.g., CC, CFLAGS...), specify them as
1968VAR=VALUE.  See below for descriptions of some of the useful variables.
1969
1970Defaults for the options are specified in brackets.
1971
1972Configuration:
1973  -h, --help              display this help and exit
1974      --help=short        display options specific to this package
1975      --help=recursive    display the short help of all the included packages
1976  -V, --version           display version information and exit
1977  -q, --quiet, --silent   do not print \`checking ...' messages
1978      --cache-file=FILE   cache test results in FILE [disabled]
1979  -C, --config-cache      alias for \`--cache-file=config.cache'
1980  -n, --no-create         do not create output files
1981      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1982
1983Installation directories:
1984  --prefix=PREFIX         install architecture-independent files in PREFIX
1985                          [$ac_default_prefix]
1986  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1987                          [PREFIX]
1988
1989By default, \`make install' will install all the files in
1990\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1991an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1992for instance \`--prefix=\$HOME'.
1993
1994For better control, use the options below.
1995
1996Fine tuning of the installation directories:
1997  --bindir=DIR            user executables [EPREFIX/bin]
1998  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1999  --libexecdir=DIR        program executables [EPREFIX/libexec]
2000  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2001  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2002  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2003  --libdir=DIR            object code libraries [EPREFIX/lib]
2004  --includedir=DIR        C header files [PREFIX/include]
2005  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2006  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2007  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2008  --infodir=DIR           info documentation [DATAROOTDIR/info]
2009  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2010  --mandir=DIR            man documentation [DATAROOTDIR/man]
2011  --docdir=DIR            documentation root [DATAROOTDIR/doc/libiconv]
2012  --htmldir=DIR           html documentation [DOCDIR]
2013  --dvidir=DIR            dvi documentation [DOCDIR]
2014  --pdfdir=DIR            pdf documentation [DOCDIR]
2015  --psdir=DIR             ps documentation [DOCDIR]
2016_ACEOF
2017
2018  cat <<\_ACEOF
2019
2020Program names:
2021  --program-prefix=PREFIX            prepend PREFIX to installed program names
2022  --program-suffix=SUFFIX            append SUFFIX to installed program names
2023  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2024
2025System types:
2026  --build=BUILD     configure for building on BUILD [guessed]
2027  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2028_ACEOF
2029fi
2030
2031if test -n "$ac_init_help"; then
2032  case $ac_init_help in
2033     short | recursive ) echo "Configuration of libiconv 1.16:";;
2034   esac
2035  cat <<\_ACEOF
2036
2037Optional Features:
2038  --disable-option-checking  ignore unrecognized --enable/--with options
2039  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2040  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2041  --enable-silent-rules   less verbose build output (undo: "make V=1")
2042  --disable-silent-rules  verbose build output (undo: "make V=0")
2043  --enable-dependency-tracking
2044                          do not reject slow dependency extractors
2045  --disable-dependency-tracking
2046                          speeds up one-time build
2047  --disable-largefile     omit support for large files
2048  --enable-static[=PKGS]  build static libraries [default=no]
2049  --enable-shared[=PKGS]  build shared libraries [default=yes]
2050  --enable-fast-install[=PKGS]
2051                          optimize for fast installation [default=yes]
2052  --disable-libtool-lock  avoid locking (might break parallel builds)
2053  --enable-relocatable    install a package that can be moved in the file
2054                          system
2055  --enable-extra-encodings
2056                          add support for a few rarely used encodings
2057  --disable-rpath         do not hardcode runtime library paths
2058  --disable-nls           do not use Native Language Support
2059
2060Optional Packages:
2061  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2062  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2063  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2064                          both]
2065  --with-aix-soname=aix|svr4|both
2066                          shared library versioning (aka "SONAME") variant to
2067                          provide on AIX, [default=aix].
2068  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2069  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2070                          compiler's sysroot if not specified).
2071  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2072  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2073  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2074  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2075  --without-libintl-prefix     don't search for libintl in includedir and libdir
2076
2077Some influential environment variables:
2078  CC          C compiler command
2079  CFLAGS      C compiler flags
2080  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2081              nonstandard directory <lib dir>
2082  LIBS        libraries to pass to the linker, e.g. -l<library>
2083  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2084              you have headers in a nonstandard directory <include dir>
2085  CPP         C preprocessor
2086  LT_SYS_LIBRARY_PATH
2087              User-defined run-time library search path.
2088
2089Use these variables to override the choices made by `configure' or to help
2090it to find libraries and programs with nonstandard names/locations.
2091
2092Report bugs to the package provider.
2093_ACEOF
2094ac_status=$?
2095fi
2096
2097if test "$ac_init_help" = "recursive"; then
2098  # If there are subdirs, report their specific --help.
2099  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2100    test -d "$ac_dir" ||
2101      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102      continue
2103    ac_builddir=.
2104
2105case "$ac_dir" in
2106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107*)
2108  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2109  # A ".." for each directory in $ac_dir_suffix.
2110  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2111  case $ac_top_builddir_sub in
2112  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2114  esac ;;
2115esac
2116ac_abs_top_builddir=$ac_pwd
2117ac_abs_builddir=$ac_pwd$ac_dir_suffix
2118# for backward compatibility:
2119ac_top_builddir=$ac_top_build_prefix
2120
2121case $srcdir in
2122  .)  # We are building in place.
2123    ac_srcdir=.
2124    ac_top_srcdir=$ac_top_builddir_sub
2125    ac_abs_top_srcdir=$ac_pwd ;;
2126  [\\/]* | ?:[\\/]* )  # Absolute name.
2127    ac_srcdir=$srcdir$ac_dir_suffix;
2128    ac_top_srcdir=$srcdir
2129    ac_abs_top_srcdir=$srcdir ;;
2130  *) # Relative name.
2131    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2132    ac_top_srcdir=$ac_top_build_prefix$srcdir
2133    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2134esac
2135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2136
2137    cd "$ac_dir" || { ac_status=$?; continue; }
2138    # Check for guested configure.
2139    if test -f "$ac_srcdir/configure.gnu"; then
2140      echo &&
2141      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2142    elif test -f "$ac_srcdir/configure"; then
2143      echo &&
2144      $SHELL "$ac_srcdir/configure" --help=recursive
2145    else
2146      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2147    fi || ac_status=$?
2148    cd "$ac_pwd" || { ac_status=$?; break; }
2149  done
2150fi
2151
2152test -n "$ac_init_help" && exit $ac_status
2153if $ac_init_version; then
2154  cat <<\_ACEOF
2155libiconv configure 1.16
2156generated by GNU Autoconf 2.69
2157
2158Copyright (C) 2012 Free Software Foundation, Inc.
2159This configure script is free software; the Free Software Foundation
2160gives unlimited permission to copy, distribute and modify it.
2161_ACEOF
2162  exit
2163fi
2164
2165## ------------------------ ##
2166## Autoconf initialization. ##
2167## ------------------------ ##
2168
2169# ac_fn_c_try_compile LINENO
2170# --------------------------
2171# Try to compile conftest.$ac_ext, and return whether this succeeded.
2172ac_fn_c_try_compile ()
2173{
2174  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175  rm -f conftest.$ac_objext
2176  if { { ac_try="$ac_compile"
2177case "(($ac_try" in
2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179  *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183  (eval "$ac_compile") 2>conftest.err
2184  ac_status=$?
2185  if test -s conftest.err; then
2186    grep -v '^ *+' conftest.err >conftest.er1
2187    cat conftest.er1 >&5
2188    mv -f conftest.er1 conftest.err
2189  fi
2190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191  test $ac_status = 0; } && {
2192	 test -z "$ac_c_werror_flag" ||
2193	 test ! -s conftest.err
2194       } && test -s conftest.$ac_objext; then :
2195  ac_retval=0
2196else
2197  $as_echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200	ac_retval=1
2201fi
2202  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203  as_fn_set_status $ac_retval
2204
2205} # ac_fn_c_try_compile
2206
2207# ac_fn_c_try_cpp LINENO
2208# ----------------------
2209# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210ac_fn_c_try_cpp ()
2211{
2212  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213  if { { ac_try="$ac_cpp conftest.$ac_ext"
2214case "(($ac_try" in
2215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216  *) ac_try_echo=$ac_try;;
2217esac
2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219$as_echo "$ac_try_echo"; } >&5
2220  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2221  ac_status=$?
2222  if test -s conftest.err; then
2223    grep -v '^ *+' conftest.err >conftest.er1
2224    cat conftest.er1 >&5
2225    mv -f conftest.er1 conftest.err
2226  fi
2227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228  test $ac_status = 0; } > conftest.i && {
2229	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2230	 test ! -s conftest.err
2231       }; then :
2232  ac_retval=0
2233else
2234  $as_echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237    ac_retval=1
2238fi
2239  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240  as_fn_set_status $ac_retval
2241
2242} # ac_fn_c_try_cpp
2243
2244# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2245# -------------------------------------------------------
2246# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2247# the include files in INCLUDES and setting the cache variable VAR
2248# accordingly.
2249ac_fn_c_check_header_mongrel ()
2250{
2251  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252  if eval \${$3+:} false; then :
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
2255if eval \${$3+:} false; then :
2256  $as_echo_n "(cached) " >&6
2257fi
2258eval ac_res=\$$3
2259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261else
2262  # Is the header compilable?
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2264$as_echo_n "checking $2 usability... " >&6; }
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271  ac_header_compiler=yes
2272else
2273  ac_header_compiler=no
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2277$as_echo "$ac_header_compiler" >&6; }
2278
2279# Is the header present?
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2281$as_echo_n "checking $2 presence... " >&6; }
2282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h.  */
2284#include <$2>
2285_ACEOF
2286if ac_fn_c_try_cpp "$LINENO"; then :
2287  ac_header_preproc=yes
2288else
2289  ac_header_preproc=no
2290fi
2291rm -f conftest.err conftest.i conftest.$ac_ext
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2293$as_echo "$ac_header_preproc" >&6; }
2294
2295# So?  What about this header?
2296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2297  yes:no: )
2298    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2299$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2300    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2301$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2302    ;;
2303  no:yes:* )
2304    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2305$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2307$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2309$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2310    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2311$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2313$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2314    ;;
2315esac
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
2318if eval \${$3+:} false; then :
2319  $as_echo_n "(cached) " >&6
2320else
2321  eval "$3=\$ac_header_compiler"
2322fi
2323eval ac_res=\$$3
2324	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
2326fi
2327  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329} # ac_fn_c_check_header_mongrel
2330
2331# ac_fn_c_try_run LINENO
2332# ----------------------
2333# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2334# that executables *can* be run.
2335ac_fn_c_try_run ()
2336{
2337  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338  if { { ac_try="$ac_link"
2339case "(($ac_try" in
2340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341  *) ac_try_echo=$ac_try;;
2342esac
2343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344$as_echo "$ac_try_echo"; } >&5
2345  (eval "$ac_link") 2>&5
2346  ac_status=$?
2347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2349  { { case "(($ac_try" in
2350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351  *) ac_try_echo=$ac_try;;
2352esac
2353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354$as_echo "$ac_try_echo"; } >&5
2355  (eval "$ac_try") 2>&5
2356  ac_status=$?
2357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358  test $ac_status = 0; }; }; then :
2359  ac_retval=0
2360else
2361  $as_echo "$as_me: program exited with status $ac_status" >&5
2362       $as_echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365       ac_retval=$ac_status
2366fi
2367  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2368  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369  as_fn_set_status $ac_retval
2370
2371} # ac_fn_c_try_run
2372
2373# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2374# -------------------------------------------------------
2375# Tests whether HEADER exists and can be compiled using the include files in
2376# INCLUDES, setting the cache variable VAR accordingly.
2377ac_fn_c_check_header_compile ()
2378{
2379  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381$as_echo_n "checking for $2... " >&6; }
2382if eval \${$3+:} false; then :
2383  $as_echo_n "(cached) " >&6
2384else
2385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h.  */
2387$4
2388#include <$2>
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391  eval "$3=yes"
2392else
2393  eval "$3=no"
2394fi
2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396fi
2397eval ac_res=\$$3
2398	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399$as_echo "$ac_res" >&6; }
2400  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401
2402} # ac_fn_c_check_header_compile
2403
2404# ac_fn_c_try_link LINENO
2405# -----------------------
2406# Try to link conftest.$ac_ext, and return whether this succeeded.
2407ac_fn_c_try_link ()
2408{
2409  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410  rm -f conftest.$ac_objext conftest$ac_exeext
2411  if { { ac_try="$ac_link"
2412case "(($ac_try" in
2413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414  *) ac_try_echo=$ac_try;;
2415esac
2416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417$as_echo "$ac_try_echo"; } >&5
2418  (eval "$ac_link") 2>conftest.err
2419  ac_status=$?
2420  if test -s conftest.err; then
2421    grep -v '^ *+' conftest.err >conftest.er1
2422    cat conftest.er1 >&5
2423    mv -f conftest.er1 conftest.err
2424  fi
2425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426  test $ac_status = 0; } && {
2427	 test -z "$ac_c_werror_flag" ||
2428	 test ! -s conftest.err
2429       } && test -s conftest$ac_exeext && {
2430	 test "$cross_compiling" = yes ||
2431	 test -x conftest$ac_exeext
2432       }; then :
2433  ac_retval=0
2434else
2435  $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438	ac_retval=1
2439fi
2440  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442  # interfere with the next link command; also delete a directory that is
2443  # left behind by Apple's compiler.  We do this before executing the actions.
2444  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446  as_fn_set_status $ac_retval
2447
2448} # ac_fn_c_try_link
2449
2450# ac_fn_c_check_func LINENO FUNC VAR
2451# ----------------------------------
2452# Tests whether FUNC exists, setting the cache variable VAR accordingly
2453ac_fn_c_check_func ()
2454{
2455  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457$as_echo_n "checking for $2... " >&6; }
2458if eval \${$3+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h.  */
2463/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2465#define $2 innocuous_$2
2466
2467/* System header to define __stub macros and hopefully few prototypes,
2468    which can conflict with char $2 (); below.
2469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470    <limits.h> exists even on freestanding compilers.  */
2471
2472#ifdef __STDC__
2473# include <limits.h>
2474#else
2475# include <assert.h>
2476#endif
2477
2478#undef $2
2479
2480/* Override any GCC internal prototype to avoid an error.
2481   Use char because int might match the return type of a GCC
2482   builtin and then its argument prototype would still apply.  */
2483#ifdef __cplusplus
2484extern "C"
2485#endif
2486char $2 ();
2487/* The GNU C library defines this for functions which it implements
2488    to always fail with ENOSYS.  Some functions are actually named
2489    something starting with __ and the normal name is an alias.  */
2490#if defined __stub_$2 || defined __stub___$2
2491choke me
2492#endif
2493
2494int
2495main ()
2496{
2497return $2 ();
2498  ;
2499  return 0;
2500}
2501_ACEOF
2502if ac_fn_c_try_link "$LINENO"; then :
2503  eval "$3=yes"
2504else
2505  eval "$3=no"
2506fi
2507rm -f core conftest.err conftest.$ac_objext \
2508    conftest$ac_exeext conftest.$ac_ext
2509fi
2510eval ac_res=\$$3
2511	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512$as_echo "$ac_res" >&6; }
2513  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514
2515} # ac_fn_c_check_func
2516
2517# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2518# --------------------------------------------
2519# Tries to find the compile-time value of EXPR in a program that includes
2520# INCLUDES, setting VAR accordingly. Returns whether the value could be
2521# computed
2522ac_fn_c_compute_int ()
2523{
2524  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525  if test "$cross_compiling" = yes; then
2526    # Depending upon the size, compute the lo and hi bounds.
2527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h.  */
2529$4
2530int
2531main ()
2532{
2533static int test_array [1 - 2 * !(($2) >= 0)];
2534test_array [0] = 0;
2535return test_array [0];
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541if ac_fn_c_try_compile "$LINENO"; then :
2542  ac_lo=0 ac_mid=0
2543  while :; do
2544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h.  */
2546$4
2547int
2548main ()
2549{
2550static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551test_array [0] = 0;
2552return test_array [0];
2553
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559  ac_hi=$ac_mid; break
2560else
2561  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2562			if test $ac_lo -le $ac_mid; then
2563			  ac_lo= ac_hi=
2564			  break
2565			fi
2566			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569  done
2570else
2571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h.  */
2573$4
2574int
2575main ()
2576{
2577static int test_array [1 - 2 * !(($2) < 0)];
2578test_array [0] = 0;
2579return test_array [0];
2580
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586  ac_hi=-1 ac_mid=-1
2587  while :; do
2588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h.  */
2590$4
2591int
2592main ()
2593{
2594static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2595test_array [0] = 0;
2596return test_array [0];
2597
2598  ;
2599  return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603  ac_lo=$ac_mid; break
2604else
2605  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2606			if test $ac_mid -le $ac_hi; then
2607			  ac_lo= ac_hi=
2608			  break
2609			fi
2610			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2611fi
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613  done
2614else
2615  ac_lo= ac_hi=
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620# Binary search between lo and hi bounds.
2621while test "x$ac_lo" != "x$ac_hi"; do
2622  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h.  */
2625$4
2626int
2627main ()
2628{
2629static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2630test_array [0] = 0;
2631return test_array [0];
2632
2633  ;
2634  return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638  ac_hi=$ac_mid
2639else
2640  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643done
2644case $ac_lo in #((
2645?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2646'') ac_retval=1 ;;
2647esac
2648  else
2649    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h.  */
2651$4
2652static long int longval () { return $2; }
2653static unsigned long int ulongval () { return $2; }
2654#include <stdio.h>
2655#include <stdlib.h>
2656int
2657main ()
2658{
2659
2660  FILE *f = fopen ("conftest.val", "w");
2661  if (! f)
2662    return 1;
2663  if (($2) < 0)
2664    {
2665      long int i = longval ();
2666      if (i != ($2))
2667	return 1;
2668      fprintf (f, "%ld", i);
2669    }
2670  else
2671    {
2672      unsigned long int i = ulongval ();
2673      if (i != ($2))
2674	return 1;
2675      fprintf (f, "%lu", i);
2676    }
2677  /* Do not output a trailing newline, as this causes \r\n confusion
2678     on some platforms.  */
2679  return ferror (f) || fclose (f) != 0;
2680
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685if ac_fn_c_try_run "$LINENO"; then :
2686  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2687else
2688  ac_retval=1
2689fi
2690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2691  conftest.$ac_objext conftest.beam conftest.$ac_ext
2692rm -f conftest.val
2693
2694  fi
2695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696  as_fn_set_status $ac_retval
2697
2698} # ac_fn_c_compute_int
2699
2700# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2701# -------------------------------------------
2702# Tests whether TYPE exists after having included INCLUDES, setting cache
2703# variable VAR accordingly.
2704ac_fn_c_check_type ()
2705{
2706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708$as_echo_n "checking for $2... " >&6; }
2709if eval \${$3+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  eval "$3=no"
2713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h.  */
2715$4
2716int
2717main ()
2718{
2719if (sizeof ($2))
2720	 return 0;
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725if ac_fn_c_try_compile "$LINENO"; then :
2726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h.  */
2728$4
2729int
2730main ()
2731{
2732if (sizeof (($2)))
2733	    return 0;
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738if ac_fn_c_try_compile "$LINENO"; then :
2739
2740else
2741  eval "$3=yes"
2742fi
2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744fi
2745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746fi
2747eval ac_res=\$$3
2748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749$as_echo "$ac_res" >&6; }
2750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751
2752} # ac_fn_c_check_type
2753
2754# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2755# ---------------------------------------------
2756# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2757# accordingly.
2758ac_fn_c_check_decl ()
2759{
2760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761  as_decl_name=`echo $2|sed 's/ *(.*//'`
2762  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2764$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2765if eval \${$3+:} false; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h.  */
2770$4
2771int
2772main ()
2773{
2774#ifndef $as_decl_name
2775#ifdef __cplusplus
2776  (void) $as_decl_use;
2777#else
2778  (void) $as_decl_name;
2779#endif
2780#endif
2781
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786if ac_fn_c_try_compile "$LINENO"; then :
2787  eval "$3=yes"
2788else
2789  eval "$3=no"
2790fi
2791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792fi
2793eval ac_res=\$$3
2794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795$as_echo "$ac_res" >&6; }
2796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2797
2798} # ac_fn_c_check_decl
2799
2800# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2801# ----------------------------------------------------
2802# Tries to find if the field MEMBER exists in type AGGR, after including
2803# INCLUDES, setting cache variable VAR accordingly.
2804ac_fn_c_check_member ()
2805{
2806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2808$as_echo_n "checking for $2.$3... " >&6; }
2809if eval \${$4+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813/* end confdefs.h.  */
2814$5
2815int
2816main ()
2817{
2818static $2 ac_aggr;
2819if (ac_aggr.$3)
2820return 0;
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825if ac_fn_c_try_compile "$LINENO"; then :
2826  eval "$4=yes"
2827else
2828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h.  */
2830$5
2831int
2832main ()
2833{
2834static $2 ac_aggr;
2835if (sizeof ac_aggr.$3)
2836return 0;
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842  eval "$4=yes"
2843else
2844  eval "$4=no"
2845fi
2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847fi
2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849fi
2850eval ac_res=\$$4
2851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852$as_echo "$ac_res" >&6; }
2853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854
2855} # ac_fn_c_check_member
2856cat >config.log <<_ACEOF
2857This file contains any messages produced by compilers while
2858running configure, to aid debugging if configure makes a mistake.
2859
2860It was created by libiconv $as_me 1.16, which was
2861generated by GNU Autoconf 2.69.  Invocation command line was
2862
2863  $ $0 $@
2864
2865_ACEOF
2866exec 5>>config.log
2867{
2868cat <<_ASUNAME
2869## --------- ##
2870## Platform. ##
2871## --------- ##
2872
2873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2874uname -m = `(uname -m) 2>/dev/null || echo unknown`
2875uname -r = `(uname -r) 2>/dev/null || echo unknown`
2876uname -s = `(uname -s) 2>/dev/null || echo unknown`
2877uname -v = `(uname -v) 2>/dev/null || echo unknown`
2878
2879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2880/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2881
2882/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2883/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2885/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2886/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2887/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2888/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2889
2890_ASUNAME
2891
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    $as_echo "PATH: $as_dir"
2898  done
2899IFS=$as_save_IFS
2900
2901} >&5
2902
2903cat >&5 <<_ACEOF
2904
2905
2906## ----------- ##
2907## Core tests. ##
2908## ----------- ##
2909
2910_ACEOF
2911
2912
2913# Keep a trace of the command line.
2914# Strip out --no-create and --no-recursion so they do not pile up.
2915# Strip out --silent because we don't want to record it for future runs.
2916# Also quote any args containing shell meta-characters.
2917# Make two passes to allow for proper duplicate-argument suppression.
2918ac_configure_args=
2919ac_configure_args0=
2920ac_configure_args1=
2921ac_must_keep_next=false
2922for ac_pass in 1 2
2923do
2924  for ac_arg
2925  do
2926    case $ac_arg in
2927    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2928    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2929    | -silent | --silent | --silen | --sile | --sil)
2930      continue ;;
2931    *\'*)
2932      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2933    esac
2934    case $ac_pass in
2935    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2936    2)
2937      as_fn_append ac_configure_args1 " '$ac_arg'"
2938      if test $ac_must_keep_next = true; then
2939	ac_must_keep_next=false # Got value, back to normal.
2940      else
2941	case $ac_arg in
2942	  *=* | --config-cache | -C | -disable-* | --disable-* \
2943	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2944	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2945	  | -with-* | --with-* | -without-* | --without-* | --x)
2946	    case "$ac_configure_args0 " in
2947	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2948	    esac
2949	    ;;
2950	  -* ) ac_must_keep_next=true ;;
2951	esac
2952      fi
2953      as_fn_append ac_configure_args " '$ac_arg'"
2954      ;;
2955    esac
2956  done
2957done
2958{ ac_configure_args0=; unset ac_configure_args0;}
2959{ ac_configure_args1=; unset ac_configure_args1;}
2960
2961# When interrupted or exit'd, cleanup temporary files, and complete
2962# config.log.  We remove comments because anyway the quotes in there
2963# would cause problems or look ugly.
2964# WARNING: Use '\'' to represent an apostrophe within the trap.
2965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2966trap 'exit_status=$?
2967  # Save into config.log some information that might help in debugging.
2968  {
2969    echo
2970
2971    $as_echo "## ---------------- ##
2972## Cache variables. ##
2973## ---------------- ##"
2974    echo
2975    # The following way of writing the cache mishandles newlines in values,
2976(
2977  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2978    eval ac_val=\$$ac_var
2979    case $ac_val in #(
2980    *${as_nl}*)
2981      case $ac_var in #(
2982      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2983$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2984      esac
2985      case $ac_var in #(
2986      _ | IFS | as_nl) ;; #(
2987      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2988      *) { eval $ac_var=; unset $ac_var;} ;;
2989      esac ;;
2990    esac
2991  done
2992  (set) 2>&1 |
2993    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2994    *${as_nl}ac_space=\ *)
2995      sed -n \
2996	"s/'\''/'\''\\\\'\'''\''/g;
2997	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2998      ;; #(
2999    *)
3000      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3001      ;;
3002    esac |
3003    sort
3004)
3005    echo
3006
3007    $as_echo "## ----------------- ##
3008## Output variables. ##
3009## ----------------- ##"
3010    echo
3011    for ac_var in $ac_subst_vars
3012    do
3013      eval ac_val=\$$ac_var
3014      case $ac_val in
3015      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3016      esac
3017      $as_echo "$ac_var='\''$ac_val'\''"
3018    done | sort
3019    echo
3020
3021    if test -n "$ac_subst_files"; then
3022      $as_echo "## ------------------- ##
3023## File substitutions. ##
3024## ------------------- ##"
3025      echo
3026      for ac_var in $ac_subst_files
3027      do
3028	eval ac_val=\$$ac_var
3029	case $ac_val in
3030	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3031	esac
3032	$as_echo "$ac_var='\''$ac_val'\''"
3033      done | sort
3034      echo
3035    fi
3036
3037    if test -s confdefs.h; then
3038      $as_echo "## ----------- ##
3039## confdefs.h. ##
3040## ----------- ##"
3041      echo
3042      cat confdefs.h
3043      echo
3044    fi
3045    test "$ac_signal" != 0 &&
3046      $as_echo "$as_me: caught signal $ac_signal"
3047    $as_echo "$as_me: exit $exit_status"
3048  } >&5
3049  rm -f core *.core core.conftest.* &&
3050    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3051    exit $exit_status
3052' 0
3053for ac_signal in 1 2 13 15; do
3054  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3055done
3056ac_signal=0
3057
3058# confdefs.h avoids OS command line length limits that DEFS can exceed.
3059rm -f -r conftest* confdefs.h
3060
3061$as_echo "/* confdefs.h */" > confdefs.h
3062
3063# Predefined preprocessor variables.
3064
3065cat >>confdefs.h <<_ACEOF
3066#define PACKAGE_NAME "$PACKAGE_NAME"
3067_ACEOF
3068
3069cat >>confdefs.h <<_ACEOF
3070#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3071_ACEOF
3072
3073cat >>confdefs.h <<_ACEOF
3074#define PACKAGE_VERSION "$PACKAGE_VERSION"
3075_ACEOF
3076
3077cat >>confdefs.h <<_ACEOF
3078#define PACKAGE_STRING "$PACKAGE_STRING"
3079_ACEOF
3080
3081cat >>confdefs.h <<_ACEOF
3082#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3083_ACEOF
3084
3085cat >>confdefs.h <<_ACEOF
3086#define PACKAGE_URL "$PACKAGE_URL"
3087_ACEOF
3088
3089
3090# Let the site file select an alternate cache file if it wants to.
3091# Prefer an explicitly selected file to automatically selected ones.
3092ac_site_file1=NONE
3093ac_site_file2=NONE
3094if test -n "$CONFIG_SITE"; then
3095  # We do not want a PATH search for config.site.
3096  case $CONFIG_SITE in #((
3097    -*)  ac_site_file1=./$CONFIG_SITE;;
3098    */*) ac_site_file1=$CONFIG_SITE;;
3099    *)   ac_site_file1=./$CONFIG_SITE;;
3100  esac
3101elif test "x$prefix" != xNONE; then
3102  ac_site_file1=$prefix/share/config.site
3103  ac_site_file2=$prefix/etc/config.site
3104else
3105  ac_site_file1=$ac_default_prefix/share/config.site
3106  ac_site_file2=$ac_default_prefix/etc/config.site
3107fi
3108for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3109do
3110  test "x$ac_site_file" = xNONE && continue
3111  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3112    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3113$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3114    sed 's/^/| /' "$ac_site_file" >&5
3115    . "$ac_site_file" \
3116      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118as_fn_error $? "failed to load site script $ac_site_file
3119See \`config.log' for more details" "$LINENO" 5; }
3120  fi
3121done
3122
3123if test -r "$cache_file"; then
3124  # Some versions of bash will fail to source /dev/null (special files
3125  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3126  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3127    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3128$as_echo "$as_me: loading cache $cache_file" >&6;}
3129    case $cache_file in
3130      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3131      *)                      . "./$cache_file";;
3132    esac
3133  fi
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3136$as_echo "$as_me: creating cache $cache_file" >&6;}
3137  >$cache_file
3138fi
3139
3140gt_needs="$gt_needs need-ngettext"
3141as_fn_append ac_header_list " unistd.h"
3142as_fn_append ac_func_list " symlink"
3143as_fn_append ac_header_list " stdlib.h"
3144as_fn_append ac_header_list " string.h"
3145as_fn_append ac_func_list " canonicalize_file_name"
3146as_fn_append ac_func_list " getcwd"
3147as_fn_append ac_func_list " readlink"
3148as_fn_append ac_func_list " realpath"
3149as_fn_append ac_header_list " sys/param.h"
3150as_fn_append ac_func_list " readlinkat"
3151as_fn_append ac_func_list " getprogname"
3152as_fn_append ac_func_list " getexecname"
3153as_fn_append ac_header_list " limits.h"
3154as_fn_append ac_func_list " lstat"
3155as_fn_append ac_func_list " _set_invalid_parameter_handler"
3156as_fn_append ac_func_list " setenv"
3157as_fn_append ac_header_list " sys/stat.h"
3158as_fn_append ac_header_list " sys/time.h"
3159as_fn_append ac_header_list " wchar.h"
3160as_fn_append ac_header_list " stdint.h"
3161as_fn_append ac_header_list " sys/socket.h"
3162# Check that the precious variables saved in the cache have kept the same
3163# value.
3164ac_cache_corrupted=false
3165for ac_var in $ac_precious_vars; do
3166  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3167  eval ac_new_set=\$ac_env_${ac_var}_set
3168  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3169  eval ac_new_val=\$ac_env_${ac_var}_value
3170  case $ac_old_set,$ac_new_set in
3171    set,)
3172      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3174      ac_cache_corrupted=: ;;
3175    ,set)
3176      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3178      ac_cache_corrupted=: ;;
3179    ,);;
3180    *)
3181      if test "x$ac_old_val" != "x$ac_new_val"; then
3182	# differences in whitespace do not lead to failure.
3183	ac_old_val_w=`echo x $ac_old_val`
3184	ac_new_val_w=`echo x $ac_new_val`
3185	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3186	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3188	  ac_cache_corrupted=:
3189	else
3190	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3192	  eval $ac_var=\$ac_old_val
3193	fi
3194	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3195$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3196	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3197$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3198      fi;;
3199  esac
3200  # Pass precious variables to config.status.
3201  if test "$ac_new_set" = set; then
3202    case $ac_new_val in
3203    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3204    *) ac_arg=$ac_var=$ac_new_val ;;
3205    esac
3206    case " $ac_configure_args " in
3207      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3208      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3209    esac
3210  fi
3211done
3212if $ac_cache_corrupted; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3217  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3218fi
3219## -------------------- ##
3220## Main body of script. ##
3221## -------------------- ##
3222
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229
3230
3231ac_aux_dir=
3232for ac_dir in build-aux "$srcdir"/build-aux; do
3233  if test -f "$ac_dir/install-sh"; then
3234    ac_aux_dir=$ac_dir
3235    ac_install_sh="$ac_aux_dir/install-sh -c"
3236    break
3237  elif test -f "$ac_dir/install.sh"; then
3238    ac_aux_dir=$ac_dir
3239    ac_install_sh="$ac_aux_dir/install.sh -c"
3240    break
3241  elif test -f "$ac_dir/shtool"; then
3242    ac_aux_dir=$ac_dir
3243    ac_install_sh="$ac_aux_dir/shtool install -c"
3244    break
3245  fi
3246done
3247if test -z "$ac_aux_dir"; then
3248  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3249fi
3250
3251# These three variables are undocumented and unsupported,
3252# and are intended to be withdrawn in a future Autoconf release.
3253# They can cause serious problems if a builder's source tree is in a directory
3254# whose full name contains unusual characters.
3255ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3256ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3257ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3258
3259
3260am__api_version='1.16'
3261
3262# Find a good install program.  We prefer a C program (faster),
3263# so one script is as good as another.  But avoid the broken or
3264# incompatible versions:
3265# SysV /etc/install, /usr/sbin/install
3266# SunOS /usr/etc/install
3267# IRIX /sbin/install
3268# AIX /bin/install
3269# AmigaOS /C/install, which installs bootblocks on floppy discs
3270# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3271# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3272# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3273# OS/2's system install, which has a completely different semantic
3274# ./install, which can be erroneously created by make from ./install.sh.
3275# Reject install programs that cannot install multiple files.
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3277$as_echo_n "checking for a BSD-compatible install... " >&6; }
3278if test -z "$INSTALL"; then
3279if ${ac_cv_path_install+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    # Account for people who put trailing slashes in PATH elements.
3288case $as_dir/ in #((
3289  ./ | .// | /[cC]/* | \
3290  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3291  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3292  /usr/ucb/* ) ;;
3293  *)
3294    # OSF1 and SCO ODT 3.0 have their own names for install.
3295    # Don't use installbsd from OSF since it installs stuff as root
3296    # by default.
3297    for ac_prog in ginstall scoinst install; do
3298      for ac_exec_ext in '' $ac_executable_extensions; do
3299	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3300	  if test $ac_prog = install &&
3301	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302	    # AIX install.  It has an incompatible calling convention.
3303	    :
3304	  elif test $ac_prog = install &&
3305	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3306	    # program-specific install script used by HP pwplus--don't use.
3307	    :
3308	  else
3309	    rm -rf conftest.one conftest.two conftest.dir
3310	    echo one > conftest.one
3311	    echo two > conftest.two
3312	    mkdir conftest.dir
3313	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3314	      test -s conftest.one && test -s conftest.two &&
3315	      test -s conftest.dir/conftest.one &&
3316	      test -s conftest.dir/conftest.two
3317	    then
3318	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3319	      break 3
3320	    fi
3321	  fi
3322	fi
3323      done
3324    done
3325    ;;
3326esac
3327
3328  done
3329IFS=$as_save_IFS
3330
3331rm -rf conftest.one conftest.two conftest.dir
3332
3333fi
3334  if test "${ac_cv_path_install+set}" = set; then
3335    INSTALL=$ac_cv_path_install
3336  else
3337    # As a last resort, use the slow shell script.  Don't cache a
3338    # value for INSTALL within a source directory, because that will
3339    # break other packages using the cache if that directory is
3340    # removed, or if the value is a relative name.
3341    INSTALL=$ac_install_sh
3342  fi
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3345$as_echo "$INSTALL" >&6; }
3346
3347# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3348# It thinks the first close brace ends the variable substitution.
3349test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3350
3351test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3352
3353test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3354
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3356$as_echo_n "checking whether build environment is sane... " >&6; }
3357# Reject unsafe characters in $srcdir or the absolute working directory
3358# name.  Accept space and tab only in the latter.
3359am_lf='
3360'
3361case `pwd` in
3362  *[\\\"\#\$\&\'\`$am_lf]*)
3363    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3364esac
3365case $srcdir in
3366  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3367    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3368esac
3369
3370# Do 'set' in a subshell so we don't clobber the current shell's
3371# arguments.  Must try -L first in case configure is actually a
3372# symlink; some systems play weird games with the mod time of symlinks
3373# (eg FreeBSD returns the mod time of the symlink's containing
3374# directory).
3375if (
3376   am_has_slept=no
3377   for am_try in 1 2; do
3378     echo "timestamp, slept: $am_has_slept" > conftest.file
3379     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3380     if test "$*" = "X"; then
3381	# -L didn't work.
3382	set X `ls -t "$srcdir/configure" conftest.file`
3383     fi
3384     if test "$*" != "X $srcdir/configure conftest.file" \
3385	&& test "$*" != "X conftest.file $srcdir/configure"; then
3386
3387	# If neither matched, then we have a broken ls.  This can happen
3388	# if, for instance, CONFIG_SHELL is bash and it inherits a
3389	# broken ls alias from the environment.  This has actually
3390	# happened.  Such a system could not be considered "sane".
3391	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3392  alias in your environment" "$LINENO" 5
3393     fi
3394     if test "$2" = conftest.file || test $am_try -eq 2; then
3395       break
3396     fi
3397     # Just in case.
3398     sleep 1
3399     am_has_slept=yes
3400   done
3401   test "$2" = conftest.file
3402   )
3403then
3404   # Ok.
3405   :
3406else
3407   as_fn_error $? "newly created file is older than distributed files!
3408Check your system clock" "$LINENO" 5
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411$as_echo "yes" >&6; }
3412# If we didn't sleep, we still need to ensure time stamps of config.status and
3413# generated files are strictly newer.
3414am_sleep_pid=
3415if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3416  ( sleep 1 ) &
3417  am_sleep_pid=$!
3418fi
3419
3420rm -f conftest.file
3421
3422test "$program_prefix" != NONE &&
3423  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3424# Use a double $ so make ignores it.
3425test "$program_suffix" != NONE &&
3426  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3427# Double any \ or $.
3428# By default was `s,x,x', remove it if useless.
3429ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3430program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3431
3432# Expand $ac_aux_dir to an absolute path.
3433am_aux_dir=`cd "$ac_aux_dir" && pwd`
3434
3435if test x"${MISSING+set}" != xset; then
3436  case $am_aux_dir in
3437  *\ * | *\	*)
3438    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3439  *)
3440    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3441  esac
3442fi
3443# Use eval to expand $SHELL
3444if eval "$MISSING --is-lightweight"; then
3445  am_missing_run="$MISSING "
3446else
3447  am_missing_run=
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3449$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3450fi
3451
3452if test x"${install_sh+set}" != xset; then
3453  case $am_aux_dir in
3454  *\ * | *\	*)
3455    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3456  *)
3457    install_sh="\${SHELL} $am_aux_dir/install-sh"
3458  esac
3459fi
3460
3461# Installed binaries are usually stripped using 'strip' when the user
3462# run "make install-strip".  However 'strip' might not be the right
3463# tool to use in cross-compilation environments, therefore Automake
3464# will honor the 'STRIP' environment variable to overrule this program.
3465if test "$cross_compiling" != no; then
3466  if test -n "$ac_tool_prefix"; then
3467  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3468set dummy ${ac_tool_prefix}strip; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_prog_STRIP+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -n "$STRIP"; then
3475  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  test -z "$as_dir" && as_dir=.
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494STRIP=$ac_cv_prog_STRIP
3495if test -n "$STRIP"; then
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3497$as_echo "$STRIP" >&6; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503
3504fi
3505if test -z "$ac_cv_prog_STRIP"; then
3506  ac_ct_STRIP=$STRIP
3507  # Extract the first word of "strip", so it can be a program name with args.
3508set dummy strip; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
3511if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  if test -n "$ac_ct_STRIP"; then
3515  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_ac_ct_STRIP="strip"
3525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529  done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3535if test -n "$ac_ct_STRIP"; then
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3537$as_echo "$ac_ct_STRIP" >&6; }
3538else
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543  if test "x$ac_ct_STRIP" = x; then
3544    STRIP=":"
3545  else
3546    case $cross_compiling:$ac_tool_warned in
3547yes:)
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3550ac_tool_warned=yes ;;
3551esac
3552    STRIP=$ac_ct_STRIP
3553  fi
3554else
3555  STRIP="$ac_cv_prog_STRIP"
3556fi
3557
3558fi
3559INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3562$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3563if test -z "$MKDIR_P"; then
3564  if ${ac_cv_path_mkdir+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3569do
3570  IFS=$as_save_IFS
3571  test -z "$as_dir" && as_dir=.
3572    for ac_prog in mkdir gmkdir; do
3573	 for ac_exec_ext in '' $ac_executable_extensions; do
3574	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3575	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3576	     'mkdir (GNU coreutils) '* | \
3577	     'mkdir (coreutils) '* | \
3578	     'mkdir (fileutils) '4.1*)
3579	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3580	       break 3;;
3581	   esac
3582	 done
3583       done
3584  done
3585IFS=$as_save_IFS
3586
3587fi
3588
3589  test -d ./--version && rmdir ./--version
3590  if test "${ac_cv_path_mkdir+set}" = set; then
3591    MKDIR_P="$ac_cv_path_mkdir -p"
3592  else
3593    # As a last resort, use the slow shell script.  Don't cache a
3594    # value for MKDIR_P within a source directory, because that will
3595    # break other packages using the cache if that directory is
3596    # removed, or if the value is a relative name.
3597    MKDIR_P="$ac_install_sh -d"
3598  fi
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3601$as_echo "$MKDIR_P" >&6; }
3602
3603for ac_prog in awk mawk nawk awk
3604do
3605  # Extract the first word of "$ac_prog", so it can be a program name with args.
3606set dummy $ac_prog; ac_word=$2
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608$as_echo_n "checking for $ac_word... " >&6; }
3609if ${ac_cv_prog_AWK+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  if test -n "$AWK"; then
3613  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3614else
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622    ac_cv_prog_AWK="$ac_prog"
3623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632AWK=$ac_cv_prog_AWK
3633if test -n "$AWK"; then
3634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3635$as_echo "$AWK" >&6; }
3636else
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638$as_echo "no" >&6; }
3639fi
3640
3641
3642  test -n "$AWK" && break
3643done
3644
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3646$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3647set x ${MAKE-make}
3648ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3649if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3650  $as_echo_n "(cached) " >&6
3651else
3652  cat >conftest.make <<\_ACEOF
3653SHELL = /bin/sh
3654all:
3655	@echo '@@@%%%=$(MAKE)=@@@%%%'
3656_ACEOF
3657# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3658case `${MAKE-make} -f conftest.make 2>/dev/null` in
3659  *@@@%%%=?*=@@@%%%*)
3660    eval ac_cv_prog_make_${ac_make}_set=yes;;
3661  *)
3662    eval ac_cv_prog_make_${ac_make}_set=no;;
3663esac
3664rm -f conftest.make
3665fi
3666if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3668$as_echo "yes" >&6; }
3669  SET_MAKE=
3670else
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
3673  SET_MAKE="MAKE=${MAKE-make}"
3674fi
3675
3676rm -rf .tst 2>/dev/null
3677mkdir .tst 2>/dev/null
3678if test -d .tst; then
3679  am__leading_dot=.
3680else
3681  am__leading_dot=_
3682fi
3683rmdir .tst 2>/dev/null
3684
3685# Check whether --enable-silent-rules was given.
3686if test "${enable_silent_rules+set}" = set; then :
3687  enableval=$enable_silent_rules;
3688fi
3689
3690case $enable_silent_rules in # (((
3691  yes) AM_DEFAULT_VERBOSITY=0;;
3692   no) AM_DEFAULT_VERBOSITY=1;;
3693    *) AM_DEFAULT_VERBOSITY=1;;
3694esac
3695am_make=${MAKE-make}
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3697$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3698if ${am_cv_make_support_nested_variables+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  if $as_echo 'TRUE=$(BAR$(V))
3702BAR0=false
3703BAR1=true
3704V=1
3705am__doit:
3706	@$(TRUE)
3707.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3708  am_cv_make_support_nested_variables=yes
3709else
3710  am_cv_make_support_nested_variables=no
3711fi
3712fi
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714$as_echo "$am_cv_make_support_nested_variables" >&6; }
3715if test $am_cv_make_support_nested_variables = yes; then
3716    AM_V='$(V)'
3717  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3718else
3719  AM_V=$AM_DEFAULT_VERBOSITY
3720  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3721fi
3722AM_BACKSLASH='\'
3723
3724if test "`cd $srcdir && pwd`" != "`pwd`"; then
3725  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3726  # is not polluted with repeated "-I."
3727  am__isrc=' -I$(srcdir)'
3728  # test to see if srcdir already configured
3729  if test -f $srcdir/config.status; then
3730    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3731  fi
3732fi
3733
3734# test whether we have cygpath
3735if test -z "$CYGPATH_W"; then
3736  if (cygpath --version) >/dev/null 2>/dev/null; then
3737    CYGPATH_W='cygpath -w'
3738  else
3739    CYGPATH_W=echo
3740  fi
3741fi
3742
3743
3744# Define the identity of the package.
3745 PACKAGE='libiconv'
3746 VERSION='1.16'
3747
3748
3749cat >>confdefs.h <<_ACEOF
3750#define PACKAGE "$PACKAGE"
3751_ACEOF
3752
3753
3754cat >>confdefs.h <<_ACEOF
3755#define VERSION "$VERSION"
3756_ACEOF
3757
3758# Some tools Automake needs.
3759
3760ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3761
3762
3763AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3764
3765
3766AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3767
3768
3769AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3770
3771
3772MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3773
3774# For better backward compatibility.  To be removed once Automake 1.9.x
3775# dies out for good.  For more background, see:
3776# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3777# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3778mkdir_p='$(MKDIR_P)'
3779
3780# We need awk for the "check" target (and possibly the TAP driver).  The
3781# system "awk" is bad on some platforms.
3782# Always define AMTAR for backward compatibility.  Yes, it's still used
3783# in the wild :-(  We should find a proper way to deprecate it ...
3784AMTAR='$${TAR-tar}'
3785
3786
3787# We'll loop over all known methods to create a tar archive until one works.
3788_am_tools='gnutar  pax cpio none'
3789
3790am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3791
3792
3793
3794
3795
3796
3797# POSIX will say in a future version that running "rm -f" with no argument
3798# is OK; and we want to be able to make that assumption in our Makefile
3799# recipes.  So use an aggressive probe to check that the usage we want is
3800# actually supported "in the wild" to an acceptable degree.
3801# See automake bug#10828.
3802# To make any issue more visible, cause the running configure to be aborted
3803# by default if the 'rm' program in use doesn't match our expectations; the
3804# user can still override this though.
3805if rm -f && rm -fr && rm -rf; then : OK; else
3806  cat >&2 <<'END'
3807Oops!
3808
3809Your 'rm' program seems unable to run without file operands specified
3810on the command line, even when the '-f' option is present.  This is contrary
3811to the behaviour of most rm programs out there, and not conforming with
3812the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3813
3814Please tell bug-automake@gnu.org about your system, including the value
3815of your $PATH and any error possibly output before this message.  This
3816can help us improve future automake versions.
3817
3818END
3819  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3820    echo 'Configuration will proceed anyway, since you have set the' >&2
3821    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3822    echo >&2
3823  else
3824    cat >&2 <<'END'
3825Aborting the configuration process, to ensure you take notice of the issue.
3826
3827You can download and install GNU coreutils to get an 'rm' implementation
3828that behaves properly: <https://www.gnu.org/software/coreutils/>.
3829
3830If you want to complete the configuration process using your problematic
3831'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3832to "yes", and re-run configure.
3833
3834END
3835    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3836  fi
3837fi
3838
3839ac_config_headers="$ac_config_headers config.h lib/config.h"
3840
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3842$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3843set x ${MAKE-make}
3844ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3845if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat >conftest.make <<\_ACEOF
3849SHELL = /bin/sh
3850all:
3851	@echo '@@@%%%=$(MAKE)=@@@%%%'
3852_ACEOF
3853# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3854case `${MAKE-make} -f conftest.make 2>/dev/null` in
3855  *@@@%%%=?*=@@@%%%*)
3856    eval ac_cv_prog_make_${ac_make}_set=yes;;
3857  *)
3858    eval ac_cv_prog_make_${ac_make}_set=no;;
3859esac
3860rm -f conftest.make
3861fi
3862if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3864$as_echo "yes" >&6; }
3865  SET_MAKE=
3866else
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869  SET_MAKE="MAKE=${MAKE-make}"
3870fi
3871
3872
3873
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879if test -n "$ac_tool_prefix"; then
3880  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3881set dummy ${ac_tool_prefix}gcc; ac_word=$2
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883$as_echo_n "checking for $ac_word... " >&6; }
3884if ${ac_cv_prog_CC+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  if test -n "$CC"; then
3888  ac_cv_prog_CC="$CC" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893  IFS=$as_save_IFS
3894  test -z "$as_dir" && as_dir=.
3895    for ac_exec_ext in '' $ac_executable_extensions; do
3896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899    break 2
3900  fi
3901done
3902  done
3903IFS=$as_save_IFS
3904
3905fi
3906fi
3907CC=$ac_cv_prog_CC
3908if test -n "$CC"; then
3909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910$as_echo "$CC" >&6; }
3911else
3912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913$as_echo "no" >&6; }
3914fi
3915
3916
3917fi
3918if test -z "$ac_cv_prog_CC"; then
3919  ac_ct_CC=$CC
3920  # Extract the first word of "gcc", so it can be a program name with args.
3921set dummy gcc; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
3924if ${ac_cv_prog_ac_ct_CC+:} false; then :
3925  $as_echo_n "(cached) " >&6
3926else
3927  if test -n "$ac_ct_CC"; then
3928  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933  IFS=$as_save_IFS
3934  test -z "$as_dir" && as_dir=.
3935    for ac_exec_ext in '' $ac_executable_extensions; do
3936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937    ac_cv_prog_ac_ct_CC="gcc"
3938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939    break 2
3940  fi
3941done
3942  done
3943IFS=$as_save_IFS
3944
3945fi
3946fi
3947ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948if test -n "$ac_ct_CC"; then
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3950$as_echo "$ac_ct_CC" >&6; }
3951else
3952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956  if test "x$ac_ct_CC" = x; then
3957    CC=""
3958  else
3959    case $cross_compiling:$ac_tool_warned in
3960yes:)
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963ac_tool_warned=yes ;;
3964esac
3965    CC=$ac_ct_CC
3966  fi
3967else
3968  CC="$ac_cv_prog_CC"
3969fi
3970
3971if test -z "$CC"; then
3972          if test -n "$ac_tool_prefix"; then
3973    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3974set dummy ${ac_tool_prefix}cc; ac_word=$2
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976$as_echo_n "checking for $ac_word... " >&6; }
3977if ${ac_cv_prog_CC+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  if test -n "$CC"; then
3981  ac_cv_prog_CC="$CC" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986  IFS=$as_save_IFS
3987  test -z "$as_dir" && as_dir=.
3988    for ac_exec_ext in '' $ac_executable_extensions; do
3989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990    ac_cv_prog_CC="${ac_tool_prefix}cc"
3991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992    break 2
3993  fi
3994done
3995  done
3996IFS=$as_save_IFS
3997
3998fi
3999fi
4000CC=$ac_cv_prog_CC
4001if test -n "$CC"; then
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003$as_echo "$CC" >&6; }
4004else
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007fi
4008
4009
4010  fi
4011fi
4012if test -z "$CC"; then
4013  # Extract the first word of "cc", so it can be a program name with args.
4014set dummy cc; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if ${ac_cv_prog_CC+:} false; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  if test -n "$CC"; then
4021  ac_cv_prog_CC="$CC" # Let the user override the test.
4022else
4023  ac_prog_rejected=no
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027  IFS=$as_save_IFS
4028  test -z "$as_dir" && as_dir=.
4029    for ac_exec_ext in '' $ac_executable_extensions; do
4030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4032       ac_prog_rejected=yes
4033       continue
4034     fi
4035    ac_cv_prog_CC="cc"
4036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037    break 2
4038  fi
4039done
4040  done
4041IFS=$as_save_IFS
4042
4043if test $ac_prog_rejected = yes; then
4044  # We found a bogon in the path, so make sure we never use it.
4045  set dummy $ac_cv_prog_CC
4046  shift
4047  if test $# != 0; then
4048    # We chose a different compiler from the bogus one.
4049    # However, it has the same basename, so the bogon will be chosen
4050    # first if we set CC to just the basename; use the full file name.
4051    shift
4052    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4053  fi
4054fi
4055fi
4056fi
4057CC=$ac_cv_prog_CC
4058if test -n "$CC"; then
4059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4060$as_echo "$CC" >&6; }
4061else
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067fi
4068if test -z "$CC"; then
4069  if test -n "$ac_tool_prefix"; then
4070  for ac_prog in cl.exe
4071  do
4072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if ${ac_cv_prog_CC+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$CC"; then
4080  ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102$as_echo "$CC" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109    test -n "$CC" && break
4110  done
4111fi
4112if test -z "$CC"; then
4113  ac_ct_CC=$CC
4114  for ac_prog in cl.exe
4115do
4116  # Extract the first word of "$ac_prog", so it can be a program name with args.
4117set dummy $ac_prog; ac_word=$2
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if ${ac_cv_prog_ac_ct_CC+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  if test -n "$ac_ct_CC"; then
4124  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131    for ac_exec_ext in '' $ac_executable_extensions; do
4132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133    ac_cv_prog_ac_ct_CC="$ac_prog"
4134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135    break 2
4136  fi
4137done
4138  done
4139IFS=$as_save_IFS
4140
4141fi
4142fi
4143ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144if test -n "$ac_ct_CC"; then
4145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146$as_echo "$ac_ct_CC" >&6; }
4147else
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151
4152
4153  test -n "$ac_ct_CC" && break
4154done
4155
4156  if test "x$ac_ct_CC" = x; then
4157    CC=""
4158  else
4159    case $cross_compiling:$ac_tool_warned in
4160yes:)
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163ac_tool_warned=yes ;;
4164esac
4165    CC=$ac_ct_CC
4166  fi
4167fi
4168
4169fi
4170
4171
4172test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174as_fn_error $? "no acceptable C compiler found in \$PATH
4175See \`config.log' for more details" "$LINENO" 5; }
4176
4177# Provide some information about the compiler.
4178$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4179set X $ac_compile
4180ac_compiler=$2
4181for ac_option in --version -v -V -qversion; do
4182  { { ac_try="$ac_compiler $ac_option >&5"
4183case "(($ac_try" in
4184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185  *) ac_try_echo=$ac_try;;
4186esac
4187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188$as_echo "$ac_try_echo"; } >&5
4189  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190  ac_status=$?
4191  if test -s conftest.err; then
4192    sed '10a\
4193... rest of stderr output deleted ...
4194         10q' conftest.err >conftest.er1
4195    cat conftest.er1 >&5
4196  fi
4197  rm -f conftest.er1 conftest.err
4198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199  test $ac_status = 0; }
4200done
4201
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204
4205int
4206main ()
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213ac_clean_files_save=$ac_clean_files
4214ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4215# Try to create an executable without -o first, disregard a.out.
4216# It will help us diagnose broken compilers, and finding out an intuition
4217# of exeext.
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4219$as_echo_n "checking whether the C compiler works... " >&6; }
4220ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4221
4222# The possible output files:
4223ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224
4225ac_rmfiles=
4226for ac_file in $ac_files
4227do
4228  case $ac_file in
4229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4230    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4231  esac
4232done
4233rm -f $ac_rmfiles
4234
4235if { { ac_try="$ac_link_default"
4236case "(($ac_try" in
4237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238  *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241$as_echo "$ac_try_echo"; } >&5
4242  (eval "$ac_link_default") 2>&5
4243  ac_status=$?
4244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245  test $ac_status = 0; }; then :
4246  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4247# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4248# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4249# so that the user can short-circuit this test for compilers unknown to
4250# Autoconf.
4251for ac_file in $ac_files ''
4252do
4253  test -f "$ac_file" || continue
4254  case $ac_file in
4255    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4256	;;
4257    [ab].out )
4258	# We found the default executable, but exeext='' is most
4259	# certainly right.
4260	break;;
4261    *.* )
4262	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4263	then :; else
4264	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4265	fi
4266	# We set ac_cv_exeext here because the later test for it is not
4267	# safe: cross compilers may not add the suffix if given an `-o'
4268	# argument, so we may need to know it at that point already.
4269	# Even if this section looks crufty: it has the advantage of
4270	# actually working.
4271	break;;
4272    * )
4273	break;;
4274  esac
4275done
4276test "$ac_cv_exeext" = no && ac_cv_exeext=
4277
4278else
4279  ac_file=''
4280fi
4281if test -z "$ac_file"; then :
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284$as_echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289as_fn_error 77 "C compiler cannot create executables
4290See \`config.log' for more details" "$LINENO" 5; }
4291else
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293$as_echo "yes" >&6; }
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4296$as_echo_n "checking for C compiler default output file name... " >&6; }
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4298$as_echo "$ac_file" >&6; }
4299ac_exeext=$ac_cv_exeext
4300
4301rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4302ac_clean_files=$ac_clean_files_save
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4304$as_echo_n "checking for suffix of executables... " >&6; }
4305if { { ac_try="$ac_link"
4306case "(($ac_try" in
4307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308  *) ac_try_echo=$ac_try;;
4309esac
4310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311$as_echo "$ac_try_echo"; } >&5
4312  (eval "$ac_link") 2>&5
4313  ac_status=$?
4314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315  test $ac_status = 0; }; then :
4316  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4317# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4318# work properly (i.e., refer to `conftest.exe'), while it won't with
4319# `rm'.
4320for ac_file in conftest.exe conftest conftest.*; do
4321  test -f "$ac_file" || continue
4322  case $ac_file in
4323    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4324    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4325	  break;;
4326    * ) break;;
4327  esac
4328done
4329else
4330  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4333See \`config.log' for more details" "$LINENO" 5; }
4334fi
4335rm -f conftest conftest$ac_cv_exeext
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4337$as_echo "$ac_cv_exeext" >&6; }
4338
4339rm -f conftest.$ac_ext
4340EXEEXT=$ac_cv_exeext
4341ac_exeext=$EXEEXT
4342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344#include <stdio.h>
4345int
4346main ()
4347{
4348FILE *f = fopen ("conftest.out", "w");
4349 return ferror (f) || fclose (f) != 0;
4350
4351  ;
4352  return 0;
4353}
4354_ACEOF
4355ac_clean_files="$ac_clean_files conftest.out"
4356# Check that the compiler produces executables we can run.  If not, either
4357# the compiler is broken, or we cross compile.
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359$as_echo_n "checking whether we are cross compiling... " >&6; }
4360if test "$cross_compiling" != yes; then
4361  { { ac_try="$ac_link"
4362case "(($ac_try" in
4363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364  *) ac_try_echo=$ac_try;;
4365esac
4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367$as_echo "$ac_try_echo"; } >&5
4368  (eval "$ac_link") 2>&5
4369  ac_status=$?
4370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371  test $ac_status = 0; }
4372  if { ac_try='./conftest$ac_cv_exeext'
4373  { { case "(($ac_try" in
4374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375  *) ac_try_echo=$ac_try;;
4376esac
4377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378$as_echo "$ac_try_echo"; } >&5
4379  (eval "$ac_try") 2>&5
4380  ac_status=$?
4381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382  test $ac_status = 0; }; }; then
4383    cross_compiling=no
4384  else
4385    if test "$cross_compiling" = maybe; then
4386	cross_compiling=yes
4387    else
4388	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390as_fn_error $? "cannot run C compiled programs.
4391If you meant to cross compile, use \`--host'.
4392See \`config.log' for more details" "$LINENO" 5; }
4393    fi
4394  fi
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397$as_echo "$cross_compiling" >&6; }
4398
4399rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4400ac_clean_files=$ac_clean_files_save
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4402$as_echo_n "checking for suffix of object files... " >&6; }
4403if ${ac_cv_objext+:} false; then :
4404  $as_echo_n "(cached) " >&6
4405else
4406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408
4409int
4410main ()
4411{
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417rm -f conftest.o conftest.obj
4418if { { ac_try="$ac_compile"
4419case "(($ac_try" in
4420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421  *) ac_try_echo=$ac_try;;
4422esac
4423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424$as_echo "$ac_try_echo"; } >&5
4425  (eval "$ac_compile") 2>&5
4426  ac_status=$?
4427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428  test $ac_status = 0; }; then :
4429  for ac_file in conftest.o conftest.obj conftest.*; do
4430  test -f "$ac_file" || continue;
4431  case $ac_file in
4432    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4433    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4434       break;;
4435  esac
4436done
4437else
4438  $as_echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443as_fn_error $? "cannot compute suffix of object files: cannot compile
4444See \`config.log' for more details" "$LINENO" 5; }
4445fi
4446rm -f conftest.$ac_cv_objext conftest.$ac_ext
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4449$as_echo "$ac_cv_objext" >&6; }
4450OBJEXT=$ac_cv_objext
4451ac_objext=$OBJEXT
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4453$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4454if ${ac_cv_c_compiler_gnu+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459
4460int
4461main ()
4462{
4463#ifndef __GNUC__
4464       choke me
4465#endif
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472  ac_compiler_gnu=yes
4473else
4474  ac_compiler_gnu=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477ac_cv_c_compiler_gnu=$ac_compiler_gnu
4478
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4481$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4482if test $ac_compiler_gnu = yes; then
4483  GCC=yes
4484else
4485  GCC=
4486fi
4487ac_test_CFLAGS=${CFLAGS+set}
4488ac_save_CFLAGS=$CFLAGS
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4490$as_echo_n "checking whether $CC accepts -g... " >&6; }
4491if ${ac_cv_prog_cc_g+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  ac_save_c_werror_flag=$ac_c_werror_flag
4495   ac_c_werror_flag=yes
4496   ac_cv_prog_cc_g=no
4497   CFLAGS="-g"
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500
4501int
4502main ()
4503{
4504
4505  ;
4506  return 0;
4507}
4508_ACEOF
4509if ac_fn_c_try_compile "$LINENO"; then :
4510  ac_cv_prog_cc_g=yes
4511else
4512  CFLAGS=""
4513      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515
4516int
4517main ()
4518{
4519
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524if ac_fn_c_try_compile "$LINENO"; then :
4525
4526else
4527  ac_c_werror_flag=$ac_save_c_werror_flag
4528	 CFLAGS="-g"
4529	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531
4532int
4533main ()
4534{
4535
4536  ;
4537  return 0;
4538}
4539_ACEOF
4540if ac_fn_c_try_compile "$LINENO"; then :
4541  ac_cv_prog_cc_g=yes
4542fi
4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544fi
4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546fi
4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548   ac_c_werror_flag=$ac_save_c_werror_flag
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4551$as_echo "$ac_cv_prog_cc_g" >&6; }
4552if test "$ac_test_CFLAGS" = set; then
4553  CFLAGS=$ac_save_CFLAGS
4554elif test $ac_cv_prog_cc_g = yes; then
4555  if test "$GCC" = yes; then
4556    CFLAGS="-g -O2"
4557  else
4558    CFLAGS="-g"
4559  fi
4560else
4561  if test "$GCC" = yes; then
4562    CFLAGS="-O2"
4563  else
4564    CFLAGS=
4565  fi
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4568$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4569if ${ac_cv_prog_cc_c89+:} false; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  ac_cv_prog_cc_c89=no
4573ac_save_CC=$CC
4574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575/* end confdefs.h.  */
4576#include <stdarg.h>
4577#include <stdio.h>
4578struct stat;
4579/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4580struct buf { int x; };
4581FILE * (*rcsopen) (struct buf *, struct stat *, int);
4582static char *e (p, i)
4583     char **p;
4584     int i;
4585{
4586  return p[i];
4587}
4588static char *f (char * (*g) (char **, int), char **p, ...)
4589{
4590  char *s;
4591  va_list v;
4592  va_start (v,p);
4593  s = g (p, va_arg (v,int));
4594  va_end (v);
4595  return s;
4596}
4597
4598/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4599   function prototypes and stuff, but not '\xHH' hex character constants.
4600   These don't provoke an error unfortunately, instead are silently treated
4601   as 'x'.  The following induces an error, until -std is added to get
4602   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4603   array size at least.  It's necessary to write '\x00'==0 to get something
4604   that's true only with -std.  */
4605int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4606
4607/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4608   inside strings and character constants.  */
4609#define FOO(x) 'x'
4610int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4611
4612int test (int i, double x);
4613struct s1 {int (*f) (int a);};
4614struct s2 {int (*f) (double a);};
4615int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4616int argc;
4617char **argv;
4618int
4619main ()
4620{
4621return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4627	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4628do
4629  CC="$ac_save_CC $ac_arg"
4630  if ac_fn_c_try_compile "$LINENO"; then :
4631  ac_cv_prog_cc_c89=$ac_arg
4632fi
4633rm -f core conftest.err conftest.$ac_objext
4634  test "x$ac_cv_prog_cc_c89" != "xno" && break
4635done
4636rm -f conftest.$ac_ext
4637CC=$ac_save_CC
4638
4639fi
4640# AC_CACHE_VAL
4641case "x$ac_cv_prog_cc_c89" in
4642  x)
4643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4644$as_echo "none needed" >&6; } ;;
4645  xno)
4646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4647$as_echo "unsupported" >&6; } ;;
4648  *)
4649    CC="$CC $ac_cv_prog_cc_c89"
4650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4651$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4652esac
4653if test "x$ac_cv_prog_cc_c89" != xno; then :
4654
4655fi
4656
4657ac_ext=c
4658ac_cpp='$CPP $CPPFLAGS'
4659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662
4663ac_ext=c
4664ac_cpp='$CPP $CPPFLAGS'
4665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4669$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4670if ${am_cv_prog_cc_c_o+:} false; then :
4671  $as_echo_n "(cached) " >&6
4672else
4673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h.  */
4675
4676int
4677main ()
4678{
4679
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684  # Make sure it works both with $CC and with simple cc.
4685  # Following AC_PROG_CC_C_O, we do the test twice because some
4686  # compilers refuse to overwrite an existing .o file with -o,
4687  # though they will create one.
4688  am_cv_prog_cc_c_o=yes
4689  for am_i in 1 2; do
4690    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4691   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } \
4695         && test -f conftest2.$ac_objext; then
4696      : OK
4697    else
4698      am_cv_prog_cc_c_o=no
4699      break
4700    fi
4701  done
4702  rm -f core conftest*
4703  unset am_i
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4706$as_echo "$am_cv_prog_cc_c_o" >&6; }
4707if test "$am_cv_prog_cc_c_o" != yes; then
4708   # Losing compiler, so override with the script.
4709   # FIXME: It is wrong to rewrite CC.
4710   # But if we don't then we get into trouble of one sort or another.
4711   # A longer-term fix would be to have automake use am__CC in this case,
4712   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4713   CC="$am_aux_dir/compile $CC"
4714fi
4715ac_ext=c
4716ac_cpp='$CPP $CPPFLAGS'
4717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721DEPDIR="${am__leading_dot}deps"
4722
4723ac_config_commands="$ac_config_commands depfiles"
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4726$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4727cat > confinc.mk << 'END'
4728am__doit:
4729	@echo this is the am__doit target >confinc.out
4730.PHONY: am__doit
4731END
4732am__include="#"
4733am__quote=
4734# BSD make does it like this.
4735echo '.include "confinc.mk" # ignored' > confmf.BSD
4736# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4737echo 'include confinc.mk # ignored' > confmf.GNU
4738_am_result=no
4739for s in GNU BSD; do
4740  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4741   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }
4745  case $?:`cat confinc.out 2>/dev/null` in #(
4746  '0:this is the am__doit target') :
4747    case $s in #(
4748  BSD) :
4749    am__include='.include' am__quote='"' ;; #(
4750  *) :
4751    am__include='include' am__quote='' ;;
4752esac ;; #(
4753  *) :
4754     ;;
4755esac
4756  if test "$am__include" != "#"; then
4757    _am_result="yes ($s style)"
4758    break
4759  fi
4760done
4761rm -f confinc.* confmf.*
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4763$as_echo "${_am_result}" >&6; }
4764
4765# Check whether --enable-dependency-tracking was given.
4766if test "${enable_dependency_tracking+set}" = set; then :
4767  enableval=$enable_dependency_tracking;
4768fi
4769
4770if test "x$enable_dependency_tracking" != xno; then
4771  am_depcomp="$ac_aux_dir/depcomp"
4772  AMDEPBACKSLASH='\'
4773  am__nodep='_no'
4774fi
4775 if test "x$enable_dependency_tracking" != xno; then
4776  AMDEP_TRUE=
4777  AMDEP_FALSE='#'
4778else
4779  AMDEP_TRUE='#'
4780  AMDEP_FALSE=
4781fi
4782
4783
4784
4785depcc="$CC"   am_compiler_list=
4786
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4788$as_echo_n "checking dependency style of $depcc... " >&6; }
4789if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4793  # We make a subdir and do the tests there.  Otherwise we can end up
4794  # making bogus files that we don't know about and never remove.  For
4795  # instance it was reported that on HP-UX the gcc test will end up
4796  # making a dummy file named 'D' -- because '-MD' means "put the output
4797  # in D".
4798  rm -rf conftest.dir
4799  mkdir conftest.dir
4800  # Copy depcomp to subdir because otherwise we won't find it if we're
4801  # using a relative directory.
4802  cp "$am_depcomp" conftest.dir
4803  cd conftest.dir
4804  # We will build objects and dependencies in a subdirectory because
4805  # it helps to detect inapplicable dependency modes.  For instance
4806  # both Tru64's cc and ICC support -MD to output dependencies as a
4807  # side effect of compilation, but ICC will put the dependencies in
4808  # the current directory while Tru64 will put them in the object
4809  # directory.
4810  mkdir sub
4811
4812  am_cv_CC_dependencies_compiler_type=none
4813  if test "$am_compiler_list" = ""; then
4814     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4815  fi
4816  am__universal=false
4817  case " $depcc " in #(
4818     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4819     esac
4820
4821  for depmode in $am_compiler_list; do
4822    # Setup a source with many dependencies, because some compilers
4823    # like to wrap large dependency lists on column 80 (with \), and
4824    # we should not choose a depcomp mode which is confused by this.
4825    #
4826    # We need to recreate these files for each test, as the compiler may
4827    # overwrite some of them when testing with obscure command lines.
4828    # This happens at least with the AIX C compiler.
4829    : > sub/conftest.c
4830    for i in 1 2 3 4 5 6; do
4831      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4832      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4833      # Solaris 10 /bin/sh.
4834      echo '/* dummy */' > sub/conftst$i.h
4835    done
4836    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4837
4838    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4839    # mode.  It turns out that the SunPro C++ compiler does not properly
4840    # handle '-M -o', and we need to detect this.  Also, some Intel
4841    # versions had trouble with output in subdirs.
4842    am__obj=sub/conftest.${OBJEXT-o}
4843    am__minus_obj="-o $am__obj"
4844    case $depmode in
4845    gcc)
4846      # This depmode causes a compiler race in universal mode.
4847      test "$am__universal" = false || continue
4848      ;;
4849    nosideeffect)
4850      # After this tag, mechanisms are not by side-effect, so they'll
4851      # only be used when explicitly requested.
4852      if test "x$enable_dependency_tracking" = xyes; then
4853	continue
4854      else
4855	break
4856      fi
4857      ;;
4858    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4859      # This compiler won't grok '-c -o', but also, the minuso test has
4860      # not run yet.  These depmodes are late enough in the game, and
4861      # so weak that their functioning should not be impacted.
4862      am__obj=conftest.${OBJEXT-o}
4863      am__minus_obj=
4864      ;;
4865    none) break ;;
4866    esac
4867    if depmode=$depmode \
4868       source=sub/conftest.c object=$am__obj \
4869       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4870       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4871         >/dev/null 2>conftest.err &&
4872       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4873       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4874       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4875       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4876      # icc doesn't choke on unknown options, it will just issue warnings
4877      # or remarks (even with -Werror).  So we grep stderr for any message
4878      # that says an option was ignored or not supported.
4879      # When given -MP, icc 7.0 and 7.1 complain thusly:
4880      #   icc: Command line warning: ignoring option '-M'; no argument required
4881      # The diagnosis changed in icc 8.0:
4882      #   icc: Command line remark: option '-MP' not supported
4883      if (grep 'ignoring option' conftest.err ||
4884          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4885        am_cv_CC_dependencies_compiler_type=$depmode
4886        break
4887      fi
4888    fi
4889  done
4890
4891  cd ..
4892  rm -rf conftest.dir
4893else
4894  am_cv_CC_dependencies_compiler_type=none
4895fi
4896
4897fi
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4899$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4900CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4901
4902 if
4903  test "x$enable_dependency_tracking" != xno \
4904  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4905  am__fastdepCC_TRUE=
4906  am__fastdepCC_FALSE='#'
4907else
4908  am__fastdepCC_TRUE='#'
4909  am__fastdepCC_FALSE=
4910fi
4911
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4919$as_echo_n "checking how to run the C preprocessor... " >&6; }
4920# On Suns, sometimes $CPP names a directory.
4921if test -n "$CPP" && test -d "$CPP"; then
4922  CPP=
4923fi
4924if test -z "$CPP"; then
4925  if ${ac_cv_prog_CPP+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928      # Double quotes because CPP needs to be expanded
4929    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930    do
4931      ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934  # Use a header file that comes with gcc, so configuring glibc
4935  # with a fresh cross-compiler works.
4936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937  # <limits.h> exists even on freestanding compilers.
4938  # On the NeXT, cc -E runs the code through the compiler's parser,
4939  # not just through cpp. "Syntax error" is here to catch this case.
4940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947		     Syntax error
4948_ACEOF
4949if ac_fn_c_try_cpp "$LINENO"; then :
4950
4951else
4952  # Broken: fails on valid input.
4953continue
4954fi
4955rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957  # OK, works on sane cases.  Now check whether nonexistent headers
4958  # can be detected and how.
4959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h.  */
4961#include <ac_nonexistent.h>
4962_ACEOF
4963if ac_fn_c_try_cpp "$LINENO"; then :
4964  # Broken: success on invalid input.
4965continue
4966else
4967  # Passes both tests.
4968ac_preproc_ok=:
4969break
4970fi
4971rm -f conftest.err conftest.i conftest.$ac_ext
4972
4973done
4974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975rm -f conftest.i conftest.err conftest.$ac_ext
4976if $ac_preproc_ok; then :
4977  break
4978fi
4979
4980    done
4981    ac_cv_prog_CPP=$CPP
4982
4983fi
4984  CPP=$ac_cv_prog_CPP
4985else
4986  ac_cv_prog_CPP=$CPP
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4989$as_echo "$CPP" >&6; }
4990ac_preproc_ok=false
4991for ac_c_preproc_warn_flag in '' yes
4992do
4993  # Use a header file that comes with gcc, so configuring glibc
4994  # with a fresh cross-compiler works.
4995  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996  # <limits.h> exists even on freestanding compilers.
4997  # On the NeXT, cc -E runs the code through the compiler's parser,
4998  # not just through cpp. "Syntax error" is here to catch this case.
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001#ifdef __STDC__
5002# include <limits.h>
5003#else
5004# include <assert.h>
5005#endif
5006		     Syntax error
5007_ACEOF
5008if ac_fn_c_try_cpp "$LINENO"; then :
5009
5010else
5011  # Broken: fails on valid input.
5012continue
5013fi
5014rm -f conftest.err conftest.i conftest.$ac_ext
5015
5016  # OK, works on sane cases.  Now check whether nonexistent headers
5017  # can be detected and how.
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020#include <ac_nonexistent.h>
5021_ACEOF
5022if ac_fn_c_try_cpp "$LINENO"; then :
5023  # Broken: success on invalid input.
5024continue
5025else
5026  # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030rm -f conftest.err conftest.i conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.i conftest.err conftest.$ac_ext
5035if $ac_preproc_ok; then :
5036
5037else
5038  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5041See \`config.log' for more details" "$LINENO" 5; }
5042fi
5043
5044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050
5051
5052# Extract the first word of "strip", so it can be a program name with args.
5053set dummy strip; ac_word=$2
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
5056if ${ac_cv_path_STRIP+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  case $STRIP in
5060  [\\/]* | ?:[\\/]*)
5061  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
5062  ;;
5063  *)
5064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069    for ac_exec_ext in '' $ac_executable_extensions; do
5070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
5072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073    break 2
5074  fi
5075done
5076  done
5077IFS=$as_save_IFS
5078
5079  test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
5080  ;;
5081esac
5082fi
5083STRIP=$ac_cv_path_STRIP
5084if test -n "$STRIP"; then
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5086$as_echo "$STRIP" >&6; }
5087else
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092 # Installed binaries are usually stripped using 'strip' when the user
5093# run "make install-strip".  However 'strip' might not be the right
5094# tool to use in cross-compilation environments, therefore Automake
5095# will honor the 'STRIP' environment variable to overrule this program.
5096if test "$cross_compiling" != no; then
5097  if test -n "$ac_tool_prefix"; then
5098  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5099set dummy ${ac_tool_prefix}strip; ac_word=$2
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101$as_echo_n "checking for $ac_word... " >&6; }
5102if ${ac_cv_prog_STRIP+:} false; then :
5103  $as_echo_n "(cached) " >&6
5104else
5105  if test -n "$STRIP"; then
5106  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113    for ac_exec_ext in '' $ac_executable_extensions; do
5114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117    break 2
5118  fi
5119done
5120  done
5121IFS=$as_save_IFS
5122
5123fi
5124fi
5125STRIP=$ac_cv_prog_STRIP
5126if test -n "$STRIP"; then
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5128$as_echo "$STRIP" >&6; }
5129else
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132fi
5133
5134
5135fi
5136if test -z "$ac_cv_prog_STRIP"; then
5137  ac_ct_STRIP=$STRIP
5138  # Extract the first word of "strip", so it can be a program name with args.
5139set dummy strip; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  if test -n "$ac_ct_STRIP"; then
5146  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153    for ac_exec_ext in '' $ac_executable_extensions; do
5154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_ac_ct_STRIP="strip"
5156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160  done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5166if test -n "$ac_ct_STRIP"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5168$as_echo "$ac_ct_STRIP" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174  if test "x$ac_ct_STRIP" = x; then
5175    STRIP=":"
5176  else
5177    case $cross_compiling:$ac_tool_warned in
5178yes:)
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181ac_tool_warned=yes ;;
5182esac
5183    STRIP=$ac_ct_STRIP
5184  fi
5185else
5186  STRIP="$ac_cv_prog_STRIP"
5187fi
5188
5189fi
5190INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5191
5192
5193# Make sure we can run config.sub.
5194$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5195  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5198$as_echo_n "checking build system type... " >&6; }
5199if ${ac_cv_build+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  ac_build_alias=$build_alias
5203test "x$ac_build_alias" = x &&
5204  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5205test "x$ac_build_alias" = x &&
5206  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5207ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5208  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5209
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5212$as_echo "$ac_cv_build" >&6; }
5213case $ac_cv_build in
5214*-*-*) ;;
5215*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5216esac
5217build=$ac_cv_build
5218ac_save_IFS=$IFS; IFS='-'
5219set x $ac_cv_build
5220shift
5221build_cpu=$1
5222build_vendor=$2
5223shift; shift
5224# Remember, the first character of IFS is used to create $*,
5225# except with old shells:
5226build_os=$*
5227IFS=$ac_save_IFS
5228case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5232$as_echo_n "checking host system type... " >&6; }
5233if ${ac_cv_host+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  if test "x$host_alias" = x; then
5237  ac_cv_host=$ac_cv_build
5238else
5239  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5240    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5241fi
5242
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5245$as_echo "$ac_cv_host" >&6; }
5246case $ac_cv_host in
5247*-*-*) ;;
5248*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5249esac
5250host=$ac_cv_host
5251ac_save_IFS=$IFS; IFS='-'
5252set x $ac_cv_host
5253shift
5254host_cpu=$1
5255host_vendor=$2
5256shift; shift
5257# Remember, the first character of IFS is used to create $*,
5258# except with old shells:
5259host_os=$*
5260IFS=$ac_save_IFS
5261case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5275$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5276if ${ac_cv_path_GREP+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  if test -z "$GREP"; then
5280  ac_path_GREP_found=false
5281  # Loop through the user's path and test for each of PROGNAME-LIST
5282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_prog in grep ggrep; do
5288    for ac_exec_ext in '' $ac_executable_extensions; do
5289      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5290      as_fn_executable_p "$ac_path_GREP" || continue
5291# Check for GNU ac_path_GREP and select it if it is found.
5292  # Check for GNU $ac_path_GREP
5293case `"$ac_path_GREP" --version 2>&1` in
5294*GNU*)
5295  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5296*)
5297  ac_count=0
5298  $as_echo_n 0123456789 >"conftest.in"
5299  while :
5300  do
5301    cat "conftest.in" "conftest.in" >"conftest.tmp"
5302    mv "conftest.tmp" "conftest.in"
5303    cp "conftest.in" "conftest.nl"
5304    $as_echo 'GREP' >> "conftest.nl"
5305    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307    as_fn_arith $ac_count + 1 && ac_count=$as_val
5308    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5309      # Best one so far, save it but keep looking for a better one
5310      ac_cv_path_GREP="$ac_path_GREP"
5311      ac_path_GREP_max=$ac_count
5312    fi
5313    # 10*(2^10) chars as input seems more than enough
5314    test $ac_count -gt 10 && break
5315  done
5316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317esac
5318
5319      $ac_path_GREP_found && break 3
5320    done
5321  done
5322  done
5323IFS=$as_save_IFS
5324  if test -z "$ac_cv_path_GREP"; then
5325    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326  fi
5327else
5328  ac_cv_path_GREP=$GREP
5329fi
5330
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5333$as_echo "$ac_cv_path_GREP" >&6; }
5334 GREP="$ac_cv_path_GREP"
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5338$as_echo_n "checking for egrep... " >&6; }
5339if ${ac_cv_path_EGREP+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5343   then ac_cv_path_EGREP="$GREP -E"
5344   else
5345     if test -z "$EGREP"; then
5346  ac_path_EGREP_found=false
5347  # Loop through the user's path and test for each of PROGNAME-LIST
5348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5350do
5351  IFS=$as_save_IFS
5352  test -z "$as_dir" && as_dir=.
5353    for ac_prog in egrep; do
5354    for ac_exec_ext in '' $ac_executable_extensions; do
5355      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5356      as_fn_executable_p "$ac_path_EGREP" || continue
5357# Check for GNU ac_path_EGREP and select it if it is found.
5358  # Check for GNU $ac_path_EGREP
5359case `"$ac_path_EGREP" --version 2>&1` in
5360*GNU*)
5361  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5362*)
5363  ac_count=0
5364  $as_echo_n 0123456789 >"conftest.in"
5365  while :
5366  do
5367    cat "conftest.in" "conftest.in" >"conftest.tmp"
5368    mv "conftest.tmp" "conftest.in"
5369    cp "conftest.in" "conftest.nl"
5370    $as_echo 'EGREP' >> "conftest.nl"
5371    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5372    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5373    as_fn_arith $ac_count + 1 && ac_count=$as_val
5374    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5375      # Best one so far, save it but keep looking for a better one
5376      ac_cv_path_EGREP="$ac_path_EGREP"
5377      ac_path_EGREP_max=$ac_count
5378    fi
5379    # 10*(2^10) chars as input seems more than enough
5380    test $ac_count -gt 10 && break
5381  done
5382  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383esac
5384
5385      $ac_path_EGREP_found && break 3
5386    done
5387  done
5388  done
5389IFS=$as_save_IFS
5390  if test -z "$ac_cv_path_EGREP"; then
5391    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5392  fi
5393else
5394  ac_cv_path_EGREP=$EGREP
5395fi
5396
5397   fi
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5400$as_echo "$ac_cv_path_EGREP" >&6; }
5401 EGREP="$ac_cv_path_EGREP"
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5405$as_echo_n "checking for ANSI C header files... " >&6; }
5406if ${ac_cv_header_stdc+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411#include <stdlib.h>
5412#include <stdarg.h>
5413#include <string.h>
5414#include <float.h>
5415
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425  ac_cv_header_stdc=yes
5426else
5427  ac_cv_header_stdc=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430
5431if test $ac_cv_header_stdc = yes; then
5432  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435#include <string.h>
5436
5437_ACEOF
5438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5439  $EGREP "memchr" >/dev/null 2>&1; then :
5440
5441else
5442  ac_cv_header_stdc=no
5443fi
5444rm -f conftest*
5445
5446fi
5447
5448if test $ac_cv_header_stdc = yes; then
5449  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452#include <stdlib.h>
5453
5454_ACEOF
5455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5456  $EGREP "free" >/dev/null 2>&1; then :
5457
5458else
5459  ac_cv_header_stdc=no
5460fi
5461rm -f conftest*
5462
5463fi
5464
5465if test $ac_cv_header_stdc = yes; then
5466  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5467  if test "$cross_compiling" = yes; then :
5468  :
5469else
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472#include <ctype.h>
5473#include <stdlib.h>
5474#if ((' ' & 0x0FF) == 0x020)
5475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477#else
5478# define ISLOWER(c) \
5479		   (('a' <= (c) && (c) <= 'i') \
5480		     || ('j' <= (c) && (c) <= 'r') \
5481		     || ('s' <= (c) && (c) <= 'z'))
5482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5483#endif
5484
5485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5486int
5487main ()
5488{
5489  int i;
5490  for (i = 0; i < 256; i++)
5491    if (XOR (islower (i), ISLOWER (i))
5492	|| toupper (i) != TOUPPER (i))
5493      return 2;
5494  return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_run "$LINENO"; then :
5498
5499else
5500  ac_cv_header_stdc=no
5501fi
5502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5503  conftest.$ac_objext conftest.beam conftest.$ac_ext
5504fi
5505
5506fi
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5509$as_echo "$ac_cv_header_stdc" >&6; }
5510if test $ac_cv_header_stdc = yes; then
5511
5512$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5513
5514fi
5515
5516# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5517for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5518		  inttypes.h stdint.h unistd.h
5519do :
5520  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5521ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5522"
5523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5524  cat >>confdefs.h <<_ACEOF
5525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526_ACEOF
5527
5528fi
5529
5530done
5531
5532
5533
5534  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5535if test "x$ac_cv_header_minix_config_h" = xyes; then :
5536  MINIX=yes
5537else
5538  MINIX=
5539fi
5540
5541
5542  if test "$MINIX" = yes; then
5543
5544$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5545
5546
5547$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5548
5549
5550$as_echo "#define _MINIX 1" >>confdefs.h
5551
5552
5553$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5554
5555  fi
5556
5557
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5559$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5560if ${ac_cv_safe_to_define___extensions__+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565
5566#         define __EXTENSIONS__ 1
5567          $ac_includes_default
5568int
5569main ()
5570{
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  ac_cv_safe_to_define___extensions__=yes
5578else
5579  ac_cv_safe_to_define___extensions__=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5584$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5585  test $ac_cv_safe_to_define___extensions__ = yes &&
5586    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5587
5588  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5589
5590  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5591
5592  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5593
5594  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5595
5596  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5597
5598  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5599
5600  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5601
5602  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5603
5604  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5605
5606  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5607
5608  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5609
5610  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5611
5612  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5613
5614  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5615
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5617$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5618if ${ac_cv_should_define__xopen_source+:} false; then :
5619  $as_echo_n "(cached) " >&6
5620else
5621  ac_cv_should_define__xopen_source=no
5622     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624
5625          #include <wchar.h>
5626          mbstate_t x;
5627int
5628main ()
5629{
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636
5637else
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640
5641             #define _XOPEN_SOURCE 500
5642             #include <wchar.h>
5643             mbstate_t x;
5644int
5645main ()
5646{
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then :
5653  ac_cv_should_define__xopen_source=yes
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5660$as_echo "$ac_cv_should_define__xopen_source" >&6; }
5661  test $ac_cv_should_define__xopen_source = yes &&
5662    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5663
5664  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5677$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5678if ${gl_cv_c_amsterdam_compiler+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681
5682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684
5685#ifdef __ACK__
5686Amsterdam
5687#endif
5688
5689_ACEOF
5690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691  $EGREP "Amsterdam" >/dev/null 2>&1; then :
5692  gl_cv_c_amsterdam_compiler=yes
5693else
5694  gl_cv_c_amsterdam_compiler=no
5695fi
5696rm -f conftest*
5697
5698
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5701$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5702
5703      if test $gl_cv_c_amsterdam_compiler = yes; then
5704    if test -z "$AR"; then
5705      AR='cc -c.a'
5706    fi
5707    if test -z "$ARFLAGS"; then
5708      ARFLAGS='-o'
5709    fi
5710  else
5711                                                :
5712  fi
5713
5714        if test -n "$ac_tool_prefix"; then
5715  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}ar; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_AR+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$AR"; then
5723  ac_cv_prog_AR="$AR" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_AR="${ac_tool_prefix}ar"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742AR=$ac_cv_prog_AR
5743if test -n "$AR"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5745$as_echo "$AR" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752fi
5753if test -z "$ac_cv_prog_AR"; then
5754  ac_ct_AR=$AR
5755  # Extract the first word of "ar", so it can be a program name with args.
5756set dummy ar; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if ${ac_cv_prog_ac_ct_AR+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  if test -n "$ac_ct_AR"; then
5763  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770    for ac_exec_ext in '' $ac_executable_extensions; do
5771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_ac_ct_AR="ar"
5773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777  done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782ac_ct_AR=$ac_cv_prog_ac_ct_AR
5783if test -n "$ac_ct_AR"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5785$as_echo "$ac_ct_AR" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791  if test "x$ac_ct_AR" = x; then
5792    AR="ar"
5793  else
5794    case $cross_compiling:$ac_tool_warned in
5795yes:)
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798ac_tool_warned=yes ;;
5799esac
5800    AR=$ac_ct_AR
5801  fi
5802else
5803  AR="$ac_cv_prog_AR"
5804fi
5805
5806  if test -z "$ARFLAGS"; then
5807    ARFLAGS='cr'
5808  fi
5809
5810
5811
5812  if test -z "$RANLIB"; then
5813    if test $gl_cv_c_amsterdam_compiler = yes; then
5814      RANLIB=':'
5815    else
5816            if test -n "$ac_tool_prefix"; then
5817  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_RANLIB+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  if test -n "$RANLIB"; then
5825  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839  done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844RANLIB=$ac_cv_prog_RANLIB
5845if test -n "$RANLIB"; then
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5847$as_echo "$RANLIB" >&6; }
5848else
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854fi
5855if test -z "$ac_cv_prog_RANLIB"; then
5856  ac_ct_RANLIB=$RANLIB
5857  # Extract the first word of "ranlib", so it can be a program name with args.
5858set dummy ranlib; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$ac_ct_RANLIB"; then
5865  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_ac_ct_RANLIB="ranlib"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885if test -n "$ac_ct_RANLIB"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5887$as_echo "$ac_ct_RANLIB" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893  if test "x$ac_ct_RANLIB" = x; then
5894    RANLIB=":"
5895  else
5896    case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902    RANLIB=$ac_ct_RANLIB
5903  fi
5904else
5905  RANLIB="$ac_cv_prog_RANLIB"
5906fi
5907
5908    fi
5909  fi
5910
5911
5912
5913# Check whether --enable-largefile was given.
5914if test "${enable_largefile+set}" = set; then :
5915  enableval=$enable_largefile;
5916fi
5917
5918if test "$enable_largefile" != no; then
5919
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5921$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5922if ${ac_cv_sys_largefile_CC+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  ac_cv_sys_largefile_CC=no
5926     if test "$GCC" != yes; then
5927       ac_save_CC=$CC
5928       while :; do
5929         # IRIX 6.2 and later do not support large files by default,
5930         # so use the C compiler's -n32 option if that helps.
5931         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933#include <sys/types.h>
5934 /* Check that off_t can represent 2**63 - 1 correctly.
5935    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5936    since some C++ compilers masquerading as C compilers
5937    incorrectly reject 9223372036854775807.  */
5938#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5939  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5940                       && LARGE_OFF_T % 2147483647 == 1)
5941                      ? 1 : -1];
5942int
5943main ()
5944{
5945
5946  ;
5947  return 0;
5948}
5949_ACEOF
5950         if ac_fn_c_try_compile "$LINENO"; then :
5951  break
5952fi
5953rm -f core conftest.err conftest.$ac_objext
5954         CC="$CC -n32"
5955         if ac_fn_c_try_compile "$LINENO"; then :
5956  ac_cv_sys_largefile_CC=' -n32'; break
5957fi
5958rm -f core conftest.err conftest.$ac_objext
5959         break
5960       done
5961       CC=$ac_save_CC
5962       rm -f conftest.$ac_ext
5963    fi
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5966$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5967  if test "$ac_cv_sys_largefile_CC" != no; then
5968    CC=$CC$ac_cv_sys_largefile_CC
5969  fi
5970
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5972$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5973if ${ac_cv_sys_file_offset_bits+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  while :; do
5977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979#include <sys/types.h>
5980 /* Check that off_t can represent 2**63 - 1 correctly.
5981    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5982    since some C++ compilers masquerading as C compilers
5983    incorrectly reject 9223372036854775807.  */
5984#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5985  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5986                       && LARGE_OFF_T % 2147483647 == 1)
5987                      ? 1 : -1];
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997  ac_cv_sys_file_offset_bits=no; break
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002#define _FILE_OFFSET_BITS 64
6003#include <sys/types.h>
6004 /* Check that off_t can represent 2**63 - 1 correctly.
6005    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6006    since some C++ compilers masquerading as C compilers
6007    incorrectly reject 9223372036854775807.  */
6008#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6009  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6010                       && LARGE_OFF_T % 2147483647 == 1)
6011                      ? 1 : -1];
6012int
6013main ()
6014{
6015
6016  ;
6017  return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021  ac_cv_sys_file_offset_bits=64; break
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024  ac_cv_sys_file_offset_bits=unknown
6025  break
6026done
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6029$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6030case $ac_cv_sys_file_offset_bits in #(
6031  no | unknown) ;;
6032  *)
6033cat >>confdefs.h <<_ACEOF
6034#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6035_ACEOF
6036;;
6037esac
6038rm -rf conftest*
6039  if test $ac_cv_sys_file_offset_bits = unknown; then
6040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6041$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6042if ${ac_cv_sys_large_files+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  while :; do
6046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048#include <sys/types.h>
6049 /* Check that off_t can represent 2**63 - 1 correctly.
6050    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6051    since some C++ compilers masquerading as C compilers
6052    incorrectly reject 9223372036854775807.  */
6053#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6054  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6055                       && LARGE_OFF_T % 2147483647 == 1)
6056                      ? 1 : -1];
6057int
6058main ()
6059{
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  ac_cv_sys_large_files=no; break
6067fi
6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071#define _LARGE_FILES 1
6072#include <sys/types.h>
6073 /* Check that off_t can represent 2**63 - 1 correctly.
6074    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6075    since some C++ compilers masquerading as C compilers
6076    incorrectly reject 9223372036854775807.  */
6077#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6078  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6079                       && LARGE_OFF_T % 2147483647 == 1)
6080                      ? 1 : -1];
6081int
6082main ()
6083{
6084
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_compile "$LINENO"; then :
6090  ac_cv_sys_large_files=1; break
6091fi
6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093  ac_cv_sys_large_files=unknown
6094  break
6095done
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6098$as_echo "$ac_cv_sys_large_files" >&6; }
6099case $ac_cv_sys_large_files in #(
6100  no | unknown) ;;
6101  *)
6102cat >>confdefs.h <<_ACEOF
6103#define _LARGE_FILES $ac_cv_sys_large_files
6104_ACEOF
6105;;
6106esac
6107rm -rf conftest*
6108  fi
6109
6110
6111$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6112
6113fi
6114
6115
6116
6117  # Pre-early section.
6118
6119
6120
6121
6122  # Code from module absolute-header:
6123  # Code from module alloca-opt:
6124  # Code from module allocator:
6125  # Code from module areadlink:
6126  # Code from module binary-io:
6127  # Code from module canonicalize-lgpl:
6128  # Code from module careadlinkat:
6129  # Code from module dirname-lgpl:
6130  # Code from module dosname:
6131  # Code from module double-slash-root:
6132  # Code from module environ:
6133  # Code from module errno:
6134  # Code from module error:
6135  # Code from module extensions:
6136  # Code from module extern-inline:
6137  # Code from module fcntl-h:
6138  # Code from module filename:
6139  # Code from module getprogname:
6140  # Code from module gettext:
6141  # Code from module gettext-h:
6142  # Code from module havelib:
6143  # Code from module include_next:
6144  # Code from module intprops:
6145  # Code from module largefile:
6146
6147  # Code from module libiconv-misc:
6148  # Code from module limits-h:
6149  # Code from module lstat:
6150  # Code from module malloc-posix:
6151  # Code from module malloca:
6152  # Code from module mbstate:
6153  # Code from module msvc-inval:
6154  # Code from module msvc-nothrow:
6155  # Code from module multiarch:
6156  # Code from module nocrash:
6157  # Code from module pathmax:
6158  # Code from module progname:
6159  # Code from module raise:
6160  # Code from module read:
6161  # Code from module readlink:
6162  # Code from module relocatable-prog:
6163  # Code from module relocatable-prog-wrapper:
6164  # Code from module safe-read:
6165  # Code from module signal-h:
6166  # Code from module sigpipe:
6167  # Code from module sigprocmask:
6168  # Code from module snippet/_Noreturn:
6169  # Code from module snippet/arg-nonnull:
6170  # Code from module snippet/c++defs:
6171  # Code from module snippet/warn-on-use:
6172  # Code from module ssize_t:
6173  # Code from module stat:
6174  # Code from module stat-time:
6175  # Code from module stdbool:
6176  # Code from module stddef:
6177  # Code from module stdint:
6178  # Code from module stdio:
6179  # Code from module stdlib:
6180  # Code from module streq:
6181  # Code from module strerror:
6182  # Code from module strerror-override:
6183  # Code from module string:
6184  # Code from module sys_stat:
6185  # Code from module sys_types:
6186  # Code from module time:
6187  # Code from module unistd:
6188  # Code from module unitypes:
6189  # Code from module uniwidth/base:
6190  # Code from module uniwidth/width:
6191  # Code from module unlocked-io:
6192  # Code from module verify:
6193  # Code from module xalloc:
6194  # Code from module xalloc-oversized:
6195  # Code from module xreadlink:
6196
6197
6198
6199case `pwd` in
6200  *\ * | *\	*)
6201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6202$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6203esac
6204
6205
6206
6207macro_version='2.4.6'
6208macro_revision='2.4.6'
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222ltmain=$ac_aux_dir/ltmain.sh
6223
6224# Backslashify metacharacters that are still active within
6225# double-quoted strings.
6226sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6227
6228# Same as above, but do not quote variable references.
6229double_quote_subst='s/\(["`\\]\)/\\\1/g'
6230
6231# Sed substitution to delay expansion of an escaped shell variable in a
6232# double_quote_subst'ed string.
6233delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6234
6235# Sed substitution to delay expansion of an escaped single quote.
6236delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6237
6238# Sed substitution to avoid accidental globbing in evaled expressions
6239no_glob_subst='s/\*/\\\*/g'
6240
6241ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6242ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6243ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6246$as_echo_n "checking how to print strings... " >&6; }
6247# Test print first, because it will be a builtin if present.
6248if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6249   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6250  ECHO='print -r --'
6251elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6252  ECHO='printf %s\n'
6253else
6254  # Use this function as a fallback that always works.
6255  func_fallback_echo ()
6256  {
6257    eval 'cat <<_LTECHO_EOF
6258$1
6259_LTECHO_EOF'
6260  }
6261  ECHO='func_fallback_echo'
6262fi
6263
6264# func_echo_all arg...
6265# Invoke $ECHO with all args, space-separated.
6266func_echo_all ()
6267{
6268    $ECHO ""
6269}
6270
6271case $ECHO in
6272  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6273$as_echo "printf" >&6; } ;;
6274  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6275$as_echo "print -r" >&6; } ;;
6276  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6277$as_echo "cat" >&6; } ;;
6278esac
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6294$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6295if ${ac_cv_path_SED+:} false; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6299     for ac_i in 1 2 3 4 5 6 7; do
6300       ac_script="$ac_script$as_nl$ac_script"
6301     done
6302     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6303     { ac_script=; unset ac_script;}
6304     if test -z "$SED"; then
6305  ac_path_SED_found=false
6306  # Loop through the user's path and test for each of PROGNAME-LIST
6307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_prog in sed gsed; do
6313    for ac_exec_ext in '' $ac_executable_extensions; do
6314      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6315      as_fn_executable_p "$ac_path_SED" || continue
6316# Check for GNU ac_path_SED and select it if it is found.
6317  # Check for GNU $ac_path_SED
6318case `"$ac_path_SED" --version 2>&1` in
6319*GNU*)
6320  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6321*)
6322  ac_count=0
6323  $as_echo_n 0123456789 >"conftest.in"
6324  while :
6325  do
6326    cat "conftest.in" "conftest.in" >"conftest.tmp"
6327    mv "conftest.tmp" "conftest.in"
6328    cp "conftest.in" "conftest.nl"
6329    $as_echo '' >> "conftest.nl"
6330    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6331    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6332    as_fn_arith $ac_count + 1 && ac_count=$as_val
6333    if test $ac_count -gt ${ac_path_SED_max-0}; then
6334      # Best one so far, save it but keep looking for a better one
6335      ac_cv_path_SED="$ac_path_SED"
6336      ac_path_SED_max=$ac_count
6337    fi
6338    # 10*(2^10) chars as input seems more than enough
6339    test $ac_count -gt 10 && break
6340  done
6341  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342esac
6343
6344      $ac_path_SED_found && break 3
6345    done
6346  done
6347  done
6348IFS=$as_save_IFS
6349  if test -z "$ac_cv_path_SED"; then
6350    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6351  fi
6352else
6353  ac_cv_path_SED=$SED
6354fi
6355
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6358$as_echo "$ac_cv_path_SED" >&6; }
6359 SED="$ac_cv_path_SED"
6360  rm -f conftest.sed
6361
6362test -z "$SED" && SED=sed
6363Xsed="$SED -e 1s/^X//"
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6376$as_echo_n "checking for fgrep... " >&6; }
6377if ${ac_cv_path_FGREP+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6381   then ac_cv_path_FGREP="$GREP -F"
6382   else
6383     if test -z "$FGREP"; then
6384  ac_path_FGREP_found=false
6385  # Loop through the user's path and test for each of PROGNAME-LIST
6386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391    for ac_prog in fgrep; do
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6394      as_fn_executable_p "$ac_path_FGREP" || continue
6395# Check for GNU ac_path_FGREP and select it if it is found.
6396  # Check for GNU $ac_path_FGREP
6397case `"$ac_path_FGREP" --version 2>&1` in
6398*GNU*)
6399  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6400*)
6401  ac_count=0
6402  $as_echo_n 0123456789 >"conftest.in"
6403  while :
6404  do
6405    cat "conftest.in" "conftest.in" >"conftest.tmp"
6406    mv "conftest.tmp" "conftest.in"
6407    cp "conftest.in" "conftest.nl"
6408    $as_echo 'FGREP' >> "conftest.nl"
6409    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6410    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6411    as_fn_arith $ac_count + 1 && ac_count=$as_val
6412    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6413      # Best one so far, save it but keep looking for a better one
6414      ac_cv_path_FGREP="$ac_path_FGREP"
6415      ac_path_FGREP_max=$ac_count
6416    fi
6417    # 10*(2^10) chars as input seems more than enough
6418    test $ac_count -gt 10 && break
6419  done
6420  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6421esac
6422
6423      $ac_path_FGREP_found && break 3
6424    done
6425  done
6426  done
6427IFS=$as_save_IFS
6428  if test -z "$ac_cv_path_FGREP"; then
6429    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6430  fi
6431else
6432  ac_cv_path_FGREP=$FGREP
6433fi
6434
6435   fi
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6438$as_echo "$ac_cv_path_FGREP" >&6; }
6439 FGREP="$ac_cv_path_FGREP"
6440
6441
6442test -z "$GREP" && GREP=grep
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462# Check whether --with-gnu-ld was given.
6463if test "${with_gnu_ld+set}" = set; then :
6464  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6465else
6466  with_gnu_ld=no
6467fi
6468
6469ac_prog=ld
6470if test yes = "$GCC"; then
6471  # Check if gcc -print-prog-name=ld gives a path.
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6473$as_echo_n "checking for ld used by $CC... " >&6; }
6474  case $host in
6475  *-*-mingw*)
6476    # gcc leaves a trailing carriage return, which upsets mingw
6477    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6478  *)
6479    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6480  esac
6481  case $ac_prog in
6482    # Accept absolute paths.
6483    [\\/]* | ?:[\\/]*)
6484      re_direlt='/[^/][^/]*/\.\./'
6485      # Canonicalize the pathname of ld
6486      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6487      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6488	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6489      done
6490      test -z "$LD" && LD=$ac_prog
6491      ;;
6492  "")
6493    # If it fails, then pretend we aren't using GCC.
6494    ac_prog=ld
6495    ;;
6496  *)
6497    # If it is relative, then search for the first ld in PATH.
6498    with_gnu_ld=unknown
6499    ;;
6500  esac
6501elif test yes = "$with_gnu_ld"; then
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6503$as_echo_n "checking for GNU ld... " >&6; }
6504else
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6506$as_echo_n "checking for non-GNU ld... " >&6; }
6507fi
6508if ${lt_cv_path_LD+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  if test -z "$LD"; then
6512  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6513  for ac_dir in $PATH; do
6514    IFS=$lt_save_ifs
6515    test -z "$ac_dir" && ac_dir=.
6516    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6517      lt_cv_path_LD=$ac_dir/$ac_prog
6518      # Check to see if the program is GNU ld.  I'd rather use --version,
6519      # but apparently some variants of GNU ld only accept -v.
6520      # Break only if it was the GNU/non-GNU ld that we prefer.
6521      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6522      *GNU* | *'with BFD'*)
6523	test no != "$with_gnu_ld" && break
6524	;;
6525      *)
6526	test yes != "$with_gnu_ld" && break
6527	;;
6528      esac
6529    fi
6530  done
6531  IFS=$lt_save_ifs
6532else
6533  lt_cv_path_LD=$LD # Let the user override the test with a path.
6534fi
6535fi
6536
6537LD=$lt_cv_path_LD
6538if test -n "$LD"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6540$as_echo "$LD" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6547$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6548if ${lt_cv_prog_gnu_ld+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6552case `$LD -v 2>&1 </dev/null` in
6553*GNU* | *'with BFD'*)
6554  lt_cv_prog_gnu_ld=yes
6555  ;;
6556*)
6557  lt_cv_prog_gnu_ld=no
6558  ;;
6559esac
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6562$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6563with_gnu_ld=$lt_cv_prog_gnu_ld
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6574$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6575if ${lt_cv_path_NM+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  if test -n "$NM"; then
6579  # Let the user override the test.
6580  lt_cv_path_NM=$NM
6581else
6582  lt_nm_to_check=${ac_tool_prefix}nm
6583  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6584    lt_nm_to_check="$lt_nm_to_check nm"
6585  fi
6586  for lt_tmp_nm in $lt_nm_to_check; do
6587    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6588    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6589      IFS=$lt_save_ifs
6590      test -z "$ac_dir" && ac_dir=.
6591      tmp_nm=$ac_dir/$lt_tmp_nm
6592      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6593	# Check to see if the nm accepts a BSD-compat flag.
6594	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6595	#   nm: unknown option "B" ignored
6596	# Tru64's nm complains that /dev/null is an invalid object file
6597	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6598	case $build_os in
6599	mingw*) lt_bad_file=conftest.nm/nofile ;;
6600	*) lt_bad_file=/dev/null ;;
6601	esac
6602	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6603	*$lt_bad_file* | *'Invalid file or object type'*)
6604	  lt_cv_path_NM="$tmp_nm -B"
6605	  break 2
6606	  ;;
6607	*)
6608	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6609	  */dev/null*)
6610	    lt_cv_path_NM="$tmp_nm -p"
6611	    break 2
6612	    ;;
6613	  *)
6614	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6615	    continue # so that we can try to find one that supports BSD flags
6616	    ;;
6617	  esac
6618	  ;;
6619	esac
6620      fi
6621    done
6622    IFS=$lt_save_ifs
6623  done
6624  : ${lt_cv_path_NM=no}
6625fi
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6628$as_echo "$lt_cv_path_NM" >&6; }
6629if test no != "$lt_cv_path_NM"; then
6630  NM=$lt_cv_path_NM
6631else
6632  # Didn't find any BSD compatible name lister, look for dumpbin.
6633  if test -n "$DUMPBIN"; then :
6634    # Let the user override the test.
6635  else
6636    if test -n "$ac_tool_prefix"; then
6637  for ac_prog in dumpbin "link -dump"
6638  do
6639    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
6643if ${ac_cv_prog_DUMPBIN+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  if test -n "$DUMPBIN"; then
6647  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  test -z "$as_dir" && as_dir=.
6654    for ac_exec_ext in '' $ac_executable_extensions; do
6655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658    break 2
6659  fi
6660done
6661  done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666DUMPBIN=$ac_cv_prog_DUMPBIN
6667if test -n "$DUMPBIN"; then
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6669$as_echo "$DUMPBIN" >&6; }
6670else
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675
6676    test -n "$DUMPBIN" && break
6677  done
6678fi
6679if test -z "$DUMPBIN"; then
6680  ac_ct_DUMPBIN=$DUMPBIN
6681  for ac_prog in dumpbin "link -dump"
6682do
6683  # Extract the first word of "$ac_prog", so it can be a program name with args.
6684set dummy $ac_prog; ac_word=$2
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686$as_echo_n "checking for $ac_word... " >&6; }
6687if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  if test -n "$ac_ct_DUMPBIN"; then
6691  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708fi
6709fi
6710ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6711if test -n "$ac_ct_DUMPBIN"; then
6712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6713$as_echo "$ac_ct_DUMPBIN" >&6; }
6714else
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716$as_echo "no" >&6; }
6717fi
6718
6719
6720  test -n "$ac_ct_DUMPBIN" && break
6721done
6722
6723  if test "x$ac_ct_DUMPBIN" = x; then
6724    DUMPBIN=":"
6725  else
6726    case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732    DUMPBIN=$ac_ct_DUMPBIN
6733  fi
6734fi
6735
6736    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6737    *COFF*)
6738      DUMPBIN="$DUMPBIN -symbols -headers"
6739      ;;
6740    *)
6741      DUMPBIN=:
6742      ;;
6743    esac
6744  fi
6745
6746  if test : != "$DUMPBIN"; then
6747    NM=$DUMPBIN
6748  fi
6749fi
6750test -z "$NM" && NM=nm
6751
6752
6753
6754
6755
6756
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6758$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6759if ${lt_cv_nm_interface+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  lt_cv_nm_interface="BSD nm"
6763  echo "int some_variable = 0;" > conftest.$ac_ext
6764  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6765  (eval "$ac_compile" 2>conftest.err)
6766  cat conftest.err >&5
6767  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6768  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6769  cat conftest.err >&5
6770  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6771  cat conftest.out >&5
6772  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6773    lt_cv_nm_interface="MS dumpbin"
6774  fi
6775  rm -f conftest*
6776fi
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6778$as_echo "$lt_cv_nm_interface" >&6; }
6779
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6781$as_echo_n "checking whether ln -s works... " >&6; }
6782LN_S=$as_ln_s
6783if test "$LN_S" = "ln -s"; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6785$as_echo "yes" >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6788$as_echo "no, using $LN_S" >&6; }
6789fi
6790
6791# find the maximum length of command line arguments
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6793$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6794if ${lt_cv_sys_max_cmd_len+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797    i=0
6798  teststring=ABCD
6799
6800  case $build_os in
6801  msdosdjgpp*)
6802    # On DJGPP, this test can blow up pretty badly due to problems in libc
6803    # (any single argument exceeding 2000 bytes causes a buffer overrun
6804    # during glob expansion).  Even if it were fixed, the result of this
6805    # check would be larger than it should be.
6806    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6807    ;;
6808
6809  gnu*)
6810    # Under GNU Hurd, this test is not required because there is
6811    # no limit to the length of command line arguments.
6812    # Libtool will interpret -1 as no limit whatsoever
6813    lt_cv_sys_max_cmd_len=-1;
6814    ;;
6815
6816  cygwin* | mingw* | cegcc*)
6817    # On Win9x/ME, this test blows up -- it succeeds, but takes
6818    # about 5 minutes as the teststring grows exponentially.
6819    # Worse, since 9x/ME are not pre-emptively multitasking,
6820    # you end up with a "frozen" computer, even though with patience
6821    # the test eventually succeeds (with a max line length of 256k).
6822    # Instead, let's just punt: use the minimum linelength reported by
6823    # all of the supported platforms: 8192 (on NT/2K/XP).
6824    lt_cv_sys_max_cmd_len=8192;
6825    ;;
6826
6827  mint*)
6828    # On MiNT this can take a long time and run out of memory.
6829    lt_cv_sys_max_cmd_len=8192;
6830    ;;
6831
6832  amigaos*)
6833    # On AmigaOS with pdksh, this test takes hours, literally.
6834    # So we just punt and use a minimum line length of 8192.
6835    lt_cv_sys_max_cmd_len=8192;
6836    ;;
6837
6838  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6839    # This has been around since 386BSD, at least.  Likely further.
6840    if test -x /sbin/sysctl; then
6841      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6842    elif test -x /usr/sbin/sysctl; then
6843      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6844    else
6845      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6846    fi
6847    # And add a safety zone
6848    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6849    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6850    ;;
6851
6852  interix*)
6853    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6854    lt_cv_sys_max_cmd_len=196608
6855    ;;
6856
6857  os2*)
6858    # The test takes a long time on OS/2.
6859    lt_cv_sys_max_cmd_len=8192
6860    ;;
6861
6862  osf*)
6863    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6864    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6865    # nice to cause kernel panics so lets avoid the loop below.
6866    # First set a reasonable default.
6867    lt_cv_sys_max_cmd_len=16384
6868    #
6869    if test -x /sbin/sysconfig; then
6870      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6871        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6872      esac
6873    fi
6874    ;;
6875  sco3.2v5*)
6876    lt_cv_sys_max_cmd_len=102400
6877    ;;
6878  sysv5* | sco5v6* | sysv4.2uw2*)
6879    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6880    if test -n "$kargmax"; then
6881      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6882    else
6883      lt_cv_sys_max_cmd_len=32768
6884    fi
6885    ;;
6886  *)
6887    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6888    if test -n "$lt_cv_sys_max_cmd_len" && \
6889       test undefined != "$lt_cv_sys_max_cmd_len"; then
6890      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6891      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6892    else
6893      # Make teststring a little bigger before we do anything with it.
6894      # a 1K string should be a reasonable start.
6895      for i in 1 2 3 4 5 6 7 8; do
6896        teststring=$teststring$teststring
6897      done
6898      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6899      # If test is not a shell built-in, we'll probably end up computing a
6900      # maximum length that is only half of the actual maximum length, but
6901      # we can't tell.
6902      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6903	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6904	      test 17 != "$i" # 1/2 MB should be enough
6905      do
6906        i=`expr $i + 1`
6907        teststring=$teststring$teststring
6908      done
6909      # Only check the string length outside the loop.
6910      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6911      teststring=
6912      # Add a significant safety factor because C++ compilers can tack on
6913      # massive amounts of additional arguments before passing them to the
6914      # linker.  It appears as though 1/2 is a usable value.
6915      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6916    fi
6917    ;;
6918  esac
6919
6920fi
6921
6922if test -n "$lt_cv_sys_max_cmd_len"; then
6923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6924$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6925else
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6927$as_echo "none" >&6; }
6928fi
6929max_cmd_len=$lt_cv_sys_max_cmd_len
6930
6931
6932
6933
6934
6935
6936: ${CP="cp -f"}
6937: ${MV="mv -f"}
6938: ${RM="rm -f"}
6939
6940if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6941  lt_unset=unset
6942else
6943  lt_unset=false
6944fi
6945
6946
6947
6948
6949
6950# test EBCDIC or ASCII
6951case `echo X|tr X '\101'` in
6952 A) # ASCII based system
6953    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6954  lt_SP2NL='tr \040 \012'
6955  lt_NL2SP='tr \015\012 \040\040'
6956  ;;
6957 *) # EBCDIC based system
6958  lt_SP2NL='tr \100 \n'
6959  lt_NL2SP='tr \r\n \100\100'
6960  ;;
6961esac
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6972$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6973if ${lt_cv_to_host_file_cmd+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  case $host in
6977  *-*-mingw* )
6978    case $build in
6979      *-*-mingw* ) # actually msys
6980        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6981        ;;
6982      *-*-cygwin* )
6983        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6984        ;;
6985      * ) # otherwise, assume *nix
6986        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6987        ;;
6988    esac
6989    ;;
6990  *-*-cygwin* )
6991    case $build in
6992      *-*-mingw* ) # actually msys
6993        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6994        ;;
6995      *-*-cygwin* )
6996        lt_cv_to_host_file_cmd=func_convert_file_noop
6997        ;;
6998      * ) # otherwise, assume *nix
6999        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7000        ;;
7001    esac
7002    ;;
7003  * ) # unhandled hosts (and "normal" native builds)
7004    lt_cv_to_host_file_cmd=func_convert_file_noop
7005    ;;
7006esac
7007
7008fi
7009
7010to_host_file_cmd=$lt_cv_to_host_file_cmd
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7012$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7013
7014
7015
7016
7017
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7019$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7020if ${lt_cv_to_tool_file_cmd+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  #assume ordinary cross tools, or native build.
7024lt_cv_to_tool_file_cmd=func_convert_file_noop
7025case $host in
7026  *-*-mingw* )
7027    case $build in
7028      *-*-mingw* ) # actually msys
7029        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7030        ;;
7031    esac
7032    ;;
7033esac
7034
7035fi
7036
7037to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7039$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7040
7041
7042
7043
7044
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7046$as_echo_n "checking for $LD option to reload object files... " >&6; }
7047if ${lt_cv_ld_reload_flag+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  lt_cv_ld_reload_flag='-r'
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7053$as_echo "$lt_cv_ld_reload_flag" >&6; }
7054reload_flag=$lt_cv_ld_reload_flag
7055case $reload_flag in
7056"" | " "*) ;;
7057*) reload_flag=" $reload_flag" ;;
7058esac
7059reload_cmds='$LD$reload_flag -o $output$reload_objs'
7060case $host_os in
7061  cygwin* | mingw* | pw32* | cegcc*)
7062    if test yes != "$GCC"; then
7063      reload_cmds=false
7064    fi
7065    ;;
7066  darwin*)
7067    if test yes = "$GCC"; then
7068      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7069    else
7070      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7071    fi
7072    ;;
7073esac
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083if test -n "$ac_tool_prefix"; then
7084  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}objdump; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_OBJDUMP+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  if test -n "$OBJDUMP"; then
7092  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106  done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111OBJDUMP=$ac_cv_prog_OBJDUMP
7112if test -n "$OBJDUMP"; then
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7114$as_echo "$OBJDUMP" >&6; }
7115else
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120
7121fi
7122if test -z "$ac_cv_prog_OBJDUMP"; then
7123  ac_ct_OBJDUMP=$OBJDUMP
7124  # Extract the first word of "objdump", so it can be a program name with args.
7125set dummy objdump; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if test -n "$ac_ct_OBJDUMP"; then
7132  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149fi
7150fi
7151ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7152if test -n "$ac_ct_OBJDUMP"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7154$as_echo "$ac_ct_OBJDUMP" >&6; }
7155else
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
7158fi
7159
7160  if test "x$ac_ct_OBJDUMP" = x; then
7161    OBJDUMP="false"
7162  else
7163    case $cross_compiling:$ac_tool_warned in
7164yes:)
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167ac_tool_warned=yes ;;
7168esac
7169    OBJDUMP=$ac_ct_OBJDUMP
7170  fi
7171else
7172  OBJDUMP="$ac_cv_prog_OBJDUMP"
7173fi
7174
7175test -z "$OBJDUMP" && OBJDUMP=objdump
7176
7177
7178
7179
7180
7181
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7183$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7184if ${lt_cv_deplibs_check_method+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  lt_cv_file_magic_cmd='$MAGIC_CMD'
7188lt_cv_file_magic_test_file=
7189lt_cv_deplibs_check_method='unknown'
7190# Need to set the preceding variable on all platforms that support
7191# interlibrary dependencies.
7192# 'none' -- dependencies not supported.
7193# 'unknown' -- same as none, but documents that we really don't know.
7194# 'pass_all' -- all dependencies passed with no checks.
7195# 'test_compile' -- check by making test program.
7196# 'file_magic [[regex]]' -- check by looking for files in library path
7197# that responds to the $file_magic_cmd with a given extended regex.
7198# If you have 'file' or equivalent on your system and you're not sure
7199# whether 'pass_all' will *always* work, you probably want this one.
7200
7201case $host_os in
7202aix[4-9]*)
7203  lt_cv_deplibs_check_method=pass_all
7204  ;;
7205
7206beos*)
7207  lt_cv_deplibs_check_method=pass_all
7208  ;;
7209
7210bsdi[45]*)
7211  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7212  lt_cv_file_magic_cmd='/usr/bin/file -L'
7213  lt_cv_file_magic_test_file=/shlib/libc.so
7214  ;;
7215
7216cygwin*)
7217  # func_win32_libid is a shell function defined in ltmain.sh
7218  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7219  lt_cv_file_magic_cmd='func_win32_libid'
7220  ;;
7221
7222mingw* | pw32*)
7223  # Base MSYS/MinGW do not provide the 'file' command needed by
7224  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7225  # unless we find 'file', for example because we are cross-compiling.
7226  if ( file / ) >/dev/null 2>&1; then
7227    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7228    lt_cv_file_magic_cmd='func_win32_libid'
7229  else
7230    # Keep this pattern in sync with the one in func_win32_libid.
7231    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7232    lt_cv_file_magic_cmd='$OBJDUMP -f'
7233  fi
7234  ;;
7235
7236cegcc*)
7237  # use the weaker test based on 'objdump'. See mingw*.
7238  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7239  lt_cv_file_magic_cmd='$OBJDUMP -f'
7240  ;;
7241
7242darwin* | rhapsody*)
7243  lt_cv_deplibs_check_method=pass_all
7244  ;;
7245
7246freebsd* | dragonfly*)
7247  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7248    case $host_cpu in
7249    i*86 )
7250      # Not sure whether the presence of OpenBSD here was a mistake.
7251      # Let's accept both of them until this is cleared up.
7252      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7253      lt_cv_file_magic_cmd=/usr/bin/file
7254      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7255      ;;
7256    esac
7257  else
7258    lt_cv_deplibs_check_method=pass_all
7259  fi
7260  ;;
7261
7262haiku*)
7263  lt_cv_deplibs_check_method=pass_all
7264  ;;
7265
7266hpux10.20* | hpux11*)
7267  lt_cv_file_magic_cmd=/usr/bin/file
7268  case $host_cpu in
7269  ia64*)
7270    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7271    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7272    ;;
7273  hppa*64*)
7274    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]'
7275    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7276    ;;
7277  *)
7278    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7279    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7280    ;;
7281  esac
7282  ;;
7283
7284interix[3-9]*)
7285  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7286  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7287  ;;
7288
7289irix5* | irix6* | nonstopux*)
7290  case $LD in
7291  *-32|*"-32 ") libmagic=32-bit;;
7292  *-n32|*"-n32 ") libmagic=N32;;
7293  *-64|*"-64 ") libmagic=64-bit;;
7294  *) libmagic=never-match;;
7295  esac
7296  lt_cv_deplibs_check_method=pass_all
7297  ;;
7298
7299# This must be glibc/ELF.
7300linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7301  lt_cv_deplibs_check_method=pass_all
7302  ;;
7303
7304netbsd*)
7305  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7306    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7307  else
7308    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7309  fi
7310  ;;
7311
7312newos6*)
7313  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7314  lt_cv_file_magic_cmd=/usr/bin/file
7315  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7316  ;;
7317
7318*nto* | *qnx*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322openbsd* | bitrig*)
7323  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7325  else
7326    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7327  fi
7328  ;;
7329
7330osf3* | osf4* | osf5*)
7331  lt_cv_deplibs_check_method=pass_all
7332  ;;
7333
7334rdos*)
7335  lt_cv_deplibs_check_method=pass_all
7336  ;;
7337
7338solaris*)
7339  lt_cv_deplibs_check_method=pass_all
7340  ;;
7341
7342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7343  lt_cv_deplibs_check_method=pass_all
7344  ;;
7345
7346sysv4 | sysv4.3*)
7347  case $host_vendor in
7348  motorola)
7349    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]'
7350    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7351    ;;
7352  ncr)
7353    lt_cv_deplibs_check_method=pass_all
7354    ;;
7355  sequent)
7356    lt_cv_file_magic_cmd='/bin/file'
7357    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7358    ;;
7359  sni)
7360    lt_cv_file_magic_cmd='/bin/file'
7361    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7362    lt_cv_file_magic_test_file=/lib/libc.so
7363    ;;
7364  siemens)
7365    lt_cv_deplibs_check_method=pass_all
7366    ;;
7367  pc)
7368    lt_cv_deplibs_check_method=pass_all
7369    ;;
7370  esac
7371  ;;
7372
7373tpf*)
7374  lt_cv_deplibs_check_method=pass_all
7375  ;;
7376os2*)
7377  lt_cv_deplibs_check_method=pass_all
7378  ;;
7379esac
7380
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7383$as_echo "$lt_cv_deplibs_check_method" >&6; }
7384
7385file_magic_glob=
7386want_nocaseglob=no
7387if test "$build" = "$host"; then
7388  case $host_os in
7389  mingw* | pw32*)
7390    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7391      want_nocaseglob=yes
7392    else
7393      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7394    fi
7395    ;;
7396  esac
7397fi
7398
7399file_magic_cmd=$lt_cv_file_magic_cmd
7400deplibs_check_method=$lt_cv_deplibs_check_method
7401test -z "$deplibs_check_method" && deplibs_check_method=unknown
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424if test -n "$ac_tool_prefix"; then
7425  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7426set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if ${ac_cv_prog_DLLTOOL+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  if test -n "$DLLTOOL"; then
7433  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438  IFS=$as_save_IFS
7439  test -z "$as_dir" && as_dir=.
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444    break 2
7445  fi
7446done
7447  done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452DLLTOOL=$ac_cv_prog_DLLTOOL
7453if test -n "$DLLTOOL"; then
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7455$as_echo "$DLLTOOL" >&6; }
7456else
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461
7462fi
7463if test -z "$ac_cv_prog_DLLTOOL"; then
7464  ac_ct_DLLTOOL=$DLLTOOL
7465  # Extract the first word of "dlltool", so it can be a program name with args.
7466set dummy dlltool; ac_word=$2
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
7469if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  if test -n "$ac_ct_DLLTOOL"; then
7473  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478  IFS=$as_save_IFS
7479  test -z "$as_dir" && as_dir=.
7480    for ac_exec_ext in '' $ac_executable_extensions; do
7481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484    break 2
7485  fi
7486done
7487  done
7488IFS=$as_save_IFS
7489
7490fi
7491fi
7492ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7493if test -n "$ac_ct_DLLTOOL"; then
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7495$as_echo "$ac_ct_DLLTOOL" >&6; }
7496else
7497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
7499fi
7500
7501  if test "x$ac_ct_DLLTOOL" = x; then
7502    DLLTOOL="false"
7503  else
7504    case $cross_compiling:$ac_tool_warned in
7505yes:)
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508ac_tool_warned=yes ;;
7509esac
7510    DLLTOOL=$ac_ct_DLLTOOL
7511  fi
7512else
7513  DLLTOOL="$ac_cv_prog_DLLTOOL"
7514fi
7515
7516test -z "$DLLTOOL" && DLLTOOL=dlltool
7517
7518
7519
7520
7521
7522
7523
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7525$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7526if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  lt_cv_sharedlib_from_linklib_cmd='unknown'
7530
7531case $host_os in
7532cygwin* | mingw* | pw32* | cegcc*)
7533  # two different shell functions defined in ltmain.sh;
7534  # decide which one to use based on capabilities of $DLLTOOL
7535  case `$DLLTOOL --help 2>&1` in
7536  *--identify-strict*)
7537    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7538    ;;
7539  *)
7540    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7541    ;;
7542  esac
7543  ;;
7544*)
7545  # fallback: assume linklib IS sharedlib
7546  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7547  ;;
7548esac
7549
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7552$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7553sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7554test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7555
7556
7557
7558
7559
7560
7561
7562if test -n "$ac_tool_prefix"; then
7563  for ac_prog in ar
7564  do
7565    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if ${ac_cv_prog_AR+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  if test -n "$AR"; then
7573  ac_cv_prog_AR="$AR" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580    for ac_exec_ext in '' $ac_executable_extensions; do
7581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587  done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592AR=$ac_cv_prog_AR
7593if test -n "$AR"; then
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7595$as_echo "$AR" >&6; }
7596else
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601
7602    test -n "$AR" && break
7603  done
7604fi
7605if test -z "$AR"; then
7606  ac_ct_AR=$AR
7607  for ac_prog in ar
7608do
7609  # Extract the first word of "$ac_prog", so it can be a program name with args.
7610set dummy $ac_prog; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_prog_ac_ct_AR+:} false; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  if test -n "$ac_ct_AR"; then
7617  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622  IFS=$as_save_IFS
7623  test -z "$as_dir" && as_dir=.
7624    for ac_exec_ext in '' $ac_executable_extensions; do
7625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626    ac_cv_prog_ac_ct_AR="$ac_prog"
7627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628    break 2
7629  fi
7630done
7631  done
7632IFS=$as_save_IFS
7633
7634fi
7635fi
7636ac_ct_AR=$ac_cv_prog_ac_ct_AR
7637if test -n "$ac_ct_AR"; then
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7639$as_echo "$ac_ct_AR" >&6; }
7640else
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
7643fi
7644
7645
7646  test -n "$ac_ct_AR" && break
7647done
7648
7649  if test "x$ac_ct_AR" = x; then
7650    AR="false"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    AR=$ac_ct_AR
7659  fi
7660fi
7661
7662: ${AR=ar}
7663: ${AR_FLAGS=cru}
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7676$as_echo_n "checking for archiver @FILE support... " >&6; }
7677if ${lt_cv_ar_at_file+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  lt_cv_ar_at_file=no
7681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h.  */
7683
7684int
7685main ()
7686{
7687
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692if ac_fn_c_try_compile "$LINENO"; then :
7693  echo conftest.$ac_objext > conftest.lst
7694      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7695      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7696  (eval $lt_ar_try) 2>&5
7697  ac_status=$?
7698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699  test $ac_status = 0; }
7700      if test 0 -eq "$ac_status"; then
7701	# Ensure the archiver fails upon bogus file names.
7702	rm -f conftest.$ac_objext libconftest.a
7703	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7704  (eval $lt_ar_try) 2>&5
7705  ac_status=$?
7706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707  test $ac_status = 0; }
7708	if test 0 -ne "$ac_status"; then
7709          lt_cv_ar_at_file=@
7710        fi
7711      fi
7712      rm -f conftest.* libconftest.a
7713
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717fi
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7719$as_echo "$lt_cv_ar_at_file" >&6; }
7720
7721if test no = "$lt_cv_ar_at_file"; then
7722  archiver_list_spec=
7723else
7724  archiver_list_spec=$lt_cv_ar_at_file
7725fi
7726
7727
7728
7729
7730
7731
7732
7733if test -n "$ac_tool_prefix"; then
7734  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7735set dummy ${ac_tool_prefix}strip; ac_word=$2
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737$as_echo_n "checking for $ac_word... " >&6; }
7738if ${ac_cv_prog_STRIP+:} false; then :
7739  $as_echo_n "(cached) " >&6
7740else
7741  if test -n "$STRIP"; then
7742  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747  IFS=$as_save_IFS
7748  test -z "$as_dir" && as_dir=.
7749    for ac_exec_ext in '' $ac_executable_extensions; do
7750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753    break 2
7754  fi
7755done
7756  done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761STRIP=$ac_cv_prog_STRIP
7762if test -n "$STRIP"; then
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7764$as_echo "$STRIP" >&6; }
7765else
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770
7771fi
7772if test -z "$ac_cv_prog_STRIP"; then
7773  ac_ct_STRIP=$STRIP
7774  # Extract the first word of "strip", so it can be a program name with args.
7775set dummy strip; ac_word=$2
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  if test -n "$ac_ct_STRIP"; then
7782  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7783else
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787  IFS=$as_save_IFS
7788  test -z "$as_dir" && as_dir=.
7789    for ac_exec_ext in '' $ac_executable_extensions; do
7790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791    ac_cv_prog_ac_ct_STRIP="strip"
7792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793    break 2
7794  fi
7795done
7796  done
7797IFS=$as_save_IFS
7798
7799fi
7800fi
7801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7802if test -n "$ac_ct_STRIP"; then
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7804$as_echo "$ac_ct_STRIP" >&6; }
7805else
7806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808fi
7809
7810  if test "x$ac_ct_STRIP" = x; then
7811    STRIP=":"
7812  else
7813    case $cross_compiling:$ac_tool_warned in
7814yes:)
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817ac_tool_warned=yes ;;
7818esac
7819    STRIP=$ac_ct_STRIP
7820  fi
7821else
7822  STRIP="$ac_cv_prog_STRIP"
7823fi
7824
7825test -z "$STRIP" && STRIP=:
7826
7827
7828
7829
7830
7831
7832if test -n "$ac_tool_prefix"; then
7833  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if ${ac_cv_prog_RANLIB+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  if test -n "$RANLIB"; then
7841  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848    for ac_exec_ext in '' $ac_executable_extensions; do
7849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855  done
7856IFS=$as_save_IFS
7857
7858fi
7859fi
7860RANLIB=$ac_cv_prog_RANLIB
7861if test -n "$RANLIB"; then
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7863$as_echo "$RANLIB" >&6; }
7864else
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
7867fi
7868
7869
7870fi
7871if test -z "$ac_cv_prog_RANLIB"; then
7872  ac_ct_RANLIB=$RANLIB
7873  # Extract the first word of "ranlib", so it can be a program name with args.
7874set dummy ranlib; ac_word=$2
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  if test -n "$ac_ct_RANLIB"; then
7881  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886  IFS=$as_save_IFS
7887  test -z "$as_dir" && as_dir=.
7888    for ac_exec_ext in '' $ac_executable_extensions; do
7889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890    ac_cv_prog_ac_ct_RANLIB="ranlib"
7891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895  done
7896IFS=$as_save_IFS
7897
7898fi
7899fi
7900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7901if test -n "$ac_ct_RANLIB"; then
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7903$as_echo "$ac_ct_RANLIB" >&6; }
7904else
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
7907fi
7908
7909  if test "x$ac_ct_RANLIB" = x; then
7910    RANLIB=":"
7911  else
7912    case $cross_compiling:$ac_tool_warned in
7913yes:)
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7916ac_tool_warned=yes ;;
7917esac
7918    RANLIB=$ac_ct_RANLIB
7919  fi
7920else
7921  RANLIB="$ac_cv_prog_RANLIB"
7922fi
7923
7924test -z "$RANLIB" && RANLIB=:
7925
7926
7927
7928
7929
7930
7931# Determine commands to create old-style static archives.
7932old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7933old_postinstall_cmds='chmod 644 $oldlib'
7934old_postuninstall_cmds=
7935
7936if test -n "$RANLIB"; then
7937  case $host_os in
7938  bitrig* | openbsd*)
7939    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7940    ;;
7941  *)
7942    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7943    ;;
7944  esac
7945  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7946fi
7947
7948case $host_os in
7949  darwin*)
7950    lock_old_archive_extraction=yes ;;
7951  *)
7952    lock_old_archive_extraction=no ;;
7953esac
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993# If no C compiler was specified, use CC.
7994LTCC=${LTCC-"$CC"}
7995
7996# If no C compiler flags were specified, use CFLAGS.
7997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7998
7999# Allow CC to be a program name with arguments.
8000compiler=$CC
8001
8002
8003# Check for command to grab the raw symbol name followed by C symbol from nm.
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8005$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8006if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009
8010# These are sane defaults that work on at least a few old systems.
8011# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8012
8013# Character class describing NM global symbol codes.
8014symcode='[BCDEGRST]'
8015
8016# Regexp to match symbols that can be accessed directly from C.
8017sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8018
8019# Define system-specific variables.
8020case $host_os in
8021aix*)
8022  symcode='[BCDT]'
8023  ;;
8024cygwin* | mingw* | pw32* | cegcc*)
8025  symcode='[ABCDGISTW]'
8026  ;;
8027hpux*)
8028  if test ia64 = "$host_cpu"; then
8029    symcode='[ABCDEGRST]'
8030  fi
8031  ;;
8032irix* | nonstopux*)
8033  symcode='[BCDEGRST]'
8034  ;;
8035osf*)
8036  symcode='[BCDEGQRST]'
8037  ;;
8038solaris*)
8039  symcode='[BDRT]'
8040  ;;
8041sco3.2v5*)
8042  symcode='[DT]'
8043  ;;
8044sysv4.2uw2*)
8045  symcode='[DT]'
8046  ;;
8047sysv5* | sco5v6* | unixware* | OpenUNIX*)
8048  symcode='[ABDT]'
8049  ;;
8050sysv4)
8051  symcode='[DFNSTU]'
8052  ;;
8053esac
8054
8055# If we're using GNU nm, then use its standard symbol codes.
8056case `$NM -V 2>&1` in
8057*GNU* | *'with BFD'*)
8058  symcode='[ABCDGIRSTW]' ;;
8059esac
8060
8061if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8062  # Gets list of data symbols to import.
8063  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8064  # Adjust the below global symbol transforms to fixup imported variables.
8065  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8066  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8067  lt_c_name_lib_hook="\
8068  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8069  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8070else
8071  # Disable hooks by default.
8072  lt_cv_sys_global_symbol_to_import=
8073  lt_cdecl_hook=
8074  lt_c_name_hook=
8075  lt_c_name_lib_hook=
8076fi
8077
8078# Transform an extracted symbol line into a proper C declaration.
8079# Some systems (esp. on ia64) link data and code symbols differently,
8080# so use this general approach.
8081lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8082$lt_cdecl_hook\
8083" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8084" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8085
8086# Transform an extracted symbol line into symbol name and symbol address
8087lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8088$lt_c_name_hook\
8089" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8090" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8091
8092# Transform an extracted symbol line into symbol name with lib prefix and
8093# symbol address.
8094lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8095$lt_c_name_lib_hook\
8096" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8097" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8098" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8099
8100# Handle CRLF in mingw tool chain
8101opt_cr=
8102case $build_os in
8103mingw*)
8104  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8105  ;;
8106esac
8107
8108# Try without a prefix underscore, then with it.
8109for ac_symprfx in "" "_"; do
8110
8111  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8112  symxfrm="\\1 $ac_symprfx\\2 \\2"
8113
8114  # Write the raw and C identifiers.
8115  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8116    # Fake it for dumpbin and say T for any non-static function,
8117    # D for any global variable and I for any imported variable.
8118    # Also find C++ and __fastcall symbols from MSVC++,
8119    # which start with @ or ?.
8120    lt_cv_sys_global_symbol_pipe="$AWK '"\
8121"     {last_section=section; section=\$ 3};"\
8122"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8123"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8124"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8125"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8126"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8127"     \$ 0!~/External *\|/{next};"\
8128"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8129"     {if(hide[section]) next};"\
8130"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8131"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8132"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8133"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8134"     ' prfx=^$ac_symprfx"
8135  else
8136    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8137  fi
8138  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8139
8140  # Check to see that the pipe works correctly.
8141  pipe_works=no
8142
8143  rm -f conftest*
8144  cat > conftest.$ac_ext <<_LT_EOF
8145#ifdef __cplusplus
8146extern "C" {
8147#endif
8148char nm_test_var;
8149void nm_test_func(void);
8150void nm_test_func(void){}
8151#ifdef __cplusplus
8152}
8153#endif
8154int main(){nm_test_var='a';nm_test_func();return(0);}
8155_LT_EOF
8156
8157  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8158  (eval $ac_compile) 2>&5
8159  ac_status=$?
8160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8161  test $ac_status = 0; }; then
8162    # Now try to grab the symbols.
8163    nlist=conftest.nm
8164    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8165  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8166  ac_status=$?
8167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8168  test $ac_status = 0; } && test -s "$nlist"; then
8169      # Try sorting and uniquifying the output.
8170      if sort "$nlist" | uniq > "$nlist"T; then
8171	mv -f "$nlist"T "$nlist"
8172      else
8173	rm -f "$nlist"T
8174      fi
8175
8176      # Make sure that we snagged all the symbols we need.
8177      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8178	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8179	  cat <<_LT_EOF > conftest.$ac_ext
8180/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8181#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8182/* DATA imports from DLLs on WIN32 can't be const, because runtime
8183   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8184# define LT_DLSYM_CONST
8185#elif defined __osf__
8186/* This system does not cope well with relocations in const data.  */
8187# define LT_DLSYM_CONST
8188#else
8189# define LT_DLSYM_CONST const
8190#endif
8191
8192#ifdef __cplusplus
8193extern "C" {
8194#endif
8195
8196_LT_EOF
8197	  # Now generate the symbol file.
8198	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8199
8200	  cat <<_LT_EOF >> conftest.$ac_ext
8201
8202/* The mapping between symbol names and symbols.  */
8203LT_DLSYM_CONST struct {
8204  const char *name;
8205  void       *address;
8206}
8207lt__PROGRAM__LTX_preloaded_symbols[] =
8208{
8209  { "@PROGRAM@", (void *) 0 },
8210_LT_EOF
8211	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8212	  cat <<\_LT_EOF >> conftest.$ac_ext
8213  {0, (void *) 0}
8214};
8215
8216/* This works around a problem in FreeBSD linker */
8217#ifdef FREEBSD_WORKAROUND
8218static const void *lt_preloaded_setup() {
8219  return lt__PROGRAM__LTX_preloaded_symbols;
8220}
8221#endif
8222
8223#ifdef __cplusplus
8224}
8225#endif
8226_LT_EOF
8227	  # Now try linking the two files.
8228	  mv conftest.$ac_objext conftstm.$ac_objext
8229	  lt_globsym_save_LIBS=$LIBS
8230	  lt_globsym_save_CFLAGS=$CFLAGS
8231	  LIBS=conftstm.$ac_objext
8232	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8233	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8234  (eval $ac_link) 2>&5
8235  ac_status=$?
8236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8238	    pipe_works=yes
8239	  fi
8240	  LIBS=$lt_globsym_save_LIBS
8241	  CFLAGS=$lt_globsym_save_CFLAGS
8242	else
8243	  echo "cannot find nm_test_func in $nlist" >&5
8244	fi
8245      else
8246	echo "cannot find nm_test_var in $nlist" >&5
8247      fi
8248    else
8249      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8250    fi
8251  else
8252    echo "$progname: failed program was:" >&5
8253    cat conftest.$ac_ext >&5
8254  fi
8255  rm -rf conftest* conftst*
8256
8257  # Do not use the global_symbol_pipe unless it works.
8258  if test yes = "$pipe_works"; then
8259    break
8260  else
8261    lt_cv_sys_global_symbol_pipe=
8262  fi
8263done
8264
8265fi
8266
8267if test -z "$lt_cv_sys_global_symbol_pipe"; then
8268  lt_cv_sys_global_symbol_to_cdecl=
8269fi
8270if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8272$as_echo "failed" >&6; }
8273else
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8275$as_echo "ok" >&6; }
8276fi
8277
8278# Response file support.
8279if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8280  nm_file_list_spec='@'
8281elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8282  nm_file_list_spec='@'
8283fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8322$as_echo_n "checking for sysroot... " >&6; }
8323
8324# Check whether --with-sysroot was given.
8325if test "${with_sysroot+set}" = set; then :
8326  withval=$with_sysroot;
8327else
8328  with_sysroot=no
8329fi
8330
8331
8332lt_sysroot=
8333case $with_sysroot in #(
8334 yes)
8335   if test yes = "$GCC"; then
8336     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8337   fi
8338   ;; #(
8339 /*)
8340   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8341   ;; #(
8342 no|'')
8343   ;; #(
8344 *)
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8346$as_echo "$with_sysroot" >&6; }
8347   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8348   ;;
8349esac
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8352$as_echo "${lt_sysroot:-no}" >&6; }
8353
8354
8355
8356
8357
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8359$as_echo_n "checking for a working dd... " >&6; }
8360if ${ac_cv_path_lt_DD+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  printf 0123456789abcdef0123456789abcdef >conftest.i
8364cat conftest.i conftest.i >conftest2.i
8365: ${lt_DD:=$DD}
8366if test -z "$lt_DD"; then
8367  ac_path_lt_DD_found=false
8368  # Loop through the user's path and test for each of PROGNAME-LIST
8369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372  IFS=$as_save_IFS
8373  test -z "$as_dir" && as_dir=.
8374    for ac_prog in dd; do
8375    for ac_exec_ext in '' $ac_executable_extensions; do
8376      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8377      as_fn_executable_p "$ac_path_lt_DD" || continue
8378if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8379  cmp -s conftest.i conftest.out \
8380  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8381fi
8382      $ac_path_lt_DD_found && break 3
8383    done
8384  done
8385  done
8386IFS=$as_save_IFS
8387  if test -z "$ac_cv_path_lt_DD"; then
8388    :
8389  fi
8390else
8391  ac_cv_path_lt_DD=$lt_DD
8392fi
8393
8394rm -f conftest.i conftest2.i conftest.out
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8397$as_echo "$ac_cv_path_lt_DD" >&6; }
8398
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8401$as_echo_n "checking how to truncate binary pipes... " >&6; }
8402if ${lt_cv_truncate_bin+:} false; then :
8403  $as_echo_n "(cached) " >&6
8404else
8405  printf 0123456789abcdef0123456789abcdef >conftest.i
8406cat conftest.i conftest.i >conftest2.i
8407lt_cv_truncate_bin=
8408if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8409  cmp -s conftest.i conftest.out \
8410  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8411fi
8412rm -f conftest.i conftest2.i conftest.out
8413test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8414fi
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8416$as_echo "$lt_cv_truncate_bin" >&6; }
8417
8418
8419
8420
8421
8422
8423
8424# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8425func_cc_basename ()
8426{
8427    for cc_temp in $*""; do
8428      case $cc_temp in
8429        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8430        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8431        \-*) ;;
8432        *) break;;
8433      esac
8434    done
8435    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8436}
8437
8438# Check whether --enable-libtool-lock was given.
8439if test "${enable_libtool_lock+set}" = set; then :
8440  enableval=$enable_libtool_lock;
8441fi
8442
8443test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8444
8445# Some flags need to be propagated to the compiler or linker for good
8446# libtool support.
8447case $host in
8448ia64-*-hpux*)
8449  # Find out what ABI is being produced by ac_compile, and set mode
8450  # options accordingly.
8451  echo 'int i;' > conftest.$ac_ext
8452  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8453  (eval $ac_compile) 2>&5
8454  ac_status=$?
8455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456  test $ac_status = 0; }; then
8457    case `/usr/bin/file conftest.$ac_objext` in
8458      *ELF-32*)
8459	HPUX_IA64_MODE=32
8460	;;
8461      *ELF-64*)
8462	HPUX_IA64_MODE=64
8463	;;
8464    esac
8465  fi
8466  rm -rf conftest*
8467  ;;
8468*-*-irix6*)
8469  # Find out what ABI is being produced by ac_compile, and set linker
8470  # options accordingly.
8471  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8472  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8473  (eval $ac_compile) 2>&5
8474  ac_status=$?
8475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8476  test $ac_status = 0; }; then
8477    if test yes = "$lt_cv_prog_gnu_ld"; then
8478      case `/usr/bin/file conftest.$ac_objext` in
8479	*32-bit*)
8480	  LD="${LD-ld} -melf32bsmip"
8481	  ;;
8482	*N32*)
8483	  LD="${LD-ld} -melf32bmipn32"
8484	  ;;
8485	*64-bit*)
8486	  LD="${LD-ld} -melf64bmip"
8487	;;
8488      esac
8489    else
8490      case `/usr/bin/file conftest.$ac_objext` in
8491	*32-bit*)
8492	  LD="${LD-ld} -32"
8493	  ;;
8494	*N32*)
8495	  LD="${LD-ld} -n32"
8496	  ;;
8497	*64-bit*)
8498	  LD="${LD-ld} -64"
8499	  ;;
8500      esac
8501    fi
8502  fi
8503  rm -rf conftest*
8504  ;;
8505
8506mips64*-*linux*)
8507  # Find out what ABI is being produced by ac_compile, and set linker
8508  # options accordingly.
8509  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8511  (eval $ac_compile) 2>&5
8512  ac_status=$?
8513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8514  test $ac_status = 0; }; then
8515    emul=elf
8516    case `/usr/bin/file conftest.$ac_objext` in
8517      *32-bit*)
8518	emul="${emul}32"
8519	;;
8520      *64-bit*)
8521	emul="${emul}64"
8522	;;
8523    esac
8524    case `/usr/bin/file conftest.$ac_objext` in
8525      *MSB*)
8526	emul="${emul}btsmip"
8527	;;
8528      *LSB*)
8529	emul="${emul}ltsmip"
8530	;;
8531    esac
8532    case `/usr/bin/file conftest.$ac_objext` in
8533      *N32*)
8534	emul="${emul}n32"
8535	;;
8536    esac
8537    LD="${LD-ld} -m $emul"
8538  fi
8539  rm -rf conftest*
8540  ;;
8541
8542x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8543s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8544  # Find out what ABI is being produced by ac_compile, and set linker
8545  # options accordingly.  Note that the listed cases only cover the
8546  # situations where additional linker options are needed (such as when
8547  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8548  # vice versa); the common cases where no linker options are needed do
8549  # not appear in the list.
8550  echo 'int i;' > conftest.$ac_ext
8551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8552  (eval $ac_compile) 2>&5
8553  ac_status=$?
8554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555  test $ac_status = 0; }; then
8556    case `/usr/bin/file conftest.o` in
8557      *32-bit*)
8558	case $host in
8559	  x86_64-*kfreebsd*-gnu)
8560	    LD="${LD-ld} -m elf_i386_fbsd"
8561	    ;;
8562	  x86_64-*linux*)
8563	    case `/usr/bin/file conftest.o` in
8564	      *x86-64*)
8565		LD="${LD-ld} -m elf32_x86_64"
8566		;;
8567	      *)
8568		LD="${LD-ld} -m elf_i386"
8569		;;
8570	    esac
8571	    ;;
8572	  powerpc64le-*linux*)
8573	    LD="${LD-ld} -m elf32lppclinux"
8574	    ;;
8575	  powerpc64-*linux*)
8576	    LD="${LD-ld} -m elf32ppclinux"
8577	    ;;
8578	  s390x-*linux*)
8579	    LD="${LD-ld} -m elf_s390"
8580	    ;;
8581	  sparc64-*linux*)
8582	    LD="${LD-ld} -m elf32_sparc"
8583	    ;;
8584	esac
8585	;;
8586      *64-bit*)
8587	case $host in
8588	  x86_64-*kfreebsd*-gnu)
8589	    LD="${LD-ld} -m elf_x86_64_fbsd"
8590	    ;;
8591	  x86_64-*linux*)
8592	    LD="${LD-ld} -m elf_x86_64"
8593	    ;;
8594	  powerpcle-*linux*)
8595	    LD="${LD-ld} -m elf64lppc"
8596	    ;;
8597	  powerpc-*linux*)
8598	    LD="${LD-ld} -m elf64ppc"
8599	    ;;
8600	  s390*-*linux*|s390*-*tpf*)
8601	    LD="${LD-ld} -m elf64_s390"
8602	    ;;
8603	  sparc*-*linux*)
8604	    LD="${LD-ld} -m elf64_sparc"
8605	    ;;
8606	esac
8607	;;
8608    esac
8609  fi
8610  rm -rf conftest*
8611  ;;
8612
8613*-*-sco3.2v5*)
8614  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8615  SAVE_CFLAGS=$CFLAGS
8616  CFLAGS="$CFLAGS -belf"
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8618$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8619if ${lt_cv_cc_needs_belf+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  ac_ext=c
8623ac_cpp='$CPP $CPPFLAGS'
8624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626ac_compiler_gnu=$ac_cv_c_compiler_gnu
8627
8628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630
8631int
8632main ()
8633{
8634
8635  ;
8636  return 0;
8637}
8638_ACEOF
8639if ac_fn_c_try_link "$LINENO"; then :
8640  lt_cv_cc_needs_belf=yes
8641else
8642  lt_cv_cc_needs_belf=no
8643fi
8644rm -f core conftest.err conftest.$ac_objext \
8645    conftest$ac_exeext conftest.$ac_ext
8646     ac_ext=c
8647ac_cpp='$CPP $CPPFLAGS'
8648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8654$as_echo "$lt_cv_cc_needs_belf" >&6; }
8655  if test yes != "$lt_cv_cc_needs_belf"; then
8656    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8657    CFLAGS=$SAVE_CFLAGS
8658  fi
8659  ;;
8660*-*solaris*)
8661  # Find out what ABI is being produced by ac_compile, and set linker
8662  # options accordingly.
8663  echo 'int i;' > conftest.$ac_ext
8664  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8665  (eval $ac_compile) 2>&5
8666  ac_status=$?
8667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668  test $ac_status = 0; }; then
8669    case `/usr/bin/file conftest.o` in
8670    *64-bit*)
8671      case $lt_cv_prog_gnu_ld in
8672      yes*)
8673        case $host in
8674        i?86-*-solaris*|x86_64-*-solaris*)
8675          LD="${LD-ld} -m elf_x86_64"
8676          ;;
8677        sparc*-*-solaris*)
8678          LD="${LD-ld} -m elf64_sparc"
8679          ;;
8680        esac
8681        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8682        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8683          LD=${LD-ld}_sol2
8684        fi
8685        ;;
8686      *)
8687	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8688	  LD="${LD-ld} -64"
8689	fi
8690	;;
8691      esac
8692      ;;
8693    esac
8694  fi
8695  rm -rf conftest*
8696  ;;
8697esac
8698
8699need_locks=$enable_libtool_lock
8700
8701if test -n "$ac_tool_prefix"; then
8702  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8703set dummy ${ac_tool_prefix}mt; ac_word=$2
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8707  $as_echo_n "(cached) " >&6
8708else
8709  if test -n "$MANIFEST_TOOL"; then
8710  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717    for ac_exec_ext in '' $ac_executable_extensions; do
8718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724  done
8725IFS=$as_save_IFS
8726
8727fi
8728fi
8729MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8730if test -n "$MANIFEST_TOOL"; then
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8732$as_echo "$MANIFEST_TOOL" >&6; }
8733else
8734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
8736fi
8737
8738
8739fi
8740if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8741  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8742  # Extract the first word of "mt", so it can be a program name with args.
8743set dummy mt; ac_word=$2
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  if test -n "$ac_ct_MANIFEST_TOOL"; then
8750  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755  IFS=$as_save_IFS
8756  test -z "$as_dir" && as_dir=.
8757    for ac_exec_ext in '' $ac_executable_extensions; do
8758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761    break 2
8762  fi
8763done
8764  done
8765IFS=$as_save_IFS
8766
8767fi
8768fi
8769ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8770if test -n "$ac_ct_MANIFEST_TOOL"; then
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8772$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8773else
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
8776fi
8777
8778  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8779    MANIFEST_TOOL=":"
8780  else
8781    case $cross_compiling:$ac_tool_warned in
8782yes:)
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8785ac_tool_warned=yes ;;
8786esac
8787    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8788  fi
8789else
8790  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8791fi
8792
8793test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8795$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8796if ${lt_cv_path_mainfest_tool+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  lt_cv_path_mainfest_tool=no
8800  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8801  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8802  cat conftest.err >&5
8803  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8804    lt_cv_path_mainfest_tool=yes
8805  fi
8806  rm -f conftest*
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8809$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8810if test yes != "$lt_cv_path_mainfest_tool"; then
8811  MANIFEST_TOOL=:
8812fi
8813
8814
8815
8816
8817
8818
8819  case $host_os in
8820    rhapsody* | darwin*)
8821    if test -n "$ac_tool_prefix"; then
8822  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8823set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
8826if ${ac_cv_prog_DSYMUTIL+:} false; then :
8827  $as_echo_n "(cached) " >&6
8828else
8829  if test -n "$DSYMUTIL"; then
8830  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835  IFS=$as_save_IFS
8836  test -z "$as_dir" && as_dir=.
8837    for ac_exec_ext in '' $ac_executable_extensions; do
8838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841    break 2
8842  fi
8843done
8844  done
8845IFS=$as_save_IFS
8846
8847fi
8848fi
8849DSYMUTIL=$ac_cv_prog_DSYMUTIL
8850if test -n "$DSYMUTIL"; then
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8852$as_echo "$DSYMUTIL" >&6; }
8853else
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855$as_echo "no" >&6; }
8856fi
8857
8858
8859fi
8860if test -z "$ac_cv_prog_DSYMUTIL"; then
8861  ac_ct_DSYMUTIL=$DSYMUTIL
8862  # Extract the first word of "dsymutil", so it can be a program name with args.
8863set dummy dsymutil; ac_word=$2
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  if test -n "$ac_ct_DSYMUTIL"; then
8870  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875  IFS=$as_save_IFS
8876  test -z "$as_dir" && as_dir=.
8877    for ac_exec_ext in '' $ac_executable_extensions; do
8878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881    break 2
8882  fi
8883done
8884  done
8885IFS=$as_save_IFS
8886
8887fi
8888fi
8889ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8890if test -n "$ac_ct_DSYMUTIL"; then
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8892$as_echo "$ac_ct_DSYMUTIL" >&6; }
8893else
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898  if test "x$ac_ct_DSYMUTIL" = x; then
8899    DSYMUTIL=":"
8900  else
8901    case $cross_compiling:$ac_tool_warned in
8902yes:)
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8905ac_tool_warned=yes ;;
8906esac
8907    DSYMUTIL=$ac_ct_DSYMUTIL
8908  fi
8909else
8910  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8911fi
8912
8913    if test -n "$ac_tool_prefix"; then
8914  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8915set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917$as_echo_n "checking for $ac_word... " >&6; }
8918if ${ac_cv_prog_NMEDIT+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  if test -n "$NMEDIT"; then
8922  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8923else
8924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925for as_dir in $PATH
8926do
8927  IFS=$as_save_IFS
8928  test -z "$as_dir" && as_dir=.
8929    for ac_exec_ext in '' $ac_executable_extensions; do
8930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933    break 2
8934  fi
8935done
8936  done
8937IFS=$as_save_IFS
8938
8939fi
8940fi
8941NMEDIT=$ac_cv_prog_NMEDIT
8942if test -n "$NMEDIT"; then
8943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8944$as_echo "$NMEDIT" >&6; }
8945else
8946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947$as_echo "no" >&6; }
8948fi
8949
8950
8951fi
8952if test -z "$ac_cv_prog_NMEDIT"; then
8953  ac_ct_NMEDIT=$NMEDIT
8954  # Extract the first word of "nmedit", so it can be a program name with args.
8955set dummy nmedit; ac_word=$2
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957$as_echo_n "checking for $ac_word... " >&6; }
8958if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8959  $as_echo_n "(cached) " >&6
8960else
8961  if test -n "$ac_ct_NMEDIT"; then
8962  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967  IFS=$as_save_IFS
8968  test -z "$as_dir" && as_dir=.
8969    for ac_exec_ext in '' $ac_executable_extensions; do
8970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973    break 2
8974  fi
8975done
8976  done
8977IFS=$as_save_IFS
8978
8979fi
8980fi
8981ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8982if test -n "$ac_ct_NMEDIT"; then
8983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8984$as_echo "$ac_ct_NMEDIT" >&6; }
8985else
8986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987$as_echo "no" >&6; }
8988fi
8989
8990  if test "x$ac_ct_NMEDIT" = x; then
8991    NMEDIT=":"
8992  else
8993    case $cross_compiling:$ac_tool_warned in
8994yes:)
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8997ac_tool_warned=yes ;;
8998esac
8999    NMEDIT=$ac_ct_NMEDIT
9000  fi
9001else
9002  NMEDIT="$ac_cv_prog_NMEDIT"
9003fi
9004
9005    if test -n "$ac_tool_prefix"; then
9006  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9007set dummy ${ac_tool_prefix}lipo; ac_word=$2
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009$as_echo_n "checking for $ac_word... " >&6; }
9010if ${ac_cv_prog_LIPO+:} false; then :
9011  $as_echo_n "(cached) " >&6
9012else
9013  if test -n "$LIPO"; then
9014  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9015else
9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in $PATH
9018do
9019  IFS=$as_save_IFS
9020  test -z "$as_dir" && as_dir=.
9021    for ac_exec_ext in '' $ac_executable_extensions; do
9022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025    break 2
9026  fi
9027done
9028  done
9029IFS=$as_save_IFS
9030
9031fi
9032fi
9033LIPO=$ac_cv_prog_LIPO
9034if test -n "$LIPO"; then
9035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9036$as_echo "$LIPO" >&6; }
9037else
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039$as_echo "no" >&6; }
9040fi
9041
9042
9043fi
9044if test -z "$ac_cv_prog_LIPO"; then
9045  ac_ct_LIPO=$LIPO
9046  # Extract the first word of "lipo", so it can be a program name with args.
9047set dummy lipo; ac_word=$2
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049$as_echo_n "checking for $ac_word... " >&6; }
9050if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9051  $as_echo_n "(cached) " >&6
9052else
9053  if test -n "$ac_ct_LIPO"; then
9054  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9055else
9056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057for as_dir in $PATH
9058do
9059  IFS=$as_save_IFS
9060  test -z "$as_dir" && as_dir=.
9061    for ac_exec_ext in '' $ac_executable_extensions; do
9062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063    ac_cv_prog_ac_ct_LIPO="lipo"
9064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065    break 2
9066  fi
9067done
9068  done
9069IFS=$as_save_IFS
9070
9071fi
9072fi
9073ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9074if test -n "$ac_ct_LIPO"; then
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9076$as_echo "$ac_ct_LIPO" >&6; }
9077else
9078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079$as_echo "no" >&6; }
9080fi
9081
9082  if test "x$ac_ct_LIPO" = x; then
9083    LIPO=":"
9084  else
9085    case $cross_compiling:$ac_tool_warned in
9086yes:)
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9089ac_tool_warned=yes ;;
9090esac
9091    LIPO=$ac_ct_LIPO
9092  fi
9093else
9094  LIPO="$ac_cv_prog_LIPO"
9095fi
9096
9097    if test -n "$ac_tool_prefix"; then
9098  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9099set dummy ${ac_tool_prefix}otool; ac_word=$2
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101$as_echo_n "checking for $ac_word... " >&6; }
9102if ${ac_cv_prog_OTOOL+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  if test -n "$OTOOL"; then
9106  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9107else
9108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109for as_dir in $PATH
9110do
9111  IFS=$as_save_IFS
9112  test -z "$as_dir" && as_dir=.
9113    for ac_exec_ext in '' $ac_executable_extensions; do
9114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9115    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117    break 2
9118  fi
9119done
9120  done
9121IFS=$as_save_IFS
9122
9123fi
9124fi
9125OTOOL=$ac_cv_prog_OTOOL
9126if test -n "$OTOOL"; then
9127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9128$as_echo "$OTOOL" >&6; }
9129else
9130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131$as_echo "no" >&6; }
9132fi
9133
9134
9135fi
9136if test -z "$ac_cv_prog_OTOOL"; then
9137  ac_ct_OTOOL=$OTOOL
9138  # Extract the first word of "otool", so it can be a program name with args.
9139set dummy otool; ac_word=$2
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141$as_echo_n "checking for $ac_word... " >&6; }
9142if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9143  $as_echo_n "(cached) " >&6
9144else
9145  if test -n "$ac_ct_OTOOL"; then
9146  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9147else
9148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149for as_dir in $PATH
9150do
9151  IFS=$as_save_IFS
9152  test -z "$as_dir" && as_dir=.
9153    for ac_exec_ext in '' $ac_executable_extensions; do
9154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155    ac_cv_prog_ac_ct_OTOOL="otool"
9156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157    break 2
9158  fi
9159done
9160  done
9161IFS=$as_save_IFS
9162
9163fi
9164fi
9165ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9166if test -n "$ac_ct_OTOOL"; then
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9168$as_echo "$ac_ct_OTOOL" >&6; }
9169else
9170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171$as_echo "no" >&6; }
9172fi
9173
9174  if test "x$ac_ct_OTOOL" = x; then
9175    OTOOL=":"
9176  else
9177    case $cross_compiling:$ac_tool_warned in
9178yes:)
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9181ac_tool_warned=yes ;;
9182esac
9183    OTOOL=$ac_ct_OTOOL
9184  fi
9185else
9186  OTOOL="$ac_cv_prog_OTOOL"
9187fi
9188
9189    if test -n "$ac_tool_prefix"; then
9190  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9191set dummy ${ac_tool_prefix}otool64; ac_word=$2
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193$as_echo_n "checking for $ac_word... " >&6; }
9194if ${ac_cv_prog_OTOOL64+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197  if test -n "$OTOOL64"; then
9198  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9199else
9200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203  IFS=$as_save_IFS
9204  test -z "$as_dir" && as_dir=.
9205    for ac_exec_ext in '' $ac_executable_extensions; do
9206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209    break 2
9210  fi
9211done
9212  done
9213IFS=$as_save_IFS
9214
9215fi
9216fi
9217OTOOL64=$ac_cv_prog_OTOOL64
9218if test -n "$OTOOL64"; then
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9220$as_echo "$OTOOL64" >&6; }
9221else
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
9224fi
9225
9226
9227fi
9228if test -z "$ac_cv_prog_OTOOL64"; then
9229  ac_ct_OTOOL64=$OTOOL64
9230  # Extract the first word of "otool64", so it can be a program name with args.
9231set dummy otool64; ac_word=$2
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233$as_echo_n "checking for $ac_word... " >&6; }
9234if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9235  $as_echo_n "(cached) " >&6
9236else
9237  if test -n "$ac_ct_OTOOL64"; then
9238  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9239else
9240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241for as_dir in $PATH
9242do
9243  IFS=$as_save_IFS
9244  test -z "$as_dir" && as_dir=.
9245    for ac_exec_ext in '' $ac_executable_extensions; do
9246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9247    ac_cv_prog_ac_ct_OTOOL64="otool64"
9248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249    break 2
9250  fi
9251done
9252  done
9253IFS=$as_save_IFS
9254
9255fi
9256fi
9257ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9258if test -n "$ac_ct_OTOOL64"; then
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9260$as_echo "$ac_ct_OTOOL64" >&6; }
9261else
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263$as_echo "no" >&6; }
9264fi
9265
9266  if test "x$ac_ct_OTOOL64" = x; then
9267    OTOOL64=":"
9268  else
9269    case $cross_compiling:$ac_tool_warned in
9270yes:)
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9273ac_tool_warned=yes ;;
9274esac
9275    OTOOL64=$ac_ct_OTOOL64
9276  fi
9277else
9278  OTOOL64="$ac_cv_prog_OTOOL64"
9279fi
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9308$as_echo_n "checking for -single_module linker flag... " >&6; }
9309if ${lt_cv_apple_cc_single_mod+:} false; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  lt_cv_apple_cc_single_mod=no
9313      if test -z "$LT_MULTI_MODULE"; then
9314	# By default we will add the -single_module flag. You can override
9315	# by either setting the environment variable LT_MULTI_MODULE
9316	# non-empty at configure time, or by adding -multi_module to the
9317	# link flags.
9318	rm -rf libconftest.dylib*
9319	echo "int foo(void){return 1;}" > conftest.c
9320	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9321-dynamiclib -Wl,-single_module conftest.c" >&5
9322	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9323	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9324        _lt_result=$?
9325	# If there is a non-empty error log, and "single_module"
9326	# appears in it, assume the flag caused a linker warning
9327        if test -s conftest.err && $GREP single_module conftest.err; then
9328	  cat conftest.err >&5
9329	# Otherwise, if the output was created with a 0 exit code from
9330	# the compiler, it worked.
9331	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9332	  lt_cv_apple_cc_single_mod=yes
9333	else
9334	  cat conftest.err >&5
9335	fi
9336	rm -rf libconftest.dylib*
9337	rm -f conftest.*
9338      fi
9339fi
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9341$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9342
9343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9344$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9345if ${lt_cv_ld_exported_symbols_list+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  lt_cv_ld_exported_symbols_list=no
9349      save_LDFLAGS=$LDFLAGS
9350      echo "_main" > conftest.sym
9351      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9352      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354
9355int
9356main ()
9357{
9358
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363if ac_fn_c_try_link "$LINENO"; then :
9364  lt_cv_ld_exported_symbols_list=yes
9365else
9366  lt_cv_ld_exported_symbols_list=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext \
9369    conftest$ac_exeext conftest.$ac_ext
9370	LDFLAGS=$save_LDFLAGS
9371
9372fi
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9374$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9375
9376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9377$as_echo_n "checking for -force_load linker flag... " >&6; }
9378if ${lt_cv_ld_force_load+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  lt_cv_ld_force_load=no
9382      cat > conftest.c << _LT_EOF
9383int forced_loaded() { return 2;}
9384_LT_EOF
9385      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9386      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9387      echo "$AR cru libconftest.a conftest.o" >&5
9388      $AR cru libconftest.a conftest.o 2>&5
9389      echo "$RANLIB libconftest.a" >&5
9390      $RANLIB libconftest.a 2>&5
9391      cat > conftest.c << _LT_EOF
9392int main() { return 0;}
9393_LT_EOF
9394      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9395      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9396      _lt_result=$?
9397      if test -s conftest.err && $GREP force_load conftest.err; then
9398	cat conftest.err >&5
9399      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9400	lt_cv_ld_force_load=yes
9401      else
9402	cat conftest.err >&5
9403      fi
9404        rm -f conftest.err libconftest.a conftest conftest.c
9405        rm -rf conftest.dSYM
9406
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9409$as_echo "$lt_cv_ld_force_load" >&6; }
9410    case $host_os in
9411    rhapsody* | darwin1.[012])
9412      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9413    darwin1.*)
9414      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9415    darwin*) # darwin 5.x on
9416      # if running on 10.5 or later, the deployment target defaults
9417      # to the OS version, if on x86, and 10.4, the deployment
9418      # target defaults to 10.4. Don't you love it?
9419      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9420	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9421	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9422	10.[012][,.]*)
9423	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9424	10.*)
9425	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9426      esac
9427    ;;
9428  esac
9429    if test yes = "$lt_cv_apple_cc_single_mod"; then
9430      _lt_dar_single_mod='$single_module'
9431    fi
9432    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9433      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9434    else
9435      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9436    fi
9437    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9438      _lt_dsymutil='~$DSYMUTIL $lib || :'
9439    else
9440      _lt_dsymutil=
9441    fi
9442    ;;
9443  esac
9444
9445# func_munge_path_list VARIABLE PATH
9446# -----------------------------------
9447# VARIABLE is name of variable containing _space_ separated list of
9448# directories to be munged by the contents of PATH, which is string
9449# having a format:
9450# "DIR[:DIR]:"
9451#       string "DIR[ DIR]" will be prepended to VARIABLE
9452# ":DIR[:DIR]"
9453#       string "DIR[ DIR]" will be appended to VARIABLE
9454# "DIRP[:DIRP]::[DIRA:]DIRA"
9455#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9456#       "DIRA[ DIRA]" will be appended to VARIABLE
9457# "DIR[:DIR]"
9458#       VARIABLE will be replaced by "DIR[ DIR]"
9459func_munge_path_list ()
9460{
9461    case x$2 in
9462    x)
9463        ;;
9464    *:)
9465        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9466        ;;
9467    x:*)
9468        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9469        ;;
9470    *::*)
9471        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9472        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9473        ;;
9474    *)
9475        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9476        ;;
9477    esac
9478}
9479
9480for ac_header in dlfcn.h
9481do :
9482  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9483"
9484if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9485  cat >>confdefs.h <<_ACEOF
9486#define HAVE_DLFCN_H 1
9487_ACEOF
9488
9489fi
9490
9491done
9492
9493
9494
9495
9496
9497# Set options
9498# Check whether --enable-static was given.
9499if test "${enable_static+set}" = set; then :
9500  enableval=$enable_static; p=${PACKAGE-default}
9501    case $enableval in
9502    yes) enable_static=yes ;;
9503    no) enable_static=no ;;
9504    *)
9505     enable_static=no
9506      # Look at the argument we got.  We use all the common list separators.
9507      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9508      for pkg in $enableval; do
9509	IFS=$lt_save_ifs
9510	if test "X$pkg" = "X$p"; then
9511	  enable_static=yes
9512	fi
9513      done
9514      IFS=$lt_save_ifs
9515      ;;
9516    esac
9517else
9518  enable_static=no
9519fi
9520
9521
9522
9523
9524
9525
9526
9527enable_win32_dll=yes
9528
9529case $host in
9530*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9531  if test -n "$ac_tool_prefix"; then
9532  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9533set dummy ${ac_tool_prefix}as; ac_word=$2
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535$as_echo_n "checking for $ac_word... " >&6; }
9536if ${ac_cv_prog_AS+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  if test -n "$AS"; then
9540  ac_cv_prog_AS="$AS" # Let the user override the test.
9541else
9542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543for as_dir in $PATH
9544do
9545  IFS=$as_save_IFS
9546  test -z "$as_dir" && as_dir=.
9547    for ac_exec_ext in '' $ac_executable_extensions; do
9548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549    ac_cv_prog_AS="${ac_tool_prefix}as"
9550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551    break 2
9552  fi
9553done
9554  done
9555IFS=$as_save_IFS
9556
9557fi
9558fi
9559AS=$ac_cv_prog_AS
9560if test -n "$AS"; then
9561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9562$as_echo "$AS" >&6; }
9563else
9564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565$as_echo "no" >&6; }
9566fi
9567
9568
9569fi
9570if test -z "$ac_cv_prog_AS"; then
9571  ac_ct_AS=$AS
9572  # Extract the first word of "as", so it can be a program name with args.
9573set dummy as; ac_word=$2
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if ${ac_cv_prog_ac_ct_AS+:} false; then :
9577  $as_echo_n "(cached) " >&6
9578else
9579  if test -n "$ac_ct_AS"; then
9580  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9581else
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585  IFS=$as_save_IFS
9586  test -z "$as_dir" && as_dir=.
9587    for ac_exec_ext in '' $ac_executable_extensions; do
9588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589    ac_cv_prog_ac_ct_AS="as"
9590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591    break 2
9592  fi
9593done
9594  done
9595IFS=$as_save_IFS
9596
9597fi
9598fi
9599ac_ct_AS=$ac_cv_prog_ac_ct_AS
9600if test -n "$ac_ct_AS"; then
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9602$as_echo "$ac_ct_AS" >&6; }
9603else
9604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
9606fi
9607
9608  if test "x$ac_ct_AS" = x; then
9609    AS="false"
9610  else
9611    case $cross_compiling:$ac_tool_warned in
9612yes:)
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9615ac_tool_warned=yes ;;
9616esac
9617    AS=$ac_ct_AS
9618  fi
9619else
9620  AS="$ac_cv_prog_AS"
9621fi
9622
9623  if test -n "$ac_tool_prefix"; then
9624  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9625set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627$as_echo_n "checking for $ac_word... " >&6; }
9628if ${ac_cv_prog_DLLTOOL+:} false; then :
9629  $as_echo_n "(cached) " >&6
9630else
9631  if test -n "$DLLTOOL"; then
9632  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9633else
9634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635for as_dir in $PATH
9636do
9637  IFS=$as_save_IFS
9638  test -z "$as_dir" && as_dir=.
9639    for ac_exec_ext in '' $ac_executable_extensions; do
9640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9641    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643    break 2
9644  fi
9645done
9646  done
9647IFS=$as_save_IFS
9648
9649fi
9650fi
9651DLLTOOL=$ac_cv_prog_DLLTOOL
9652if test -n "$DLLTOOL"; then
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9654$as_echo "$DLLTOOL" >&6; }
9655else
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657$as_echo "no" >&6; }
9658fi
9659
9660
9661fi
9662if test -z "$ac_cv_prog_DLLTOOL"; then
9663  ac_ct_DLLTOOL=$DLLTOOL
9664  # Extract the first word of "dlltool", so it can be a program name with args.
9665set dummy dlltool; ac_word=$2
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9669  $as_echo_n "(cached) " >&6
9670else
9671  if test -n "$ac_ct_DLLTOOL"; then
9672  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9673else
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677  IFS=$as_save_IFS
9678  test -z "$as_dir" && as_dir=.
9679    for ac_exec_ext in '' $ac_executable_extensions; do
9680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683    break 2
9684  fi
9685done
9686  done
9687IFS=$as_save_IFS
9688
9689fi
9690fi
9691ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9692if test -n "$ac_ct_DLLTOOL"; then
9693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9694$as_echo "$ac_ct_DLLTOOL" >&6; }
9695else
9696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
9698fi
9699
9700  if test "x$ac_ct_DLLTOOL" = x; then
9701    DLLTOOL="false"
9702  else
9703    case $cross_compiling:$ac_tool_warned in
9704yes:)
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9707ac_tool_warned=yes ;;
9708esac
9709    DLLTOOL=$ac_ct_DLLTOOL
9710  fi
9711else
9712  DLLTOOL="$ac_cv_prog_DLLTOOL"
9713fi
9714
9715  if test -n "$ac_tool_prefix"; then
9716  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9717set dummy ${ac_tool_prefix}objdump; ac_word=$2
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
9720if ${ac_cv_prog_OBJDUMP+:} false; then :
9721  $as_echo_n "(cached) " >&6
9722else
9723  if test -n "$OBJDUMP"; then
9724  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729  IFS=$as_save_IFS
9730  test -z "$as_dir" && as_dir=.
9731    for ac_exec_ext in '' $ac_executable_extensions; do
9732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735    break 2
9736  fi
9737done
9738  done
9739IFS=$as_save_IFS
9740
9741fi
9742fi
9743OBJDUMP=$ac_cv_prog_OBJDUMP
9744if test -n "$OBJDUMP"; then
9745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9746$as_echo "$OBJDUMP" >&6; }
9747else
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749$as_echo "no" >&6; }
9750fi
9751
9752
9753fi
9754if test -z "$ac_cv_prog_OBJDUMP"; then
9755  ac_ct_OBJDUMP=$OBJDUMP
9756  # Extract the first word of "objdump", so it can be a program name with args.
9757set dummy objdump; ac_word=$2
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  if test -n "$ac_ct_OBJDUMP"; then
9764  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769  IFS=$as_save_IFS
9770  test -z "$as_dir" && as_dir=.
9771    for ac_exec_ext in '' $ac_executable_extensions; do
9772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775    break 2
9776  fi
9777done
9778  done
9779IFS=$as_save_IFS
9780
9781fi
9782fi
9783ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9784if test -n "$ac_ct_OBJDUMP"; then
9785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9786$as_echo "$ac_ct_OBJDUMP" >&6; }
9787else
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9790fi
9791
9792  if test "x$ac_ct_OBJDUMP" = x; then
9793    OBJDUMP="false"
9794  else
9795    case $cross_compiling:$ac_tool_warned in
9796yes:)
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9799ac_tool_warned=yes ;;
9800esac
9801    OBJDUMP=$ac_ct_OBJDUMP
9802  fi
9803else
9804  OBJDUMP="$ac_cv_prog_OBJDUMP"
9805fi
9806
9807  ;;
9808esac
9809
9810test -z "$AS" && AS=as
9811
9812
9813
9814
9815
9816test -z "$DLLTOOL" && DLLTOOL=dlltool
9817
9818
9819
9820
9821
9822test -z "$OBJDUMP" && OBJDUMP=objdump
9823
9824
9825
9826
9827
9828
9829
9830        enable_dlopen=no
9831
9832
9833
9834            # Check whether --enable-shared was given.
9835if test "${enable_shared+set}" = set; then :
9836  enableval=$enable_shared; p=${PACKAGE-default}
9837    case $enableval in
9838    yes) enable_shared=yes ;;
9839    no) enable_shared=no ;;
9840    *)
9841      enable_shared=no
9842      # Look at the argument we got.  We use all the common list separators.
9843      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9844      for pkg in $enableval; do
9845	IFS=$lt_save_ifs
9846	if test "X$pkg" = "X$p"; then
9847	  enable_shared=yes
9848	fi
9849      done
9850      IFS=$lt_save_ifs
9851      ;;
9852    esac
9853else
9854  enable_shared=yes
9855fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867# Check whether --with-pic was given.
9868if test "${with_pic+set}" = set; then :
9869  withval=$with_pic; lt_p=${PACKAGE-default}
9870    case $withval in
9871    yes|no) pic_mode=$withval ;;
9872    *)
9873      pic_mode=default
9874      # Look at the argument we got.  We use all the common list separators.
9875      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9876      for lt_pkg in $withval; do
9877	IFS=$lt_save_ifs
9878	if test "X$lt_pkg" = "X$lt_p"; then
9879	  pic_mode=yes
9880	fi
9881      done
9882      IFS=$lt_save_ifs
9883      ;;
9884    esac
9885else
9886  pic_mode=default
9887fi
9888
9889
9890
9891
9892
9893
9894
9895
9896  # Check whether --enable-fast-install was given.
9897if test "${enable_fast_install+set}" = set; then :
9898  enableval=$enable_fast_install; p=${PACKAGE-default}
9899    case $enableval in
9900    yes) enable_fast_install=yes ;;
9901    no) enable_fast_install=no ;;
9902    *)
9903      enable_fast_install=no
9904      # Look at the argument we got.  We use all the common list separators.
9905      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9906      for pkg in $enableval; do
9907	IFS=$lt_save_ifs
9908	if test "X$pkg" = "X$p"; then
9909	  enable_fast_install=yes
9910	fi
9911      done
9912      IFS=$lt_save_ifs
9913      ;;
9914    esac
9915else
9916  enable_fast_install=yes
9917fi
9918
9919
9920
9921
9922
9923
9924
9925
9926  shared_archive_member_spec=
9927case $host,$enable_shared in
9928power*-*-aix[5-9]*,yes)
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9930$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9931
9932# Check whether --with-aix-soname was given.
9933if test "${with_aix_soname+set}" = set; then :
9934  withval=$with_aix_soname; case $withval in
9935    aix|svr4|both)
9936      ;;
9937    *)
9938      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9939      ;;
9940    esac
9941    lt_cv_with_aix_soname=$with_aix_soname
9942else
9943  if ${lt_cv_with_aix_soname+:} false; then :
9944  $as_echo_n "(cached) " >&6
9945else
9946  lt_cv_with_aix_soname=aix
9947fi
9948
9949    with_aix_soname=$lt_cv_with_aix_soname
9950fi
9951
9952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9953$as_echo "$with_aix_soname" >&6; }
9954  if test aix != "$with_aix_soname"; then
9955    # For the AIX way of multilib, we name the shared archive member
9956    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9957    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9958    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9959    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9960    if test 64 = "${OBJECT_MODE-32}"; then
9961      shared_archive_member_spec=shr_64
9962    else
9963      shared_archive_member_spec=shr
9964    fi
9965  fi
9966  ;;
9967*)
9968  with_aix_soname=aix
9969  ;;
9970esac
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981# This can be used to rebuild libtool when needed
9982LIBTOOL_DEPS=$ltmain
9983
9984# Always use our own libtool.
9985LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016test -z "$LN_S" && LN_S="ln -s"
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031if test -n "${ZSH_VERSION+set}"; then
10032   setopt NO_GLOB_SUBST
10033fi
10034
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10036$as_echo_n "checking for objdir... " >&6; }
10037if ${lt_cv_objdir+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  rm -f .libs 2>/dev/null
10041mkdir .libs 2>/dev/null
10042if test -d .libs; then
10043  lt_cv_objdir=.libs
10044else
10045  # MS-DOS does not allow filenames that begin with a dot.
10046  lt_cv_objdir=_libs
10047fi
10048rmdir .libs 2>/dev/null
10049fi
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10051$as_echo "$lt_cv_objdir" >&6; }
10052objdir=$lt_cv_objdir
10053
10054
10055
10056
10057
10058cat >>confdefs.h <<_ACEOF
10059#define LT_OBJDIR "$lt_cv_objdir/"
10060_ACEOF
10061
10062
10063
10064
10065case $host_os in
10066aix3*)
10067  # AIX sometimes has problems with the GCC collect2 program.  For some
10068  # reason, if we set the COLLECT_NAMES environment variable, the problems
10069  # vanish in a puff of smoke.
10070  if test set != "${COLLECT_NAMES+set}"; then
10071    COLLECT_NAMES=
10072    export COLLECT_NAMES
10073  fi
10074  ;;
10075esac
10076
10077# Global variables:
10078ofile=libtool
10079can_build_shared=yes
10080
10081# All known linkers require a '.a' archive for static linking (except MSVC,
10082# which needs '.lib').
10083libext=a
10084
10085with_gnu_ld=$lt_cv_prog_gnu_ld
10086
10087old_CC=$CC
10088old_CFLAGS=$CFLAGS
10089
10090# Set sane defaults for various variables
10091test -z "$CC" && CC=cc
10092test -z "$LTCC" && LTCC=$CC
10093test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10094test -z "$LD" && LD=ld
10095test -z "$ac_objext" && ac_objext=o
10096
10097func_cc_basename $compiler
10098cc_basename=$func_cc_basename_result
10099
10100
10101# Only perform the check for file, if the check method requires it
10102test -z "$MAGIC_CMD" && MAGIC_CMD=file
10103case $deplibs_check_method in
10104file_magic*)
10105  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10107$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10108if ${lt_cv_path_MAGIC_CMD+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  case $MAGIC_CMD in
10112[\\/*] |  ?:[\\/]*)
10113  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10114  ;;
10115*)
10116  lt_save_MAGIC_CMD=$MAGIC_CMD
10117  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10118  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10119  for ac_dir in $ac_dummy; do
10120    IFS=$lt_save_ifs
10121    test -z "$ac_dir" && ac_dir=.
10122    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10123      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10124      if test -n "$file_magic_test_file"; then
10125	case $deplibs_check_method in
10126	"file_magic "*)
10127	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10128	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10129	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10130	    $EGREP "$file_magic_regex" > /dev/null; then
10131	    :
10132	  else
10133	    cat <<_LT_EOF 1>&2
10134
10135*** Warning: the command libtool uses to detect shared libraries,
10136*** $file_magic_cmd, produces output that libtool cannot recognize.
10137*** The result is that libtool may fail to recognize shared libraries
10138*** as such.  This will affect the creation of libtool libraries that
10139*** depend on shared libraries, but programs linked with such libtool
10140*** libraries will work regardless of this problem.  Nevertheless, you
10141*** may want to report the problem to your system manager and/or to
10142*** bug-libtool@gnu.org
10143
10144_LT_EOF
10145	  fi ;;
10146	esac
10147      fi
10148      break
10149    fi
10150  done
10151  IFS=$lt_save_ifs
10152  MAGIC_CMD=$lt_save_MAGIC_CMD
10153  ;;
10154esac
10155fi
10156
10157MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10158if test -n "$MAGIC_CMD"; then
10159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10160$as_echo "$MAGIC_CMD" >&6; }
10161else
10162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164fi
10165
10166
10167
10168
10169
10170if test -z "$lt_cv_path_MAGIC_CMD"; then
10171  if test -n "$ac_tool_prefix"; then
10172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10173$as_echo_n "checking for file... " >&6; }
10174if ${lt_cv_path_MAGIC_CMD+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  case $MAGIC_CMD in
10178[\\/*] |  ?:[\\/]*)
10179  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10180  ;;
10181*)
10182  lt_save_MAGIC_CMD=$MAGIC_CMD
10183  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10184  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10185  for ac_dir in $ac_dummy; do
10186    IFS=$lt_save_ifs
10187    test -z "$ac_dir" && ac_dir=.
10188    if test -f "$ac_dir/file"; then
10189      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10190      if test -n "$file_magic_test_file"; then
10191	case $deplibs_check_method in
10192	"file_magic "*)
10193	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10194	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10195	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10196	    $EGREP "$file_magic_regex" > /dev/null; then
10197	    :
10198	  else
10199	    cat <<_LT_EOF 1>&2
10200
10201*** Warning: the command libtool uses to detect shared libraries,
10202*** $file_magic_cmd, produces output that libtool cannot recognize.
10203*** The result is that libtool may fail to recognize shared libraries
10204*** as such.  This will affect the creation of libtool libraries that
10205*** depend on shared libraries, but programs linked with such libtool
10206*** libraries will work regardless of this problem.  Nevertheless, you
10207*** may want to report the problem to your system manager and/or to
10208*** bug-libtool@gnu.org
10209
10210_LT_EOF
10211	  fi ;;
10212	esac
10213      fi
10214      break
10215    fi
10216  done
10217  IFS=$lt_save_ifs
10218  MAGIC_CMD=$lt_save_MAGIC_CMD
10219  ;;
10220esac
10221fi
10222
10223MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10224if test -n "$MAGIC_CMD"; then
10225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10226$as_echo "$MAGIC_CMD" >&6; }
10227else
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229$as_echo "no" >&6; }
10230fi
10231
10232
10233  else
10234    MAGIC_CMD=:
10235  fi
10236fi
10237
10238  fi
10239  ;;
10240esac
10241
10242# Use C for the default configuration in the libtool script
10243
10244lt_save_CC=$CC
10245ac_ext=c
10246ac_cpp='$CPP $CPPFLAGS'
10247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252# Source file extension for C test sources.
10253ac_ext=c
10254
10255# Object file extension for compiled C test sources.
10256objext=o
10257objext=$objext
10258
10259# Code to be used in simple compile tests
10260lt_simple_compile_test_code="int some_variable = 0;"
10261
10262# Code to be used in simple link tests
10263lt_simple_link_test_code='int main(){return(0);}'
10264
10265
10266
10267
10268
10269
10270
10271# If no C compiler was specified, use CC.
10272LTCC=${LTCC-"$CC"}
10273
10274# If no C compiler flags were specified, use CFLAGS.
10275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10276
10277# Allow CC to be a program name with arguments.
10278compiler=$CC
10279
10280# Save the default compiler, since it gets overwritten when the other
10281# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10282compiler_DEFAULT=$CC
10283
10284# save warnings/boilerplate of simple test code
10285ac_outfile=conftest.$ac_objext
10286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10288_lt_compiler_boilerplate=`cat conftest.err`
10289$RM conftest*
10290
10291ac_outfile=conftest.$ac_objext
10292echo "$lt_simple_link_test_code" >conftest.$ac_ext
10293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10294_lt_linker_boilerplate=`cat conftest.err`
10295$RM -r conftest*
10296
10297
10298## CAVEAT EMPTOR:
10299## There is no encapsulation within the following macros, do not change
10300## the running order or otherwise move them around unless you know exactly
10301## what you are doing...
10302if test -n "$compiler"; then
10303
10304lt_prog_compiler_no_builtin_flag=
10305
10306if test yes = "$GCC"; then
10307  case $cc_basename in
10308  nvcc*)
10309    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10310  *)
10311    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10312  esac
10313
10314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10315$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10316if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  lt_cv_prog_compiler_rtti_exceptions=no
10320   ac_outfile=conftest.$ac_objext
10321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10322   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10323   # Insert the option either (1) after the last *FLAGS variable, or
10324   # (2) before a word containing "conftest.", or (3) at the end.
10325   # Note that $ac_compile itself does not contain backslashes and begins
10326   # with a dollar sign (not a hyphen), so the echo should work correctly.
10327   # The option is referenced via a variable to avoid confusing sed.
10328   lt_compile=`echo "$ac_compile" | $SED \
10329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10331   -e 's:$: $lt_compiler_flag:'`
10332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10333   (eval "$lt_compile" 2>conftest.err)
10334   ac_status=$?
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   if (exit $ac_status) && test -s "$ac_outfile"; then
10338     # The compiler can only warn and ignore the option if not recognized
10339     # So say no if there are warnings other than the usual output.
10340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10343       lt_cv_prog_compiler_rtti_exceptions=yes
10344     fi
10345   fi
10346   $RM conftest*
10347
10348fi
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10350$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10351
10352if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10353    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10354else
10355    :
10356fi
10357
10358fi
10359
10360
10361
10362
10363
10364
10365  lt_prog_compiler_wl=
10366lt_prog_compiler_pic=
10367lt_prog_compiler_static=
10368
10369
10370  if test yes = "$GCC"; then
10371    lt_prog_compiler_wl='-Wl,'
10372    lt_prog_compiler_static='-static'
10373
10374    case $host_os in
10375      aix*)
10376      # All AIX code is PIC.
10377      if test ia64 = "$host_cpu"; then
10378	# AIX 5 now supports IA64 processor
10379	lt_prog_compiler_static='-Bstatic'
10380      fi
10381      lt_prog_compiler_pic='-fPIC'
10382      ;;
10383
10384    amigaos*)
10385      case $host_cpu in
10386      powerpc)
10387            # see comment about AmigaOS4 .so support
10388            lt_prog_compiler_pic='-fPIC'
10389        ;;
10390      m68k)
10391            # FIXME: we need at least 68020 code to build shared libraries, but
10392            # adding the '-m68020' flag to GCC prevents building anything better,
10393            # like '-m68040'.
10394            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10395        ;;
10396      esac
10397      ;;
10398
10399    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10400      # PIC is the default for these OSes.
10401      ;;
10402
10403    mingw* | cygwin* | pw32* | os2* | cegcc*)
10404      # This hack is so that the source file can tell whether it is being
10405      # built for inclusion in a dll (and should export symbols for example).
10406      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10407      # (--disable-auto-import) libraries
10408      lt_prog_compiler_pic='-DDLL_EXPORT'
10409      case $host_os in
10410      os2*)
10411	lt_prog_compiler_static='$wl-static'
10412	;;
10413      esac
10414      ;;
10415
10416    darwin* | rhapsody*)
10417      # PIC is the default on this platform
10418      # Common symbols not allowed in MH_DYLIB files
10419      lt_prog_compiler_pic='-fno-common'
10420      ;;
10421
10422    haiku*)
10423      # PIC is the default for Haiku.
10424      # The "-static" flag exists, but is broken.
10425      lt_prog_compiler_static=
10426      ;;
10427
10428    hpux*)
10429      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10430      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10431      # sets the default TLS model and affects inlining.
10432      case $host_cpu in
10433      hppa*64*)
10434	# +Z the default
10435	;;
10436      *)
10437	lt_prog_compiler_pic='-fPIC'
10438	;;
10439      esac
10440      ;;
10441
10442    interix[3-9]*)
10443      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10444      # Instead, we relocate shared libraries at runtime.
10445      ;;
10446
10447    msdosdjgpp*)
10448      # Just because we use GCC doesn't mean we suddenly get shared libraries
10449      # on systems that don't support them.
10450      lt_prog_compiler_can_build_shared=no
10451      enable_shared=no
10452      ;;
10453
10454    *nto* | *qnx*)
10455      # QNX uses GNU C++, but need to define -shared option too, otherwise
10456      # it will coredump.
10457      lt_prog_compiler_pic='-fPIC -shared'
10458      ;;
10459
10460    sysv4*MP*)
10461      if test -d /usr/nec; then
10462	lt_prog_compiler_pic=-Kconform_pic
10463      fi
10464      ;;
10465
10466    *)
10467      lt_prog_compiler_pic='-fPIC'
10468      ;;
10469    esac
10470
10471    case $cc_basename in
10472    nvcc*) # Cuda Compiler Driver 2.2
10473      lt_prog_compiler_wl='-Xlinker '
10474      if test -n "$lt_prog_compiler_pic"; then
10475        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10476      fi
10477      ;;
10478    esac
10479  else
10480    # PORTME Check for flag to pass linker flags through the system compiler.
10481    case $host_os in
10482    aix*)
10483      lt_prog_compiler_wl='-Wl,'
10484      if test ia64 = "$host_cpu"; then
10485	# AIX 5 now supports IA64 processor
10486	lt_prog_compiler_static='-Bstatic'
10487      else
10488	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10489      fi
10490      ;;
10491
10492    darwin* | rhapsody*)
10493      # PIC is the default on this platform
10494      # Common symbols not allowed in MH_DYLIB files
10495      lt_prog_compiler_pic='-fno-common'
10496      case $cc_basename in
10497      nagfor*)
10498        # NAG Fortran compiler
10499        lt_prog_compiler_wl='-Wl,-Wl,,'
10500        lt_prog_compiler_pic='-PIC'
10501        lt_prog_compiler_static='-Bstatic'
10502        ;;
10503      esac
10504      ;;
10505
10506    mingw* | cygwin* | pw32* | os2* | cegcc*)
10507      # This hack is so that the source file can tell whether it is being
10508      # built for inclusion in a dll (and should export symbols for example).
10509      lt_prog_compiler_pic='-DDLL_EXPORT'
10510      case $host_os in
10511      os2*)
10512	lt_prog_compiler_static='$wl-static'
10513	;;
10514      esac
10515      ;;
10516
10517    hpux9* | hpux10* | hpux11*)
10518      lt_prog_compiler_wl='-Wl,'
10519      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10520      # not for PA HP-UX.
10521      case $host_cpu in
10522      hppa*64*|ia64*)
10523	# +Z the default
10524	;;
10525      *)
10526	lt_prog_compiler_pic='+Z'
10527	;;
10528      esac
10529      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10530      lt_prog_compiler_static='$wl-a ${wl}archive'
10531      ;;
10532
10533    irix5* | irix6* | nonstopux*)
10534      lt_prog_compiler_wl='-Wl,'
10535      # PIC (with -KPIC) is the default.
10536      lt_prog_compiler_static='-non_shared'
10537      ;;
10538
10539    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10540      case $cc_basename in
10541      # old Intel for x86_64, which still supported -KPIC.
10542      ecc*)
10543	lt_prog_compiler_wl='-Wl,'
10544	lt_prog_compiler_pic='-KPIC'
10545	lt_prog_compiler_static='-static'
10546        ;;
10547      # icc used to be incompatible with GCC.
10548      # ICC 10 doesn't accept -KPIC any more.
10549      icc* | ifort*)
10550	lt_prog_compiler_wl='-Wl,'
10551	lt_prog_compiler_pic='-fPIC'
10552	lt_prog_compiler_static='-static'
10553        ;;
10554      # Lahey Fortran 8.1.
10555      lf95*)
10556	lt_prog_compiler_wl='-Wl,'
10557	lt_prog_compiler_pic='--shared'
10558	lt_prog_compiler_static='--static'
10559	;;
10560      nagfor*)
10561	# NAG Fortran compiler
10562	lt_prog_compiler_wl='-Wl,-Wl,,'
10563	lt_prog_compiler_pic='-PIC'
10564	lt_prog_compiler_static='-Bstatic'
10565	;;
10566      tcc*)
10567	# Fabrice Bellard et al's Tiny C Compiler
10568	lt_prog_compiler_wl='-Wl,'
10569	lt_prog_compiler_pic='-fPIC'
10570	lt_prog_compiler_static='-static'
10571	;;
10572      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10573        # Portland Group compilers (*not* the Pentium gcc compiler,
10574	# which looks to be a dead project)
10575	lt_prog_compiler_wl='-Wl,'
10576	lt_prog_compiler_pic='-fpic'
10577	lt_prog_compiler_static='-Bstatic'
10578        ;;
10579      ccc*)
10580        lt_prog_compiler_wl='-Wl,'
10581        # All Alpha code is PIC.
10582        lt_prog_compiler_static='-non_shared'
10583        ;;
10584      xl* | bgxl* | bgf* | mpixl*)
10585	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10586	lt_prog_compiler_wl='-Wl,'
10587	lt_prog_compiler_pic='-qpic'
10588	lt_prog_compiler_static='-qstaticlink'
10589	;;
10590      *)
10591	case `$CC -V 2>&1 | sed 5q` in
10592	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10593	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10594	  lt_prog_compiler_pic='-KPIC'
10595	  lt_prog_compiler_static='-Bstatic'
10596	  lt_prog_compiler_wl=''
10597	  ;;
10598	*Sun\ F* | *Sun*Fortran*)
10599	  lt_prog_compiler_pic='-KPIC'
10600	  lt_prog_compiler_static='-Bstatic'
10601	  lt_prog_compiler_wl='-Qoption ld '
10602	  ;;
10603	*Sun\ C*)
10604	  # Sun C 5.9
10605	  lt_prog_compiler_pic='-KPIC'
10606	  lt_prog_compiler_static='-Bstatic'
10607	  lt_prog_compiler_wl='-Wl,'
10608	  ;;
10609        *Intel*\ [CF]*Compiler*)
10610	  lt_prog_compiler_wl='-Wl,'
10611	  lt_prog_compiler_pic='-fPIC'
10612	  lt_prog_compiler_static='-static'
10613	  ;;
10614	*Portland\ Group*)
10615	  lt_prog_compiler_wl='-Wl,'
10616	  lt_prog_compiler_pic='-fpic'
10617	  lt_prog_compiler_static='-Bstatic'
10618	  ;;
10619	esac
10620	;;
10621      esac
10622      ;;
10623
10624    newsos6)
10625      lt_prog_compiler_pic='-KPIC'
10626      lt_prog_compiler_static='-Bstatic'
10627      ;;
10628
10629    *nto* | *qnx*)
10630      # QNX uses GNU C++, but need to define -shared option too, otherwise
10631      # it will coredump.
10632      lt_prog_compiler_pic='-fPIC -shared'
10633      ;;
10634
10635    osf3* | osf4* | osf5*)
10636      lt_prog_compiler_wl='-Wl,'
10637      # All OSF/1 code is PIC.
10638      lt_prog_compiler_static='-non_shared'
10639      ;;
10640
10641    rdos*)
10642      lt_prog_compiler_static='-non_shared'
10643      ;;
10644
10645    solaris*)
10646      lt_prog_compiler_pic='-KPIC'
10647      lt_prog_compiler_static='-Bstatic'
10648      case $cc_basename in
10649      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10650	lt_prog_compiler_wl='-Qoption ld ';;
10651      *)
10652	lt_prog_compiler_wl='-Wl,';;
10653      esac
10654      ;;
10655
10656    sunos4*)
10657      lt_prog_compiler_wl='-Qoption ld '
10658      lt_prog_compiler_pic='-PIC'
10659      lt_prog_compiler_static='-Bstatic'
10660      ;;
10661
10662    sysv4 | sysv4.2uw2* | sysv4.3*)
10663      lt_prog_compiler_wl='-Wl,'
10664      lt_prog_compiler_pic='-KPIC'
10665      lt_prog_compiler_static='-Bstatic'
10666      ;;
10667
10668    sysv4*MP*)
10669      if test -d /usr/nec; then
10670	lt_prog_compiler_pic='-Kconform_pic'
10671	lt_prog_compiler_static='-Bstatic'
10672      fi
10673      ;;
10674
10675    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10676      lt_prog_compiler_wl='-Wl,'
10677      lt_prog_compiler_pic='-KPIC'
10678      lt_prog_compiler_static='-Bstatic'
10679      ;;
10680
10681    unicos*)
10682      lt_prog_compiler_wl='-Wl,'
10683      lt_prog_compiler_can_build_shared=no
10684      ;;
10685
10686    uts4*)
10687      lt_prog_compiler_pic='-pic'
10688      lt_prog_compiler_static='-Bstatic'
10689      ;;
10690
10691    *)
10692      lt_prog_compiler_can_build_shared=no
10693      ;;
10694    esac
10695  fi
10696
10697case $host_os in
10698  # For platforms that do not support PIC, -DPIC is meaningless:
10699  *djgpp*)
10700    lt_prog_compiler_pic=
10701    ;;
10702  *)
10703    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10704    ;;
10705esac
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10708$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10709if ${lt_cv_prog_compiler_pic+:} false; then :
10710  $as_echo_n "(cached) " >&6
10711else
10712  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10713fi
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10715$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10716lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10717
10718#
10719# Check to make sure the PIC flag actually works.
10720#
10721if test -n "$lt_prog_compiler_pic"; then
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10723$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10724if ${lt_cv_prog_compiler_pic_works+:} false; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  lt_cv_prog_compiler_pic_works=no
10728   ac_outfile=conftest.$ac_objext
10729   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10730   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10731   # Insert the option either (1) after the last *FLAGS variable, or
10732   # (2) before a word containing "conftest.", or (3) at the end.
10733   # Note that $ac_compile itself does not contain backslashes and begins
10734   # with a dollar sign (not a hyphen), so the echo should work correctly.
10735   # The option is referenced via a variable to avoid confusing sed.
10736   lt_compile=`echo "$ac_compile" | $SED \
10737   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10739   -e 's:$: $lt_compiler_flag:'`
10740   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10741   (eval "$lt_compile" 2>conftest.err)
10742   ac_status=$?
10743   cat conftest.err >&5
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   if (exit $ac_status) && test -s "$ac_outfile"; then
10746     # The compiler can only warn and ignore the option if not recognized
10747     # So say no if there are warnings other than the usual output.
10748     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10749     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10750     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10751       lt_cv_prog_compiler_pic_works=yes
10752     fi
10753   fi
10754   $RM conftest*
10755
10756fi
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10758$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10759
10760if test yes = "$lt_cv_prog_compiler_pic_works"; then
10761    case $lt_prog_compiler_pic in
10762     "" | " "*) ;;
10763     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10764     esac
10765else
10766    lt_prog_compiler_pic=
10767     lt_prog_compiler_can_build_shared=no
10768fi
10769
10770fi
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782#
10783# Check to make sure the static flag actually works.
10784#
10785wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10787$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10788if ${lt_cv_prog_compiler_static_works+:} false; then :
10789  $as_echo_n "(cached) " >&6
10790else
10791  lt_cv_prog_compiler_static_works=no
10792   save_LDFLAGS=$LDFLAGS
10793   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10794   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10795   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10796     # The linker can only warn and ignore the option if not recognized
10797     # So say no if there are warnings
10798     if test -s conftest.err; then
10799       # Append any errors to the config.log.
10800       cat conftest.err 1>&5
10801       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10802       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10803       if diff conftest.exp conftest.er2 >/dev/null; then
10804         lt_cv_prog_compiler_static_works=yes
10805       fi
10806     else
10807       lt_cv_prog_compiler_static_works=yes
10808     fi
10809   fi
10810   $RM -r conftest*
10811   LDFLAGS=$save_LDFLAGS
10812
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10815$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10816
10817if test yes = "$lt_cv_prog_compiler_static_works"; then
10818    :
10819else
10820    lt_prog_compiler_static=
10821fi
10822
10823
10824
10825
10826
10827
10828
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10830$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10831if ${lt_cv_prog_compiler_c_o+:} false; then :
10832  $as_echo_n "(cached) " >&6
10833else
10834  lt_cv_prog_compiler_c_o=no
10835   $RM -r conftest 2>/dev/null
10836   mkdir conftest
10837   cd conftest
10838   mkdir out
10839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10840
10841   lt_compiler_flag="-o out/conftest2.$ac_objext"
10842   # Insert the option either (1) after the last *FLAGS variable, or
10843   # (2) before a word containing "conftest.", or (3) at the end.
10844   # Note that $ac_compile itself does not contain backslashes and begins
10845   # with a dollar sign (not a hyphen), so the echo should work correctly.
10846   lt_compile=`echo "$ac_compile" | $SED \
10847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10849   -e 's:$: $lt_compiler_flag:'`
10850   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10851   (eval "$lt_compile" 2>out/conftest.err)
10852   ac_status=$?
10853   cat out/conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10856   then
10857     # The compiler can only warn and ignore the option if not recognized
10858     # So say no if there are warnings
10859     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10860     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10861     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10862       lt_cv_prog_compiler_c_o=yes
10863     fi
10864   fi
10865   chmod u+w . 2>&5
10866   $RM conftest*
10867   # SGI C++ compiler will create directory out/ii_files/ for
10868   # template instantiation
10869   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10870   $RM out/* && rmdir out
10871   cd ..
10872   $RM -r conftest
10873   $RM conftest*
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10877$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10878
10879
10880
10881
10882
10883
10884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10886if ${lt_cv_prog_compiler_c_o+:} false; then :
10887  $as_echo_n "(cached) " >&6
10888else
10889  lt_cv_prog_compiler_c_o=no
10890   $RM -r conftest 2>/dev/null
10891   mkdir conftest
10892   cd conftest
10893   mkdir out
10894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10895
10896   lt_compiler_flag="-o out/conftest2.$ac_objext"
10897   # Insert the option either (1) after the last *FLAGS variable, or
10898   # (2) before a word containing "conftest.", or (3) at the end.
10899   # Note that $ac_compile itself does not contain backslashes and begins
10900   # with a dollar sign (not a hyphen), so the echo should work correctly.
10901   lt_compile=`echo "$ac_compile" | $SED \
10902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10904   -e 's:$: $lt_compiler_flag:'`
10905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10906   (eval "$lt_compile" 2>out/conftest.err)
10907   ac_status=$?
10908   cat out/conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10911   then
10912     # The compiler can only warn and ignore the option if not recognized
10913     # So say no if there are warnings
10914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10917       lt_cv_prog_compiler_c_o=yes
10918     fi
10919   fi
10920   chmod u+w . 2>&5
10921   $RM conftest*
10922   # SGI C++ compiler will create directory out/ii_files/ for
10923   # template instantiation
10924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10925   $RM out/* && rmdir out
10926   cd ..
10927   $RM -r conftest
10928   $RM conftest*
10929
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10933
10934
10935
10936
10937hard_links=nottested
10938if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10939  # do not overwrite the value of need_locks provided by the user
10940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10941$as_echo_n "checking if we can lock with hard links... " >&6; }
10942  hard_links=yes
10943  $RM conftest*
10944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10945  touch conftest.a
10946  ln conftest.a conftest.b 2>&5 || hard_links=no
10947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10949$as_echo "$hard_links" >&6; }
10950  if test no = "$hard_links"; then
10951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10952$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10953    need_locks=warn
10954  fi
10955else
10956  need_locks=no
10957fi
10958
10959
10960
10961
10962
10963
10964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10966
10967  runpath_var=
10968  allow_undefined_flag=
10969  always_export_symbols=no
10970  archive_cmds=
10971  archive_expsym_cmds=
10972  compiler_needs_object=no
10973  enable_shared_with_static_runtimes=no
10974  export_dynamic_flag_spec=
10975  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10976  hardcode_automatic=no
10977  hardcode_direct=no
10978  hardcode_direct_absolute=no
10979  hardcode_libdir_flag_spec=
10980  hardcode_libdir_separator=
10981  hardcode_minus_L=no
10982  hardcode_shlibpath_var=unsupported
10983  inherit_rpath=no
10984  link_all_deplibs=unknown
10985  module_cmds=
10986  module_expsym_cmds=
10987  old_archive_from_new_cmds=
10988  old_archive_from_expsyms_cmds=
10989  thread_safe_flag_spec=
10990  whole_archive_flag_spec=
10991  # include_expsyms should be a list of space-separated symbols to be *always*
10992  # included in the symbol list
10993  include_expsyms=
10994  # exclude_expsyms can be an extended regexp of symbols to exclude
10995  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10996  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10997  # as well as any symbol that contains 'd'.
10998  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10999  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11000  # platforms (ab)use it in PIC code, but their linkers get confused if
11001  # the symbol is explicitly referenced.  Since portable code cannot
11002  # rely on this symbol name, it's probably fine to never include it in
11003  # preloaded symbol tables.
11004  # Exclude shared library initialization/finalization symbols.
11005  extract_expsyms_cmds=
11006
11007  case $host_os in
11008  cygwin* | mingw* | pw32* | cegcc*)
11009    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11010    # When not using gcc, we currently assume that we are using
11011    # Microsoft Visual C++.
11012    if test yes != "$GCC"; then
11013      with_gnu_ld=no
11014    fi
11015    ;;
11016  interix*)
11017    # we just hope/assume this is gcc and not c89 (= MSVC++)
11018    with_gnu_ld=yes
11019    ;;
11020  openbsd* | bitrig*)
11021    with_gnu_ld=no
11022    ;;
11023  esac
11024
11025  ld_shlibs=yes
11026
11027  # On some targets, GNU ld is compatible enough with the native linker
11028  # that we're better off using the native interface for both.
11029  lt_use_gnu_ld_interface=no
11030  if test yes = "$with_gnu_ld"; then
11031    case $host_os in
11032      aix*)
11033	# The AIX port of GNU ld has always aspired to compatibility
11034	# with the native linker.  However, as the warning in the GNU ld
11035	# block says, versions before 2.19.5* couldn't really create working
11036	# shared libraries, regardless of the interface used.
11037	case `$LD -v 2>&1` in
11038	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11039	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11040	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11041	  *)
11042	    lt_use_gnu_ld_interface=yes
11043	    ;;
11044	esac
11045	;;
11046      *)
11047	lt_use_gnu_ld_interface=yes
11048	;;
11049    esac
11050  fi
11051
11052  if test yes = "$lt_use_gnu_ld_interface"; then
11053    # If archive_cmds runs LD, not CC, wlarc should be empty
11054    wlarc='$wl'
11055
11056    # Set some defaults for GNU ld with shared library support. These
11057    # are reset later if shared libraries are not supported. Putting them
11058    # here allows them to be overridden if necessary.
11059    runpath_var=LD_RUN_PATH
11060    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11061    export_dynamic_flag_spec='$wl--export-dynamic'
11062    # ancient GNU ld didn't support --whole-archive et. al.
11063    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11064      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11065    else
11066      whole_archive_flag_spec=
11067    fi
11068    supports_anon_versioning=no
11069    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11070      *GNU\ gold*) supports_anon_versioning=yes ;;
11071      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11072      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11073      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11074      *\ 2.11.*) ;; # other 2.11 versions
11075      *) supports_anon_versioning=yes ;;
11076    esac
11077
11078    # See if GNU ld supports shared libraries.
11079    case $host_os in
11080    aix[3-9]*)
11081      # On AIX/PPC, the GNU linker is very broken
11082      if test ia64 != "$host_cpu"; then
11083	ld_shlibs=no
11084	cat <<_LT_EOF 1>&2
11085
11086*** Warning: the GNU linker, at least up to release 2.19, is reported
11087*** to be unable to reliably create shared libraries on AIX.
11088*** Therefore, libtool is disabling shared libraries support.  If you
11089*** really care for shared libraries, you may want to install binutils
11090*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11091*** You will then need to restart the configuration process.
11092
11093_LT_EOF
11094      fi
11095      ;;
11096
11097    amigaos*)
11098      case $host_cpu in
11099      powerpc)
11100            # see comment about AmigaOS4 .so support
11101            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11102            archive_expsym_cmds=''
11103        ;;
11104      m68k)
11105            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)'
11106            hardcode_libdir_flag_spec='-L$libdir'
11107            hardcode_minus_L=yes
11108        ;;
11109      esac
11110      ;;
11111
11112    beos*)
11113      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11114	allow_undefined_flag=unsupported
11115	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11116	# support --undefined.  This deserves some investigation.  FIXME
11117	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11118      else
11119	ld_shlibs=no
11120      fi
11121      ;;
11122
11123    cygwin* | mingw* | pw32* | cegcc*)
11124      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11125      # as there is no search path for DLLs.
11126      hardcode_libdir_flag_spec='-L$libdir'
11127      export_dynamic_flag_spec='$wl--export-all-symbols'
11128      allow_undefined_flag=unsupported
11129      always_export_symbols=no
11130      enable_shared_with_static_runtimes=yes
11131      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'
11132      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11133
11134      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11135        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11136	# If the export-symbols file already is a .def file, use it as
11137	# is; otherwise, prepend EXPORTS...
11138	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11139          cp $export_symbols $output_objdir/$soname.def;
11140        else
11141          echo EXPORTS > $output_objdir/$soname.def;
11142          cat $export_symbols >> $output_objdir/$soname.def;
11143        fi~
11144        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11145      else
11146	ld_shlibs=no
11147      fi
11148      ;;
11149
11150    haiku*)
11151      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11152      link_all_deplibs=yes
11153      ;;
11154
11155    os2*)
11156      hardcode_libdir_flag_spec='-L$libdir'
11157      hardcode_minus_L=yes
11158      allow_undefined_flag=unsupported
11159      shrext_cmds=.dll
11160      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11161	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11162	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11163	$ECHO EXPORTS >> $output_objdir/$libname.def~
11164	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11165	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11166	emximp -o $lib $output_objdir/$libname.def'
11167      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11168	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11169	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11170	$ECHO EXPORTS >> $output_objdir/$libname.def~
11171	prefix_cmds="$SED"~
11172	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11173	  prefix_cmds="$prefix_cmds -e 1d";
11174	fi~
11175	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11176	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11177	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11178	emximp -o $lib $output_objdir/$libname.def'
11179      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11180      enable_shared_with_static_runtimes=yes
11181      ;;
11182
11183    interix[3-9]*)
11184      hardcode_direct=no
11185      hardcode_shlibpath_var=no
11186      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11187      export_dynamic_flag_spec='$wl-E'
11188      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11189      # Instead, shared libraries are loaded at an image base (0x10000000 by
11190      # default) and relocated if they conflict, which is a slow very memory
11191      # consuming and fragmenting process.  To avoid this, we pick a random,
11192      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11193      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11194      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11195      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'
11196      ;;
11197
11198    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11199      tmp_diet=no
11200      if test linux-dietlibc = "$host_os"; then
11201	case $cc_basename in
11202	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11203	esac
11204      fi
11205      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11206	 && test no = "$tmp_diet"
11207      then
11208	tmp_addflag=' $pic_flag'
11209	tmp_sharedflag='-shared'
11210	case $cc_basename,$host_cpu in
11211        pgcc*)				# Portland Group C compiler
11212	  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'
11213	  tmp_addflag=' $pic_flag'
11214	  ;;
11215	pgf77* | pgf90* | pgf95* | pgfortran*)
11216					# Portland Group f77 and f90 compilers
11217	  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'
11218	  tmp_addflag=' $pic_flag -Mnomain' ;;
11219	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11220	  tmp_addflag=' -i_dynamic' ;;
11221	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11222	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11223	ifc* | ifort*)			# Intel Fortran compiler
11224	  tmp_addflag=' -nofor_main' ;;
11225	lf95*)				# Lahey Fortran 8.1
11226	  whole_archive_flag_spec=
11227	  tmp_sharedflag='--shared' ;;
11228        nagfor*)                        # NAGFOR 5.3
11229          tmp_sharedflag='-Wl,-shared' ;;
11230	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11231	  tmp_sharedflag='-qmkshrobj'
11232	  tmp_addflag= ;;
11233	nvcc*)	# Cuda Compiler Driver 2.2
11234	  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'
11235	  compiler_needs_object=yes
11236	  ;;
11237	esac
11238	case `$CC -V 2>&1 | sed 5q` in
11239	*Sun\ C*)			# Sun C 5.9
11240	  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'
11241	  compiler_needs_object=yes
11242	  tmp_sharedflag='-G' ;;
11243	*Sun\ F*)			# Sun Fortran 8.3
11244	  tmp_sharedflag='-G' ;;
11245	esac
11246	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11247
11248        if test yes = "$supports_anon_versioning"; then
11249          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11250            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11251            echo "local: *; };" >> $output_objdir/$libname.ver~
11252            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11253        fi
11254
11255	case $cc_basename in
11256	tcc*)
11257	  export_dynamic_flag_spec='-rdynamic'
11258	  ;;
11259	xlf* | bgf* | bgxlf* | mpixlf*)
11260	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11261	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11262	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11263	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11264	  if test yes = "$supports_anon_versioning"; then
11265	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11266              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11267              echo "local: *; };" >> $output_objdir/$libname.ver~
11268              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11269	  fi
11270	  ;;
11271	esac
11272      else
11273        ld_shlibs=no
11274      fi
11275      ;;
11276
11277    netbsd*)
11278      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11279	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11280	wlarc=
11281      else
11282	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11283	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11284      fi
11285      ;;
11286
11287    solaris*)
11288      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11289	ld_shlibs=no
11290	cat <<_LT_EOF 1>&2
11291
11292*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11293*** create shared libraries on Solaris systems.  Therefore, libtool
11294*** is disabling shared libraries support.  We urge you to upgrade GNU
11295*** binutils to release 2.9.1 or newer.  Another option is to modify
11296*** your PATH or compiler configuration so that the native linker is
11297*** used, and then restart.
11298
11299_LT_EOF
11300      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11301	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11302	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11303      else
11304	ld_shlibs=no
11305      fi
11306      ;;
11307
11308    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11309      case `$LD -v 2>&1` in
11310        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11311	ld_shlibs=no
11312	cat <<_LT_EOF 1>&2
11313
11314*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11315*** reliably create shared libraries on SCO systems.  Therefore, libtool
11316*** is disabling shared libraries support.  We urge you to upgrade GNU
11317*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11318*** your PATH or compiler configuration so that the native linker is
11319*** used, and then restart.
11320
11321_LT_EOF
11322	;;
11323	*)
11324	  # For security reasons, it is highly recommended that you always
11325	  # use absolute paths for naming shared libraries, and exclude the
11326	  # DT_RUNPATH tag from executables and libraries.  But doing so
11327	  # requires that you compile everything twice, which is a pain.
11328	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11329	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11330	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11331	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11332	  else
11333	    ld_shlibs=no
11334	  fi
11335	;;
11336      esac
11337      ;;
11338
11339    sunos4*)
11340      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11341      wlarc=
11342      hardcode_direct=yes
11343      hardcode_shlibpath_var=no
11344      ;;
11345
11346    *)
11347      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11348	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11349	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11350      else
11351	ld_shlibs=no
11352      fi
11353      ;;
11354    esac
11355
11356    if test no = "$ld_shlibs"; then
11357      runpath_var=
11358      hardcode_libdir_flag_spec=
11359      export_dynamic_flag_spec=
11360      whole_archive_flag_spec=
11361    fi
11362  else
11363    # PORTME fill in a description of your system's linker (not GNU ld)
11364    case $host_os in
11365    aix3*)
11366      allow_undefined_flag=unsupported
11367      always_export_symbols=yes
11368      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'
11369      # Note: this linker hardcodes the directories in LIBPATH if there
11370      # are no directories specified by -L.
11371      hardcode_minus_L=yes
11372      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11373	# Neither direct hardcoding nor static linking is supported with a
11374	# broken collect2.
11375	hardcode_direct=unsupported
11376      fi
11377      ;;
11378
11379    aix[4-9]*)
11380      if test ia64 = "$host_cpu"; then
11381	# On IA64, the linker does run time linking by default, so we don't
11382	# have to do anything special.
11383	aix_use_runtimelinking=no
11384	exp_sym_flag='-Bexport'
11385	no_entry_flag=
11386      else
11387	# If we're using GNU nm, then we don't want the "-C" option.
11388	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11389	# Without the "-l" option, or with the "-B" option, AIX nm treats
11390	# weak defined symbols like other global defined symbols, whereas
11391	# GNU nm marks them as "W".
11392	# While the 'weak' keyword is ignored in the Export File, we need
11393	# it in the Import File for the 'aix-soname' feature, so we have
11394	# to replace the "-B" option with "-P" for AIX nm.
11395	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11396	  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'
11397	else
11398	  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'
11399	fi
11400	aix_use_runtimelinking=no
11401
11402	# Test if we are trying to use run time linking or normal
11403	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11404	# have runtime linking enabled, and use it for executables.
11405	# For shared libraries, we enable/disable runtime linking
11406	# depending on the kind of the shared library created -
11407	# when "with_aix_soname,aix_use_runtimelinking" is:
11408	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11409	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11410	#            lib.a           static archive
11411	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11412	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11413	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11414	#            lib.a(lib.so.V) shared, rtl:no
11415	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11416	#            lib.a           static archive
11417	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11418	  for ld_flag in $LDFLAGS; do
11419	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11420	    aix_use_runtimelinking=yes
11421	    break
11422	  fi
11423	  done
11424	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11425	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11426	    # so we don't have lib.a shared libs to link our executables.
11427	    # We have to force runtime linking in this case.
11428	    aix_use_runtimelinking=yes
11429	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11430	  fi
11431	  ;;
11432	esac
11433
11434	exp_sym_flag='-bexport'
11435	no_entry_flag='-bnoentry'
11436      fi
11437
11438      # When large executables or shared objects are built, AIX ld can
11439      # have problems creating the table of contents.  If linking a library
11440      # or program results in "error TOC overflow" add -mminimal-toc to
11441      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11442      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11443
11444      archive_cmds=''
11445      hardcode_direct=yes
11446      hardcode_direct_absolute=yes
11447      hardcode_libdir_separator=':'
11448      link_all_deplibs=yes
11449      file_list_spec='$wl-f,'
11450      case $with_aix_soname,$aix_use_runtimelinking in
11451      aix,*) ;; # traditional, no import file
11452      svr4,* | *,yes) # use import file
11453	# The Import File defines what to hardcode.
11454	hardcode_direct=no
11455	hardcode_direct_absolute=no
11456	;;
11457      esac
11458
11459      if test yes = "$GCC"; then
11460	case $host_os in aix4.[012]|aix4.[012].*)
11461	# We only want to do this on AIX 4.2 and lower, the check
11462	# below for broken collect2 doesn't work under 4.3+
11463	  collect2name=`$CC -print-prog-name=collect2`
11464	  if test -f "$collect2name" &&
11465	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11466	  then
11467	  # We have reworked collect2
11468	  :
11469	  else
11470	  # We have old collect2
11471	  hardcode_direct=unsupported
11472	  # It fails to find uninstalled libraries when the uninstalled
11473	  # path is not listed in the libpath.  Setting hardcode_minus_L
11474	  # to unsupported forces relinking
11475	  hardcode_minus_L=yes
11476	  hardcode_libdir_flag_spec='-L$libdir'
11477	  hardcode_libdir_separator=
11478	  fi
11479	  ;;
11480	esac
11481	shared_flag='-shared'
11482	if test yes = "$aix_use_runtimelinking"; then
11483	  shared_flag="$shared_flag "'$wl-G'
11484	fi
11485	# Need to ensure runtime linking is disabled for the traditional
11486	# shared library, or the linker may eventually find shared libraries
11487	# /with/ Import File - we do not want to mix them.
11488	shared_flag_aix='-shared'
11489	shared_flag_svr4='-shared $wl-G'
11490      else
11491	# not using gcc
11492	if test ia64 = "$host_cpu"; then
11493	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11494	# chokes on -Wl,-G. The following line is correct:
11495	  shared_flag='-G'
11496	else
11497	  if test yes = "$aix_use_runtimelinking"; then
11498	    shared_flag='$wl-G'
11499	  else
11500	    shared_flag='$wl-bM:SRE'
11501	  fi
11502	  shared_flag_aix='$wl-bM:SRE'
11503	  shared_flag_svr4='$wl-G'
11504	fi
11505      fi
11506
11507      export_dynamic_flag_spec='$wl-bexpall'
11508      # It seems that -bexpall does not export symbols beginning with
11509      # underscore (_), so it is better to generate a list of symbols to export.
11510      always_export_symbols=yes
11511      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11512	# Warning - without using the other runtime loading flags (-brtl),
11513	# -berok will link without error, but may produce a broken library.
11514	allow_undefined_flag='-berok'
11515        # Determine the default libpath from the value encoded in an
11516        # empty executable.
11517        if test set = "${lt_cv_aix_libpath+set}"; then
11518  aix_libpath=$lt_cv_aix_libpath
11519else
11520  if ${lt_cv_aix_libpath_+:} false; then :
11521  $as_echo_n "(cached) " >&6
11522else
11523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524/* end confdefs.h.  */
11525
11526int
11527main ()
11528{
11529
11530  ;
11531  return 0;
11532}
11533_ACEOF
11534if ac_fn_c_try_link "$LINENO"; then :
11535
11536  lt_aix_libpath_sed='
11537      /Import File Strings/,/^$/ {
11538	  /^0/ {
11539	      s/^0  *\([^ ]*\) *$/\1/
11540	      p
11541	  }
11542      }'
11543  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11544  # Check for a 64-bit object if we didn't find anything.
11545  if test -z "$lt_cv_aix_libpath_"; then
11546    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11547  fi
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551  if test -z "$lt_cv_aix_libpath_"; then
11552    lt_cv_aix_libpath_=/usr/lib:/lib
11553  fi
11554
11555fi
11556
11557  aix_libpath=$lt_cv_aix_libpath_
11558fi
11559
11560        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11561        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
11562      else
11563	if test ia64 = "$host_cpu"; then
11564	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11565	  allow_undefined_flag="-z nodefs"
11566	  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"
11567	else
11568	 # Determine the default libpath from the value encoded in an
11569	 # empty executable.
11570	 if test set = "${lt_cv_aix_libpath+set}"; then
11571  aix_libpath=$lt_cv_aix_libpath
11572else
11573  if ${lt_cv_aix_libpath_+:} false; then :
11574  $as_echo_n "(cached) " >&6
11575else
11576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h.  */
11578
11579int
11580main ()
11581{
11582
11583  ;
11584  return 0;
11585}
11586_ACEOF
11587if ac_fn_c_try_link "$LINENO"; then :
11588
11589  lt_aix_libpath_sed='
11590      /Import File Strings/,/^$/ {
11591	  /^0/ {
11592	      s/^0  *\([^ ]*\) *$/\1/
11593	      p
11594	  }
11595      }'
11596  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11597  # Check for a 64-bit object if we didn't find anything.
11598  if test -z "$lt_cv_aix_libpath_"; then
11599    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11600  fi
11601fi
11602rm -f core conftest.err conftest.$ac_objext \
11603    conftest$ac_exeext conftest.$ac_ext
11604  if test -z "$lt_cv_aix_libpath_"; then
11605    lt_cv_aix_libpath_=/usr/lib:/lib
11606  fi
11607
11608fi
11609
11610  aix_libpath=$lt_cv_aix_libpath_
11611fi
11612
11613	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11614	  # Warning - without using the other run time loading flags,
11615	  # -berok will link without error, but may produce a broken library.
11616	  no_undefined_flag=' $wl-bernotok'
11617	  allow_undefined_flag=' $wl-berok'
11618	  if test yes = "$with_gnu_ld"; then
11619	    # We only use this code for GNU lds that support --whole-archive.
11620	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11621	  else
11622	    # Exported symbols can be pulled into shared objects from archives
11623	    whole_archive_flag_spec='$convenience'
11624	  fi
11625	  archive_cmds_need_lc=yes
11626	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11627	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11628	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11629	  if test svr4 != "$with_aix_soname"; then
11630	    # This is similar to how AIX traditionally builds its shared libraries.
11631	    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'
11632	  fi
11633	  if test aix != "$with_aix_soname"; then
11634	    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'
11635	  else
11636	    # used by -dlpreopen to get the symbols
11637	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11638	  fi
11639	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11640	fi
11641      fi
11642      ;;
11643
11644    amigaos*)
11645      case $host_cpu in
11646      powerpc)
11647            # see comment about AmigaOS4 .so support
11648            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11649            archive_expsym_cmds=''
11650        ;;
11651      m68k)
11652            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)'
11653            hardcode_libdir_flag_spec='-L$libdir'
11654            hardcode_minus_L=yes
11655        ;;
11656      esac
11657      ;;
11658
11659    bsdi[45]*)
11660      export_dynamic_flag_spec=-rdynamic
11661      ;;
11662
11663    cygwin* | mingw* | pw32* | cegcc*)
11664      # When not using gcc, we currently assume that we are using
11665      # Microsoft Visual C++.
11666      # hardcode_libdir_flag_spec is actually meaningless, as there is
11667      # no search path for DLLs.
11668      case $cc_basename in
11669      cl*)
11670	# Native MSVC
11671	hardcode_libdir_flag_spec=' '
11672	allow_undefined_flag=unsupported
11673	always_export_symbols=yes
11674	file_list_spec='@'
11675	# Tell ltmain to make .lib files, not .a files.
11676	libext=lib
11677	# Tell ltmain to make .dll files, not .so files.
11678	shrext_cmds=.dll
11679	# FIXME: Setting linknames here is a bad hack.
11680	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11681	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11682            cp "$export_symbols" "$output_objdir/$soname.def";
11683            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11684          else
11685            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11686          fi~
11687          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11688          linknames='
11689	# The linker will not automatically build a static lib if we build a DLL.
11690	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11691	enable_shared_with_static_runtimes=yes
11692	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11693	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11694	# Don't use ranlib
11695	old_postinstall_cmds='chmod 644 $oldlib'
11696	postlink_cmds='lt_outputfile="@OUTPUT@"~
11697          lt_tool_outputfile="@TOOL_OUTPUT@"~
11698          case $lt_outputfile in
11699            *.exe|*.EXE) ;;
11700            *)
11701              lt_outputfile=$lt_outputfile.exe
11702              lt_tool_outputfile=$lt_tool_outputfile.exe
11703              ;;
11704          esac~
11705          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11706            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11707            $RM "$lt_outputfile.manifest";
11708          fi'
11709	;;
11710      *)
11711	# Assume MSVC wrapper
11712	hardcode_libdir_flag_spec=' '
11713	allow_undefined_flag=unsupported
11714	# Tell ltmain to make .lib files, not .a files.
11715	libext=lib
11716	# Tell ltmain to make .dll files, not .so files.
11717	shrext_cmds=.dll
11718	# FIXME: Setting linknames here is a bad hack.
11719	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11720	# The linker will automatically build a .lib file if we build a DLL.
11721	old_archive_from_new_cmds='true'
11722	# FIXME: Should let the user specify the lib program.
11723	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11724	enable_shared_with_static_runtimes=yes
11725	;;
11726      esac
11727      ;;
11728
11729    darwin* | rhapsody*)
11730
11731
11732  archive_cmds_need_lc=no
11733  hardcode_direct=no
11734  hardcode_automatic=yes
11735  hardcode_shlibpath_var=unsupported
11736  if test yes = "$lt_cv_ld_force_load"; then
11737    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\"`'
11738
11739  else
11740    whole_archive_flag_spec=''
11741  fi
11742  link_all_deplibs=yes
11743  allow_undefined_flag=$_lt_dar_allow_undefined
11744  case $cc_basename in
11745     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11746     *) _lt_dar_can_shared=$GCC ;;
11747  esac
11748  if test yes = "$_lt_dar_can_shared"; then
11749    output_verbose_link_cmd=func_echo_all
11750    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11751    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11752    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"
11753    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"
11754
11755  else
11756  ld_shlibs=no
11757  fi
11758
11759      ;;
11760
11761    dgux*)
11762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11763      hardcode_libdir_flag_spec='-L$libdir'
11764      hardcode_shlibpath_var=no
11765      ;;
11766
11767    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11768    # support.  Future versions do this automatically, but an explicit c++rt0.o
11769    # does not break anything, and helps significantly (at the cost of a little
11770    # extra space).
11771    freebsd2.2*)
11772      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11773      hardcode_libdir_flag_spec='-R$libdir'
11774      hardcode_direct=yes
11775      hardcode_shlibpath_var=no
11776      ;;
11777
11778    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11779    freebsd2.*)
11780      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11781      hardcode_direct=yes
11782      hardcode_minus_L=yes
11783      hardcode_shlibpath_var=no
11784      ;;
11785
11786    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11787    freebsd* | dragonfly*)
11788      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11789      hardcode_libdir_flag_spec='-R$libdir'
11790      hardcode_direct=yes
11791      hardcode_shlibpath_var=no
11792      ;;
11793
11794    hpux9*)
11795      if test yes = "$GCC"; then
11796	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'
11797      else
11798	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'
11799      fi
11800      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11801      hardcode_libdir_separator=:
11802      hardcode_direct=yes
11803
11804      # hardcode_minus_L: Not really in the search PATH,
11805      # but as the default location of the library.
11806      hardcode_minus_L=yes
11807      export_dynamic_flag_spec='$wl-E'
11808      ;;
11809
11810    hpux10*)
11811      if test yes,no = "$GCC,$with_gnu_ld"; then
11812	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11813      else
11814	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11815      fi
11816      if test no = "$with_gnu_ld"; then
11817	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11818	hardcode_libdir_separator=:
11819	hardcode_direct=yes
11820	hardcode_direct_absolute=yes
11821	export_dynamic_flag_spec='$wl-E'
11822	# hardcode_minus_L: Not really in the search PATH,
11823	# but as the default location of the library.
11824	hardcode_minus_L=yes
11825      fi
11826      ;;
11827
11828    hpux11*)
11829      if test yes,no = "$GCC,$with_gnu_ld"; then
11830	case $host_cpu in
11831	hppa*64*)
11832	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11833	  ;;
11834	ia64*)
11835	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11836	  ;;
11837	*)
11838	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11839	  ;;
11840	esac
11841      else
11842	case $host_cpu in
11843	hppa*64*)
11844	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11845	  ;;
11846	ia64*)
11847	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11848	  ;;
11849	*)
11850
11851	  # Older versions of the 11.00 compiler do not understand -b yet
11852	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11853	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11854$as_echo_n "checking if $CC understands -b... " >&6; }
11855if ${lt_cv_prog_compiler__b+:} false; then :
11856  $as_echo_n "(cached) " >&6
11857else
11858  lt_cv_prog_compiler__b=no
11859   save_LDFLAGS=$LDFLAGS
11860   LDFLAGS="$LDFLAGS -b"
11861   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11862   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11863     # The linker can only warn and ignore the option if not recognized
11864     # So say no if there are warnings
11865     if test -s conftest.err; then
11866       # Append any errors to the config.log.
11867       cat conftest.err 1>&5
11868       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11869       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11870       if diff conftest.exp conftest.er2 >/dev/null; then
11871         lt_cv_prog_compiler__b=yes
11872       fi
11873     else
11874       lt_cv_prog_compiler__b=yes
11875     fi
11876   fi
11877   $RM -r conftest*
11878   LDFLAGS=$save_LDFLAGS
11879
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11882$as_echo "$lt_cv_prog_compiler__b" >&6; }
11883
11884if test yes = "$lt_cv_prog_compiler__b"; then
11885    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11886else
11887    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11888fi
11889
11890	  ;;
11891	esac
11892      fi
11893      if test no = "$with_gnu_ld"; then
11894	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11895	hardcode_libdir_separator=:
11896
11897	case $host_cpu in
11898	hppa*64*|ia64*)
11899	  hardcode_direct=no
11900	  hardcode_shlibpath_var=no
11901	  ;;
11902	*)
11903	  hardcode_direct=yes
11904	  hardcode_direct_absolute=yes
11905	  export_dynamic_flag_spec='$wl-E'
11906
11907	  # hardcode_minus_L: Not really in the search PATH,
11908	  # but as the default location of the library.
11909	  hardcode_minus_L=yes
11910	  ;;
11911	esac
11912      fi
11913      ;;
11914
11915    irix5* | irix6* | nonstopux*)
11916      if test yes = "$GCC"; then
11917	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'
11918	# Try to use the -exported_symbol ld option, if it does not
11919	# work, assume that -exports_file does not work either and
11920	# implicitly export all symbols.
11921	# This should be the same for all languages, so no per-tag cache variable.
11922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11923$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11924if ${lt_cv_irix_exported_symbol+:} false; then :
11925  $as_echo_n "(cached) " >&6
11926else
11927  save_LDFLAGS=$LDFLAGS
11928	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11929	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930/* end confdefs.h.  */
11931int foo (void) { return 0; }
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  lt_cv_irix_exported_symbol=yes
11935else
11936  lt_cv_irix_exported_symbol=no
11937fi
11938rm -f core conftest.err conftest.$ac_objext \
11939    conftest$ac_exeext conftest.$ac_ext
11940           LDFLAGS=$save_LDFLAGS
11941fi
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11943$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11944	if test yes = "$lt_cv_irix_exported_symbol"; then
11945          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'
11946	fi
11947      else
11948	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'
11949	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'
11950      fi
11951      archive_cmds_need_lc='no'
11952      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11953      hardcode_libdir_separator=:
11954      inherit_rpath=yes
11955      link_all_deplibs=yes
11956      ;;
11957
11958    linux*)
11959      case $cc_basename in
11960      tcc*)
11961	# Fabrice Bellard et al's Tiny C Compiler
11962	ld_shlibs=yes
11963	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11964	;;
11965      esac
11966      ;;
11967
11968    netbsd*)
11969      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11970	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11971      else
11972	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11973      fi
11974      hardcode_libdir_flag_spec='-R$libdir'
11975      hardcode_direct=yes
11976      hardcode_shlibpath_var=no
11977      ;;
11978
11979    newsos6)
11980      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11981      hardcode_direct=yes
11982      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11983      hardcode_libdir_separator=:
11984      hardcode_shlibpath_var=no
11985      ;;
11986
11987    *nto* | *qnx*)
11988      ;;
11989
11990    openbsd* | bitrig*)
11991      if test -f /usr/libexec/ld.so; then
11992	hardcode_direct=yes
11993	hardcode_shlibpath_var=no
11994	hardcode_direct_absolute=yes
11995	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11996	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11997	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11998	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11999	  export_dynamic_flag_spec='$wl-E'
12000	else
12001	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12002	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12003	fi
12004      else
12005	ld_shlibs=no
12006      fi
12007      ;;
12008
12009    os2*)
12010      hardcode_libdir_flag_spec='-L$libdir'
12011      hardcode_minus_L=yes
12012      allow_undefined_flag=unsupported
12013      shrext_cmds=.dll
12014      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12015	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12016	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12017	$ECHO EXPORTS >> $output_objdir/$libname.def~
12018	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12019	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12020	emximp -o $lib $output_objdir/$libname.def'
12021      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12022	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12023	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12024	$ECHO EXPORTS >> $output_objdir/$libname.def~
12025	prefix_cmds="$SED"~
12026	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12027	  prefix_cmds="$prefix_cmds -e 1d";
12028	fi~
12029	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12030	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12031	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12032	emximp -o $lib $output_objdir/$libname.def'
12033      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12034      enable_shared_with_static_runtimes=yes
12035      ;;
12036
12037    osf3*)
12038      if test yes = "$GCC"; then
12039	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12040	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'
12041      else
12042	allow_undefined_flag=' -expect_unresolved \*'
12043	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'
12044      fi
12045      archive_cmds_need_lc='no'
12046      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12047      hardcode_libdir_separator=:
12048      ;;
12049
12050    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12051      if test yes = "$GCC"; then
12052	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12053	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'
12054	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12055      else
12056	allow_undefined_flag=' -expect_unresolved \*'
12057	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'
12058	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~
12059          $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'
12060
12061	# Both c and cxx compiler support -rpath directly
12062	hardcode_libdir_flag_spec='-rpath $libdir'
12063      fi
12064      archive_cmds_need_lc='no'
12065      hardcode_libdir_separator=:
12066      ;;
12067
12068    solaris*)
12069      no_undefined_flag=' -z defs'
12070      if test yes = "$GCC"; then
12071	wlarc='$wl'
12072	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12073	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12074          $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'
12075      else
12076	case `$CC -V 2>&1` in
12077	*"Compilers 5.0"*)
12078	  wlarc=''
12079	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12080	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12081            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12082	  ;;
12083	*)
12084	  wlarc='$wl'
12085	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12086	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12087            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12088	  ;;
12089	esac
12090      fi
12091      hardcode_libdir_flag_spec='-R$libdir'
12092      hardcode_shlibpath_var=no
12093      case $host_os in
12094      solaris2.[0-5] | solaris2.[0-5].*) ;;
12095      *)
12096	# The compiler driver will combine and reorder linker options,
12097	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12098	# but is careful enough not to reorder.
12099	# Supported since Solaris 2.6 (maybe 2.5.1?)
12100	if test yes = "$GCC"; then
12101	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12102	else
12103	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12104	fi
12105	;;
12106      esac
12107      link_all_deplibs=yes
12108      ;;
12109
12110    sunos4*)
12111      if test sequent = "$host_vendor"; then
12112	# Use $CC to link under sequent, because it throws in some extra .o
12113	# files that make .init and .fini sections work.
12114	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12115      else
12116	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12117      fi
12118      hardcode_libdir_flag_spec='-L$libdir'
12119      hardcode_direct=yes
12120      hardcode_minus_L=yes
12121      hardcode_shlibpath_var=no
12122      ;;
12123
12124    sysv4)
12125      case $host_vendor in
12126	sni)
12127	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12128	  hardcode_direct=yes # is this really true???
12129	;;
12130	siemens)
12131	  ## LD is ld it makes a PLAMLIB
12132	  ## CC just makes a GrossModule.
12133	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12134	  reload_cmds='$CC -r -o $output$reload_objs'
12135	  hardcode_direct=no
12136        ;;
12137	motorola)
12138	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12139	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12140	;;
12141      esac
12142      runpath_var='LD_RUN_PATH'
12143      hardcode_shlibpath_var=no
12144      ;;
12145
12146    sysv4.3*)
12147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12148      hardcode_shlibpath_var=no
12149      export_dynamic_flag_spec='-Bexport'
12150      ;;
12151
12152    sysv4*MP*)
12153      if test -d /usr/nec; then
12154	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12155	hardcode_shlibpath_var=no
12156	runpath_var=LD_RUN_PATH
12157	hardcode_runpath_var=yes
12158	ld_shlibs=yes
12159      fi
12160      ;;
12161
12162    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12163      no_undefined_flag='$wl-z,text'
12164      archive_cmds_need_lc=no
12165      hardcode_shlibpath_var=no
12166      runpath_var='LD_RUN_PATH'
12167
12168      if test yes = "$GCC"; then
12169	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171      else
12172	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174      fi
12175      ;;
12176
12177    sysv5* | sco3.2v5* | sco5v6*)
12178      # Note: We CANNOT use -z defs as we might desire, because we do not
12179      # link with -lc, and that would cause any symbols used from libc to
12180      # always be unresolved, which means just about no library would
12181      # ever link correctly.  If we're not using GNU ld we use -z text
12182      # though, which does catch some bad symbols but isn't as heavy-handed
12183      # as -z defs.
12184      no_undefined_flag='$wl-z,text'
12185      allow_undefined_flag='$wl-z,nodefs'
12186      archive_cmds_need_lc=no
12187      hardcode_shlibpath_var=no
12188      hardcode_libdir_flag_spec='$wl-R,$libdir'
12189      hardcode_libdir_separator=':'
12190      link_all_deplibs=yes
12191      export_dynamic_flag_spec='$wl-Bexport'
12192      runpath_var='LD_RUN_PATH'
12193
12194      if test yes = "$GCC"; then
12195	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197      else
12198	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12199	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200      fi
12201      ;;
12202
12203    uts4*)
12204      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12205      hardcode_libdir_flag_spec='-L$libdir'
12206      hardcode_shlibpath_var=no
12207      ;;
12208
12209    *)
12210      ld_shlibs=no
12211      ;;
12212    esac
12213
12214    if test sni = "$host_vendor"; then
12215      case $host in
12216      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12217	export_dynamic_flag_spec='$wl-Blargedynsym'
12218	;;
12219      esac
12220    fi
12221  fi
12222
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12224$as_echo "$ld_shlibs" >&6; }
12225test no = "$ld_shlibs" && can_build_shared=no
12226
12227with_gnu_ld=$with_gnu_ld
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243#
12244# Do we need to explicitly link libc?
12245#
12246case "x$archive_cmds_need_lc" in
12247x|xyes)
12248  # Assume -lc should be added
12249  archive_cmds_need_lc=yes
12250
12251  if test yes,yes = "$GCC,$enable_shared"; then
12252    case $archive_cmds in
12253    *'~'*)
12254      # FIXME: we may have to deal with multi-command sequences.
12255      ;;
12256    '$CC '*)
12257      # Test whether the compiler implicitly links with -lc since on some
12258      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12259      # to ld, don't add -lc before -lgcc.
12260      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12261$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12262if ${lt_cv_archive_cmds_need_lc+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  $RM conftest*
12266	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12267
12268	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12269  (eval $ac_compile) 2>&5
12270  ac_status=$?
12271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272  test $ac_status = 0; } 2>conftest.err; then
12273	  soname=conftest
12274	  lib=conftest
12275	  libobjs=conftest.$ac_objext
12276	  deplibs=
12277	  wl=$lt_prog_compiler_wl
12278	  pic_flag=$lt_prog_compiler_pic
12279	  compiler_flags=-v
12280	  linker_flags=-v
12281	  verstring=
12282	  output_objdir=.
12283	  libname=conftest
12284	  lt_save_allow_undefined_flag=$allow_undefined_flag
12285	  allow_undefined_flag=
12286	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12287  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12288  ac_status=$?
12289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290  test $ac_status = 0; }
12291	  then
12292	    lt_cv_archive_cmds_need_lc=no
12293	  else
12294	    lt_cv_archive_cmds_need_lc=yes
12295	  fi
12296	  allow_undefined_flag=$lt_save_allow_undefined_flag
12297	else
12298	  cat conftest.err 1>&5
12299	fi
12300	$RM conftest*
12301
12302fi
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12304$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12305      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12306      ;;
12307    esac
12308  fi
12309  ;;
12310esac
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12464$as_echo_n "checking dynamic linker characteristics... " >&6; }
12465
12466if test yes = "$GCC"; then
12467  case $host_os in
12468    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12469    *) lt_awk_arg='/^libraries:/' ;;
12470  esac
12471  case $host_os in
12472    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12473    *) lt_sed_strip_eq='s|=/|/|g' ;;
12474  esac
12475  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12476  case $lt_search_path_spec in
12477  *\;*)
12478    # if the path contains ";" then we assume it to be the separator
12479    # otherwise default to the standard path separator (i.e. ":") - it is
12480    # assumed that no part of a normal pathname contains ";" but that should
12481    # okay in the real world where ";" in dirpaths is itself problematic.
12482    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12483    ;;
12484  *)
12485    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12486    ;;
12487  esac
12488  # Ok, now we have the path, separated by spaces, we can step through it
12489  # and add multilib dir if necessary...
12490  lt_tmp_lt_search_path_spec=
12491  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12492  # ...but if some path component already ends with the multilib dir we assume
12493  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12494  case "$lt_multi_os_dir; $lt_search_path_spec " in
12495  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12496    lt_multi_os_dir=
12497    ;;
12498  esac
12499  for lt_sys_path in $lt_search_path_spec; do
12500    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12501      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12502    elif test -n "$lt_multi_os_dir"; then
12503      test -d "$lt_sys_path" && \
12504	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12505    fi
12506  done
12507  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12508BEGIN {RS = " "; FS = "/|\n";} {
12509  lt_foo = "";
12510  lt_count = 0;
12511  for (lt_i = NF; lt_i > 0; lt_i--) {
12512    if ($lt_i != "" && $lt_i != ".") {
12513      if ($lt_i == "..") {
12514        lt_count++;
12515      } else {
12516        if (lt_count == 0) {
12517          lt_foo = "/" $lt_i lt_foo;
12518        } else {
12519          lt_count--;
12520        }
12521      }
12522    }
12523  }
12524  if (lt_foo != "") { lt_freq[lt_foo]++; }
12525  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12526}'`
12527  # AWK program above erroneously prepends '/' to C:/dos/paths
12528  # for these hosts.
12529  case $host_os in
12530    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12531      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12532  esac
12533  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12534else
12535  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12536fi
12537library_names_spec=
12538libname_spec='lib$name'
12539soname_spec=
12540shrext_cmds=.so
12541postinstall_cmds=
12542postuninstall_cmds=
12543finish_cmds=
12544finish_eval=
12545shlibpath_var=
12546shlibpath_overrides_runpath=unknown
12547version_type=none
12548dynamic_linker="$host_os ld.so"
12549sys_lib_dlsearch_path_spec="/lib /usr/lib"
12550need_lib_prefix=unknown
12551hardcode_into_libs=no
12552
12553# when you set need_version to no, make sure it does not cause -set_version
12554# flags to be left without arguments
12555need_version=unknown
12556
12557
12558
12559case $host_os in
12560aix3*)
12561  version_type=linux # correct to gnu/linux during the next big refactor
12562  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12563  shlibpath_var=LIBPATH
12564
12565  # AIX 3 has no versioning support, so we append a major version to the name.
12566  soname_spec='$libname$release$shared_ext$major'
12567  ;;
12568
12569aix[4-9]*)
12570  version_type=linux # correct to gnu/linux during the next big refactor
12571  need_lib_prefix=no
12572  need_version=no
12573  hardcode_into_libs=yes
12574  if test ia64 = "$host_cpu"; then
12575    # AIX 5 supports IA64
12576    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12577    shlibpath_var=LD_LIBRARY_PATH
12578  else
12579    # With GCC up to 2.95.x, collect2 would create an import file
12580    # for dependence libraries.  The import file would start with
12581    # the line '#! .'.  This would cause the generated library to
12582    # depend on '.', always an invalid library.  This was fixed in
12583    # development snapshots of GCC prior to 3.0.
12584    case $host_os in
12585      aix4 | aix4.[01] | aix4.[01].*)
12586      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12587	   echo ' yes '
12588	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12589	:
12590      else
12591	can_build_shared=no
12592      fi
12593      ;;
12594    esac
12595    # Using Import Files as archive members, it is possible to support
12596    # filename-based versioning of shared library archives on AIX. While
12597    # this would work for both with and without runtime linking, it will
12598    # prevent static linking of such archives. So we do filename-based
12599    # shared library versioning with .so extension only, which is used
12600    # when both runtime linking and shared linking is enabled.
12601    # Unfortunately, runtime linking may impact performance, so we do
12602    # not want this to be the default eventually. Also, we use the
12603    # versioned .so libs for executables only if there is the -brtl
12604    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12605    # To allow for filename-based versioning support, we need to create
12606    # libNAME.so.V as an archive file, containing:
12607    # *) an Import File, referring to the versioned filename of the
12608    #    archive as well as the shared archive member, telling the
12609    #    bitwidth (32 or 64) of that shared object, and providing the
12610    #    list of exported symbols of that shared object, eventually
12611    #    decorated with the 'weak' keyword
12612    # *) the shared object with the F_LOADONLY flag set, to really avoid
12613    #    it being seen by the linker.
12614    # At run time we better use the real file rather than another symlink,
12615    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12616
12617    case $with_aix_soname,$aix_use_runtimelinking in
12618    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12619    # soname into executable. Probably we can add versioning support to
12620    # collect2, so additional links can be useful in future.
12621    aix,yes) # traditional libtool
12622      dynamic_linker='AIX unversionable lib.so'
12623      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12624      # instead of lib<name>.a to let people know that these are not
12625      # typical AIX shared libraries.
12626      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12627      ;;
12628    aix,no) # traditional AIX only
12629      dynamic_linker='AIX lib.a(lib.so.V)'
12630      # We preserve .a as extension for shared libraries through AIX4.2
12631      # and later when we are not doing run time linking.
12632      library_names_spec='$libname$release.a $libname.a'
12633      soname_spec='$libname$release$shared_ext$major'
12634      ;;
12635    svr4,*) # full svr4 only
12636      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12637      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12638      # We do not specify a path in Import Files, so LIBPATH fires.
12639      shlibpath_overrides_runpath=yes
12640      ;;
12641    *,yes) # both, prefer svr4
12642      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12643      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12644      # unpreferred sharedlib libNAME.a needs extra handling
12645      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"'
12646      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"'
12647      # We do not specify a path in Import Files, so LIBPATH fires.
12648      shlibpath_overrides_runpath=yes
12649      ;;
12650    *,no) # both, prefer aix
12651      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12652      library_names_spec='$libname$release.a $libname.a'
12653      soname_spec='$libname$release$shared_ext$major'
12654      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12655      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)'
12656      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"'
12657      ;;
12658    esac
12659    shlibpath_var=LIBPATH
12660  fi
12661  ;;
12662
12663amigaos*)
12664  case $host_cpu in
12665  powerpc)
12666    # Since July 2007 AmigaOS4 officially supports .so libraries.
12667    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12668    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669    ;;
12670  m68k)
12671    library_names_spec='$libname.ixlibrary $libname.a'
12672    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12673    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'
12674    ;;
12675  esac
12676  ;;
12677
12678beos*)
12679  library_names_spec='$libname$shared_ext'
12680  dynamic_linker="$host_os ld.so"
12681  shlibpath_var=LIBRARY_PATH
12682  ;;
12683
12684bsdi[45]*)
12685  version_type=linux # correct to gnu/linux during the next big refactor
12686  need_version=no
12687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688  soname_spec='$libname$release$shared_ext$major'
12689  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12690  shlibpath_var=LD_LIBRARY_PATH
12691  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12692  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12693  # the default ld.so.conf also contains /usr/contrib/lib and
12694  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12695  # libtool to hard-code these into programs
12696  ;;
12697
12698cygwin* | mingw* | pw32* | cegcc*)
12699  version_type=windows
12700  shrext_cmds=.dll
12701  need_version=no
12702  need_lib_prefix=no
12703
12704  case $GCC,$cc_basename in
12705  yes,*)
12706    # gcc
12707    library_names_spec='$libname.dll.a'
12708    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12709    postinstall_cmds='base_file=`basename \$file`~
12710      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12711      dldir=$destdir/`dirname \$dlpath`~
12712      test -d \$dldir || mkdir -p \$dldir~
12713      $install_prog $dir/$dlname \$dldir/$dlname~
12714      chmod a+x \$dldir/$dlname~
12715      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12716        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12717      fi'
12718    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12719      dlpath=$dir/\$dldll~
12720       $RM \$dlpath'
12721    shlibpath_overrides_runpath=yes
12722
12723    case $host_os in
12724    cygwin*)
12725      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12726      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12727
12728      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12729      ;;
12730    mingw* | cegcc*)
12731      # MinGW DLLs use traditional 'lib' prefix
12732      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12733      ;;
12734    pw32*)
12735      # pw32 DLLs use 'pw' prefix rather than 'lib'
12736      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12737      ;;
12738    esac
12739    dynamic_linker='Win32 ld.exe'
12740    ;;
12741
12742  *,cl*)
12743    # Native MSVC
12744    libname_spec='$name'
12745    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12746    library_names_spec='$libname.dll.lib'
12747
12748    case $build_os in
12749    mingw*)
12750      sys_lib_search_path_spec=
12751      lt_save_ifs=$IFS
12752      IFS=';'
12753      for lt_path in $LIB
12754      do
12755        IFS=$lt_save_ifs
12756        # Let DOS variable expansion print the short 8.3 style file name.
12757        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12758        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12759      done
12760      IFS=$lt_save_ifs
12761      # Convert to MSYS style.
12762      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12763      ;;
12764    cygwin*)
12765      # Convert to unix form, then to dos form, then back to unix form
12766      # but this time dos style (no spaces!) so that the unix form looks
12767      # like /cygdrive/c/PROGRA~1:/cygdr...
12768      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12769      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12770      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12771      ;;
12772    *)
12773      sys_lib_search_path_spec=$LIB
12774      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12775        # It is most probably a Windows format PATH.
12776        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12777      else
12778        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12779      fi
12780      # FIXME: find the short name or the path components, as spaces are
12781      # common. (e.g. "Program Files" -> "PROGRA~1")
12782      ;;
12783    esac
12784
12785    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12786    postinstall_cmds='base_file=`basename \$file`~
12787      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12788      dldir=$destdir/`dirname \$dlpath`~
12789      test -d \$dldir || mkdir -p \$dldir~
12790      $install_prog $dir/$dlname \$dldir/$dlname'
12791    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12792      dlpath=$dir/\$dldll~
12793       $RM \$dlpath'
12794    shlibpath_overrides_runpath=yes
12795    dynamic_linker='Win32 link.exe'
12796    ;;
12797
12798  *)
12799    # Assume MSVC wrapper
12800    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12801    dynamic_linker='Win32 ld.exe'
12802    ;;
12803  esac
12804  # FIXME: first we should search . and the directory the executable is in
12805  shlibpath_var=PATH
12806  ;;
12807
12808darwin* | rhapsody*)
12809  dynamic_linker="$host_os dyld"
12810  version_type=darwin
12811  need_lib_prefix=no
12812  need_version=no
12813  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12814  soname_spec='$libname$release$major$shared_ext'
12815  shlibpath_overrides_runpath=yes
12816  shlibpath_var=DYLD_LIBRARY_PATH
12817  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12818
12819  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12820  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12821  ;;
12822
12823dgux*)
12824  version_type=linux # correct to gnu/linux during the next big refactor
12825  need_lib_prefix=no
12826  need_version=no
12827  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12828  soname_spec='$libname$release$shared_ext$major'
12829  shlibpath_var=LD_LIBRARY_PATH
12830  ;;
12831
12832freebsd* | dragonfly*)
12833  # DragonFly does not have aout.  When/if they implement a new
12834  # versioning mechanism, adjust this.
12835  if test -x /usr/bin/objformat; then
12836    objformat=`/usr/bin/objformat`
12837  else
12838    case $host_os in
12839    freebsd[23].*) objformat=aout ;;
12840    *) objformat=elf ;;
12841    esac
12842  fi
12843  version_type=freebsd-$objformat
12844  case $version_type in
12845    freebsd-elf*)
12846      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847      soname_spec='$libname$release$shared_ext$major'
12848      need_version=no
12849      need_lib_prefix=no
12850      ;;
12851    freebsd-*)
12852      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12853      need_version=yes
12854      ;;
12855  esac
12856  shlibpath_var=LD_LIBRARY_PATH
12857  case $host_os in
12858  freebsd2.*)
12859    shlibpath_overrides_runpath=yes
12860    ;;
12861  freebsd3.[01]* | freebsdelf3.[01]*)
12862    shlibpath_overrides_runpath=yes
12863    hardcode_into_libs=yes
12864    ;;
12865  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12866  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12867    shlibpath_overrides_runpath=no
12868    hardcode_into_libs=yes
12869    ;;
12870  *) # from 4.6 on, and DragonFly
12871    shlibpath_overrides_runpath=yes
12872    hardcode_into_libs=yes
12873    ;;
12874  esac
12875  ;;
12876
12877haiku*)
12878  version_type=linux # correct to gnu/linux during the next big refactor
12879  need_lib_prefix=no
12880  need_version=no
12881  dynamic_linker="$host_os runtime_loader"
12882  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12883  soname_spec='$libname$release$shared_ext$major'
12884  shlibpath_var=LIBRARY_PATH
12885  shlibpath_overrides_runpath=no
12886  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12887  hardcode_into_libs=yes
12888  ;;
12889
12890hpux9* | hpux10* | hpux11*)
12891  # Give a soname corresponding to the major version so that dld.sl refuses to
12892  # link against other versions.
12893  version_type=sunos
12894  need_lib_prefix=no
12895  need_version=no
12896  case $host_cpu in
12897  ia64*)
12898    shrext_cmds='.so'
12899    hardcode_into_libs=yes
12900    dynamic_linker="$host_os dld.so"
12901    shlibpath_var=LD_LIBRARY_PATH
12902    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12903    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12904    soname_spec='$libname$release$shared_ext$major'
12905    if test 32 = "$HPUX_IA64_MODE"; then
12906      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12907      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12908    else
12909      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12910      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12911    fi
12912    ;;
12913  hppa*64*)
12914    shrext_cmds='.sl'
12915    hardcode_into_libs=yes
12916    dynamic_linker="$host_os dld.sl"
12917    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12918    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12919    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12920    soname_spec='$libname$release$shared_ext$major'
12921    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12922    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12923    ;;
12924  *)
12925    shrext_cmds='.sl'
12926    dynamic_linker="$host_os dld.sl"
12927    shlibpath_var=SHLIB_PATH
12928    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12929    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12930    soname_spec='$libname$release$shared_ext$major'
12931    ;;
12932  esac
12933  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12934  postinstall_cmds='chmod 555 $lib'
12935  # or fails outright, so override atomically:
12936  install_override_mode=555
12937  ;;
12938
12939interix[3-9]*)
12940  version_type=linux # correct to gnu/linux during the next big refactor
12941  need_lib_prefix=no
12942  need_version=no
12943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12944  soname_spec='$libname$release$shared_ext$major'
12945  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12946  shlibpath_var=LD_LIBRARY_PATH
12947  shlibpath_overrides_runpath=no
12948  hardcode_into_libs=yes
12949  ;;
12950
12951irix5* | irix6* | nonstopux*)
12952  case $host_os in
12953    nonstopux*) version_type=nonstopux ;;
12954    *)
12955	if test yes = "$lt_cv_prog_gnu_ld"; then
12956		version_type=linux # correct to gnu/linux during the next big refactor
12957	else
12958		version_type=irix
12959	fi ;;
12960  esac
12961  need_lib_prefix=no
12962  need_version=no
12963  soname_spec='$libname$release$shared_ext$major'
12964  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12965  case $host_os in
12966  irix5* | nonstopux*)
12967    libsuff= shlibsuff=
12968    ;;
12969  *)
12970    case $LD in # libtool.m4 will add one of these switches to LD
12971    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12972      libsuff= shlibsuff= libmagic=32-bit;;
12973    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12974      libsuff=32 shlibsuff=N32 libmagic=N32;;
12975    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12976      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12977    *) libsuff= shlibsuff= libmagic=never-match;;
12978    esac
12979    ;;
12980  esac
12981  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12982  shlibpath_overrides_runpath=no
12983  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12984  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12985  hardcode_into_libs=yes
12986  ;;
12987
12988# No shared lib support for Linux oldld, aout, or coff.
12989linux*oldld* | linux*aout* | linux*coff*)
12990  dynamic_linker=no
12991  ;;
12992
12993linux*android*)
12994  version_type=none # Android doesn't support versioned libraries.
12995  need_lib_prefix=no
12996  need_version=no
12997  library_names_spec='$libname$release$shared_ext'
12998  soname_spec='$libname$release$shared_ext'
12999  finish_cmds=
13000  shlibpath_var=LD_LIBRARY_PATH
13001  shlibpath_overrides_runpath=yes
13002
13003  # This implies no fast_install, which is unacceptable.
13004  # Some rework will be needed to allow for fast_install
13005  # before this can be enabled.
13006  hardcode_into_libs=yes
13007
13008  dynamic_linker='Android linker'
13009  # Don't embed -rpath directories since the linker doesn't support them.
13010  hardcode_libdir_flag_spec='-L$libdir'
13011  ;;
13012
13013# This must be glibc/ELF.
13014linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13015  version_type=linux # correct to gnu/linux during the next big refactor
13016  need_lib_prefix=no
13017  need_version=no
13018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13019  soname_spec='$libname$release$shared_ext$major'
13020  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13021  shlibpath_var=LD_LIBRARY_PATH
13022  shlibpath_overrides_runpath=no
13023
13024  # Some binutils ld are patched to set DT_RUNPATH
13025  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13026  $as_echo_n "(cached) " >&6
13027else
13028  lt_cv_shlibpath_overrides_runpath=no
13029    save_LDFLAGS=$LDFLAGS
13030    save_libdir=$libdir
13031    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13032	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h.  */
13035
13036int
13037main ()
13038{
13039
13040  ;
13041  return 0;
13042}
13043_ACEOF
13044if ac_fn_c_try_link "$LINENO"; then :
13045  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13046  lt_cv_shlibpath_overrides_runpath=yes
13047fi
13048fi
13049rm -f core conftest.err conftest.$ac_objext \
13050    conftest$ac_exeext conftest.$ac_ext
13051    LDFLAGS=$save_LDFLAGS
13052    libdir=$save_libdir
13053
13054fi
13055
13056  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13057
13058  # This implies no fast_install, which is unacceptable.
13059  # Some rework will be needed to allow for fast_install
13060  # before this can be enabled.
13061  hardcode_into_libs=yes
13062
13063  # Ideally, we could use ldconfig to report *all* directores which are
13064  # searched for libraries, however this is still not possible.  Aside from not
13065  # being certain /sbin/ldconfig is available, command
13066  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13067  # even though it is searched at run-time.  Try to do the best guess by
13068  # appending ld.so.conf contents (and includes) to the search path.
13069  if test -f /etc/ld.so.conf; then
13070    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' ' '`
13071    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13072  fi
13073
13074  # We used to test for /lib/ld.so.1 and disable shared libraries on
13075  # powerpc, because MkLinux only supported shared libraries with the
13076  # GNU dynamic linker.  Since this was broken with cross compilers,
13077  # most powerpc-linux boxes support dynamic linking these days and
13078  # people can always --disable-shared, the test was removed, and we
13079  # assume the GNU/Linux dynamic linker is in use.
13080  dynamic_linker='GNU/Linux ld.so'
13081  ;;
13082
13083netbsd*)
13084  version_type=sunos
13085  need_lib_prefix=no
13086  need_version=no
13087  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13088    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13089    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13090    dynamic_linker='NetBSD (a.out) ld.so'
13091  else
13092    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13093    soname_spec='$libname$release$shared_ext$major'
13094    dynamic_linker='NetBSD ld.elf_so'
13095  fi
13096  shlibpath_var=LD_LIBRARY_PATH
13097  shlibpath_overrides_runpath=yes
13098  hardcode_into_libs=yes
13099  ;;
13100
13101newsos6)
13102  version_type=linux # correct to gnu/linux during the next big refactor
13103  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13104  shlibpath_var=LD_LIBRARY_PATH
13105  shlibpath_overrides_runpath=yes
13106  ;;
13107
13108*nto* | *qnx*)
13109  version_type=qnx
13110  need_lib_prefix=no
13111  need_version=no
13112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13113  soname_spec='$libname$release$shared_ext$major'
13114  shlibpath_var=LD_LIBRARY_PATH
13115  shlibpath_overrides_runpath=no
13116  hardcode_into_libs=yes
13117  dynamic_linker='ldqnx.so'
13118  ;;
13119
13120openbsd* | bitrig*)
13121  version_type=sunos
13122  sys_lib_dlsearch_path_spec=/usr/lib
13123  need_lib_prefix=no
13124  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13125    need_version=no
13126  else
13127    need_version=yes
13128  fi
13129  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13130  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13131  shlibpath_var=LD_LIBRARY_PATH
13132  shlibpath_overrides_runpath=yes
13133  ;;
13134
13135os2*)
13136  libname_spec='$name'
13137  version_type=windows
13138  shrext_cmds=.dll
13139  need_version=no
13140  need_lib_prefix=no
13141  # OS/2 can only load a DLL with a base name of 8 characters or less.
13142  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13143    v=$($ECHO $release$versuffix | tr -d .-);
13144    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13145    $ECHO $n$v`$shared_ext'
13146  library_names_spec='${libname}_dll.$libext'
13147  dynamic_linker='OS/2 ld.exe'
13148  shlibpath_var=BEGINLIBPATH
13149  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13150  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13151  postinstall_cmds='base_file=`basename \$file`~
13152    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13153    dldir=$destdir/`dirname \$dlpath`~
13154    test -d \$dldir || mkdir -p \$dldir~
13155    $install_prog $dir/$dlname \$dldir/$dlname~
13156    chmod a+x \$dldir/$dlname~
13157    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13158      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13159    fi'
13160  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13161    dlpath=$dir/\$dldll~
13162    $RM \$dlpath'
13163  ;;
13164
13165osf3* | osf4* | osf5*)
13166  version_type=osf
13167  need_lib_prefix=no
13168  need_version=no
13169  soname_spec='$libname$release$shared_ext$major'
13170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13171  shlibpath_var=LD_LIBRARY_PATH
13172  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13173  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13174  ;;
13175
13176rdos*)
13177  dynamic_linker=no
13178  ;;
13179
13180solaris*)
13181  version_type=linux # correct to gnu/linux during the next big refactor
13182  need_lib_prefix=no
13183  need_version=no
13184  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185  soname_spec='$libname$release$shared_ext$major'
13186  shlibpath_var=LD_LIBRARY_PATH
13187  shlibpath_overrides_runpath=yes
13188  hardcode_into_libs=yes
13189  # ldd complains unless libraries are executable
13190  postinstall_cmds='chmod +x $lib'
13191  ;;
13192
13193sunos4*)
13194  version_type=sunos
13195  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13196  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13197  shlibpath_var=LD_LIBRARY_PATH
13198  shlibpath_overrides_runpath=yes
13199  if test yes = "$with_gnu_ld"; then
13200    need_lib_prefix=no
13201  fi
13202  need_version=yes
13203  ;;
13204
13205sysv4 | sysv4.3*)
13206  version_type=linux # correct to gnu/linux during the next big refactor
13207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13208  soname_spec='$libname$release$shared_ext$major'
13209  shlibpath_var=LD_LIBRARY_PATH
13210  case $host_vendor in
13211    sni)
13212      shlibpath_overrides_runpath=no
13213      need_lib_prefix=no
13214      runpath_var=LD_RUN_PATH
13215      ;;
13216    siemens)
13217      need_lib_prefix=no
13218      ;;
13219    motorola)
13220      need_lib_prefix=no
13221      need_version=no
13222      shlibpath_overrides_runpath=no
13223      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13224      ;;
13225  esac
13226  ;;
13227
13228sysv4*MP*)
13229  if test -d /usr/nec; then
13230    version_type=linux # correct to gnu/linux during the next big refactor
13231    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13232    soname_spec='$libname$shared_ext.$major'
13233    shlibpath_var=LD_LIBRARY_PATH
13234  fi
13235  ;;
13236
13237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13238  version_type=sco
13239  need_lib_prefix=no
13240  need_version=no
13241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13242  soname_spec='$libname$release$shared_ext$major'
13243  shlibpath_var=LD_LIBRARY_PATH
13244  shlibpath_overrides_runpath=yes
13245  hardcode_into_libs=yes
13246  if test yes = "$with_gnu_ld"; then
13247    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13248  else
13249    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13250    case $host_os in
13251      sco3.2v5*)
13252        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13253	;;
13254    esac
13255  fi
13256  sys_lib_dlsearch_path_spec='/usr/lib'
13257  ;;
13258
13259tpf*)
13260  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13261  version_type=linux # correct to gnu/linux during the next big refactor
13262  need_lib_prefix=no
13263  need_version=no
13264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13265  shlibpath_var=LD_LIBRARY_PATH
13266  shlibpath_overrides_runpath=no
13267  hardcode_into_libs=yes
13268  ;;
13269
13270uts4*)
13271  version_type=linux # correct to gnu/linux during the next big refactor
13272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13273  soname_spec='$libname$release$shared_ext$major'
13274  shlibpath_var=LD_LIBRARY_PATH
13275  ;;
13276
13277*)
13278  dynamic_linker=no
13279  ;;
13280esac
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13282$as_echo "$dynamic_linker" >&6; }
13283test no = "$dynamic_linker" && can_build_shared=no
13284
13285variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13286if test yes = "$GCC"; then
13287  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13288fi
13289
13290if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13291  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13292fi
13293
13294if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13295  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13296fi
13297
13298# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13299configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13300
13301# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13302func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13303
13304# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13305configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13405hardcode_action=
13406if test -n "$hardcode_libdir_flag_spec" ||
13407   test -n "$runpath_var" ||
13408   test yes = "$hardcode_automatic"; then
13409
13410  # We can hardcode non-existent directories.
13411  if test no != "$hardcode_direct" &&
13412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13413     # have to relink, otherwise we might link with an installed library
13414     # when we should be linking with a yet-to-be-installed one
13415     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13416     test no != "$hardcode_minus_L"; then
13417    # Linking always hardcodes the temporary library directory.
13418    hardcode_action=relink
13419  else
13420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13421    hardcode_action=immediate
13422  fi
13423else
13424  # We cannot hardcode anything, or else we can only hardcode existing
13425  # directories.
13426  hardcode_action=unsupported
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13429$as_echo "$hardcode_action" >&6; }
13430
13431if test relink = "$hardcode_action" ||
13432   test yes = "$inherit_rpath"; then
13433  # Fast installation is not supported
13434  enable_fast_install=no
13435elif test yes = "$shlibpath_overrides_runpath" ||
13436     test no = "$enable_shared"; then
13437  # Fast installation is not necessary
13438  enable_fast_install=needless
13439fi
13440
13441
13442
13443
13444
13445
13446  if test yes != "$enable_dlopen"; then
13447  enable_dlopen=unknown
13448  enable_dlopen_self=unknown
13449  enable_dlopen_self_static=unknown
13450else
13451  lt_cv_dlopen=no
13452  lt_cv_dlopen_libs=
13453
13454  case $host_os in
13455  beos*)
13456    lt_cv_dlopen=load_add_on
13457    lt_cv_dlopen_libs=
13458    lt_cv_dlopen_self=yes
13459    ;;
13460
13461  mingw* | pw32* | cegcc*)
13462    lt_cv_dlopen=LoadLibrary
13463    lt_cv_dlopen_libs=
13464    ;;
13465
13466  cygwin*)
13467    lt_cv_dlopen=dlopen
13468    lt_cv_dlopen_libs=
13469    ;;
13470
13471  darwin*)
13472    # if libdl is installed we need to link against it
13473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13474$as_echo_n "checking for dlopen in -ldl... " >&6; }
13475if ${ac_cv_lib_dl_dlopen+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478  ac_check_lib_save_LIBS=$LIBS
13479LIBS="-ldl  $LIBS"
13480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481/* end confdefs.h.  */
13482
13483/* Override any GCC internal prototype to avoid an error.
13484   Use char because int might match the return type of a GCC
13485   builtin and then its argument prototype would still apply.  */
13486#ifdef __cplusplus
13487extern "C"
13488#endif
13489char dlopen ();
13490int
13491main ()
13492{
13493return dlopen ();
13494  ;
13495  return 0;
13496}
13497_ACEOF
13498if ac_fn_c_try_link "$LINENO"; then :
13499  ac_cv_lib_dl_dlopen=yes
13500else
13501  ac_cv_lib_dl_dlopen=no
13502fi
13503rm -f core conftest.err conftest.$ac_objext \
13504    conftest$ac_exeext conftest.$ac_ext
13505LIBS=$ac_check_lib_save_LIBS
13506fi
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13508$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13509if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13510  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13511else
13512
13513    lt_cv_dlopen=dyld
13514    lt_cv_dlopen_libs=
13515    lt_cv_dlopen_self=yes
13516
13517fi
13518
13519    ;;
13520
13521  tpf*)
13522    # Don't try to run any link tests for TPF.  We know it's impossible
13523    # because TPF is a cross-compiler, and we know how we open DSOs.
13524    lt_cv_dlopen=dlopen
13525    lt_cv_dlopen_libs=
13526    lt_cv_dlopen_self=no
13527    ;;
13528
13529  *)
13530    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13531if test "x$ac_cv_func_shl_load" = xyes; then :
13532  lt_cv_dlopen=shl_load
13533else
13534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13535$as_echo_n "checking for shl_load in -ldld... " >&6; }
13536if ${ac_cv_lib_dld_shl_load+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  ac_check_lib_save_LIBS=$LIBS
13540LIBS="-ldld  $LIBS"
13541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542/* end confdefs.h.  */
13543
13544/* Override any GCC internal prototype to avoid an error.
13545   Use char because int might match the return type of a GCC
13546   builtin and then its argument prototype would still apply.  */
13547#ifdef __cplusplus
13548extern "C"
13549#endif
13550char shl_load ();
13551int
13552main ()
13553{
13554return shl_load ();
13555  ;
13556  return 0;
13557}
13558_ACEOF
13559if ac_fn_c_try_link "$LINENO"; then :
13560  ac_cv_lib_dld_shl_load=yes
13561else
13562  ac_cv_lib_dld_shl_load=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext \
13565    conftest$ac_exeext conftest.$ac_ext
13566LIBS=$ac_check_lib_save_LIBS
13567fi
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13569$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13570if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13571  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13572else
13573  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13574if test "x$ac_cv_func_dlopen" = xyes; then :
13575  lt_cv_dlopen=dlopen
13576else
13577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13578$as_echo_n "checking for dlopen in -ldl... " >&6; }
13579if ${ac_cv_lib_dl_dlopen+:} false; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  ac_check_lib_save_LIBS=$LIBS
13583LIBS="-ldl  $LIBS"
13584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h.  */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588   Use char because int might match the return type of a GCC
13589   builtin and then its argument prototype would still apply.  */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char dlopen ();
13594int
13595main ()
13596{
13597return dlopen ();
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
13603  ac_cv_lib_dl_dlopen=yes
13604else
13605  ac_cv_lib_dl_dlopen=no
13606fi
13607rm -f core conftest.err conftest.$ac_objext \
13608    conftest$ac_exeext conftest.$ac_ext
13609LIBS=$ac_check_lib_save_LIBS
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13612$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13613if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13614  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13615else
13616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13617$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13618if ${ac_cv_lib_svld_dlopen+:} false; then :
13619  $as_echo_n "(cached) " >&6
13620else
13621  ac_check_lib_save_LIBS=$LIBS
13622LIBS="-lsvld  $LIBS"
13623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624/* end confdefs.h.  */
13625
13626/* Override any GCC internal prototype to avoid an error.
13627   Use char because int might match the return type of a GCC
13628   builtin and then its argument prototype would still apply.  */
13629#ifdef __cplusplus
13630extern "C"
13631#endif
13632char dlopen ();
13633int
13634main ()
13635{
13636return dlopen ();
13637  ;
13638  return 0;
13639}
13640_ACEOF
13641if ac_fn_c_try_link "$LINENO"; then :
13642  ac_cv_lib_svld_dlopen=yes
13643else
13644  ac_cv_lib_svld_dlopen=no
13645fi
13646rm -f core conftest.err conftest.$ac_objext \
13647    conftest$ac_exeext conftest.$ac_ext
13648LIBS=$ac_check_lib_save_LIBS
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13651$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13652if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13653  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13654else
13655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13656$as_echo_n "checking for dld_link in -ldld... " >&6; }
13657if ${ac_cv_lib_dld_dld_link+:} false; then :
13658  $as_echo_n "(cached) " >&6
13659else
13660  ac_check_lib_save_LIBS=$LIBS
13661LIBS="-ldld  $LIBS"
13662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h.  */
13664
13665/* Override any GCC internal prototype to avoid an error.
13666   Use char because int might match the return type of a GCC
13667   builtin and then its argument prototype would still apply.  */
13668#ifdef __cplusplus
13669extern "C"
13670#endif
13671char dld_link ();
13672int
13673main ()
13674{
13675return dld_link ();
13676  ;
13677  return 0;
13678}
13679_ACEOF
13680if ac_fn_c_try_link "$LINENO"; then :
13681  ac_cv_lib_dld_dld_link=yes
13682else
13683  ac_cv_lib_dld_dld_link=no
13684fi
13685rm -f core conftest.err conftest.$ac_objext \
13686    conftest$ac_exeext conftest.$ac_ext
13687LIBS=$ac_check_lib_save_LIBS
13688fi
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13690$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13691if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13692  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13693fi
13694
13695
13696fi
13697
13698
13699fi
13700
13701
13702fi
13703
13704
13705fi
13706
13707
13708fi
13709
13710    ;;
13711  esac
13712
13713  if test no = "$lt_cv_dlopen"; then
13714    enable_dlopen=no
13715  else
13716    enable_dlopen=yes
13717  fi
13718
13719  case $lt_cv_dlopen in
13720  dlopen)
13721    save_CPPFLAGS=$CPPFLAGS
13722    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13723
13724    save_LDFLAGS=$LDFLAGS
13725    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13726
13727    save_LIBS=$LIBS
13728    LIBS="$lt_cv_dlopen_libs $LIBS"
13729
13730    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13731$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13732if ${lt_cv_dlopen_self+:} false; then :
13733  $as_echo_n "(cached) " >&6
13734else
13735  	  if test yes = "$cross_compiling"; then :
13736  lt_cv_dlopen_self=cross
13737else
13738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13739  lt_status=$lt_dlunknown
13740  cat > conftest.$ac_ext <<_LT_EOF
13741#line $LINENO "configure"
13742#include "confdefs.h"
13743
13744#if HAVE_DLFCN_H
13745#include <dlfcn.h>
13746#endif
13747
13748#include <stdio.h>
13749
13750#ifdef RTLD_GLOBAL
13751#  define LT_DLGLOBAL		RTLD_GLOBAL
13752#else
13753#  ifdef DL_GLOBAL
13754#    define LT_DLGLOBAL		DL_GLOBAL
13755#  else
13756#    define LT_DLGLOBAL		0
13757#  endif
13758#endif
13759
13760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13761   find out it does not work in some platform. */
13762#ifndef LT_DLLAZY_OR_NOW
13763#  ifdef RTLD_LAZY
13764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13765#  else
13766#    ifdef DL_LAZY
13767#      define LT_DLLAZY_OR_NOW		DL_LAZY
13768#    else
13769#      ifdef RTLD_NOW
13770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13771#      else
13772#        ifdef DL_NOW
13773#          define LT_DLLAZY_OR_NOW	DL_NOW
13774#        else
13775#          define LT_DLLAZY_OR_NOW	0
13776#        endif
13777#      endif
13778#    endif
13779#  endif
13780#endif
13781
13782/* When -fvisibility=hidden is used, assume the code has been annotated
13783   correspondingly for the symbols needed.  */
13784#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13785int fnord () __attribute__((visibility("default")));
13786#endif
13787
13788int fnord () { return 42; }
13789int main ()
13790{
13791  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13792  int status = $lt_dlunknown;
13793
13794  if (self)
13795    {
13796      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13797      else
13798        {
13799	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13800          else puts (dlerror ());
13801	}
13802      /* dlclose (self); */
13803    }
13804  else
13805    puts (dlerror ());
13806
13807  return status;
13808}
13809_LT_EOF
13810  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13811  (eval $ac_link) 2>&5
13812  ac_status=$?
13813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13814  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13815    (./conftest; exit; ) >&5 2>/dev/null
13816    lt_status=$?
13817    case x$lt_status in
13818      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13819      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13820      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13821    esac
13822  else :
13823    # compilation failed
13824    lt_cv_dlopen_self=no
13825  fi
13826fi
13827rm -fr conftest*
13828
13829
13830fi
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13832$as_echo "$lt_cv_dlopen_self" >&6; }
13833
13834    if test yes = "$lt_cv_dlopen_self"; then
13835      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13836      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13837$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13838if ${lt_cv_dlopen_self_static+:} false; then :
13839  $as_echo_n "(cached) " >&6
13840else
13841  	  if test yes = "$cross_compiling"; then :
13842  lt_cv_dlopen_self_static=cross
13843else
13844  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13845  lt_status=$lt_dlunknown
13846  cat > conftest.$ac_ext <<_LT_EOF
13847#line $LINENO "configure"
13848#include "confdefs.h"
13849
13850#if HAVE_DLFCN_H
13851#include <dlfcn.h>
13852#endif
13853
13854#include <stdio.h>
13855
13856#ifdef RTLD_GLOBAL
13857#  define LT_DLGLOBAL		RTLD_GLOBAL
13858#else
13859#  ifdef DL_GLOBAL
13860#    define LT_DLGLOBAL		DL_GLOBAL
13861#  else
13862#    define LT_DLGLOBAL		0
13863#  endif
13864#endif
13865
13866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13867   find out it does not work in some platform. */
13868#ifndef LT_DLLAZY_OR_NOW
13869#  ifdef RTLD_LAZY
13870#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13871#  else
13872#    ifdef DL_LAZY
13873#      define LT_DLLAZY_OR_NOW		DL_LAZY
13874#    else
13875#      ifdef RTLD_NOW
13876#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13877#      else
13878#        ifdef DL_NOW
13879#          define LT_DLLAZY_OR_NOW	DL_NOW
13880#        else
13881#          define LT_DLLAZY_OR_NOW	0
13882#        endif
13883#      endif
13884#    endif
13885#  endif
13886#endif
13887
13888/* When -fvisibility=hidden is used, assume the code has been annotated
13889   correspondingly for the symbols needed.  */
13890#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13891int fnord () __attribute__((visibility("default")));
13892#endif
13893
13894int fnord () { return 42; }
13895int main ()
13896{
13897  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13898  int status = $lt_dlunknown;
13899
13900  if (self)
13901    {
13902      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13903      else
13904        {
13905	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13906          else puts (dlerror ());
13907	}
13908      /* dlclose (self); */
13909    }
13910  else
13911    puts (dlerror ());
13912
13913  return status;
13914}
13915_LT_EOF
13916  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13917  (eval $ac_link) 2>&5
13918  ac_status=$?
13919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13921    (./conftest; exit; ) >&5 2>/dev/null
13922    lt_status=$?
13923    case x$lt_status in
13924      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13925      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13926      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13927    esac
13928  else :
13929    # compilation failed
13930    lt_cv_dlopen_self_static=no
13931  fi
13932fi
13933rm -fr conftest*
13934
13935
13936fi
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13938$as_echo "$lt_cv_dlopen_self_static" >&6; }
13939    fi
13940
13941    CPPFLAGS=$save_CPPFLAGS
13942    LDFLAGS=$save_LDFLAGS
13943    LIBS=$save_LIBS
13944    ;;
13945  esac
13946
13947  case $lt_cv_dlopen_self in
13948  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13949  *) enable_dlopen_self=unknown ;;
13950  esac
13951
13952  case $lt_cv_dlopen_self_static in
13953  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13954  *) enable_dlopen_self_static=unknown ;;
13955  esac
13956fi
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974striplib=
13975old_striplib=
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13977$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13978if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13979  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13980  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982$as_echo "yes" >&6; }
13983else
13984# FIXME - insert some real tests, host_os isn't really good enough
13985  case $host_os in
13986  darwin*)
13987    if test -n "$STRIP"; then
13988      striplib="$STRIP -x"
13989      old_striplib="$STRIP -S"
13990      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; }
13992    else
13993      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
13995    fi
13996    ;;
13997  *)
13998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999$as_echo "no" >&6; }
14000    ;;
14001  esac
14002fi
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015  # Report what library types will actually be built
14016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14017$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14019$as_echo "$can_build_shared" >&6; }
14020
14021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14022$as_echo_n "checking whether to build shared libraries... " >&6; }
14023  test no = "$can_build_shared" && enable_shared=no
14024
14025  # On AIX, shared libraries and static libraries use the same namespace, and
14026  # are all built from PIC.
14027  case $host_os in
14028  aix3*)
14029    test yes = "$enable_shared" && enable_static=no
14030    if test -n "$RANLIB"; then
14031      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14032      postinstall_cmds='$RANLIB $lib'
14033    fi
14034    ;;
14035
14036  aix[4-9]*)
14037    if test ia64 != "$host_cpu"; then
14038      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14039      yes,aix,yes) ;;			# shared object as lib.so file only
14040      yes,svr4,*) ;;			# shared object as lib.so archive member only
14041      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14042      esac
14043    fi
14044    ;;
14045  esac
14046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14047$as_echo "$enable_shared" >&6; }
14048
14049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14050$as_echo_n "checking whether to build static libraries... " >&6; }
14051  # Make sure either enable_shared or enable_static is yes.
14052  test yes = "$enable_shared" || enable_static=yes
14053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14054$as_echo "$enable_static" >&6; }
14055
14056
14057
14058
14059fi
14060ac_ext=c
14061ac_cpp='$CPP $CPPFLAGS'
14062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14064ac_compiler_gnu=$ac_cv_c_compiler_gnu
14065
14066CC=$lt_save_CC
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082        ac_config_commands="$ac_config_commands libtool"
14083
14084
14085
14086
14087# Only expand once:
14088
14089
14090
14091
14092# Check whether --with-gnu-ld was given.
14093if test "${with_gnu_ld+set}" = set; then :
14094  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14095else
14096  with_gnu_ld=no
14097fi
14098
14099# Prepare PATH_SEPARATOR.
14100# The user is always right.
14101if test "${PATH_SEPARATOR+set}" != set; then
14102  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14103  # contains only /bin. Note that ksh looks also at the FPATH variable,
14104  # so we have to set that as well for the test.
14105  PATH_SEPARATOR=:
14106  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14107    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14108           || PATH_SEPARATOR=';'
14109       }
14110fi
14111
14112if test -n "$LD"; then
14113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14114$as_echo_n "checking for ld... " >&6; }
14115elif test "$GCC" = yes; then
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14117$as_echo_n "checking for ld used by $CC... " >&6; }
14118elif test "$with_gnu_ld" = yes; then
14119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14120$as_echo_n "checking for GNU ld... " >&6; }
14121else
14122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14123$as_echo_n "checking for non-GNU ld... " >&6; }
14124fi
14125if test -n "$LD"; then
14126  # Let the user override the test with a path.
14127  :
14128else
14129  if ${acl_cv_path_LD+:} false; then :
14130  $as_echo_n "(cached) " >&6
14131else
14132
14133    acl_cv_path_LD= # Final result of this test
14134    ac_prog=ld # Program to search in $PATH
14135    if test "$GCC" = yes; then
14136      # Check if gcc -print-prog-name=ld gives a path.
14137      case $host in
14138        *-*-mingw*)
14139          # gcc leaves a trailing carriage return which upsets mingw
14140          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14141        *)
14142          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14143      esac
14144      case $acl_output in
14145        # Accept absolute paths.
14146        [\\/]* | ?:[\\/]*)
14147          re_direlt='/[^/][^/]*/\.\./'
14148          # Canonicalize the pathname of ld
14149          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14150          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14151            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14152          done
14153          # Got the pathname. No search in PATH is needed.
14154          acl_cv_path_LD="$acl_output"
14155          ac_prog=
14156          ;;
14157        "")
14158          # If it fails, then pretend we aren't using GCC.
14159          ;;
14160        *)
14161          # If it is relative, then search for the first ld in PATH.
14162          with_gnu_ld=unknown
14163          ;;
14164      esac
14165    fi
14166    if test -n "$ac_prog"; then
14167      # Search for $ac_prog in $PATH.
14168      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14169      for ac_dir in $PATH; do
14170        IFS="$acl_save_ifs"
14171        test -z "$ac_dir" && ac_dir=.
14172        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14173          acl_cv_path_LD="$ac_dir/$ac_prog"
14174          # Check to see if the program is GNU ld.  I'd rather use --version,
14175          # but apparently some variants of GNU ld only accept -v.
14176          # Break only if it was the GNU/non-GNU ld that we prefer.
14177          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14178            *GNU* | *'with BFD'*)
14179              test "$with_gnu_ld" != no && break
14180              ;;
14181            *)
14182              test "$with_gnu_ld" != yes && break
14183              ;;
14184          esac
14185        fi
14186      done
14187      IFS="$acl_save_ifs"
14188    fi
14189    case $host in
14190      *-*-aix*)
14191        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192/* end confdefs.h.  */
14193#if defined __powerpc64__ || defined _ARCH_PPC64
14194                int ok;
14195               #else
14196                error fail
14197               #endif
14198
14199_ACEOF
14200if ac_fn_c_try_compile "$LINENO"; then :
14201  # The compiler produces 64-bit code. Add option '-b64' so that the
14202           # linker groks 64-bit object files.
14203           case "$acl_cv_path_LD " in
14204             *" -b64 "*) ;;
14205             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14206           esac
14207
14208fi
14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210        ;;
14211      sparc64-*-netbsd*)
14212        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214#if defined __sparcv9 || defined __arch64__
14215                int ok;
14216               #else
14217                error fail
14218               #endif
14219
14220_ACEOF
14221if ac_fn_c_try_compile "$LINENO"; then :
14222
14223else
14224  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14225           # so that the linker groks 32-bit object files.
14226           case "$acl_cv_path_LD " in
14227             *" -m elf32_sparc "*) ;;
14228             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14229           esac
14230
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233        ;;
14234    esac
14235
14236fi
14237
14238  LD="$acl_cv_path_LD"
14239fi
14240if test -n "$LD"; then
14241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14242$as_echo "$LD" >&6; }
14243else
14244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245$as_echo "no" >&6; }
14246  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14250if ${acl_cv_prog_gnu_ld+:} false; then :
14251  $as_echo_n "(cached) " >&6
14252else
14253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14254case `$LD -v 2>&1 </dev/null` in
14255*GNU* | *'with BFD'*)
14256  acl_cv_prog_gnu_ld=yes
14257  ;;
14258*)
14259  acl_cv_prog_gnu_ld=no
14260  ;;
14261esac
14262fi
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14264$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14265with_gnu_ld=$acl_cv_prog_gnu_ld
14266
14267
14268
14269                              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
14270$as_echo_n "checking for shared library path variable... " >&6; }
14271if ${acl_cv_libpath+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274
14275    LD="$LD" \
14276    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
14277    . ./conftest.sh
14278    rm -f ./conftest.sh
14279    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
14280
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
14283$as_echo "$acl_cv_libpath" >&6; }
14284  shlibpath_var="$acl_cv_shlibpath_var"
14285
14286
14287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
14288$as_echo_n "checking whether to activate relocatable installation... " >&6; }
14289  # Check whether --enable-relocatable was given.
14290if test "${enable_relocatable+set}" = set; then :
14291  enableval=$enable_relocatable; if test "$enableval" != no; then
14292       RELOCATABLE=yes
14293     else
14294       RELOCATABLE=no
14295     fi
14296
14297else
14298  RELOCATABLE=no
14299fi
14300
14301
14302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
14303$as_echo "$RELOCATABLE" >&6; }
14304
14305
14306
14307    if test "X$prefix" = "XNONE"; then
14308    reloc_final_prefix="$ac_default_prefix"
14309  else
14310    reloc_final_prefix="$prefix"
14311  fi
14312
14313cat >>confdefs.h <<_ACEOF
14314#define INSTALLPREFIX "${reloc_final_prefix}"
14315_ACEOF
14316
14317  if test $RELOCATABLE = yes; then
14318
14319$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
14320
14321  fi
14322
14323
14324
14325
14326
14327
14328
14329
14330  is_noop=no
14331  use_elf_origin_trick=no
14332  use_macos_tools=no
14333  use_wrapper=no
14334  if test $RELOCATABLE = yes; then
14335    # --enable-relocatable implies --disable-rpath
14336    enable_rpath=no
14337    for ac_header in mach-o/dyld.h
14338do :
14339  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
14340if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
14341  cat >>confdefs.h <<_ACEOF
14342#define HAVE_MACH_O_DYLD_H 1
14343_ACEOF
14344
14345fi
14346
14347done
14348
14349    for ac_func in _NSGetExecutablePath
14350do :
14351  ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
14352if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
14353  cat >>confdefs.h <<_ACEOF
14354#define HAVE__NSGETEXECUTABLEPATH 1
14355_ACEOF
14356
14357fi
14358done
14359
14360    case "$host_os" in
14361      mingw*) is_noop=yes ;;
14362      # For the platforms that support $ORIGIN, see
14363      # <https://lekensteyn.nl/rpath.html>.
14364      # glibc systems, Linux with musl libc: yes. Android: no.
14365      linux*-android*) ;;
14366      linux* | kfreebsd*) use_elf_origin_trick=yes ;;
14367      # Hurd: <http://lists.gnu.org/archive/html/bug-hurd/2019-02/msg00049.html>
14368      # only after the glibc commit from 2018-01-08
14369      # <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=311ba8dc4416467947eff2ab327854f124226309>
14370      gnu*)
14371        # Test for a glibc version >= 2.27.
14372        for ac_func in copy_file_range
14373do :
14374  ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
14375if test "x$ac_cv_func_copy_file_range" = xyes; then :
14376  cat >>confdefs.h <<_ACEOF
14377#define HAVE_COPY_FILE_RANGE 1
14378_ACEOF
14379
14380fi
14381done
14382
14383        if test $ac_cv_func_copy_file_range = yes; then
14384          use_elf_origin_trick=yes
14385        fi
14386        ;;
14387      # FreeBSD >= 7.3, DragonFly >= 3.0: yes.
14388      freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;;
14389      dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;;
14390      freebsd* | dragonfly*) use_elf_origin_trick=yes ;;
14391      # NetBSD >= 8.0: yes.
14392      netbsd | netbsd[1-7] | netbsd[1-7].*) ;;
14393      netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;;
14394      netbsd*) use_elf_origin_trick=yes ;;
14395      # OpenBSD >= 5.4: yes.
14396      openbsd | openbsd[1-5] | openbsd[1-4].* | openbsd5.[0-3]) ;;
14397      openbsd*) use_elf_origin_trick=yes ;;
14398      # Solaris >= 10: yes.
14399      solaris | solaris2.[1-9] | solaris2.[1-9].*) ;;
14400      solaris*) use_elf_origin_trick=yes ;;
14401      # Haiku: yes.
14402      haiku*) use_elf_origin_trick=yes ;;
14403      # On Mac OS X 10.4 or newer, use Mac OS X tools. See
14404      # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
14405      darwin | darwin[1-7].*) ;;
14406      darwin*) use_macos_tools=yes ;;
14407    esac
14408    if test $is_noop = yes; then
14409      RELOCATABLE_LDFLAGS=:
14410
14411    else
14412      if test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
14413                case "$ac_aux_dir" in
14414          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
14415          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
14416        esac
14417        RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
14418
14419        if test $use_macos_tools = yes; then
14420                    case "$ac_aux_dir" in
14421            /*) LIBTOOL="${CONFIG_SHELL-$SHELL} $ac_aux_dir/libtool-reloc $LIBTOOL" ;;
14422            *) LIBTOOL="${CONFIG_SHELL-$SHELL} \$(top_builddir)/$ac_aux_dir/libtool-reloc $LIBTOOL" ;;
14423          esac
14424        fi
14425      else
14426        use_wrapper=yes
14427                                        INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
14428
14429        case "$ac_aux_dir" in
14430          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
14431          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
14432        esac
14433      fi
14434    fi
14435  fi
14436   if test $is_noop = yes || test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
14437  RELOCATABLE_VIA_LD_TRUE=
14438  RELOCATABLE_VIA_LD_FALSE='#'
14439else
14440  RELOCATABLE_VIA_LD_TRUE='#'
14441  RELOCATABLE_VIA_LD_FALSE=
14442fi
14443
14444   if test $use_wrapper = yes; then
14445  RELOCATABLE_VIA_WRAPPER_TRUE=
14446  RELOCATABLE_VIA_WRAPPER_FALSE='#'
14447else
14448  RELOCATABLE_VIA_WRAPPER_TRUE='#'
14449  RELOCATABLE_VIA_WRAPPER_FALSE=
14450fi
14451
14452
14453
14454
14455
14456
14457
14458
14459      RELOCATABLE_STRIP=':'
14460
14461
14462
14463
14464
14465
14466
14467  : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
14468  RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
14469  RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
14470
14471
14472# Check whether --enable-extra-encodings was given.
14473if test "${enable_extra_encodings+set}" = set; then :
14474  enableval=$enable_extra_encodings;
14475$as_echo "#define ENABLE_EXTRA 1" >>confdefs.h
14476
14477   USE_EXTRA_ENCODINGS=yes
14478else
14479  USE_EXTRA_ENCODINGS=no
14480fi
14481
14482
14483
14484
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy files" >&5
14486$as_echo_n "checking how to copy files... " >&6; }
14487if ${cl_cv_prog_cp+:} false; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490
14491echo "blabla" > conftest.x
14492err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
14493if test -z "$err"; then
14494  cl_cv_prog_cp='cp -p'
14495else
14496  cl_cv_prog_cp='cp'
14497fi
14498rm -f conftest*
14499
14500fi
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_cp" >&5
14502$as_echo "$cl_cv_prog_cp" >&6; }
14503CP="$cl_cv_prog_cp"
14504
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to make hard links" >&5
14506$as_echo_n "checking how to make hard links... " >&6; }
14507if ${cl_cv_prog_LN+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510
14511rm -f conftestdata conftestfile
14512echo data > conftestfile
14513if ln conftestfile conftestdata 2>/dev/null; then
14514  cl_cv_prog_LN=ln
14515else
14516  cl_cv_prog_LN="$cl_cv_prog_cp"
14517fi
14518rm -f conftestdata conftestfile
14519
14520fi
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN" >&5
14522$as_echo "$cl_cv_prog_LN" >&6; }
14523LN="$cl_cv_prog_LN"
14524
14525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14526$as_echo_n "checking whether ln -s works... " >&6; }
14527LN_S=$as_ln_s
14528if test "$LN_S" = "ln -s"; then
14529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14530$as_echo "yes" >&6; }
14531else
14532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14533$as_echo "no, using $LN_S" >&6; }
14534fi
14535
14536
14537
14538
14539
14540
14541
14542if test -n "$ac_tool_prefix"; then
14543  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14544set dummy ${ac_tool_prefix}windres; ac_word=$2
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14546$as_echo_n "checking for $ac_word... " >&6; }
14547if ${ac_cv_prog_RC+:} false; then :
14548  $as_echo_n "(cached) " >&6
14549else
14550  if test -n "$RC"; then
14551  ac_cv_prog_RC="$RC" # Let the user override the test.
14552else
14553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554for as_dir in $PATH
14555do
14556  IFS=$as_save_IFS
14557  test -z "$as_dir" && as_dir=.
14558    for ac_exec_ext in '' $ac_executable_extensions; do
14559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14560    ac_cv_prog_RC="${ac_tool_prefix}windres"
14561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14562    break 2
14563  fi
14564done
14565  done
14566IFS=$as_save_IFS
14567
14568fi
14569fi
14570RC=$ac_cv_prog_RC
14571if test -n "$RC"; then
14572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14573$as_echo "$RC" >&6; }
14574else
14575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576$as_echo "no" >&6; }
14577fi
14578
14579
14580fi
14581if test -z "$ac_cv_prog_RC"; then
14582  ac_ct_RC=$RC
14583  # Extract the first word of "windres", so it can be a program name with args.
14584set dummy windres; ac_word=$2
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586$as_echo_n "checking for $ac_word... " >&6; }
14587if ${ac_cv_prog_ac_ct_RC+:} false; then :
14588  $as_echo_n "(cached) " >&6
14589else
14590  if test -n "$ac_ct_RC"; then
14591  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14592else
14593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594for as_dir in $PATH
14595do
14596  IFS=$as_save_IFS
14597  test -z "$as_dir" && as_dir=.
14598    for ac_exec_ext in '' $ac_executable_extensions; do
14599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600    ac_cv_prog_ac_ct_RC="windres"
14601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14602    break 2
14603  fi
14604done
14605  done
14606IFS=$as_save_IFS
14607
14608fi
14609fi
14610ac_ct_RC=$ac_cv_prog_ac_ct_RC
14611if test -n "$ac_ct_RC"; then
14612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14613$as_echo "$ac_ct_RC" >&6; }
14614else
14615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616$as_echo "no" >&6; }
14617fi
14618
14619  if test "x$ac_ct_RC" = x; then
14620    RC=""
14621  else
14622    case $cross_compiling:$ac_tool_warned in
14623yes:)
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14626ac_tool_warned=yes ;;
14627esac
14628    RC=$ac_ct_RC
14629  fi
14630else
14631  RC="$ac_cv_prog_RC"
14632fi
14633
14634
14635
14636
14637# Source file extension for RC test sources.
14638ac_ext=rc
14639
14640# Object file extension for compiled RC test sources.
14641objext=o
14642objext_RC=$objext
14643
14644# Code to be used in simple compile tests
14645lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14646
14647# Code to be used in simple link tests
14648lt_simple_link_test_code=$lt_simple_compile_test_code
14649
14650# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14651
14652
14653
14654
14655
14656
14657# If no C compiler was specified, use CC.
14658LTCC=${LTCC-"$CC"}
14659
14660# If no C compiler flags were specified, use CFLAGS.
14661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14662
14663# Allow CC to be a program name with arguments.
14664compiler=$CC
14665
14666
14667# save warnings/boilerplate of simple test code
14668ac_outfile=conftest.$ac_objext
14669echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14670eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14671_lt_compiler_boilerplate=`cat conftest.err`
14672$RM conftest*
14673
14674ac_outfile=conftest.$ac_objext
14675echo "$lt_simple_link_test_code" >conftest.$ac_ext
14676eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14677_lt_linker_boilerplate=`cat conftest.err`
14678$RM -r conftest*
14679
14680
14681# Allow CC to be a program name with arguments.
14682lt_save_CC=$CC
14683lt_save_CFLAGS=$CFLAGS
14684lt_save_GCC=$GCC
14685GCC=
14686CC=${RC-"windres"}
14687CFLAGS=
14688compiler=$CC
14689compiler_RC=$CC
14690func_cc_basename $compiler
14691cc_basename=$func_cc_basename_result
14692
14693lt_cv_prog_compiler_c_o_RC=yes
14694
14695if test -n "$compiler"; then
14696  :
14697
14698
14699
14700fi
14701
14702GCC=$lt_save_GCC
14703ac_ext=c
14704ac_cpp='$CPP $CPPFLAGS'
14705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707ac_compiler_gnu=$ac_cv_c_compiler_gnu
14708
14709CC=$lt_save_CC
14710CFLAGS=$lt_save_CFLAGS
14711
14712
14713case "$host_os" in
14714  mingw* | cygwin*) is_woe32=yes ;;
14715  *) is_woe32=no ;;
14716esac
14717WOE32=$is_woe32
14718
14719if test $WOE32 = yes; then
14720    if test -n "$ac_tool_prefix"; then
14721  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14722set dummy ${ac_tool_prefix}windres; ac_word=$2
14723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14724$as_echo_n "checking for $ac_word... " >&6; }
14725if ${ac_cv_prog_WINDRES+:} false; then :
14726  $as_echo_n "(cached) " >&6
14727else
14728  if test -n "$WINDRES"; then
14729  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14730else
14731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732for as_dir in $PATH
14733do
14734  IFS=$as_save_IFS
14735  test -z "$as_dir" && as_dir=.
14736    for ac_exec_ext in '' $ac_executable_extensions; do
14737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14738    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14740    break 2
14741  fi
14742done
14743  done
14744IFS=$as_save_IFS
14745
14746fi
14747fi
14748WINDRES=$ac_cv_prog_WINDRES
14749if test -n "$WINDRES"; then
14750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
14751$as_echo "$WINDRES" >&6; }
14752else
14753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754$as_echo "no" >&6; }
14755fi
14756
14757
14758fi
14759if test -z "$ac_cv_prog_WINDRES"; then
14760  ac_ct_WINDRES=$WINDRES
14761  # Extract the first word of "windres", so it can be a program name with args.
14762set dummy windres; ac_word=$2
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764$as_echo_n "checking for $ac_word... " >&6; }
14765if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
14766  $as_echo_n "(cached) " >&6
14767else
14768  if test -n "$ac_ct_WINDRES"; then
14769  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14770else
14771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772for as_dir in $PATH
14773do
14774  IFS=$as_save_IFS
14775  test -z "$as_dir" && as_dir=.
14776    for ac_exec_ext in '' $ac_executable_extensions; do
14777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778    ac_cv_prog_ac_ct_WINDRES="windres"
14779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780    break 2
14781  fi
14782done
14783  done
14784IFS=$as_save_IFS
14785
14786fi
14787fi
14788ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14789if test -n "$ac_ct_WINDRES"; then
14790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
14791$as_echo "$ac_ct_WINDRES" >&6; }
14792else
14793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794$as_echo "no" >&6; }
14795fi
14796
14797  if test "x$ac_ct_WINDRES" = x; then
14798    WINDRES=""
14799  else
14800    case $cross_compiling:$ac_tool_warned in
14801yes:)
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14804ac_tool_warned=yes ;;
14805esac
14806    WINDRES=$ac_ct_WINDRES
14807  fi
14808else
14809  WINDRES="$ac_cv_prog_WINDRES"
14810fi
14811
14812fi
14813
14814
14815
14816  CFLAG_VISIBILITY=
14817  HAVE_VISIBILITY=0
14818  if test -n "$GCC"; then
14819                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
14820$as_echo_n "checking whether the -Werror option is usable... " >&6; }
14821if ${gl_cv_cc_vis_werror+:} false; then :
14822  $as_echo_n "(cached) " >&6
14823else
14824  gl_save_CFLAGS="$CFLAGS"
14825       CFLAGS="$CFLAGS -Werror"
14826       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828
14829int
14830main ()
14831{
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_compile "$LINENO"; then :
14838  gl_cv_cc_vis_werror=yes
14839else
14840  gl_cv_cc_vis_werror=no
14841fi
14842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843       CFLAGS="$gl_save_CFLAGS"
14844
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
14847$as_echo "$gl_cv_cc_vis_werror" >&6; }
14848        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
14849$as_echo_n "checking for simple visibility declarations... " >&6; }
14850if ${gl_cv_cc_visibility+:} false; then :
14851  $as_echo_n "(cached) " >&6
14852else
14853  gl_save_CFLAGS="$CFLAGS"
14854       CFLAGS="$CFLAGS -fvisibility=hidden"
14855                                          if test $gl_cv_cc_vis_werror = yes; then
14856         CFLAGS="$CFLAGS -Werror"
14857       fi
14858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860extern __attribute__((__visibility__("hidden"))) int hiddenvar;
14861              extern __attribute__((__visibility__("default"))) int exportedvar;
14862              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
14863              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
14864              void dummyfunc (void) {}
14865
14866int
14867main ()
14868{
14869
14870  ;
14871  return 0;
14872}
14873_ACEOF
14874if ac_fn_c_try_compile "$LINENO"; then :
14875  gl_cv_cc_visibility=yes
14876else
14877  gl_cv_cc_visibility=no
14878fi
14879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880       CFLAGS="$gl_save_CFLAGS"
14881
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
14884$as_echo "$gl_cv_cc_visibility" >&6; }
14885    if test $gl_cv_cc_visibility = yes; then
14886      CFLAG_VISIBILITY="-fvisibility=hidden"
14887      HAVE_VISIBILITY=1
14888    fi
14889  fi
14890
14891
14892
14893cat >>confdefs.h <<_ACEOF
14894#define HAVE_VISIBILITY $HAVE_VISIBILITY
14895_ACEOF
14896
14897
14898
14899      if test "X$prefix" = "XNONE"; then
14900    acl_final_prefix="$ac_default_prefix"
14901  else
14902    acl_final_prefix="$prefix"
14903  fi
14904  if test "X$exec_prefix" = "XNONE"; then
14905    acl_final_exec_prefix='${prefix}'
14906  else
14907    acl_final_exec_prefix="$exec_prefix"
14908  fi
14909  acl_save_prefix="$prefix"
14910  prefix="$acl_final_prefix"
14911  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14912  prefix="$acl_save_prefix"
14913
14914
14915
14916                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14917$as_echo_n "checking for shared library run path origin... " >&6; }
14918if ${acl_cv_rpath+:} false; then :
14919  $as_echo_n "(cached) " >&6
14920else
14921
14922    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14923    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14924    . ./conftest.sh
14925    rm -f ./conftest.sh
14926    acl_cv_rpath=done
14927
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14930$as_echo "$acl_cv_rpath" >&6; }
14931  wl="$acl_cv_wl"
14932  acl_libext="$acl_cv_libext"
14933  acl_shlibext="$acl_cv_shlibext"
14934  acl_libname_spec="$acl_cv_libname_spec"
14935  acl_library_names_spec="$acl_cv_library_names_spec"
14936  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14937  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14938  acl_hardcode_direct="$acl_cv_hardcode_direct"
14939  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14940    # Check whether --enable-rpath was given.
14941if test "${enable_rpath+set}" = set; then :
14942  enableval=$enable_rpath; :
14943else
14944  enable_rpath=yes
14945fi
14946
14947
14948
14949
14950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14951$as_echo_n "checking 32-bit host C ABI... " >&6; }
14952if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
14953  $as_echo_n "(cached) " >&6
14954else
14955  if test -n "$gl_cv_host_cpu_c_abi"; then
14956       case "$gl_cv_host_cpu_c_abi" in
14957         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14958           gl_cv_host_cpu_c_abi_32bit=yes ;;
14959         *)
14960           gl_cv_host_cpu_c_abi_32bit=no ;;
14961       esac
14962     else
14963       case "$host_cpu" in
14964
14965         i[4567]86 )
14966           gl_cv_host_cpu_c_abi_32bit=yes
14967           ;;
14968
14969         x86_64 )
14970           # On x86_64 systems, the C compiler may be generating code in one of
14971           # these ABIs:
14972           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
14973           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
14974           #   with native Windows (mingw, MSVC).
14975           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
14976           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
14977           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978/* end confdefs.h.  */
14979#if (defined __x86_64__ || defined __amd64__ \
14980                       || defined _M_X64 || defined _M_AMD64) \
14981                      && !(defined __ILP32__ || defined _ILP32)
14982                   int ok;
14983                  #else
14984                   error fail
14985                  #endif
14986
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"; then :
14989  gl_cv_host_cpu_c_abi_32bit=no
14990else
14991  gl_cv_host_cpu_c_abi_32bit=yes
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994           ;;
14995
14996         arm* | aarch64 )
14997           # Assume arm with EABI.
14998           # On arm64 systems, the C compiler may be generating code in one of
14999           # these ABIs:
15000           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
15001           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
15002           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
15003           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
15006                   int ok;
15007                  #else
15008                   error fail
15009                  #endif
15010
15011_ACEOF
15012if ac_fn_c_try_compile "$LINENO"; then :
15013  gl_cv_host_cpu_c_abi_32bit=no
15014else
15015  gl_cv_host_cpu_c_abi_32bit=yes
15016fi
15017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018           ;;
15019
15020         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
15021           # On hppa, the C compiler may be generating 32-bit code or 64-bit
15022           # code. In the latter case, it defines _LP64 and __LP64__.
15023           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024/* end confdefs.h.  */
15025#ifdef __LP64__
15026                   int ok;
15027                  #else
15028                   error fail
15029                  #endif
15030
15031_ACEOF
15032if ac_fn_c_try_compile "$LINENO"; then :
15033  gl_cv_host_cpu_c_abi_32bit=no
15034else
15035  gl_cv_host_cpu_c_abi_32bit=yes
15036fi
15037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038           ;;
15039
15040         ia64* )
15041           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
15042           # 32-bit code. In the latter case, it defines _ILP32.
15043           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044/* end confdefs.h.  */
15045#ifdef _ILP32
15046                   int ok;
15047                  #else
15048                   error fail
15049                  #endif
15050
15051_ACEOF
15052if ac_fn_c_try_compile "$LINENO"; then :
15053  gl_cv_host_cpu_c_abi_32bit=yes
15054else
15055  gl_cv_host_cpu_c_abi_32bit=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058           ;;
15059
15060         mips* )
15061           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
15062           # at 32.
15063           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064/* end confdefs.h.  */
15065#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
15066                   int ok;
15067                  #else
15068                   error fail
15069                  #endif
15070
15071_ACEOF
15072if ac_fn_c_try_compile "$LINENO"; then :
15073  gl_cv_host_cpu_c_abi_32bit=no
15074else
15075  gl_cv_host_cpu_c_abi_32bit=yes
15076fi
15077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078           ;;
15079
15080         powerpc* )
15081           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
15082           # No need to distinguish them here; the caller may distinguish
15083           # them based on the OS.
15084           # On powerpc64 systems, the C compiler may still be generating
15085           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
15086           # be generating 64-bit code.
15087           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089#if defined __powerpc64__ || defined _ARCH_PPC64
15090                   int ok;
15091                  #else
15092                   error fail
15093                  #endif
15094
15095_ACEOF
15096if ac_fn_c_try_compile "$LINENO"; then :
15097  gl_cv_host_cpu_c_abi_32bit=no
15098else
15099  gl_cv_host_cpu_c_abi_32bit=yes
15100fi
15101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102           ;;
15103
15104         rs6000 )
15105           gl_cv_host_cpu_c_abi_32bit=yes
15106           ;;
15107
15108         riscv32 | riscv64 )
15109           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
15110           # Size of 'long' and 'void *':
15111           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h.  */
15113#if defined __LP64__
15114                    int ok;
15115                  #else
15116                    error fail
15117                  #endif
15118
15119_ACEOF
15120if ac_fn_c_try_compile "$LINENO"; then :
15121  gl_cv_host_cpu_c_abi_32bit=no
15122else
15123  gl_cv_host_cpu_c_abi_32bit=yes
15124fi
15125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126           ;;
15127
15128         s390* )
15129           # On s390x, the C compiler may be generating 64-bit (= s390x) code
15130           # or 31-bit (= s390) code.
15131           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h.  */
15133#if defined __LP64__ || defined __s390x__
15134                    int ok;
15135                  #else
15136                    error fail
15137                  #endif
15138
15139_ACEOF
15140if ac_fn_c_try_compile "$LINENO"; then :
15141  gl_cv_host_cpu_c_abi_32bit=no
15142else
15143  gl_cv_host_cpu_c_abi_32bit=yes
15144fi
15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146           ;;
15147
15148         sparc | sparc64 )
15149           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
15150           # C compiler still generates 32-bit code.
15151           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h.  */
15153#if defined __sparcv9 || defined __arch64__
15154                   int ok;
15155                  #else
15156                   error fail
15157                  #endif
15158
15159_ACEOF
15160if ac_fn_c_try_compile "$LINENO"; then :
15161  gl_cv_host_cpu_c_abi_32bit=no
15162else
15163  gl_cv_host_cpu_c_abi_32bit=yes
15164fi
15165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15166           ;;
15167
15168         *)
15169           gl_cv_host_cpu_c_abi_32bit=no
15170           ;;
15171       esac
15172     fi
15173
15174fi
15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
15176$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
15177
15178  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
15179
15180
15181
15182
15183
15184  case "$host_os" in
15185    solaris*)
15186      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15187$as_echo_n "checking for 64-bit host... " >&6; }
15188if ${gl_cv_solaris_64bit+:} false; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192/* end confdefs.h.  */
15193#ifdef _LP64
15194                 int ok;
15195                #else
15196                 error fail
15197                #endif
15198
15199_ACEOF
15200if ac_fn_c_try_compile "$LINENO"; then :
15201  gl_cv_solaris_64bit=yes
15202else
15203  gl_cv_solaris_64bit=no
15204fi
15205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206
15207fi
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15209$as_echo "$gl_cv_solaris_64bit" >&6; };;
15210  esac
15211
15212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
15213$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
15214if ${acl_cv_libdirstems+:} false; then :
15215  $as_echo_n "(cached) " >&6
15216else
15217  acl_libdirstem=lib
15218     acl_libdirstem2=
15219     case "$host_os" in
15220       solaris*)
15221                                                      if test $gl_cv_solaris_64bit = yes; then
15222           acl_libdirstem=lib/64
15223           case "$host_cpu" in
15224             sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15225             i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15226           esac
15227         fi
15228         ;;
15229       *)
15230                           if test "$HOST_CPU_C_ABI_32BIT" != yes; then
15231                                            searchpath=`(if test -f /usr/bin/gcc \
15232                           && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
15233                          LC_ALL=C /usr/bin/gcc -print-search-dirs; \
15234                        else \
15235                          LC_ALL=C $CC -print-search-dirs; \
15236                        fi) 2>/dev/null \
15237                       | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15238           if test -n "$searchpath"; then
15239             acl_save_IFS="${IFS= 	}"; IFS=":"
15240             for searchdir in $searchpath; do
15241               if test -d "$searchdir"; then
15242                 case "$searchdir" in
15243                   */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15244                   */../ | */.. )
15245                     # Better ignore directories of this form. They are misleading.
15246                     ;;
15247                   *) searchdir=`cd "$searchdir" && pwd`
15248                      case "$searchdir" in
15249                        */lib64 ) acl_libdirstem=lib64 ;;
15250                      esac ;;
15251                 esac
15252               fi
15253             done
15254             IFS="$acl_save_IFS"
15255           fi
15256         fi
15257         ;;
15258     esac
15259     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15260     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
15261
15262fi
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
15264$as_echo "$acl_cv_libdirstems" >&6; }
15265  # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
15266  acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
15267  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279    use_additional=yes
15280
15281  acl_save_prefix="$prefix"
15282  prefix="$acl_final_prefix"
15283  acl_save_exec_prefix="$exec_prefix"
15284  exec_prefix="$acl_final_exec_prefix"
15285
15286    eval additional_includedir=\"$includedir\"
15287    eval additional_libdir=\"$libdir\"
15288
15289  exec_prefix="$acl_save_exec_prefix"
15290  prefix="$acl_save_prefix"
15291
15292
15293# Check whether --with-libiconv-prefix was given.
15294if test "${with_libiconv_prefix+set}" = set; then :
15295  withval=$with_libiconv_prefix;
15296    if test "X$withval" = "Xno"; then
15297      use_additional=no
15298    else
15299      if test "X$withval" = "X"; then
15300
15301  acl_save_prefix="$prefix"
15302  prefix="$acl_final_prefix"
15303  acl_save_exec_prefix="$exec_prefix"
15304  exec_prefix="$acl_final_exec_prefix"
15305
15306          eval additional_includedir=\"$includedir\"
15307          eval additional_libdir=\"$libdir\"
15308
15309  exec_prefix="$acl_save_exec_prefix"
15310  prefix="$acl_save_prefix"
15311
15312      else
15313        additional_includedir="$withval/include"
15314        additional_libdir="$withval/$acl_libdirstem"
15315        if test "$acl_libdirstem2" != "$acl_libdirstem" \
15316           && test ! -d "$withval/$acl_libdirstem"; then
15317          additional_libdir="$withval/$acl_libdirstem2"
15318        fi
15319      fi
15320    fi
15321
15322fi
15323
15324      LIBICONV=
15325  LTLIBICONV=
15326  INCICONV=
15327  LIBICONV_PREFIX=
15328      HAVE_LIBICONV=
15329  rpathdirs=
15330  ltrpathdirs=
15331  names_already_handled=
15332  names_next_round='iconv '
15333  while test -n "$names_next_round"; do
15334    names_this_round="$names_next_round"
15335    names_next_round=
15336    for name in $names_this_round; do
15337      already_handled=
15338      for n in $names_already_handled; do
15339        if test "$n" = "$name"; then
15340          already_handled=yes
15341          break
15342        fi
15343      done
15344      if test -z "$already_handled"; then
15345        names_already_handled="$names_already_handled $name"
15346                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15347        eval value=\"\$HAVE_LIB$uppername\"
15348        if test -n "$value"; then
15349          if test "$value" = yes; then
15350            eval value=\"\$LIB$uppername\"
15351            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15352            eval value=\"\$LTLIB$uppername\"
15353            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15354          else
15355                                    :
15356          fi
15357        else
15358                              found_dir=
15359          found_la=
15360          found_so=
15361          found_a=
15362          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15363          if test -n "$acl_shlibext"; then
15364            shrext=".$acl_shlibext"             # typically: shrext=.so
15365          else
15366            shrext=
15367          fi
15368          if test $use_additional = yes; then
15369            dir="$additional_libdir"
15370                                    if test -n "$acl_shlibext"; then
15371              if test -f "$dir/$libname$shrext"; then
15372                found_dir="$dir"
15373                found_so="$dir/$libname$shrext"
15374              else
15375                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15376                  ver=`(cd "$dir" && \
15377                        for f in "$libname$shrext".*; do echo "$f"; done \
15378                        | sed -e "s,^$libname$shrext\\\\.,," \
15379                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15380                        | sed 1q ) 2>/dev/null`
15381                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15382                    found_dir="$dir"
15383                    found_so="$dir/$libname$shrext.$ver"
15384                  fi
15385                else
15386                  eval library_names=\"$acl_library_names_spec\"
15387                  for f in $library_names; do
15388                    if test -f "$dir/$f"; then
15389                      found_dir="$dir"
15390                      found_so="$dir/$f"
15391                      break
15392                    fi
15393                  done
15394                fi
15395              fi
15396            fi
15397                        if test "X$found_dir" = "X"; then
15398              if test -f "$dir/$libname.$acl_libext"; then
15399                found_dir="$dir"
15400                found_a="$dir/$libname.$acl_libext"
15401              fi
15402            fi
15403            if test "X$found_dir" != "X"; then
15404              if test -f "$dir/$libname.la"; then
15405                found_la="$dir/$libname.la"
15406              fi
15407            fi
15408          fi
15409          if test "X$found_dir" = "X"; then
15410            for x in $LDFLAGS $LTLIBICONV; do
15411
15412  acl_save_prefix="$prefix"
15413  prefix="$acl_final_prefix"
15414  acl_save_exec_prefix="$exec_prefix"
15415  exec_prefix="$acl_final_exec_prefix"
15416  eval x=\"$x\"
15417  exec_prefix="$acl_save_exec_prefix"
15418  prefix="$acl_save_prefix"
15419
15420              case "$x" in
15421                -L*)
15422                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15423                                    if test -n "$acl_shlibext"; then
15424                    if test -f "$dir/$libname$shrext"; then
15425                      found_dir="$dir"
15426                      found_so="$dir/$libname$shrext"
15427                    else
15428                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15429                        ver=`(cd "$dir" && \
15430                              for f in "$libname$shrext".*; do echo "$f"; done \
15431                              | sed -e "s,^$libname$shrext\\\\.,," \
15432                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15433                              | sed 1q ) 2>/dev/null`
15434                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15435                          found_dir="$dir"
15436                          found_so="$dir/$libname$shrext.$ver"
15437                        fi
15438                      else
15439                        eval library_names=\"$acl_library_names_spec\"
15440                        for f in $library_names; do
15441                          if test -f "$dir/$f"; then
15442                            found_dir="$dir"
15443                            found_so="$dir/$f"
15444                            break
15445                          fi
15446                        done
15447                      fi
15448                    fi
15449                  fi
15450                                    if test "X$found_dir" = "X"; then
15451                    if test -f "$dir/$libname.$acl_libext"; then
15452                      found_dir="$dir"
15453                      found_a="$dir/$libname.$acl_libext"
15454                    fi
15455                  fi
15456                  if test "X$found_dir" != "X"; then
15457                    if test -f "$dir/$libname.la"; then
15458                      found_la="$dir/$libname.la"
15459                    fi
15460                  fi
15461                  ;;
15462              esac
15463              if test "X$found_dir" != "X"; then
15464                break
15465              fi
15466            done
15467          fi
15468          if test "X$found_dir" != "X"; then
15469                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15470            if test "X$found_so" != "X"; then
15471                                                        if test "$enable_rpath" = no \
15472                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15473                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15474                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15475              else
15476                                                                                haveit=
15477                for x in $ltrpathdirs; do
15478                  if test "X$x" = "X$found_dir"; then
15479                    haveit=yes
15480                    break
15481                  fi
15482                done
15483                if test -z "$haveit"; then
15484                  ltrpathdirs="$ltrpathdirs $found_dir"
15485                fi
15486                                if test "$acl_hardcode_direct" = yes; then
15487                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15488                else
15489                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15490                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15491                                                            haveit=
15492                    for x in $rpathdirs; do
15493                      if test "X$x" = "X$found_dir"; then
15494                        haveit=yes
15495                        break
15496                      fi
15497                    done
15498                    if test -z "$haveit"; then
15499                      rpathdirs="$rpathdirs $found_dir"
15500                    fi
15501                  else
15502                                                                                haveit=
15503                    for x in $LDFLAGS $LIBICONV; do
15504
15505  acl_save_prefix="$prefix"
15506  prefix="$acl_final_prefix"
15507  acl_save_exec_prefix="$exec_prefix"
15508  exec_prefix="$acl_final_exec_prefix"
15509  eval x=\"$x\"
15510  exec_prefix="$acl_save_exec_prefix"
15511  prefix="$acl_save_prefix"
15512
15513                      if test "X$x" = "X-L$found_dir"; then
15514                        haveit=yes
15515                        break
15516                      fi
15517                    done
15518                    if test -z "$haveit"; then
15519                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15520                    fi
15521                    if test "$acl_hardcode_minus_L" != no; then
15522                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15523                    else
15524                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15525                    fi
15526                  fi
15527                fi
15528              fi
15529            else
15530              if test "X$found_a" != "X"; then
15531                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15532              else
15533                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15534              fi
15535            fi
15536                        additional_includedir=
15537            case "$found_dir" in
15538              */$acl_libdirstem | */$acl_libdirstem/)
15539                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15540                if test "$name" = 'iconv'; then
15541                  LIBICONV_PREFIX="$basedir"
15542                fi
15543                additional_includedir="$basedir/include"
15544                ;;
15545              */$acl_libdirstem2 | */$acl_libdirstem2/)
15546                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15547                if test "$name" = 'iconv'; then
15548                  LIBICONV_PREFIX="$basedir"
15549                fi
15550                additional_includedir="$basedir/include"
15551                ;;
15552            esac
15553            if test "X$additional_includedir" != "X"; then
15554                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15555                haveit=
15556                if test "X$additional_includedir" = "X/usr/local/include"; then
15557                  if test -n "$GCC"; then
15558                    case $host_os in
15559                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15560                    esac
15561                  fi
15562                fi
15563                if test -z "$haveit"; then
15564                  for x in $CPPFLAGS $INCICONV; do
15565
15566  acl_save_prefix="$prefix"
15567  prefix="$acl_final_prefix"
15568  acl_save_exec_prefix="$exec_prefix"
15569  exec_prefix="$acl_final_exec_prefix"
15570  eval x=\"$x\"
15571  exec_prefix="$acl_save_exec_prefix"
15572  prefix="$acl_save_prefix"
15573
15574                    if test "X$x" = "X-I$additional_includedir"; then
15575                      haveit=yes
15576                      break
15577                    fi
15578                  done
15579                  if test -z "$haveit"; then
15580                    if test -d "$additional_includedir"; then
15581                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15582                    fi
15583                  fi
15584                fi
15585              fi
15586            fi
15587                        if test -n "$found_la"; then
15588                                                        save_libdir="$libdir"
15589              case "$found_la" in
15590                */* | *\\*) . "$found_la" ;;
15591                *) . "./$found_la" ;;
15592              esac
15593              libdir="$save_libdir"
15594                            for dep in $dependency_libs; do
15595                case "$dep" in
15596                  -L*)
15597                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15598                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15599                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15600                      haveit=
15601                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15602                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15603                        if test -n "$GCC"; then
15604                          case $host_os in
15605                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15606                          esac
15607                        fi
15608                      fi
15609                      if test -z "$haveit"; then
15610                        haveit=
15611                        for x in $LDFLAGS $LIBICONV; do
15612
15613  acl_save_prefix="$prefix"
15614  prefix="$acl_final_prefix"
15615  acl_save_exec_prefix="$exec_prefix"
15616  exec_prefix="$acl_final_exec_prefix"
15617  eval x=\"$x\"
15618  exec_prefix="$acl_save_exec_prefix"
15619  prefix="$acl_save_prefix"
15620
15621                          if test "X$x" = "X-L$additional_libdir"; then
15622                            haveit=yes
15623                            break
15624                          fi
15625                        done
15626                        if test -z "$haveit"; then
15627                          if test -d "$additional_libdir"; then
15628                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15629                          fi
15630                        fi
15631                        haveit=
15632                        for x in $LDFLAGS $LTLIBICONV; do
15633
15634  acl_save_prefix="$prefix"
15635  prefix="$acl_final_prefix"
15636  acl_save_exec_prefix="$exec_prefix"
15637  exec_prefix="$acl_final_exec_prefix"
15638  eval x=\"$x\"
15639  exec_prefix="$acl_save_exec_prefix"
15640  prefix="$acl_save_prefix"
15641
15642                          if test "X$x" = "X-L$additional_libdir"; then
15643                            haveit=yes
15644                            break
15645                          fi
15646                        done
15647                        if test -z "$haveit"; then
15648                          if test -d "$additional_libdir"; then
15649                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15650                          fi
15651                        fi
15652                      fi
15653                    fi
15654                    ;;
15655                  -R*)
15656                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15657                    if test "$enable_rpath" != no; then
15658                                                                  haveit=
15659                      for x in $rpathdirs; do
15660                        if test "X$x" = "X$dir"; then
15661                          haveit=yes
15662                          break
15663                        fi
15664                      done
15665                      if test -z "$haveit"; then
15666                        rpathdirs="$rpathdirs $dir"
15667                      fi
15668                                                                  haveit=
15669                      for x in $ltrpathdirs; do
15670                        if test "X$x" = "X$dir"; then
15671                          haveit=yes
15672                          break
15673                        fi
15674                      done
15675                      if test -z "$haveit"; then
15676                        ltrpathdirs="$ltrpathdirs $dir"
15677                      fi
15678                    fi
15679                    ;;
15680                  -l*)
15681                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15682                    ;;
15683                  *.la)
15684                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15685                    ;;
15686                  *)
15687                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15688                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15689                    ;;
15690                esac
15691              done
15692            fi
15693          else
15694                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15695            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15696          fi
15697        fi
15698      fi
15699    done
15700  done
15701  if test "X$rpathdirs" != "X"; then
15702    if test -n "$acl_hardcode_libdir_separator"; then
15703                        alldirs=
15704      for found_dir in $rpathdirs; do
15705        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15706      done
15707            acl_save_libdir="$libdir"
15708      libdir="$alldirs"
15709      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15710      libdir="$acl_save_libdir"
15711      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15712    else
15713            for found_dir in $rpathdirs; do
15714        acl_save_libdir="$libdir"
15715        libdir="$found_dir"
15716        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15717        libdir="$acl_save_libdir"
15718        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15719      done
15720    fi
15721  fi
15722  if test "X$ltrpathdirs" != "X"; then
15723            for found_dir in $ltrpathdirs; do
15724      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15725    done
15726  fi
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738          am_save_CPPFLAGS="$CPPFLAGS"
15739
15740  for element in $INCICONV; do
15741    haveit=
15742    for x in $CPPFLAGS; do
15743
15744  acl_save_prefix="$prefix"
15745  prefix="$acl_final_prefix"
15746  acl_save_exec_prefix="$exec_prefix"
15747  exec_prefix="$acl_final_exec_prefix"
15748  eval x=\"$x\"
15749  exec_prefix="$acl_save_exec_prefix"
15750  prefix="$acl_save_prefix"
15751
15752      if test "X$x" = "X$element"; then
15753        haveit=yes
15754        break
15755      fi
15756    done
15757    if test -z "$haveit"; then
15758      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15759    fi
15760  done
15761
15762
15763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15764$as_echo_n "checking for iconv... " >&6; }
15765if ${am_cv_func_iconv+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768
15769    am_cv_func_iconv="no, consider installing GNU libiconv"
15770    am_cv_lib_iconv=no
15771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h.  */
15773
15774#include <stdlib.h>
15775#include <iconv.h>
15776
15777int
15778main ()
15779{
15780iconv_t cd = iconv_open("","");
15781           iconv(cd,NULL,NULL,NULL,NULL);
15782           iconv_close(cd);
15783  ;
15784  return 0;
15785}
15786_ACEOF
15787if ac_fn_c_try_link "$LINENO"; then :
15788  am_cv_func_iconv=yes
15789fi
15790rm -f core conftest.err conftest.$ac_objext \
15791    conftest$ac_exeext conftest.$ac_ext
15792    if test "$am_cv_func_iconv" != yes; then
15793      am_save_LIBS="$LIBS"
15794      LIBS="$LIBS $LIBICONV"
15795      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796/* end confdefs.h.  */
15797
15798#include <stdlib.h>
15799#include <iconv.h>
15800
15801int
15802main ()
15803{
15804iconv_t cd = iconv_open("","");
15805             iconv(cd,NULL,NULL,NULL,NULL);
15806             iconv_close(cd);
15807  ;
15808  return 0;
15809}
15810_ACEOF
15811if ac_fn_c_try_link "$LINENO"; then :
15812  am_cv_lib_iconv=yes
15813        am_cv_func_iconv=yes
15814fi
15815rm -f core conftest.err conftest.$ac_objext \
15816    conftest$ac_exeext conftest.$ac_ext
15817      LIBS="$am_save_LIBS"
15818    fi
15819
15820fi
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15822$as_echo "$am_cv_func_iconv" >&6; }
15823  if test "$am_cv_func_iconv" = yes; then
15824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15825$as_echo_n "checking for working iconv... " >&6; }
15826if ${am_cv_func_iconv_works+:} false; then :
15827  $as_echo_n "(cached) " >&6
15828else
15829
15830                  am_save_LIBS="$LIBS"
15831      if test $am_cv_lib_iconv = yes; then
15832        LIBS="$LIBS $LIBICONV"
15833      fi
15834      am_cv_func_iconv_works=no
15835      for ac_iconv_const in '' 'const'; do
15836        if test "$cross_compiling" = yes; then :
15837  case "$host_os" in
15838             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15839             *)            am_cv_func_iconv_works="guessing yes" ;;
15840           esac
15841else
15842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844
15845#include <iconv.h>
15846#include <string.h>
15847
15848#ifndef ICONV_CONST
15849# define ICONV_CONST $ac_iconv_const
15850#endif
15851
15852int
15853main ()
15854{
15855int result = 0;
15856  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15857     returns.  */
15858  {
15859    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15860    if (cd_utf8_to_88591 != (iconv_t)(-1))
15861      {
15862        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15863        char buf[10];
15864        ICONV_CONST char *inptr = input;
15865        size_t inbytesleft = strlen (input);
15866        char *outptr = buf;
15867        size_t outbytesleft = sizeof (buf);
15868        size_t res = iconv (cd_utf8_to_88591,
15869                            &inptr, &inbytesleft,
15870                            &outptr, &outbytesleft);
15871        if (res == 0)
15872          result |= 1;
15873        iconv_close (cd_utf8_to_88591);
15874      }
15875  }
15876  /* Test against Solaris 10 bug: Failures are not distinguishable from
15877     successful returns.  */
15878  {
15879    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15880    if (cd_ascii_to_88591 != (iconv_t)(-1))
15881      {
15882        static ICONV_CONST char input[] = "\263";
15883        char buf[10];
15884        ICONV_CONST char *inptr = input;
15885        size_t inbytesleft = strlen (input);
15886        char *outptr = buf;
15887        size_t outbytesleft = sizeof (buf);
15888        size_t res = iconv (cd_ascii_to_88591,
15889                            &inptr, &inbytesleft,
15890                            &outptr, &outbytesleft);
15891        if (res == 0)
15892          result |= 2;
15893        iconv_close (cd_ascii_to_88591);
15894      }
15895  }
15896  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15897  {
15898    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15899    if (cd_88591_to_utf8 != (iconv_t)(-1))
15900      {
15901        static ICONV_CONST char input[] = "\304";
15902        static char buf[2] = { (char)0xDE, (char)0xAD };
15903        ICONV_CONST char *inptr = input;
15904        size_t inbytesleft = 1;
15905        char *outptr = buf;
15906        size_t outbytesleft = 1;
15907        size_t res = iconv (cd_88591_to_utf8,
15908                            &inptr, &inbytesleft,
15909                            &outptr, &outbytesleft);
15910        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15911          result |= 4;
15912        iconv_close (cd_88591_to_utf8);
15913      }
15914  }
15915#if 0 /* This bug could be worked around by the caller.  */
15916  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15917  {
15918    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15919    if (cd_88591_to_utf8 != (iconv_t)(-1))
15920      {
15921        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15922        char buf[50];
15923        ICONV_CONST char *inptr = input;
15924        size_t inbytesleft = strlen (input);
15925        char *outptr = buf;
15926        size_t outbytesleft = sizeof (buf);
15927        size_t res = iconv (cd_88591_to_utf8,
15928                            &inptr, &inbytesleft,
15929                            &outptr, &outbytesleft);
15930        if ((int)res > 0)
15931          result |= 8;
15932        iconv_close (cd_88591_to_utf8);
15933      }
15934  }
15935#endif
15936  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15937     provided.  */
15938  {
15939    /* Try standardized names.  */
15940    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
15941    /* Try IRIX, OSF/1 names.  */
15942    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
15943    /* Try AIX names.  */
15944    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
15945    /* Try HP-UX names.  */
15946    iconv_t cd4 = iconv_open ("utf8", "eucJP");
15947    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
15948        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
15949      result |= 16;
15950    if (cd1 != (iconv_t)(-1))
15951      iconv_close (cd1);
15952    if (cd2 != (iconv_t)(-1))
15953      iconv_close (cd2);
15954    if (cd3 != (iconv_t)(-1))
15955      iconv_close (cd3);
15956    if (cd4 != (iconv_t)(-1))
15957      iconv_close (cd4);
15958  }
15959  return result;
15960
15961  ;
15962  return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_run "$LINENO"; then :
15966  am_cv_func_iconv_works=yes
15967fi
15968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15969  conftest.$ac_objext conftest.beam conftest.$ac_ext
15970fi
15971
15972        test "$am_cv_func_iconv_works" = no || break
15973      done
15974      LIBS="$am_save_LIBS"
15975
15976fi
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15978$as_echo "$am_cv_func_iconv_works" >&6; }
15979    case "$am_cv_func_iconv_works" in
15980      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15981      *)   am_func_iconv=yes ;;
15982    esac
15983  else
15984    am_func_iconv=no am_cv_lib_iconv=no
15985  fi
15986  if test "$am_func_iconv" = yes; then
15987
15988$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15989
15990  fi
15991  if test "$am_cv_lib_iconv" = yes; then
15992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15993$as_echo_n "checking how to link with libiconv... " >&6; }
15994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15995$as_echo "$LIBICONV" >&6; }
15996  else
15997            CPPFLAGS="$am_save_CPPFLAGS"
15998    LIBICONV=
15999    LTLIBICONV=
16000  fi
16001
16002
16003
16004  if test "$am_cv_func_iconv" = yes; then
16005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16006$as_echo_n "checking for iconv declaration... " >&6; }
16007    if ${am_cv_proto_iconv+:} false; then :
16008  $as_echo_n "(cached) " >&6
16009else
16010
16011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013
16014#include <stdlib.h>
16015#include <iconv.h>
16016extern
16017#ifdef __cplusplus
16018"C"
16019#endif
16020#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
16021size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16022#else
16023size_t iconv();
16024#endif
16025
16026int
16027main ()
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_compile "$LINENO"; then :
16035  am_cv_proto_iconv_arg1=""
16036else
16037  am_cv_proto_iconv_arg1="const"
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16041fi
16042
16043    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16044    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
16045         $am_cv_proto_iconv" >&5
16046$as_echo "
16047         $am_cv_proto_iconv" >&6; }
16048  else
16049            am_cv_proto_iconv_arg1=""
16050  fi
16051
16052cat >>confdefs.h <<_ACEOF
16053#define ICONV_CONST $am_cv_proto_iconv_arg1
16054_ACEOF
16055
16056
16057
16058
16059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16060$as_echo_n "checking whether NLS is requested... " >&6; }
16061    # Check whether --enable-nls was given.
16062if test "${enable_nls+set}" = set; then :
16063  enableval=$enable_nls; USE_NLS=$enableval
16064else
16065  USE_NLS=yes
16066fi
16067
16068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16069$as_echo "$USE_NLS" >&6; }
16070
16071
16072
16073
16074      GETTEXT_MACRO_VERSION=0.19
16075
16076
16077
16078
16079# Prepare PATH_SEPARATOR.
16080# The user is always right.
16081if test "${PATH_SEPARATOR+set}" != set; then
16082  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16083  # contains only /bin. Note that ksh looks also at the FPATH variable,
16084  # so we have to set that as well for the test.
16085  PATH_SEPARATOR=:
16086  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16087    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16088           || PATH_SEPARATOR=';'
16089       }
16090fi
16091
16092# Find out how to test for executable files. Don't use a zero-byte file,
16093# as systems may use methods other than mode bits to determine executability.
16094cat >conf$$.file <<_ASEOF
16095#! /bin/sh
16096exit 0
16097_ASEOF
16098chmod +x conf$$.file
16099if test -x conf$$.file >/dev/null 2>&1; then
16100  ac_executable_p="test -x"
16101else
16102  ac_executable_p="test -f"
16103fi
16104rm -f conf$$.file
16105
16106# Extract the first word of "msgfmt", so it can be a program name with args.
16107set dummy msgfmt; ac_word=$2
16108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16109$as_echo_n "checking for $ac_word... " >&6; }
16110if ${ac_cv_path_MSGFMT+:} false; then :
16111  $as_echo_n "(cached) " >&6
16112else
16113  case "$MSGFMT" in
16114  [\\/]* | ?:[\\/]*)
16115    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16116    ;;
16117  *)
16118    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16119    for ac_dir in $PATH; do
16120      IFS="$ac_save_IFS"
16121      test -z "$ac_dir" && ac_dir=.
16122      for ac_exec_ext in '' $ac_executable_extensions; do
16123        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16124          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16125          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16126     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16127            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16128            break 2
16129          fi
16130        fi
16131      done
16132    done
16133    IFS="$ac_save_IFS"
16134  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16135    ;;
16136esac
16137fi
16138MSGFMT="$ac_cv_path_MSGFMT"
16139if test "$MSGFMT" != ":"; then
16140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16141$as_echo "$MSGFMT" >&6; }
16142else
16143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144$as_echo "no" >&6; }
16145fi
16146
16147  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16148set dummy gmsgfmt; ac_word=$2
16149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16150$as_echo_n "checking for $ac_word... " >&6; }
16151if ${ac_cv_path_GMSGFMT+:} false; then :
16152  $as_echo_n "(cached) " >&6
16153else
16154  case $GMSGFMT in
16155  [\\/]* | ?:[\\/]*)
16156  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16157  ;;
16158  *)
16159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16160for as_dir in $PATH
16161do
16162  IFS=$as_save_IFS
16163  test -z "$as_dir" && as_dir=.
16164    for ac_exec_ext in '' $ac_executable_extensions; do
16165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16166    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16168    break 2
16169  fi
16170done
16171  done
16172IFS=$as_save_IFS
16173
16174  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16175  ;;
16176esac
16177fi
16178GMSGFMT=$ac_cv_path_GMSGFMT
16179if test -n "$GMSGFMT"; then
16180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16181$as_echo "$GMSGFMT" >&6; }
16182else
16183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185fi
16186
16187
16188
16189    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16190    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16191    *) MSGFMT_015=$MSGFMT ;;
16192  esac
16193
16194  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16195    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16196    *) GMSGFMT_015=$GMSGFMT ;;
16197  esac
16198
16199
16200
16201# Prepare PATH_SEPARATOR.
16202# The user is always right.
16203if test "${PATH_SEPARATOR+set}" != set; then
16204  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16205  # contains only /bin. Note that ksh looks also at the FPATH variable,
16206  # so we have to set that as well for the test.
16207  PATH_SEPARATOR=:
16208  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16209    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16210           || PATH_SEPARATOR=';'
16211       }
16212fi
16213
16214# Find out how to test for executable files. Don't use a zero-byte file,
16215# as systems may use methods other than mode bits to determine executability.
16216cat >conf$$.file <<_ASEOF
16217#! /bin/sh
16218exit 0
16219_ASEOF
16220chmod +x conf$$.file
16221if test -x conf$$.file >/dev/null 2>&1; then
16222  ac_executable_p="test -x"
16223else
16224  ac_executable_p="test -f"
16225fi
16226rm -f conf$$.file
16227
16228# Extract the first word of "xgettext", so it can be a program name with args.
16229set dummy xgettext; ac_word=$2
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231$as_echo_n "checking for $ac_word... " >&6; }
16232if ${ac_cv_path_XGETTEXT+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  case "$XGETTEXT" in
16236  [\\/]* | ?:[\\/]*)
16237    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16238    ;;
16239  *)
16240    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16241    for ac_dir in $PATH; do
16242      IFS="$ac_save_IFS"
16243      test -z "$ac_dir" && ac_dir=.
16244      for ac_exec_ext in '' $ac_executable_extensions; do
16245        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16246          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16247          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16248     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16249            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16250            break 2
16251          fi
16252        fi
16253      done
16254    done
16255    IFS="$ac_save_IFS"
16256  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16257    ;;
16258esac
16259fi
16260XGETTEXT="$ac_cv_path_XGETTEXT"
16261if test "$XGETTEXT" != ":"; then
16262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16263$as_echo "$XGETTEXT" >&6; }
16264else
16265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266$as_echo "no" >&6; }
16267fi
16268
16269    rm -f messages.po
16270
16271    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16272    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16273    *) XGETTEXT_015=$XGETTEXT ;;
16274  esac
16275
16276
16277
16278# Prepare PATH_SEPARATOR.
16279# The user is always right.
16280if test "${PATH_SEPARATOR+set}" != set; then
16281  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16282  # contains only /bin. Note that ksh looks also at the FPATH variable,
16283  # so we have to set that as well for the test.
16284  PATH_SEPARATOR=:
16285  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16286    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16287           || PATH_SEPARATOR=';'
16288       }
16289fi
16290
16291# Find out how to test for executable files. Don't use a zero-byte file,
16292# as systems may use methods other than mode bits to determine executability.
16293cat >conf$$.file <<_ASEOF
16294#! /bin/sh
16295exit 0
16296_ASEOF
16297chmod +x conf$$.file
16298if test -x conf$$.file >/dev/null 2>&1; then
16299  ac_executable_p="test -x"
16300else
16301  ac_executable_p="test -f"
16302fi
16303rm -f conf$$.file
16304
16305# Extract the first word of "msgmerge", so it can be a program name with args.
16306set dummy msgmerge; ac_word=$2
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16308$as_echo_n "checking for $ac_word... " >&6; }
16309if ${ac_cv_path_MSGMERGE+:} false; then :
16310  $as_echo_n "(cached) " >&6
16311else
16312  case "$MSGMERGE" in
16313  [\\/]* | ?:[\\/]*)
16314    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16315    ;;
16316  *)
16317    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16318    for ac_dir in $PATH; do
16319      IFS="$ac_save_IFS"
16320      test -z "$ac_dir" && ac_dir=.
16321      for ac_exec_ext in '' $ac_executable_extensions; do
16322        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16323          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16324          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16325            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16326            break 2
16327          fi
16328        fi
16329      done
16330    done
16331    IFS="$ac_save_IFS"
16332  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16333    ;;
16334esac
16335fi
16336MSGMERGE="$ac_cv_path_MSGMERGE"
16337if test "$MSGMERGE" != ":"; then
16338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16339$as_echo "$MSGMERGE" >&6; }
16340else
16341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342$as_echo "no" >&6; }
16343fi
16344
16345
16346    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16347
16348
16349  ac_config_commands="$ac_config_commands po-directories"
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16377$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16378if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16379  $as_echo_n "(cached) " >&6
16380else
16381  gt_save_LIBS="$LIBS"
16382     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h.  */
16385#include <CoreFoundation/CFPreferences.h>
16386int
16387main ()
16388{
16389CFPreferencesCopyAppValue(NULL, NULL)
16390  ;
16391  return 0;
16392}
16393_ACEOF
16394if ac_fn_c_try_link "$LINENO"; then :
16395  gt_cv_func_CFPreferencesCopyAppValue=yes
16396else
16397  gt_cv_func_CFPreferencesCopyAppValue=no
16398fi
16399rm -f core conftest.err conftest.$ac_objext \
16400    conftest$ac_exeext conftest.$ac_ext
16401     LIBS="$gt_save_LIBS"
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16404$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16405  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16406
16407$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16408
16409  fi
16410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16411$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16412if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16413  $as_echo_n "(cached) " >&6
16414else
16415  gt_save_LIBS="$LIBS"
16416     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h.  */
16419#include <CoreFoundation/CFLocale.h>
16420int
16421main ()
16422{
16423CFLocaleCopyCurrent();
16424  ;
16425  return 0;
16426}
16427_ACEOF
16428if ac_fn_c_try_link "$LINENO"; then :
16429  gt_cv_func_CFLocaleCopyCurrent=yes
16430else
16431  gt_cv_func_CFLocaleCopyCurrent=no
16432fi
16433rm -f core conftest.err conftest.$ac_objext \
16434    conftest$ac_exeext conftest.$ac_ext
16435     LIBS="$gt_save_LIBS"
16436fi
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16438$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16439  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16440
16441$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16442
16443  fi
16444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
16445$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
16446if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
16447  $as_echo_n "(cached) " >&6
16448else
16449  gt_save_LIBS="$LIBS"
16450     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452/* end confdefs.h.  */
16453#include <CoreFoundation/CFLocale.h>
16454int
16455main ()
16456{
16457CFLocaleCopyPreferredLanguages();
16458  ;
16459  return 0;
16460}
16461_ACEOF
16462if ac_fn_c_try_link "$LINENO"; then :
16463  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
16464else
16465  gt_cv_func_CFLocaleCopyPreferredLanguages=no
16466fi
16467rm -f core conftest.err conftest.$ac_objext \
16468    conftest$ac_exeext conftest.$ac_ext
16469     LIBS="$gt_save_LIBS"
16470fi
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
16472$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
16473  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
16474
16475$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
16476
16477  fi
16478  INTL_MACOSX_LIBS=
16479  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
16480     || test $gt_cv_func_CFLocaleCopyCurrent = yes \
16481     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
16482    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16483  fi
16484
16485
16486
16487
16488
16489
16490  LIBINTL=
16491  LTLIBINTL=
16492  POSUB=
16493
16494    case " $gt_needs " in
16495    *" need-formatstring-macros "*) gt_api_version=3 ;;
16496    *" need-ngettext "*) gt_api_version=2 ;;
16497    *) gt_api_version=1 ;;
16498  esac
16499  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16500  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16501
16502    if test "$USE_NLS" = "yes"; then
16503    gt_use_preinstalled_gnugettext=no
16504
16505
16506        if test $gt_api_version -ge 3; then
16507          gt_revision_test_code='
16508#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16509#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16510#endif
16511typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16512'
16513        else
16514          gt_revision_test_code=
16515        fi
16516        if test $gt_api_version -ge 2; then
16517          gt_expression_test_code=' + * ngettext ("", "", 0)'
16518        else
16519          gt_expression_test_code=
16520        fi
16521
16522        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16523$as_echo_n "checking for GNU gettext in libc... " >&6; }
16524if eval \${$gt_func_gnugettext_libc+:} false; then :
16525  $as_echo_n "(cached) " >&6
16526else
16527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528/* end confdefs.h.  */
16529
16530#include <libintl.h>
16531#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16532extern int _nl_msg_cat_cntr;
16533extern int *_nl_domain_bindings;
16534#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
16535#else
16536#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16537#endif
16538$gt_revision_test_code
16539
16540int
16541main ()
16542{
16543
16544bindtextdomain ("", "");
16545return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16546
16547  ;
16548  return 0;
16549}
16550_ACEOF
16551if ac_fn_c_try_link "$LINENO"; then :
16552  eval "$gt_func_gnugettext_libc=yes"
16553else
16554  eval "$gt_func_gnugettext_libc=no"
16555fi
16556rm -f core conftest.err conftest.$ac_objext \
16557    conftest$ac_exeext conftest.$ac_ext
16558fi
16559eval ac_res=\$$gt_func_gnugettext_libc
16560	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16561$as_echo "$ac_res" >&6; }
16562
16563        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16564
16565
16566
16567
16568
16569          am_save_CPPFLAGS="$CPPFLAGS"
16570
16571  for element in $INCICONV; do
16572    haveit=
16573    for x in $CPPFLAGS; do
16574
16575  acl_save_prefix="$prefix"
16576  prefix="$acl_final_prefix"
16577  acl_save_exec_prefix="$exec_prefix"
16578  exec_prefix="$acl_final_exec_prefix"
16579  eval x=\"$x\"
16580  exec_prefix="$acl_save_exec_prefix"
16581  prefix="$acl_save_prefix"
16582
16583      if test "X$x" = "X$element"; then
16584        haveit=yes
16585        break
16586      fi
16587    done
16588    if test -z "$haveit"; then
16589      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16590    fi
16591  done
16592
16593
16594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16595$as_echo_n "checking for iconv... " >&6; }
16596if ${am_cv_func_iconv+:} false; then :
16597  $as_echo_n "(cached) " >&6
16598else
16599
16600    am_cv_func_iconv="no, consider installing GNU libiconv"
16601    am_cv_lib_iconv=no
16602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h.  */
16604
16605#include <stdlib.h>
16606#include <iconv.h>
16607
16608int
16609main ()
16610{
16611iconv_t cd = iconv_open("","");
16612           iconv(cd,NULL,NULL,NULL,NULL);
16613           iconv_close(cd);
16614  ;
16615  return 0;
16616}
16617_ACEOF
16618if ac_fn_c_try_link "$LINENO"; then :
16619  am_cv_func_iconv=yes
16620fi
16621rm -f core conftest.err conftest.$ac_objext \
16622    conftest$ac_exeext conftest.$ac_ext
16623    if test "$am_cv_func_iconv" != yes; then
16624      am_save_LIBS="$LIBS"
16625      LIBS="$LIBS $LIBICONV"
16626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627/* end confdefs.h.  */
16628
16629#include <stdlib.h>
16630#include <iconv.h>
16631
16632int
16633main ()
16634{
16635iconv_t cd = iconv_open("","");
16636             iconv(cd,NULL,NULL,NULL,NULL);
16637             iconv_close(cd);
16638  ;
16639  return 0;
16640}
16641_ACEOF
16642if ac_fn_c_try_link "$LINENO"; then :
16643  am_cv_lib_iconv=yes
16644        am_cv_func_iconv=yes
16645fi
16646rm -f core conftest.err conftest.$ac_objext \
16647    conftest$ac_exeext conftest.$ac_ext
16648      LIBS="$am_save_LIBS"
16649    fi
16650
16651fi
16652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16653$as_echo "$am_cv_func_iconv" >&6; }
16654  if test "$am_cv_func_iconv" = yes; then
16655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16656$as_echo_n "checking for working iconv... " >&6; }
16657if ${am_cv_func_iconv_works+:} false; then :
16658  $as_echo_n "(cached) " >&6
16659else
16660
16661                  am_save_LIBS="$LIBS"
16662      if test $am_cv_lib_iconv = yes; then
16663        LIBS="$LIBS $LIBICONV"
16664      fi
16665      am_cv_func_iconv_works=no
16666      for ac_iconv_const in '' 'const'; do
16667        if test "$cross_compiling" = yes; then :
16668  case "$host_os" in
16669             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16670             *)            am_cv_func_iconv_works="guessing yes" ;;
16671           esac
16672else
16673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674/* end confdefs.h.  */
16675
16676#include <iconv.h>
16677#include <string.h>
16678
16679#ifndef ICONV_CONST
16680# define ICONV_CONST $ac_iconv_const
16681#endif
16682
16683int
16684main ()
16685{
16686int result = 0;
16687  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16688     returns.  */
16689  {
16690    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16691    if (cd_utf8_to_88591 != (iconv_t)(-1))
16692      {
16693        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16694        char buf[10];
16695        ICONV_CONST char *inptr = input;
16696        size_t inbytesleft = strlen (input);
16697        char *outptr = buf;
16698        size_t outbytesleft = sizeof (buf);
16699        size_t res = iconv (cd_utf8_to_88591,
16700                            &inptr, &inbytesleft,
16701                            &outptr, &outbytesleft);
16702        if (res == 0)
16703          result |= 1;
16704        iconv_close (cd_utf8_to_88591);
16705      }
16706  }
16707  /* Test against Solaris 10 bug: Failures are not distinguishable from
16708     successful returns.  */
16709  {
16710    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16711    if (cd_ascii_to_88591 != (iconv_t)(-1))
16712      {
16713        static ICONV_CONST char input[] = "\263";
16714        char buf[10];
16715        ICONV_CONST char *inptr = input;
16716        size_t inbytesleft = strlen (input);
16717        char *outptr = buf;
16718        size_t outbytesleft = sizeof (buf);
16719        size_t res = iconv (cd_ascii_to_88591,
16720                            &inptr, &inbytesleft,
16721                            &outptr, &outbytesleft);
16722        if (res == 0)
16723          result |= 2;
16724        iconv_close (cd_ascii_to_88591);
16725      }
16726  }
16727  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16728  {
16729    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16730    if (cd_88591_to_utf8 != (iconv_t)(-1))
16731      {
16732        static ICONV_CONST char input[] = "\304";
16733        static char buf[2] = { (char)0xDE, (char)0xAD };
16734        ICONV_CONST char *inptr = input;
16735        size_t inbytesleft = 1;
16736        char *outptr = buf;
16737        size_t outbytesleft = 1;
16738        size_t res = iconv (cd_88591_to_utf8,
16739                            &inptr, &inbytesleft,
16740                            &outptr, &outbytesleft);
16741        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16742          result |= 4;
16743        iconv_close (cd_88591_to_utf8);
16744      }
16745  }
16746#if 0 /* This bug could be worked around by the caller.  */
16747  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16748  {
16749    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16750    if (cd_88591_to_utf8 != (iconv_t)(-1))
16751      {
16752        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16753        char buf[50];
16754        ICONV_CONST char *inptr = input;
16755        size_t inbytesleft = strlen (input);
16756        char *outptr = buf;
16757        size_t outbytesleft = sizeof (buf);
16758        size_t res = iconv (cd_88591_to_utf8,
16759                            &inptr, &inbytesleft,
16760                            &outptr, &outbytesleft);
16761        if ((int)res > 0)
16762          result |= 8;
16763        iconv_close (cd_88591_to_utf8);
16764      }
16765  }
16766#endif
16767  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16768     provided.  */
16769  {
16770    /* Try standardized names.  */
16771    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
16772    /* Try IRIX, OSF/1 names.  */
16773    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
16774    /* Try AIX names.  */
16775    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
16776    /* Try HP-UX names.  */
16777    iconv_t cd4 = iconv_open ("utf8", "eucJP");
16778    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
16779        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
16780      result |= 16;
16781    if (cd1 != (iconv_t)(-1))
16782      iconv_close (cd1);
16783    if (cd2 != (iconv_t)(-1))
16784      iconv_close (cd2);
16785    if (cd3 != (iconv_t)(-1))
16786      iconv_close (cd3);
16787    if (cd4 != (iconv_t)(-1))
16788      iconv_close (cd4);
16789  }
16790  return result;
16791
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_run "$LINENO"; then :
16797  am_cv_func_iconv_works=yes
16798fi
16799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16800  conftest.$ac_objext conftest.beam conftest.$ac_ext
16801fi
16802
16803        test "$am_cv_func_iconv_works" = no || break
16804      done
16805      LIBS="$am_save_LIBS"
16806
16807fi
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16809$as_echo "$am_cv_func_iconv_works" >&6; }
16810    case "$am_cv_func_iconv_works" in
16811      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16812      *)   am_func_iconv=yes ;;
16813    esac
16814  else
16815    am_func_iconv=no am_cv_lib_iconv=no
16816  fi
16817  if test "$am_func_iconv" = yes; then
16818
16819$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16820
16821  fi
16822  if test "$am_cv_lib_iconv" = yes; then
16823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16824$as_echo_n "checking how to link with libiconv... " >&6; }
16825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16826$as_echo "$LIBICONV" >&6; }
16827  else
16828            CPPFLAGS="$am_save_CPPFLAGS"
16829    LIBICONV=
16830    LTLIBICONV=
16831  fi
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842    use_additional=yes
16843
16844  acl_save_prefix="$prefix"
16845  prefix="$acl_final_prefix"
16846  acl_save_exec_prefix="$exec_prefix"
16847  exec_prefix="$acl_final_exec_prefix"
16848
16849    eval additional_includedir=\"$includedir\"
16850    eval additional_libdir=\"$libdir\"
16851
16852  exec_prefix="$acl_save_exec_prefix"
16853  prefix="$acl_save_prefix"
16854
16855
16856# Check whether --with-libintl-prefix was given.
16857if test "${with_libintl_prefix+set}" = set; then :
16858  withval=$with_libintl_prefix;
16859    if test "X$withval" = "Xno"; then
16860      use_additional=no
16861    else
16862      if test "X$withval" = "X"; then
16863
16864  acl_save_prefix="$prefix"
16865  prefix="$acl_final_prefix"
16866  acl_save_exec_prefix="$exec_prefix"
16867  exec_prefix="$acl_final_exec_prefix"
16868
16869          eval additional_includedir=\"$includedir\"
16870          eval additional_libdir=\"$libdir\"
16871
16872  exec_prefix="$acl_save_exec_prefix"
16873  prefix="$acl_save_prefix"
16874
16875      else
16876        additional_includedir="$withval/include"
16877        additional_libdir="$withval/$acl_libdirstem"
16878        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16879           && test ! -d "$withval/$acl_libdirstem"; then
16880          additional_libdir="$withval/$acl_libdirstem2"
16881        fi
16882      fi
16883    fi
16884
16885fi
16886
16887      LIBINTL=
16888  LTLIBINTL=
16889  INCINTL=
16890  LIBINTL_PREFIX=
16891      HAVE_LIBINTL=
16892  rpathdirs=
16893  ltrpathdirs=
16894  names_already_handled=
16895  names_next_round='intl '
16896  while test -n "$names_next_round"; do
16897    names_this_round="$names_next_round"
16898    names_next_round=
16899    for name in $names_this_round; do
16900      already_handled=
16901      for n in $names_already_handled; do
16902        if test "$n" = "$name"; then
16903          already_handled=yes
16904          break
16905        fi
16906      done
16907      if test -z "$already_handled"; then
16908        names_already_handled="$names_already_handled $name"
16909                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16910        eval value=\"\$HAVE_LIB$uppername\"
16911        if test -n "$value"; then
16912          if test "$value" = yes; then
16913            eval value=\"\$LIB$uppername\"
16914            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16915            eval value=\"\$LTLIB$uppername\"
16916            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16917          else
16918                                    :
16919          fi
16920        else
16921                              found_dir=
16922          found_la=
16923          found_so=
16924          found_a=
16925          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16926          if test -n "$acl_shlibext"; then
16927            shrext=".$acl_shlibext"             # typically: shrext=.so
16928          else
16929            shrext=
16930          fi
16931          if test $use_additional = yes; then
16932            dir="$additional_libdir"
16933                                    if test -n "$acl_shlibext"; then
16934              if test -f "$dir/$libname$shrext"; then
16935                found_dir="$dir"
16936                found_so="$dir/$libname$shrext"
16937              else
16938                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16939                  ver=`(cd "$dir" && \
16940                        for f in "$libname$shrext".*; do echo "$f"; done \
16941                        | sed -e "s,^$libname$shrext\\\\.,," \
16942                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16943                        | sed 1q ) 2>/dev/null`
16944                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16945                    found_dir="$dir"
16946                    found_so="$dir/$libname$shrext.$ver"
16947                  fi
16948                else
16949                  eval library_names=\"$acl_library_names_spec\"
16950                  for f in $library_names; do
16951                    if test -f "$dir/$f"; then
16952                      found_dir="$dir"
16953                      found_so="$dir/$f"
16954                      break
16955                    fi
16956                  done
16957                fi
16958              fi
16959            fi
16960                        if test "X$found_dir" = "X"; then
16961              if test -f "$dir/$libname.$acl_libext"; then
16962                found_dir="$dir"
16963                found_a="$dir/$libname.$acl_libext"
16964              fi
16965            fi
16966            if test "X$found_dir" != "X"; then
16967              if test -f "$dir/$libname.la"; then
16968                found_la="$dir/$libname.la"
16969              fi
16970            fi
16971          fi
16972          if test "X$found_dir" = "X"; then
16973            for x in $LDFLAGS $LTLIBINTL; do
16974
16975  acl_save_prefix="$prefix"
16976  prefix="$acl_final_prefix"
16977  acl_save_exec_prefix="$exec_prefix"
16978  exec_prefix="$acl_final_exec_prefix"
16979  eval x=\"$x\"
16980  exec_prefix="$acl_save_exec_prefix"
16981  prefix="$acl_save_prefix"
16982
16983              case "$x" in
16984                -L*)
16985                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16986                                    if test -n "$acl_shlibext"; then
16987                    if test -f "$dir/$libname$shrext"; then
16988                      found_dir="$dir"
16989                      found_so="$dir/$libname$shrext"
16990                    else
16991                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16992                        ver=`(cd "$dir" && \
16993                              for f in "$libname$shrext".*; do echo "$f"; done \
16994                              | sed -e "s,^$libname$shrext\\\\.,," \
16995                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16996                              | sed 1q ) 2>/dev/null`
16997                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16998                          found_dir="$dir"
16999                          found_so="$dir/$libname$shrext.$ver"
17000                        fi
17001                      else
17002                        eval library_names=\"$acl_library_names_spec\"
17003                        for f in $library_names; do
17004                          if test -f "$dir/$f"; then
17005                            found_dir="$dir"
17006                            found_so="$dir/$f"
17007                            break
17008                          fi
17009                        done
17010                      fi
17011                    fi
17012                  fi
17013                                    if test "X$found_dir" = "X"; then
17014                    if test -f "$dir/$libname.$acl_libext"; then
17015                      found_dir="$dir"
17016                      found_a="$dir/$libname.$acl_libext"
17017                    fi
17018                  fi
17019                  if test "X$found_dir" != "X"; then
17020                    if test -f "$dir/$libname.la"; then
17021                      found_la="$dir/$libname.la"
17022                    fi
17023                  fi
17024                  ;;
17025              esac
17026              if test "X$found_dir" != "X"; then
17027                break
17028              fi
17029            done
17030          fi
17031          if test "X$found_dir" != "X"; then
17032                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17033            if test "X$found_so" != "X"; then
17034                                                        if test "$enable_rpath" = no \
17035                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17036                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17037                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17038              else
17039                                                                                haveit=
17040                for x in $ltrpathdirs; do
17041                  if test "X$x" = "X$found_dir"; then
17042                    haveit=yes
17043                    break
17044                  fi
17045                done
17046                if test -z "$haveit"; then
17047                  ltrpathdirs="$ltrpathdirs $found_dir"
17048                fi
17049                                if test "$acl_hardcode_direct" = yes; then
17050                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17051                else
17052                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17053                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17054                                                            haveit=
17055                    for x in $rpathdirs; do
17056                      if test "X$x" = "X$found_dir"; then
17057                        haveit=yes
17058                        break
17059                      fi
17060                    done
17061                    if test -z "$haveit"; then
17062                      rpathdirs="$rpathdirs $found_dir"
17063                    fi
17064                  else
17065                                                                                haveit=
17066                    for x in $LDFLAGS $LIBINTL; do
17067
17068  acl_save_prefix="$prefix"
17069  prefix="$acl_final_prefix"
17070  acl_save_exec_prefix="$exec_prefix"
17071  exec_prefix="$acl_final_exec_prefix"
17072  eval x=\"$x\"
17073  exec_prefix="$acl_save_exec_prefix"
17074  prefix="$acl_save_prefix"
17075
17076                      if test "X$x" = "X-L$found_dir"; then
17077                        haveit=yes
17078                        break
17079                      fi
17080                    done
17081                    if test -z "$haveit"; then
17082                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17083                    fi
17084                    if test "$acl_hardcode_minus_L" != no; then
17085                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17086                    else
17087                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17088                    fi
17089                  fi
17090                fi
17091              fi
17092            else
17093              if test "X$found_a" != "X"; then
17094                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17095              else
17096                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17097              fi
17098            fi
17099                        additional_includedir=
17100            case "$found_dir" in
17101              */$acl_libdirstem | */$acl_libdirstem/)
17102                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17103                if test "$name" = 'intl'; then
17104                  LIBINTL_PREFIX="$basedir"
17105                fi
17106                additional_includedir="$basedir/include"
17107                ;;
17108              */$acl_libdirstem2 | */$acl_libdirstem2/)
17109                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17110                if test "$name" = 'intl'; then
17111                  LIBINTL_PREFIX="$basedir"
17112                fi
17113                additional_includedir="$basedir/include"
17114                ;;
17115            esac
17116            if test "X$additional_includedir" != "X"; then
17117                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17118                haveit=
17119                if test "X$additional_includedir" = "X/usr/local/include"; then
17120                  if test -n "$GCC"; then
17121                    case $host_os in
17122                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17123                    esac
17124                  fi
17125                fi
17126                if test -z "$haveit"; then
17127                  for x in $CPPFLAGS $INCINTL; do
17128
17129  acl_save_prefix="$prefix"
17130  prefix="$acl_final_prefix"
17131  acl_save_exec_prefix="$exec_prefix"
17132  exec_prefix="$acl_final_exec_prefix"
17133  eval x=\"$x\"
17134  exec_prefix="$acl_save_exec_prefix"
17135  prefix="$acl_save_prefix"
17136
17137                    if test "X$x" = "X-I$additional_includedir"; then
17138                      haveit=yes
17139                      break
17140                    fi
17141                  done
17142                  if test -z "$haveit"; then
17143                    if test -d "$additional_includedir"; then
17144                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17145                    fi
17146                  fi
17147                fi
17148              fi
17149            fi
17150                        if test -n "$found_la"; then
17151                                                        save_libdir="$libdir"
17152              case "$found_la" in
17153                */* | *\\*) . "$found_la" ;;
17154                *) . "./$found_la" ;;
17155              esac
17156              libdir="$save_libdir"
17157                            for dep in $dependency_libs; do
17158                case "$dep" in
17159                  -L*)
17160                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17161                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17162                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17163                      haveit=
17164                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17165                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17166                        if test -n "$GCC"; then
17167                          case $host_os in
17168                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17169                          esac
17170                        fi
17171                      fi
17172                      if test -z "$haveit"; then
17173                        haveit=
17174                        for x in $LDFLAGS $LIBINTL; do
17175
17176  acl_save_prefix="$prefix"
17177  prefix="$acl_final_prefix"
17178  acl_save_exec_prefix="$exec_prefix"
17179  exec_prefix="$acl_final_exec_prefix"
17180  eval x=\"$x\"
17181  exec_prefix="$acl_save_exec_prefix"
17182  prefix="$acl_save_prefix"
17183
17184                          if test "X$x" = "X-L$additional_libdir"; then
17185                            haveit=yes
17186                            break
17187                          fi
17188                        done
17189                        if test -z "$haveit"; then
17190                          if test -d "$additional_libdir"; then
17191                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17192                          fi
17193                        fi
17194                        haveit=
17195                        for x in $LDFLAGS $LTLIBINTL; do
17196
17197  acl_save_prefix="$prefix"
17198  prefix="$acl_final_prefix"
17199  acl_save_exec_prefix="$exec_prefix"
17200  exec_prefix="$acl_final_exec_prefix"
17201  eval x=\"$x\"
17202  exec_prefix="$acl_save_exec_prefix"
17203  prefix="$acl_save_prefix"
17204
17205                          if test "X$x" = "X-L$additional_libdir"; then
17206                            haveit=yes
17207                            break
17208                          fi
17209                        done
17210                        if test -z "$haveit"; then
17211                          if test -d "$additional_libdir"; then
17212                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17213                          fi
17214                        fi
17215                      fi
17216                    fi
17217                    ;;
17218                  -R*)
17219                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17220                    if test "$enable_rpath" != no; then
17221                                                                  haveit=
17222                      for x in $rpathdirs; do
17223                        if test "X$x" = "X$dir"; then
17224                          haveit=yes
17225                          break
17226                        fi
17227                      done
17228                      if test -z "$haveit"; then
17229                        rpathdirs="$rpathdirs $dir"
17230                      fi
17231                                                                  haveit=
17232                      for x in $ltrpathdirs; do
17233                        if test "X$x" = "X$dir"; then
17234                          haveit=yes
17235                          break
17236                        fi
17237                      done
17238                      if test -z "$haveit"; then
17239                        ltrpathdirs="$ltrpathdirs $dir"
17240                      fi
17241                    fi
17242                    ;;
17243                  -l*)
17244                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17245                    ;;
17246                  *.la)
17247                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17248                    ;;
17249                  *)
17250                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17251                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17252                    ;;
17253                esac
17254              done
17255            fi
17256          else
17257                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17258            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17259          fi
17260        fi
17261      fi
17262    done
17263  done
17264  if test "X$rpathdirs" != "X"; then
17265    if test -n "$acl_hardcode_libdir_separator"; then
17266                        alldirs=
17267      for found_dir in $rpathdirs; do
17268        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17269      done
17270            acl_save_libdir="$libdir"
17271      libdir="$alldirs"
17272      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17273      libdir="$acl_save_libdir"
17274      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17275    else
17276            for found_dir in $rpathdirs; do
17277        acl_save_libdir="$libdir"
17278        libdir="$found_dir"
17279        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17280        libdir="$acl_save_libdir"
17281        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17282      done
17283    fi
17284  fi
17285  if test "X$ltrpathdirs" != "X"; then
17286            for found_dir in $ltrpathdirs; do
17287      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17288    done
17289  fi
17290
17291
17292
17293
17294
17295          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17296$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17297if eval \${$gt_func_gnugettext_libintl+:} false; then :
17298  $as_echo_n "(cached) " >&6
17299else
17300  gt_save_CPPFLAGS="$CPPFLAGS"
17301            CPPFLAGS="$CPPFLAGS $INCINTL"
17302            gt_save_LIBS="$LIBS"
17303            LIBS="$LIBS $LIBINTL"
17304                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305/* end confdefs.h.  */
17306
17307#include <libintl.h>
17308#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17309extern int _nl_msg_cat_cntr;
17310extern
17311#ifdef __cplusplus
17312"C"
17313#endif
17314const char *_nl_expand_alias (const char *);
17315#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17316#else
17317#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17318#endif
17319$gt_revision_test_code
17320
17321int
17322main ()
17323{
17324
17325bindtextdomain ("", "");
17326return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17327
17328  ;
17329  return 0;
17330}
17331_ACEOF
17332if ac_fn_c_try_link "$LINENO"; then :
17333  eval "$gt_func_gnugettext_libintl=yes"
17334else
17335  eval "$gt_func_gnugettext_libintl=no"
17336fi
17337rm -f core conftest.err conftest.$ac_objext \
17338    conftest$ac_exeext conftest.$ac_ext
17339                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17340              LIBS="$LIBS $LIBICONV"
17341              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342/* end confdefs.h.  */
17343
17344#include <libintl.h>
17345#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17346extern int _nl_msg_cat_cntr;
17347extern
17348#ifdef __cplusplus
17349"C"
17350#endif
17351const char *_nl_expand_alias (const char *);
17352#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17353#else
17354#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17355#endif
17356$gt_revision_test_code
17357
17358int
17359main ()
17360{
17361
17362bindtextdomain ("", "");
17363return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17364
17365  ;
17366  return 0;
17367}
17368_ACEOF
17369if ac_fn_c_try_link "$LINENO"; then :
17370  LIBINTL="$LIBINTL $LIBICONV"
17371                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17372                 eval "$gt_func_gnugettext_libintl=yes"
17373
17374fi
17375rm -f core conftest.err conftest.$ac_objext \
17376    conftest$ac_exeext conftest.$ac_ext
17377            fi
17378            CPPFLAGS="$gt_save_CPPFLAGS"
17379            LIBS="$gt_save_LIBS"
17380fi
17381eval ac_res=\$$gt_func_gnugettext_libintl
17382	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17383$as_echo "$ac_res" >&6; }
17384        fi
17385
17386                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17387           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17388                && test "$PACKAGE" != gettext-runtime \
17389                && test "$PACKAGE" != gettext-tools; }; then
17390          gt_use_preinstalled_gnugettext=yes
17391        else
17392                    LIBINTL=
17393          LTLIBINTL=
17394          INCINTL=
17395        fi
17396
17397
17398
17399    if test -n "$INTL_MACOSX_LIBS"; then
17400      if test "$gt_use_preinstalled_gnugettext" = "yes" \
17401         || test "$nls_cv_use_gnu_gettext" = "yes"; then
17402                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17403        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17404      fi
17405    fi
17406
17407    if test "$gt_use_preinstalled_gnugettext" = "yes" \
17408       || test "$nls_cv_use_gnu_gettext" = "yes"; then
17409
17410$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17411
17412    else
17413      USE_NLS=no
17414    fi
17415  fi
17416
17417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17418$as_echo_n "checking whether to use NLS... " >&6; }
17419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17420$as_echo "$USE_NLS" >&6; }
17421  if test "$USE_NLS" = "yes"; then
17422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17423$as_echo_n "checking where the gettext function comes from... " >&6; }
17424    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17425      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17426        gt_source="external libintl"
17427      else
17428        gt_source="libc"
17429      fi
17430    else
17431      gt_source="included intl directory"
17432    fi
17433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17434$as_echo "$gt_source" >&6; }
17435  fi
17436
17437  if test "$USE_NLS" = "yes"; then
17438
17439    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17440      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17441        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17442$as_echo_n "checking how to link with libintl... " >&6; }
17443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17444$as_echo "$LIBINTL" >&6; }
17445
17446  for element in $INCINTL; do
17447    haveit=
17448    for x in $CPPFLAGS; do
17449
17450  acl_save_prefix="$prefix"
17451  prefix="$acl_final_prefix"
17452  acl_save_exec_prefix="$exec_prefix"
17453  exec_prefix="$acl_final_exec_prefix"
17454  eval x=\"$x\"
17455  exec_prefix="$acl_save_exec_prefix"
17456  prefix="$acl_save_prefix"
17457
17458      if test "X$x" = "X$element"; then
17459        haveit=yes
17460        break
17461      fi
17462    done
17463    if test -z "$haveit"; then
17464      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17465    fi
17466  done
17467
17468      fi
17469
17470
17471$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17472
17473
17474$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17475
17476    fi
17477
17478        POSUB=po
17479  fi
17480
17481
17482
17483    INTLLIBS="$LIBINTL"
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17495$as_echo_n "checking for mbstate_t... " >&6; }
17496if ${ac_cv_type_mbstate_t+:} false; then :
17497  $as_echo_n "(cached) " >&6
17498else
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501$ac_includes_default
17502/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17503   <wchar.h>.
17504   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17505   included before <wchar.h>.  */
17506#include <stddef.h>
17507#include <stdio.h>
17508#include <time.h>
17509#include <wchar.h>
17510int
17511main ()
17512{
17513mbstate_t x; return sizeof x;
17514  ;
17515  return 0;
17516}
17517_ACEOF
17518if ac_fn_c_try_compile "$LINENO"; then :
17519  ac_cv_type_mbstate_t=yes
17520else
17521  ac_cv_type_mbstate_t=no
17522fi
17523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524fi
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17526$as_echo "$ac_cv_type_mbstate_t" >&6; }
17527   if test $ac_cv_type_mbstate_t = yes; then
17528
17529$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17530
17531   else
17532
17533$as_echo "#define mbstate_t int" >>confdefs.h
17534
17535   fi
17536
17537
17538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17539$as_echo_n "checking for wchar_t... " >&6; }
17540if ${gt_cv_c_wchar_t+:} false; then :
17541  $as_echo_n "(cached) " >&6
17542else
17543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544/* end confdefs.h.  */
17545#include <stddef.h>
17546            wchar_t foo = (wchar_t)'\0';
17547int
17548main ()
17549{
17550
17551  ;
17552  return 0;
17553}
17554_ACEOF
17555if ac_fn_c_try_compile "$LINENO"; then :
17556  gt_cv_c_wchar_t=yes
17557else
17558  gt_cv_c_wchar_t=no
17559fi
17560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561fi
17562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17563$as_echo "$gt_cv_c_wchar_t" >&6; }
17564  if test $gt_cv_c_wchar_t = yes; then
17565
17566$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17567
17568  fi
17569
17570
17571
17572if test "$am_cv_func_iconv" = yes -a -n "$am_cv_proto_iconv_arg1"; then
17573  ICONV_CONST="const"
17574else
17575  ICONV_CONST=""
17576fi
17577
17578
17579if test $gt_cv_c_wchar_t = yes; then
17580  HAVE_WCHAR_T=1
17581else
17582  HAVE_WCHAR_T=0
17583fi
17584
17585
17586for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
17587do :
17588  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17590if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17591  cat >>confdefs.h <<_ACEOF
17592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593_ACEOF
17594
17595fi
17596done
17597
17598
17599if test $ac_cv_func_wcrtomb = yes || test $ac_cv_func_mbrtowc = yes; then
17600  USE_MBSTATE_T=1
17601else
17602  USE_MBSTATE_T=0
17603fi
17604
17605
17606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
17607$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
17608if ${gl_cv_header_wchar_h_standalone+:} false; then :
17609  $as_echo_n "(cached) " >&6
17610else
17611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h.  */
17613#include <wchar.h>
17614          wchar_t w;
17615int
17616main ()
17617{
17618
17619  ;
17620  return 0;
17621}
17622_ACEOF
17623if ac_fn_c_try_compile "$LINENO"; then :
17624  gl_cv_header_wchar_h_standalone=yes
17625else
17626  gl_cv_header_wchar_h_standalone=no
17627fi
17628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629fi
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
17631$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
17632if test $gl_cv_header_wchar_h_standalone = yes; then
17633  BROKEN_WCHAR_H=0
17634else
17635  BROKEN_WCHAR_H=1
17636fi
17637
17638
17639for ac_func in memmove
17640do :
17641  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17642if test "x$ac_cv_func_memmove" = xyes; then :
17643  cat >>confdefs.h <<_ACEOF
17644#define HAVE_MEMMOVE 1
17645_ACEOF
17646
17647else
17648  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
17649fi
17650done
17651
17652
17653
17654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17655$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17656if ${am_cv_langinfo_codeset+:} false; then :
17657  $as_echo_n "(cached) " >&6
17658else
17659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660/* end confdefs.h.  */
17661#include <langinfo.h>
17662int
17663main ()
17664{
17665char* cs = nl_langinfo(CODESET); return !cs;
17666  ;
17667  return 0;
17668}
17669_ACEOF
17670if ac_fn_c_try_link "$LINENO"; then :
17671  am_cv_langinfo_codeset=yes
17672else
17673  am_cv_langinfo_codeset=no
17674fi
17675rm -f core conftest.err conftest.$ac_objext \
17676    conftest$ac_exeext conftest.$ac_ext
17677
17678fi
17679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
17680$as_echo "$am_cv_langinfo_codeset" >&6; }
17681  if test $am_cv_langinfo_codeset = yes; then
17682
17683$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17684
17685  fi
17686
17687
17688
17689
17690  for ac_header in $ac_header_list
17691do :
17692  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17693ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17694"
17695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17696  cat >>confdefs.h <<_ACEOF
17697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17698_ACEOF
17699
17700fi
17701
17702done
17703
17704
17705
17706
17707
17708
17709  for ac_func in $ac_func_list
17710do :
17711  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17712ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17713if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17714  cat >>confdefs.h <<_ACEOF
17715#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17716_ACEOF
17717
17718fi
17719done
17720
17721
17722
17723
17724
17725
17726
17727
17728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17729$as_echo_n "checking for working fcntl.h... " >&6; }
17730if ${gl_cv_header_working_fcntl_h+:} false; then :
17731  $as_echo_n "(cached) " >&6
17732else
17733  if test "$cross_compiling" = yes; then :
17734  case "$host_os" in
17735                  # Guess 'no' on native Windows.
17736          mingw*) gl_cv_header_working_fcntl_h='no' ;;
17737          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
17738        esac
17739
17740else
17741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743#include <sys/types.h>
17744           #include <sys/stat.h>
17745           #if HAVE_UNISTD_H
17746           # include <unistd.h>
17747           #else /* on Windows with MSVC */
17748           # include <io.h>
17749           # include <stdlib.h>
17750           # defined sleep(n) _sleep ((n) * 1000)
17751           #endif
17752           #include <fcntl.h>
17753           #ifndef O_NOATIME
17754            #define O_NOATIME 0
17755           #endif
17756           #ifndef O_NOFOLLOW
17757            #define O_NOFOLLOW 0
17758           #endif
17759           static int const constants[] =
17760            {
17761              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17762              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17763            };
17764
17765int
17766main ()
17767{
17768
17769            int result = !constants;
17770            #if HAVE_SYMLINK
17771            {
17772              static char const sym[] = "conftest.sym";
17773              if (symlink ("/dev/null", sym) != 0)
17774                result |= 2;
17775              else
17776                {
17777                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17778                  if (fd >= 0)
17779                    {
17780                      close (fd);
17781                      result |= 4;
17782                    }
17783                }
17784              if (unlink (sym) != 0 || symlink (".", sym) != 0)
17785                result |= 2;
17786              else
17787                {
17788                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17789                  if (fd >= 0)
17790                    {
17791                      close (fd);
17792                      result |= 4;
17793                    }
17794                }
17795              unlink (sym);
17796            }
17797            #endif
17798            {
17799              static char const file[] = "confdefs.h";
17800              int fd = open (file, O_RDONLY | O_NOATIME);
17801              if (fd < 0)
17802                result |= 8;
17803              else
17804                {
17805                  struct stat st0;
17806                  if (fstat (fd, &st0) != 0)
17807                    result |= 16;
17808                  else
17809                    {
17810                      char c;
17811                      sleep (1);
17812                      if (read (fd, &c, 1) != 1)
17813                        result |= 24;
17814                      else
17815                        {
17816                          if (close (fd) != 0)
17817                            result |= 32;
17818                          else
17819                            {
17820                              struct stat st1;
17821                              if (stat (file, &st1) != 0)
17822                                result |= 40;
17823                              else
17824                                if (st0.st_atime != st1.st_atime)
17825                                  result |= 64;
17826                            }
17827                        }
17828                    }
17829                }
17830            }
17831            return result;
17832  ;
17833  return 0;
17834}
17835_ACEOF
17836if ac_fn_c_try_run "$LINENO"; then :
17837  gl_cv_header_working_fcntl_h=yes
17838else
17839  case $? in #(
17840        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17841        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17842        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17843         *) gl_cv_header_working_fcntl_h='no';;
17844        esac
17845fi
17846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17847  conftest.$ac_objext conftest.beam conftest.$ac_ext
17848fi
17849
17850
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17853$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
17854
17855  case $gl_cv_header_working_fcntl_h in #(
17856  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17857  *) ac_val=1;;
17858  esac
17859
17860cat >>confdefs.h <<_ACEOF
17861#define HAVE_WORKING_O_NOATIME $ac_val
17862_ACEOF
17863
17864
17865  case $gl_cv_header_working_fcntl_h in #(
17866  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17867  *) ac_val=1;;
17868  esac
17869
17870cat >>confdefs.h <<_ACEOF
17871#define HAVE_WORKING_O_NOFOLLOW $ac_val
17872_ACEOF
17873
17874
17875
17876
17877
17878    for ac_header in wchar.h
17879do :
17880  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
17881if test "x$ac_cv_header_wchar_h" = xyes; then :
17882  cat >>confdefs.h <<_ACEOF
17883#define HAVE_WCHAR_H 1
17884_ACEOF
17885
17886fi
17887
17888done
17889
17890
17891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
17892$as_echo_n "checking for EILSEQ... " >&6; }
17893if ${ac_cv_decl_EILSEQ+:} false; then :
17894  $as_echo_n "(cached) " >&6
17895else
17896
17897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898/* end confdefs.h.  */
17899
17900#include <errno.h>
17901#ifdef EILSEQ
17902yes
17903#endif
17904
17905_ACEOF
17906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17907  $EGREP "yes" >/dev/null 2>&1; then :
17908  have_eilseq=1
17909fi
17910rm -f conftest*
17911
17912    if test -n "$have_eilseq"; then
17913            ac_cv_decl_EILSEQ=yes
17914    else
17915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916/* end confdefs.h.  */
17917
17918#include <errno.h>
17919#if HAVE_WCHAR_H
17920#include <wchar.h>
17921#endif
17922#ifdef EILSEQ
17923yes
17924#endif
17925
17926_ACEOF
17927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17928  $EGREP "yes" >/dev/null 2>&1; then :
17929  have_eilseq=1
17930fi
17931rm -f conftest*
17932
17933      if test -n "$have_eilseq"; then
17934                        if ac_fn_c_compute_int "$LINENO" "EILSEQ" "ac_cv_decl_EILSEQ"        "
17935#include <errno.h>
17936#if HAVE_WCHAR_H
17937#include <wchar.h>
17938#endif
17939/* The following two lines are a workaround against an autoconf-2.52 bug.  */
17940#include <stdio.h>
17941#include <stdlib.h>
17942"; then :
17943
17944fi
17945
17946
17947      else
17948                                ac_cv_decl_EILSEQ=ENOENT
17949      fi
17950    fi
17951
17952fi
17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_EILSEQ" >&5
17954$as_echo "$ac_cv_decl_EILSEQ" >&6; }
17955  if test "$ac_cv_decl_EILSEQ" != yes; then
17956
17957cat >>confdefs.h <<_ACEOF
17958#define EILSEQ $ac_cv_decl_EILSEQ
17959_ACEOF
17960
17961    EILSEQ="$ac_cv_decl_EILSEQ"
17962
17963  fi
17964
17965
17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking byte ordering" >&5
17967$as_echo_n "checking byte ordering... " >&6; }
17968if ${cl_cv_sys_endian+:} false; then :
17969  $as_echo_n "(cached) " >&6
17970else
17971
17972if test "$cross_compiling" = yes; then :
17973  : # must guess the endianness
17974
17975else
17976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977/* end confdefs.h.  */
17978int main () {
17979  /* Are we little or big endian?  From Harbison&Steele.  */
17980  union
17981  {
17982    long l;
17983    char c[sizeof (long)];
17984  } u;
17985  u.l = 1;
17986  exit (u.c[0] == 1);
17987}
17988_ACEOF
17989if ac_fn_c_try_run "$LINENO"; then :
17990  cl_cv_sys_endian="big endian"
17991else
17992  cl_cv_sys_endian="little endian"
17993fi
17994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17995  conftest.$ac_objext conftest.beam conftest.$ac_ext
17996fi
17997
17998if test -z "$cl_cv_sys_endian"; then
17999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000/* end confdefs.h.  */
18001#if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
18002  yes
18003#endif
18004
18005_ACEOF
18006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18007  $EGREP "yes" >/dev/null 2>&1; then :
18008  cl_cv_sys_endian="big endian"
18009fi
18010rm -f conftest*
18011
18012fi
18013if test -z "$cl_cv_sys_endian"; then
18014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015/* end confdefs.h.  */
18016#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
18017  yes
18018#endif
18019
18020_ACEOF
18021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18022  $EGREP "yes" >/dev/null 2>&1; then :
18023  cl_cv_sys_endian="little endian"
18024fi
18025rm -f conftest*
18026
18027fi
18028if test -z "$cl_cv_sys_endian"; then
18029cl_cv_sys_endian="guessing little endian"
18030fi
18031
18032fi
18033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_sys_endian" >&5
18034$as_echo "$cl_cv_sys_endian" >&6; }
18035case "$cl_cv_sys_endian" in
18036  *little*)
18037
18038$as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
18039 ;;
18040  *big*) ;;
18041esac
18042
18043
18044
18045
18046
18047
18048
18049
18050          LIBC_FATAL_STDERR_=1
18051  export LIBC_FATAL_STDERR_
18052
18053ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18054if test "x$ac_cv_type_size_t" = xyes; then :
18055
18056else
18057
18058cat >>confdefs.h <<_ACEOF
18059#define size_t unsigned int
18060_ACEOF
18061
18062fi
18063
18064# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18065# for constant arguments.  Useless!
18066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18067$as_echo_n "checking for working alloca.h... " >&6; }
18068if ${ac_cv_working_alloca_h+:} false; then :
18069  $as_echo_n "(cached) " >&6
18070else
18071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072/* end confdefs.h.  */
18073#include <alloca.h>
18074int
18075main ()
18076{
18077char *p = (char *) alloca (2 * sizeof (int));
18078			  if (p) return 0;
18079  ;
18080  return 0;
18081}
18082_ACEOF
18083if ac_fn_c_try_link "$LINENO"; then :
18084  ac_cv_working_alloca_h=yes
18085else
18086  ac_cv_working_alloca_h=no
18087fi
18088rm -f core conftest.err conftest.$ac_objext \
18089    conftest$ac_exeext conftest.$ac_ext
18090fi
18091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18092$as_echo "$ac_cv_working_alloca_h" >&6; }
18093if test $ac_cv_working_alloca_h = yes; then
18094
18095$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18096
18097fi
18098
18099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18100$as_echo_n "checking for alloca... " >&6; }
18101if ${ac_cv_func_alloca_works+:} false; then :
18102  $as_echo_n "(cached) " >&6
18103else
18104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106#ifdef __GNUC__
18107# define alloca __builtin_alloca
18108#else
18109# ifdef _MSC_VER
18110#  include <malloc.h>
18111#  define alloca _alloca
18112# else
18113#  ifdef HAVE_ALLOCA_H
18114#   include <alloca.h>
18115#  else
18116#   ifdef _AIX
18117 #pragma alloca
18118#   else
18119#    ifndef alloca /* predefined by HP cc +Olibcalls */
18120void *alloca (size_t);
18121#    endif
18122#   endif
18123#  endif
18124# endif
18125#endif
18126
18127int
18128main ()
18129{
18130char *p = (char *) alloca (1);
18131				    if (p) return 0;
18132  ;
18133  return 0;
18134}
18135_ACEOF
18136if ac_fn_c_try_link "$LINENO"; then :
18137  ac_cv_func_alloca_works=yes
18138else
18139  ac_cv_func_alloca_works=no
18140fi
18141rm -f core conftest.err conftest.$ac_objext \
18142    conftest$ac_exeext conftest.$ac_ext
18143fi
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18145$as_echo "$ac_cv_func_alloca_works" >&6; }
18146
18147if test $ac_cv_func_alloca_works = yes; then
18148
18149$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18150
18151else
18152  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18153# that cause trouble.  Some versions do not even contain alloca or
18154# contain a buggy version.  If you still want to use their alloca,
18155# use ar to extract alloca.o from them instead of compiling alloca.c.
18156
18157
18158
18159
18160
18161ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18162
18163$as_echo "#define C_ALLOCA 1" >>confdefs.h
18164
18165
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18167$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18168if ${ac_cv_os_cray+:} false; then :
18169  $as_echo_n "(cached) " >&6
18170else
18171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173#if defined CRAY && ! defined CRAY2
18174webecray
18175#else
18176wenotbecray
18177#endif
18178
18179_ACEOF
18180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18181  $EGREP "webecray" >/dev/null 2>&1; then :
18182  ac_cv_os_cray=yes
18183else
18184  ac_cv_os_cray=no
18185fi
18186rm -f conftest*
18187
18188fi
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18190$as_echo "$ac_cv_os_cray" >&6; }
18191if test $ac_cv_os_cray = yes; then
18192  for ac_func in _getb67 GETB67 getb67; do
18193    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18196
18197cat >>confdefs.h <<_ACEOF
18198#define CRAY_STACKSEG_END $ac_func
18199_ACEOF
18200
18201    break
18202fi
18203
18204  done
18205fi
18206
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18208$as_echo_n "checking stack direction for C alloca... " >&6; }
18209if ${ac_cv_c_stack_direction+:} false; then :
18210  $as_echo_n "(cached) " >&6
18211else
18212  if test "$cross_compiling" = yes; then :
18213  ac_cv_c_stack_direction=0
18214else
18215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217$ac_includes_default
18218int
18219find_stack_direction (int *addr, int depth)
18220{
18221  int dir, dummy = 0;
18222  if (! addr)
18223    addr = &dummy;
18224  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18225  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18226  return dir + dummy;
18227}
18228
18229int
18230main (int argc, char **argv)
18231{
18232  return find_stack_direction (0, argc + !argv + 20) < 0;
18233}
18234_ACEOF
18235if ac_fn_c_try_run "$LINENO"; then :
18236  ac_cv_c_stack_direction=1
18237else
18238  ac_cv_c_stack_direction=-1
18239fi
18240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18241  conftest.$ac_objext conftest.beam conftest.$ac_ext
18242fi
18243
18244fi
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18246$as_echo "$ac_cv_c_stack_direction" >&6; }
18247cat >>confdefs.h <<_ACEOF
18248#define STACK_DIRECTION $ac_cv_c_stack_direction
18249_ACEOF
18250
18251
18252fi
18253
18254
18255
18256
18257
18258
18259  GNULIB__EXIT=0;
18260  GNULIB_ATOLL=0;
18261  GNULIB_CALLOC_POSIX=0;
18262  GNULIB_CANONICALIZE_FILE_NAME=0;
18263  GNULIB_GETLOADAVG=0;
18264  GNULIB_GETSUBOPT=0;
18265  GNULIB_GRANTPT=0;
18266  GNULIB_MALLOC_POSIX=0;
18267  GNULIB_MBTOWC=0;
18268  GNULIB_MKDTEMP=0;
18269  GNULIB_MKOSTEMP=0;
18270  GNULIB_MKOSTEMPS=0;
18271  GNULIB_MKSTEMP=0;
18272  GNULIB_MKSTEMPS=0;
18273  GNULIB_POSIX_OPENPT=0;
18274  GNULIB_PTSNAME=0;
18275  GNULIB_PTSNAME_R=0;
18276  GNULIB_PUTENV=0;
18277  GNULIB_QSORT_R=0;
18278  GNULIB_RANDOM=0;
18279  GNULIB_RANDOM_R=0;
18280  GNULIB_REALLOCARRAY=0;
18281  GNULIB_REALLOC_POSIX=0;
18282  GNULIB_REALPATH=0;
18283  GNULIB_RPMATCH=0;
18284  GNULIB_SECURE_GETENV=0;
18285  GNULIB_SETENV=0;
18286  GNULIB_STRTOD=0;
18287  GNULIB_STRTOLD=0;
18288  GNULIB_STRTOLL=0;
18289  GNULIB_STRTOULL=0;
18290  GNULIB_SYSTEM_POSIX=0;
18291  GNULIB_UNLOCKPT=0;
18292  GNULIB_UNSETENV=0;
18293  GNULIB_WCTOMB=0;
18294    HAVE__EXIT=1;
18295  HAVE_ATOLL=1;
18296  HAVE_CANONICALIZE_FILE_NAME=1;
18297  HAVE_DECL_GETLOADAVG=1;
18298  HAVE_GETSUBOPT=1;
18299  HAVE_GRANTPT=1;
18300  HAVE_INITSTATE=1;
18301  HAVE_DECL_INITSTATE=1;
18302  HAVE_MBTOWC=1;
18303  HAVE_MKDTEMP=1;
18304  HAVE_MKOSTEMP=1;
18305  HAVE_MKOSTEMPS=1;
18306  HAVE_MKSTEMP=1;
18307  HAVE_MKSTEMPS=1;
18308  HAVE_POSIX_OPENPT=1;
18309  HAVE_PTSNAME=1;
18310  HAVE_PTSNAME_R=1;
18311  HAVE_QSORT_R=1;
18312  HAVE_RANDOM=1;
18313  HAVE_RANDOM_H=1;
18314  HAVE_RANDOM_R=1;
18315  HAVE_REALLOCARRAY=1;
18316  HAVE_REALPATH=1;
18317  HAVE_RPMATCH=1;
18318  HAVE_SECURE_GETENV=1;
18319  HAVE_SETENV=1;
18320  HAVE_DECL_SETENV=1;
18321  HAVE_SETSTATE=1;
18322  HAVE_DECL_SETSTATE=1;
18323  HAVE_STRTOD=1;
18324  HAVE_STRTOLD=1;
18325  HAVE_STRTOLL=1;
18326  HAVE_STRTOULL=1;
18327  HAVE_STRUCT_RANDOM_DATA=1;
18328  HAVE_SYS_LOADAVG_H=0;
18329  HAVE_UNLOCKPT=1;
18330  HAVE_DECL_UNSETENV=1;
18331  REPLACE_CALLOC=0;
18332  REPLACE_CANONICALIZE_FILE_NAME=0;
18333  REPLACE_INITSTATE=0;
18334  REPLACE_MALLOC=0;
18335  REPLACE_MBTOWC=0;
18336  REPLACE_MKSTEMP=0;
18337  REPLACE_PTSNAME=0;
18338  REPLACE_PTSNAME_R=0;
18339  REPLACE_PUTENV=0;
18340  REPLACE_QSORT_R=0;
18341  REPLACE_RANDOM=0;
18342  REPLACE_RANDOM_R=0;
18343  REPLACE_REALLOC=0;
18344  REPLACE_REALPATH=0;
18345  REPLACE_SETENV=0;
18346  REPLACE_SETSTATE=0;
18347  REPLACE_STRTOD=0;
18348  REPLACE_STRTOLD=0;
18349  REPLACE_UNSETENV=0;
18350  REPLACE_WCTOMB=0;
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18361$as_echo_n "checking whether // is distinct from /... " >&6; }
18362if ${gl_cv_double_slash_root+:} false; then :
18363  $as_echo_n "(cached) " >&6
18364else
18365   if test x"$cross_compiling" = xyes ; then
18366        # When cross-compiling, there is no way to tell whether // is special
18367        # short of a list of hosts.  However, the only known hosts to date
18368        # that have a distinct // are Apollo DomainOS (too old to port to),
18369        # Cygwin, and z/OS.  If anyone knows of another system for which // has
18370        # special semantics and is distinct from /, please report it to
18371        # <bug-gnulib@gnu.org>.
18372        case $host in
18373          *-cygwin | i370-ibm-openedition)
18374            gl_cv_double_slash_root=yes ;;
18375          *)
18376            # Be optimistic and assume that / and // are the same when we
18377            # don't know.
18378            gl_cv_double_slash_root='unknown, assuming no' ;;
18379        esac
18380      else
18381        set x `ls -di / // 2>/dev/null`
18382        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
18383          gl_cv_double_slash_root=no
18384        else
18385          gl_cv_double_slash_root=yes
18386        fi
18387      fi
18388fi
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18390$as_echo "$gl_cv_double_slash_root" >&6; }
18391  if test "$gl_cv_double_slash_root" = yes; then
18392
18393$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18394
18395  fi
18396
18397
18398
18399
18400
18401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
18402$as_echo_n "checking whether realpath works... " >&6; }
18403if ${gl_cv_func_realpath_works+:} false; then :
18404  $as_echo_n "(cached) " >&6
18405else
18406
18407    touch conftest.a
18408    mkdir conftest.d
18409    if test "$cross_compiling" = yes; then :
18410  case "$host_os" in
18411                       # Guess yes on glibc systems.
18412        *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
18413                       # Guess yes on musl systems.
18414        *-musl*)       gl_cv_func_realpath_works="guessing yes" ;;
18415                       # Guess no on native Windows.
18416        mingw*)        gl_cv_func_realpath_works="guessing no" ;;
18417                       # If we don't know, assume the worst.
18418        *)             gl_cv_func_realpath_works="guessing no" ;;
18419      esac
18420
18421else
18422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423/* end confdefs.h.  */
18424
18425
18426
18427#include <stdlib.h>
18428#if defined __MACH__ && defined __APPLE__
18429/* Avoid a crash on Mac OS X.  */
18430#include <mach/mach.h>
18431#include <mach/mach_error.h>
18432#include <mach/thread_status.h>
18433#include <mach/exception.h>
18434#include <mach/task.h>
18435#include <pthread.h>
18436/* The exception port on which our thread listens.  */
18437static mach_port_t our_exception_port;
18438/* The main function of the thread listening for exceptions of type
18439   EXC_BAD_ACCESS.  */
18440static void *
18441mach_exception_thread (void *arg)
18442{
18443  /* Buffer for a message to be received.  */
18444  struct {
18445    mach_msg_header_t head;
18446    mach_msg_body_t msgh_body;
18447    char data[1024];
18448  } msg;
18449  mach_msg_return_t retval;
18450  /* Wait for a message on the exception port.  */
18451  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18452                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18453  if (retval != MACH_MSG_SUCCESS)
18454    abort ();
18455  exit (1);
18456}
18457static void
18458nocrash_init (void)
18459{
18460  mach_port_t self = mach_task_self ();
18461  /* Allocate a port on which the thread shall listen for exceptions.  */
18462  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18463      == KERN_SUCCESS) {
18464    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
18465    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18466                                MACH_MSG_TYPE_MAKE_SEND)
18467        == KERN_SUCCESS) {
18468      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
18469         for us.  */
18470      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18471      /* Create the thread listening on the exception port.  */
18472      pthread_attr_t attr;
18473      pthread_t thread;
18474      if (pthread_attr_init (&attr) == 0
18475          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18476          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18477        pthread_attr_destroy (&attr);
18478        /* Replace the exception port info for these exceptions with our own.
18479           Note that we replace the exception port for the entire task, not only
18480           for a particular thread.  This has the effect that when our exception
18481           port gets the message, the thread specific exception port has already
18482           been asked, and we don't need to bother about it.
18483           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
18484        task_set_exception_ports (self, mask, our_exception_port,
18485                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18486      }
18487    }
18488  }
18489}
18490#elif defined _WIN32 && ! defined __CYGWIN__
18491/* Avoid a crash on native Windows.  */
18492#define WIN32_LEAN_AND_MEAN
18493#include <windows.h>
18494#include <winerror.h>
18495static LONG WINAPI
18496exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
18497{
18498  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
18499    {
18500    case EXCEPTION_ACCESS_VIOLATION:
18501    case EXCEPTION_IN_PAGE_ERROR:
18502    case EXCEPTION_STACK_OVERFLOW:
18503    case EXCEPTION_GUARD_PAGE:
18504    case EXCEPTION_PRIV_INSTRUCTION:
18505    case EXCEPTION_ILLEGAL_INSTRUCTION:
18506    case EXCEPTION_DATATYPE_MISALIGNMENT:
18507    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
18508    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
18509      exit (1);
18510    }
18511  return EXCEPTION_CONTINUE_SEARCH;
18512}
18513static void
18514nocrash_init (void)
18515{
18516  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
18517}
18518#else
18519/* Avoid a crash on POSIX systems.  */
18520#include <signal.h>
18521#include <unistd.h>
18522/* A POSIX signal handler.  */
18523static void
18524exception_handler (int sig)
18525{
18526  _exit (1);
18527}
18528static void
18529nocrash_init (void)
18530{
18531#ifdef SIGSEGV
18532  signal (SIGSEGV, exception_handler);
18533#endif
18534#ifdef SIGBUS
18535  signal (SIGBUS, exception_handler);
18536#endif
18537}
18538#endif
18539
18540        #include <stdlib.h>
18541        #include <string.h>
18542
18543int
18544main ()
18545{
18546
18547        int result = 0;
18548        {
18549          char *name = realpath ("conftest.a", NULL);
18550          if (!(name && *name == '/'))
18551            result |= 1;
18552          free (name);
18553        }
18554        {
18555          char *name = realpath ("conftest.b/../conftest.a", NULL);
18556          if (name != NULL)
18557            result |= 2;
18558          free (name);
18559        }
18560        {
18561          char *name = realpath ("conftest.a/", NULL);
18562          if (name != NULL)
18563            result |= 4;
18564          free (name);
18565        }
18566        {
18567          char *name1 = realpath (".", NULL);
18568          char *name2 = realpath ("conftest.d//./..", NULL);
18569          if (! name1 || ! name2 || strcmp (name1, name2))
18570            result |= 8;
18571          free (name1);
18572          free (name2);
18573        }
18574        return result;
18575
18576  ;
18577  return 0;
18578}
18579
18580_ACEOF
18581if ac_fn_c_try_run "$LINENO"; then :
18582  gl_cv_func_realpath_works=yes
18583else
18584  gl_cv_func_realpath_works=no
18585fi
18586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18587  conftest.$ac_objext conftest.beam conftest.$ac_ext
18588fi
18589
18590    rm -rf conftest.a conftest.d
18591
18592fi
18593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
18594$as_echo "$gl_cv_func_realpath_works" >&6; }
18595  case "$gl_cv_func_realpath_works" in
18596    *yes)
18597
18598$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
18599
18600      ;;
18601  esac
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615  GNULIB_CHDIR=0;
18616  GNULIB_CHOWN=0;
18617  GNULIB_CLOSE=0;
18618  GNULIB_DUP=0;
18619  GNULIB_DUP2=0;
18620  GNULIB_DUP3=0;
18621  GNULIB_ENVIRON=0;
18622  GNULIB_EUIDACCESS=0;
18623  GNULIB_FACCESSAT=0;
18624  GNULIB_FCHDIR=0;
18625  GNULIB_FCHOWNAT=0;
18626  GNULIB_FDATASYNC=0;
18627  GNULIB_FSYNC=0;
18628  GNULIB_FTRUNCATE=0;
18629  GNULIB_GETCWD=0;
18630  GNULIB_GETDOMAINNAME=0;
18631  GNULIB_GETDTABLESIZE=0;
18632  GNULIB_GETGROUPS=0;
18633  GNULIB_GETHOSTNAME=0;
18634  GNULIB_GETLOGIN=0;
18635  GNULIB_GETLOGIN_R=0;
18636  GNULIB_GETPAGESIZE=0;
18637  GNULIB_GETPASS=0;
18638  GNULIB_GETUSERSHELL=0;
18639  GNULIB_GROUP_MEMBER=0;
18640  GNULIB_ISATTY=0;
18641  GNULIB_LCHOWN=0;
18642  GNULIB_LINK=0;
18643  GNULIB_LINKAT=0;
18644  GNULIB_LSEEK=0;
18645  GNULIB_PIPE=0;
18646  GNULIB_PIPE2=0;
18647  GNULIB_PREAD=0;
18648  GNULIB_PWRITE=0;
18649  GNULIB_READ=0;
18650  GNULIB_READLINK=0;
18651  GNULIB_READLINKAT=0;
18652  GNULIB_RMDIR=0;
18653  GNULIB_SETHOSTNAME=0;
18654  GNULIB_SLEEP=0;
18655  GNULIB_SYMLINK=0;
18656  GNULIB_SYMLINKAT=0;
18657  GNULIB_TRUNCATE=0;
18658  GNULIB_TTYNAME_R=0;
18659  GNULIB_UNISTD_H_NONBLOCKING=0;
18660  GNULIB_UNISTD_H_SIGPIPE=0;
18661  GNULIB_UNLINK=0;
18662  GNULIB_UNLINKAT=0;
18663  GNULIB_USLEEP=0;
18664  GNULIB_WRITE=0;
18665    HAVE_CHOWN=1;
18666  HAVE_DUP2=1;
18667  HAVE_DUP3=1;
18668  HAVE_EUIDACCESS=1;
18669  HAVE_FACCESSAT=1;
18670  HAVE_FCHDIR=1;
18671  HAVE_FCHOWNAT=1;
18672  HAVE_FDATASYNC=1;
18673  HAVE_FSYNC=1;
18674  HAVE_FTRUNCATE=1;
18675  HAVE_GETDTABLESIZE=1;
18676  HAVE_GETGROUPS=1;
18677  HAVE_GETHOSTNAME=1;
18678  HAVE_GETLOGIN=1;
18679  HAVE_GETPAGESIZE=1;
18680  HAVE_GETPASS=1;
18681  HAVE_GROUP_MEMBER=1;
18682  HAVE_LCHOWN=1;
18683  HAVE_LINK=1;
18684  HAVE_LINKAT=1;
18685  HAVE_PIPE=1;
18686  HAVE_PIPE2=1;
18687  HAVE_PREAD=1;
18688  HAVE_PWRITE=1;
18689  HAVE_READLINK=1;
18690  HAVE_READLINKAT=1;
18691  HAVE_SETHOSTNAME=1;
18692  HAVE_SLEEP=1;
18693  HAVE_SYMLINK=1;
18694  HAVE_SYMLINKAT=1;
18695  HAVE_UNLINKAT=1;
18696  HAVE_USLEEP=1;
18697  HAVE_DECL_ENVIRON=1;
18698  HAVE_DECL_FCHDIR=1;
18699  HAVE_DECL_FDATASYNC=1;
18700  HAVE_DECL_GETDOMAINNAME=1;
18701  HAVE_DECL_GETLOGIN=1;
18702  HAVE_DECL_GETLOGIN_R=1;
18703  HAVE_DECL_GETPAGESIZE=1;
18704  HAVE_DECL_GETUSERSHELL=1;
18705  HAVE_DECL_SETHOSTNAME=1;
18706  HAVE_DECL_TRUNCATE=1;
18707  HAVE_DECL_TTYNAME_R=1;
18708  HAVE_OS_H=0;
18709  HAVE_SYS_PARAM_H=0;
18710  REPLACE_CHOWN=0;
18711  REPLACE_CLOSE=0;
18712  REPLACE_DUP=0;
18713  REPLACE_DUP2=0;
18714  REPLACE_FACCESSAT=0;
18715  REPLACE_FCHOWNAT=0;
18716  REPLACE_FTRUNCATE=0;
18717  REPLACE_GETCWD=0;
18718  REPLACE_GETDOMAINNAME=0;
18719  REPLACE_GETDTABLESIZE=0;
18720  REPLACE_GETLOGIN_R=0;
18721  REPLACE_GETGROUPS=0;
18722  REPLACE_GETPAGESIZE=0;
18723  REPLACE_GETPASS=0;
18724  REPLACE_ISATTY=0;
18725  REPLACE_LCHOWN=0;
18726  REPLACE_LINK=0;
18727  REPLACE_LINKAT=0;
18728  REPLACE_LSEEK=0;
18729  REPLACE_PREAD=0;
18730  REPLACE_PWRITE=0;
18731  REPLACE_READ=0;
18732  REPLACE_READLINK=0;
18733  REPLACE_READLINKAT=0;
18734  REPLACE_RMDIR=0;
18735  REPLACE_SLEEP=0;
18736  REPLACE_SYMLINK=0;
18737  REPLACE_SYMLINKAT=0;
18738  REPLACE_TRUNCATE=0;
18739  REPLACE_TTYNAME_R=0;
18740  REPLACE_UNLINK=0;
18741  REPLACE_UNLINKAT=0;
18742  REPLACE_USLEEP=0;
18743  REPLACE_WRITE=0;
18744  UNISTD_H_HAVE_WINSOCK2_H=0;
18745  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18756$as_echo_n "checking if environ is properly declared... " >&6; }
18757if ${gt_cv_var_environ_declaration+:} false; then :
18758  $as_echo_n "(cached) " >&6
18759else
18760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h.  */
18762#if HAVE_UNISTD_H
18763     #include <unistd.h>
18764     #endif
18765     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
18766     #include <stdlib.h>
18767
18768            extern struct { int foo; } environ;
18769int
18770main ()
18771{
18772environ.foo = 1;
18773  ;
18774  return 0;
18775}
18776_ACEOF
18777if ac_fn_c_try_compile "$LINENO"; then :
18778  gt_cv_var_environ_declaration=no
18779else
18780  gt_cv_var_environ_declaration=yes
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783fi
18784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18785$as_echo "$gt_cv_var_environ_declaration" >&6; }
18786  if test $gt_cv_var_environ_declaration = yes; then
18787
18788$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18789
18790  fi
18791
18792
18793  if test $gt_cv_var_environ_declaration != yes; then
18794    HAVE_DECL_ENVIRON=0
18795  fi
18796
18797
18798
18799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18800$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18801if ${gl_cv_have_include_next+:} false; then :
18802  $as_echo_n "(cached) " >&6
18803else
18804  rm -rf conftestd1a conftestd1b conftestd2
18805     mkdir conftestd1a conftestd1b conftestd2
18806                                                  cat <<EOF > conftestd1a/conftest.h
18807#define DEFINED_IN_CONFTESTD1
18808#include_next <conftest.h>
18809#ifdef DEFINED_IN_CONFTESTD2
18810int foo;
18811#else
18812#error "include_next doesn't work"
18813#endif
18814EOF
18815     cat <<EOF > conftestd1b/conftest.h
18816#define DEFINED_IN_CONFTESTD1
18817#include <stdio.h>
18818#include_next <conftest.h>
18819#ifdef DEFINED_IN_CONFTESTD2
18820int foo;
18821#else
18822#error "include_next doesn't work"
18823#endif
18824EOF
18825     cat <<EOF > conftestd2/conftest.h
18826#ifndef DEFINED_IN_CONFTESTD1
18827#error "include_next test doesn't work"
18828#endif
18829#define DEFINED_IN_CONFTESTD2
18830EOF
18831     gl_save_CPPFLAGS="$CPPFLAGS"
18832     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834/* end confdefs.h.  */
18835#include <conftest.h>
18836_ACEOF
18837if ac_fn_c_try_compile "$LINENO"; then :
18838  gl_cv_have_include_next=yes
18839else
18840  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18841        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h.  */
18843#include <conftest.h>
18844_ACEOF
18845if ac_fn_c_try_compile "$LINENO"; then :
18846  gl_cv_have_include_next=buggy
18847else
18848  gl_cv_have_include_next=no
18849fi
18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851
18852fi
18853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18854     CPPFLAGS="$gl_save_CPPFLAGS"
18855     rm -rf conftestd1a conftestd1b conftestd2
18856
18857fi
18858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18859$as_echo "$gl_cv_have_include_next" >&6; }
18860  PRAGMA_SYSTEM_HEADER=
18861  if test $gl_cv_have_include_next = yes; then
18862    INCLUDE_NEXT=include_next
18863    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18864    if test -n "$GCC"; then
18865      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18866    fi
18867  else
18868    if test $gl_cv_have_include_next = buggy; then
18869      INCLUDE_NEXT=include
18870      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18871    else
18872      INCLUDE_NEXT=include
18873      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18874    fi
18875  fi
18876
18877
18878
18879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18880$as_echo_n "checking whether system header files limit the line length... " >&6; }
18881if ${gl_cv_pragma_columns+:} false; then :
18882  $as_echo_n "(cached) " >&6
18883else
18884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885/* end confdefs.h.  */
18886
18887#ifdef __TANDEM
18888choke me
18889#endif
18890
18891_ACEOF
18892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18893  $EGREP "choke me" >/dev/null 2>&1; then :
18894  gl_cv_pragma_columns=yes
18895else
18896  gl_cv_pragma_columns=no
18897fi
18898rm -f conftest*
18899
18900
18901fi
18902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18903$as_echo "$gl_cv_pragma_columns" >&6; }
18904  if test $gl_cv_pragma_columns = yes; then
18905    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18906  else
18907    PRAGMA_COLUMNS=
18908  fi
18909
18910
18911
18912
18913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18914$as_echo_n "checking for complete errno.h... " >&6; }
18915if ${gl_cv_header_errno_h_complete+:} false; then :
18916  $as_echo_n "(cached) " >&6
18917else
18918
18919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920/* end confdefs.h.  */
18921
18922#include <errno.h>
18923#if !defined ETXTBSY
18924booboo
18925#endif
18926#if !defined ENOMSG
18927booboo
18928#endif
18929#if !defined EIDRM
18930booboo
18931#endif
18932#if !defined ENOLINK
18933booboo
18934#endif
18935#if !defined EPROTO
18936booboo
18937#endif
18938#if !defined EMULTIHOP
18939booboo
18940#endif
18941#if !defined EBADMSG
18942booboo
18943#endif
18944#if !defined EOVERFLOW
18945booboo
18946#endif
18947#if !defined ENOTSUP
18948booboo
18949#endif
18950#if !defined ENETRESET
18951booboo
18952#endif
18953#if !defined ECONNABORTED
18954booboo
18955#endif
18956#if !defined ESTALE
18957booboo
18958#endif
18959#if !defined EDQUOT
18960booboo
18961#endif
18962#if !defined ECANCELED
18963booboo
18964#endif
18965#if !defined EOWNERDEAD
18966booboo
18967#endif
18968#if !defined ENOTRECOVERABLE
18969booboo
18970#endif
18971#if !defined EILSEQ
18972booboo
18973#endif
18974
18975_ACEOF
18976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18977  $EGREP "booboo" >/dev/null 2>&1; then :
18978  gl_cv_header_errno_h_complete=no
18979else
18980  gl_cv_header_errno_h_complete=yes
18981fi
18982rm -f conftest*
18983
18984
18985fi
18986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18987$as_echo "$gl_cv_header_errno_h_complete" >&6; }
18988  if test $gl_cv_header_errno_h_complete = yes; then
18989    ERRNO_H=''
18990  else
18991
18992
18993
18994
18995
18996
18997
18998
18999     if test $gl_cv_have_include_next = yes; then
19000       gl_cv_next_errno_h='<'errno.h'>'
19001     else
19002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
19003$as_echo_n "checking absolute name of <errno.h>... " >&6; }
19004if ${gl_cv_next_errno_h+:} false; then :
19005  $as_echo_n "(cached) " >&6
19006else
19007
19008
19009
19010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011/* end confdefs.h.  */
19012#include <errno.h>
19013_ACEOF
19014                case "$host_os" in
19015    aix*) gl_absname_cpp="$ac_cpp -C" ;;
19016    *)    gl_absname_cpp="$ac_cpp" ;;
19017  esac
19018
19019  case "$host_os" in
19020    mingw*)
19021                                          gl_dirsep_regex='[/\\]'
19022      ;;
19023    *)
19024      gl_dirsep_regex='\/'
19025      ;;
19026  esac
19027      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19028  gl_header_literal_regex=`echo 'errno.h' \
19029                           | sed -e "$gl_make_literal_regex_sed"`
19030  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19031      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19032      s|^/[^/]|//&|
19033      p
19034      q
19035    }'
19036
19037        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19038  sed -n "$gl_absolute_header_sed"`
19039
19040           gl_header=$gl_cv_absolute_errno_h
19041           gl_cv_next_errno_h='"'$gl_header'"'
19042
19043
19044fi
19045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
19046$as_echo "$gl_cv_next_errno_h" >&6; }
19047     fi
19048     NEXT_ERRNO_H=$gl_cv_next_errno_h
19049
19050     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19051       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19052       gl_next_as_first_directive='<'errno.h'>'
19053     else
19054       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19055       gl_next_as_first_directive=$gl_cv_next_errno_h
19056     fi
19057     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
19058
19059
19060
19061
19062    ERRNO_H='errno.h'
19063  fi
19064
19065   if test -n "$ERRNO_H"; then
19066  GL_GENERATE_ERRNO_H_TRUE=
19067  GL_GENERATE_ERRNO_H_FALSE='#'
19068else
19069  GL_GENERATE_ERRNO_H_TRUE='#'
19070  GL_GENERATE_ERRNO_H_FALSE=
19071fi
19072
19073
19074  if test -n "$ERRNO_H"; then
19075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
19076$as_echo_n "checking for EMULTIHOP value... " >&6; }
19077if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
19078  $as_echo_n "(cached) " >&6
19079else
19080
19081      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19082/* end confdefs.h.  */
19083
19084#include <errno.h>
19085#ifdef EMULTIHOP
19086yes
19087#endif
19088
19089_ACEOF
19090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19091  $EGREP "yes" >/dev/null 2>&1; then :
19092  gl_cv_header_errno_h_EMULTIHOP=yes
19093else
19094  gl_cv_header_errno_h_EMULTIHOP=no
19095fi
19096rm -f conftest*
19097
19098      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
19099        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100/* end confdefs.h.  */
19101
19102#define _XOPEN_SOURCE_EXTENDED 1
19103#include <errno.h>
19104#ifdef EMULTIHOP
19105yes
19106#endif
19107
19108_ACEOF
19109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19110  $EGREP "yes" >/dev/null 2>&1; then :
19111  gl_cv_header_errno_h_EMULTIHOP=hidden
19112fi
19113rm -f conftest*
19114
19115        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
19116                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
19117#define _XOPEN_SOURCE_EXTENDED 1
19118#include <errno.h>
19119/* The following two lines are a workaround against an autoconf-2.52 bug.  */
19120#include <stdio.h>
19121#include <stdlib.h>
19122"; then :
19123
19124fi
19125
19126        fi
19127      fi
19128
19129fi
19130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
19131$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
19132    case $gl_cv_header_errno_h_EMULTIHOP in
19133      yes | no)
19134        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
19135        ;;
19136      *)
19137        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
19138        ;;
19139    esac
19140
19141
19142  fi
19143
19144
19145  if test -n "$ERRNO_H"; then
19146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
19147$as_echo_n "checking for ENOLINK value... " >&6; }
19148if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
19149  $as_echo_n "(cached) " >&6
19150else
19151
19152      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153/* end confdefs.h.  */
19154
19155#include <errno.h>
19156#ifdef ENOLINK
19157yes
19158#endif
19159
19160_ACEOF
19161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19162  $EGREP "yes" >/dev/null 2>&1; then :
19163  gl_cv_header_errno_h_ENOLINK=yes
19164else
19165  gl_cv_header_errno_h_ENOLINK=no
19166fi
19167rm -f conftest*
19168
19169      if test $gl_cv_header_errno_h_ENOLINK = no; then
19170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171/* end confdefs.h.  */
19172
19173#define _XOPEN_SOURCE_EXTENDED 1
19174#include <errno.h>
19175#ifdef ENOLINK
19176yes
19177#endif
19178
19179_ACEOF
19180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19181  $EGREP "yes" >/dev/null 2>&1; then :
19182  gl_cv_header_errno_h_ENOLINK=hidden
19183fi
19184rm -f conftest*
19185
19186        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
19187                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
19188#define _XOPEN_SOURCE_EXTENDED 1
19189#include <errno.h>
19190/* The following two lines are a workaround against an autoconf-2.52 bug.  */
19191#include <stdio.h>
19192#include <stdlib.h>
19193"; then :
19194
19195fi
19196
19197        fi
19198      fi
19199
19200fi
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
19202$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
19203    case $gl_cv_header_errno_h_ENOLINK in
19204      yes | no)
19205        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
19206        ;;
19207      *)
19208        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
19209        ;;
19210    esac
19211
19212
19213  fi
19214
19215
19216  if test -n "$ERRNO_H"; then
19217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
19218$as_echo_n "checking for EOVERFLOW value... " >&6; }
19219if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
19220  $as_echo_n "(cached) " >&6
19221else
19222
19223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h.  */
19225
19226#include <errno.h>
19227#ifdef EOVERFLOW
19228yes
19229#endif
19230
19231_ACEOF
19232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19233  $EGREP "yes" >/dev/null 2>&1; then :
19234  gl_cv_header_errno_h_EOVERFLOW=yes
19235else
19236  gl_cv_header_errno_h_EOVERFLOW=no
19237fi
19238rm -f conftest*
19239
19240      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
19241        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242/* end confdefs.h.  */
19243
19244#define _XOPEN_SOURCE_EXTENDED 1
19245#include <errno.h>
19246#ifdef EOVERFLOW
19247yes
19248#endif
19249
19250_ACEOF
19251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19252  $EGREP "yes" >/dev/null 2>&1; then :
19253  gl_cv_header_errno_h_EOVERFLOW=hidden
19254fi
19255rm -f conftest*
19256
19257        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
19258                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
19259#define _XOPEN_SOURCE_EXTENDED 1
19260#include <errno.h>
19261/* The following two lines are a workaround against an autoconf-2.52 bug.  */
19262#include <stdio.h>
19263#include <stdlib.h>
19264"; then :
19265
19266fi
19267
19268        fi
19269      fi
19270
19271fi
19272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
19273$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
19274    case $gl_cv_header_errno_h_EOVERFLOW in
19275      yes | no)
19276        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
19277        ;;
19278      *)
19279        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
19280        ;;
19281    esac
19282
19283
19284  fi
19285
19286
19287ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19288if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19289  ac_have_decl=1
19290else
19291  ac_have_decl=0
19292fi
19293
19294cat >>confdefs.h <<_ACEOF
19295#define HAVE_DECL_STRERROR_R $ac_have_decl
19296_ACEOF
19297
19298for ac_func in strerror_r
19299do :
19300  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19301if test "x$ac_cv_func_strerror_r" = xyes; then :
19302  cat >>confdefs.h <<_ACEOF
19303#define HAVE_STRERROR_R 1
19304_ACEOF
19305
19306fi
19307done
19308
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19310$as_echo_n "checking whether strerror_r returns char *... " >&6; }
19311if ${ac_cv_func_strerror_r_char_p+:} false; then :
19312  $as_echo_n "(cached) " >&6
19313else
19314
19315    ac_cv_func_strerror_r_char_p=no
19316    if test $ac_cv_have_decl_strerror_r = yes; then
19317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318/* end confdefs.h.  */
19319$ac_includes_default
19320int
19321main ()
19322{
19323
19324	  char buf[100];
19325	  char x = *strerror_r (0, buf, sizeof buf);
19326	  char *p = strerror_r (0, buf, sizeof buf);
19327	  return !p || x;
19328
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333if ac_fn_c_try_compile "$LINENO"; then :
19334  ac_cv_func_strerror_r_char_p=yes
19335fi
19336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337    else
19338      # strerror_r is not declared.  Choose between
19339      # systems that have relatively inaccessible declarations for the
19340      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
19341      # former has a strerror_r that returns char*, while the latter
19342      # has a strerror_r that returns `int'.
19343      # This test should segfault on the DEC system.
19344      if test "$cross_compiling" = yes; then :
19345  :
19346else
19347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348/* end confdefs.h.  */
19349$ac_includes_default
19350	extern char *strerror_r ();
19351int
19352main ()
19353{
19354char buf[100];
19355	  char x = *strerror_r (0, buf, sizeof buf);
19356	  return ! isalpha (x);
19357  ;
19358  return 0;
19359}
19360_ACEOF
19361if ac_fn_c_try_run "$LINENO"; then :
19362  ac_cv_func_strerror_r_char_p=yes
19363fi
19364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19365  conftest.$ac_objext conftest.beam conftest.$ac_ext
19366fi
19367
19368    fi
19369
19370fi
19371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19372$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19373if test $ac_cv_func_strerror_r_char_p = yes; then
19374
19375$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19376
19377fi
19378
19379
19380  XGETTEXT_EXTRA_OPTIONS=
19381
19382
19383
19384
19385
19386  GNULIB_FCNTL=0;
19387  GNULIB_NONBLOCKING=0;
19388  GNULIB_OPEN=0;
19389  GNULIB_OPENAT=0;
19390    HAVE_FCNTL=1;
19391  HAVE_OPENAT=1;
19392  REPLACE_FCNTL=0;
19393  REPLACE_OPEN=0;
19394  REPLACE_OPENAT=0;
19395
19396ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19397if test "x$ac_cv_type_pid_t" = xyes; then :
19398
19399else
19400
19401cat >>confdefs.h <<_ACEOF
19402#define pid_t int
19403_ACEOF
19404
19405fi
19406
19407ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19408if test "x$ac_cv_type_mode_t" = xyes; then :
19409
19410else
19411
19412cat >>confdefs.h <<_ACEOF
19413#define mode_t int
19414_ACEOF
19415
19416fi
19417
19418
19419
19420
19421
19422
19423
19424  case "$host_os" in
19425    mingw*)
19426                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19427$as_echo_n "checking for 64-bit off_t... " >&6; }
19428if ${gl_cv_type_off_t_64+:} false; then :
19429  $as_echo_n "(cached) " >&6
19430else
19431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432/* end confdefs.h.  */
19433#include <sys/types.h>
19434                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19435
19436int
19437main ()
19438{
19439
19440  ;
19441  return 0;
19442}
19443_ACEOF
19444if ac_fn_c_try_compile "$LINENO"; then :
19445  gl_cv_type_off_t_64=yes
19446else
19447  gl_cv_type_off_t_64=no
19448fi
19449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450
19451fi
19452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19453$as_echo "$gl_cv_type_off_t_64" >&6; }
19454      if test $gl_cv_type_off_t_64 = no; then
19455        WINDOWS_64_BIT_OFF_T=1
19456      else
19457        WINDOWS_64_BIT_OFF_T=0
19458      fi
19459                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
19460$as_echo_n "checking for 64-bit st_size... " >&6; }
19461if ${gl_cv_member_st_size_64+:} false; then :
19462  $as_echo_n "(cached) " >&6
19463else
19464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465/* end confdefs.h.  */
19466#include <sys/types.h>
19467                struct stat buf;
19468                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
19469
19470int
19471main ()
19472{
19473
19474  ;
19475  return 0;
19476}
19477_ACEOF
19478if ac_fn_c_try_compile "$LINENO"; then :
19479  gl_cv_member_st_size_64=yes
19480else
19481  gl_cv_member_st_size_64=no
19482fi
19483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484
19485fi
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
19487$as_echo "$gl_cv_member_st_size_64" >&6; }
19488      if test $gl_cv_member_st_size_64 = no; then
19489        WINDOWS_64_BIT_ST_SIZE=1
19490      else
19491        WINDOWS_64_BIT_ST_SIZE=0
19492      fi
19493      ;;
19494    *)
19495                                                      WINDOWS_64_BIT_OFF_T=0
19496      WINDOWS_64_BIT_ST_SIZE=0
19497      ;;
19498  esac
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512     if test $gl_cv_have_include_next = yes; then
19513       gl_cv_next_limits_h='<'limits.h'>'
19514     else
19515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
19516$as_echo_n "checking absolute name of <limits.h>... " >&6; }
19517if ${gl_cv_next_limits_h+:} false; then :
19518  $as_echo_n "(cached) " >&6
19519else
19520
19521             if test $ac_cv_header_limits_h = yes; then
19522
19523
19524
19525
19526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527/* end confdefs.h.  */
19528#include <limits.h>
19529_ACEOF
19530                case "$host_os" in
19531    aix*) gl_absname_cpp="$ac_cpp -C" ;;
19532    *)    gl_absname_cpp="$ac_cpp" ;;
19533  esac
19534
19535  case "$host_os" in
19536    mingw*)
19537                                          gl_dirsep_regex='[/\\]'
19538      ;;
19539    *)
19540      gl_dirsep_regex='\/'
19541      ;;
19542  esac
19543      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19544  gl_header_literal_regex=`echo 'limits.h' \
19545                           | sed -e "$gl_make_literal_regex_sed"`
19546  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19547      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19548      s|^/[^/]|//&|
19549      p
19550      q
19551    }'
19552
19553        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19554  sed -n "$gl_absolute_header_sed"`
19555
19556           gl_header=$gl_cv_absolute_limits_h
19557           gl_cv_next_limits_h='"'$gl_header'"'
19558          else
19559               gl_cv_next_limits_h='<'limits.h'>'
19560             fi
19561
19562
19563fi
19564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
19565$as_echo "$gl_cv_next_limits_h" >&6; }
19566     fi
19567     NEXT_LIMITS_H=$gl_cv_next_limits_h
19568
19569     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19570       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19571       gl_next_as_first_directive='<'limits.h'>'
19572     else
19573       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19574       gl_next_as_first_directive=$gl_cv_next_limits_h
19575     fi
19576     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
19577
19578
19579
19580
19581
19582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
19583$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
19584if ${gl_cv_header_limits_width+:} false; then :
19585  $as_echo_n "(cached) " >&6
19586else
19587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588/* end confdefs.h.  */
19589#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
19590             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
19591            #endif
19592            #include <limits.h>
19593            long long llm = LLONG_MAX;
19594            int wb = WORD_BIT;
19595            int ullw = ULLONG_WIDTH;
19596
19597int
19598main ()
19599{
19600
19601  ;
19602  return 0;
19603}
19604_ACEOF
19605if ac_fn_c_try_compile "$LINENO"; then :
19606  gl_cv_header_limits_width=yes
19607else
19608  gl_cv_header_limits_width=no
19609fi
19610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19611fi
19612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
19613$as_echo "$gl_cv_header_limits_width" >&6; }
19614  if test "$gl_cv_header_limits_width" = yes; then
19615    LIMITS_H=
19616  else
19617    LIMITS_H=limits.h
19618  fi
19619
19620   if test -n "$LIMITS_H"; then
19621  GL_GENERATE_LIMITS_H_TRUE=
19622  GL_GENERATE_LIMITS_H_FALSE='#'
19623else
19624  GL_GENERATE_LIMITS_H_TRUE='#'
19625  GL_GENERATE_LIMITS_H_FALSE=
19626fi
19627
19628
19629
19630     GNULIB_FCHMODAT=0;
19631  GNULIB_FSTAT=0;
19632  GNULIB_FSTATAT=0;
19633  GNULIB_FUTIMENS=0;
19634  GNULIB_LCHMOD=0;
19635  GNULIB_LSTAT=0;
19636  GNULIB_MKDIRAT=0;
19637  GNULIB_MKFIFO=0;
19638  GNULIB_MKFIFOAT=0;
19639  GNULIB_MKNOD=0;
19640  GNULIB_MKNODAT=0;
19641  GNULIB_STAT=0;
19642  GNULIB_UTIMENSAT=0;
19643  GNULIB_OVERRIDES_STRUCT_STAT=0;
19644    HAVE_FCHMODAT=1;
19645  HAVE_FSTATAT=1;
19646  HAVE_FUTIMENS=1;
19647  HAVE_LCHMOD=1;
19648  HAVE_LSTAT=1;
19649  HAVE_MKDIRAT=1;
19650  HAVE_MKFIFO=1;
19651  HAVE_MKFIFOAT=1;
19652  HAVE_MKNOD=1;
19653  HAVE_MKNODAT=1;
19654  HAVE_UTIMENSAT=1;
19655  REPLACE_FSTAT=0;
19656  REPLACE_FSTATAT=0;
19657  REPLACE_FUTIMENS=0;
19658  REPLACE_LSTAT=0;
19659  REPLACE_MKDIR=0;
19660  REPLACE_MKFIFO=0;
19661  REPLACE_MKNOD=0;
19662  REPLACE_STAT=0;
19663  REPLACE_UTIMENSAT=0;
19664
19665
19666
19667
19668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19669$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19670if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19671  $as_echo_n "(cached) " >&6
19672else
19673  rm -f conftest.sym conftest.file
19674     echo >conftest.file
19675     if test "$cross_compiling" = yes; then :
19676  case "$host_os" in
19677          linux-* | linux)
19678            # Guess yes on Linux systems.
19679            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19680          *-gnu* | gnu*)
19681            # Guess yes on glibc systems.
19682            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19683          mingw*)
19684            # Guess no on native Windows.
19685            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19686          *)
19687            # If we don't know, assume the worst.
19688            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19689        esac
19690
19691else
19692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693/* end confdefs.h.  */
19694$ac_includes_default
19695int
19696main ()
19697{
19698struct stat sbuf;
19699            if (symlink ("conftest.file", "conftest.sym") != 0)
19700              return 1;
19701            /* Linux will dereference the symlink and fail, as required by
19702               POSIX.  That is better in the sense that it means we will not
19703               have to compile and use the lstat wrapper.  */
19704            return lstat ("conftest.sym/", &sbuf) == 0;
19705
19706  ;
19707  return 0;
19708}
19709_ACEOF
19710if ac_fn_c_try_run "$LINENO"; then :
19711  gl_cv_func_lstat_dereferences_slashed_symlink=yes
19712else
19713  gl_cv_func_lstat_dereferences_slashed_symlink=no
19714fi
19715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19716  conftest.$ac_objext conftest.beam conftest.$ac_ext
19717fi
19718
19719     rm -f conftest.sym conftest.file
19720
19721fi
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19723$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19724  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19725    *yes)
19726
19727cat >>confdefs.h <<_ACEOF
19728#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19729_ACEOF
19730
19731      ;;
19732  esac
19733
19734
19735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19736$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19737if ${gl_cv_func_malloc_posix+:} false; then :
19738  $as_echo_n "(cached) " >&6
19739else
19740
19741                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742/* end confdefs.h.  */
19743
19744int
19745main ()
19746{
19747#if defined _WIN32 && ! defined __CYGWIN__
19748             choke me
19749             #endif
19750
19751  ;
19752  return 0;
19753}
19754_ACEOF
19755if ac_fn_c_try_compile "$LINENO"; then :
19756  gl_cv_func_malloc_posix=yes
19757else
19758  gl_cv_func_malloc_posix=no
19759fi
19760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19761
19762fi
19763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19764$as_echo "$gl_cv_func_malloc_posix" >&6; }
19765
19766
19767
19768      for ac_header in stdlib.h
19769do :
19770  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19771if test "x$ac_cv_header_stdlib_h" = xyes; then :
19772  cat >>confdefs.h <<_ACEOF
19773#define HAVE_STDLIB_H 1
19774_ACEOF
19775
19776fi
19777
19778done
19779
19780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19781$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19782if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19783  $as_echo_n "(cached) " >&6
19784else
19785  if test "$cross_compiling" = yes; then :
19786  case "$host_os" in
19787          # Guess yes on platforms where we know the result.
19788          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
19789          | hpux* | solaris* | cygwin* | mingw*)
19790            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
19791          # If we don't know, assume the worst.
19792          *) ac_cv_func_malloc_0_nonnull="guessing no" ;;
19793        esac
19794
19795else
19796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797/* end confdefs.h.  */
19798#if defined STDC_HEADERS || defined HAVE_STDLIB_H
19799            # include <stdlib.h>
19800            #else
19801            char *malloc ();
19802            #endif
19803
19804int
19805main ()
19806{
19807char *p = malloc (0);
19808            int result = !p;
19809            free (p);
19810            return result;
19811  ;
19812  return 0;
19813}
19814
19815_ACEOF
19816if ac_fn_c_try_run "$LINENO"; then :
19817  ac_cv_func_malloc_0_nonnull=yes
19818else
19819  ac_cv_func_malloc_0_nonnull=no
19820fi
19821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19822  conftest.$ac_objext conftest.beam conftest.$ac_ext
19823fi
19824
19825
19826fi
19827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19828$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19829  case "$ac_cv_func_malloc_0_nonnull" in
19830    *yes)
19831      gl_cv_func_malloc_0_nonnull=1
19832      ;;
19833    *)
19834      gl_cv_func_malloc_0_nonnull=0
19835      ;;
19836  esac
19837
19838
19839cat >>confdefs.h <<_ACEOF
19840#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19841_ACEOF
19842
19843
19844
19845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19846$as_echo_n "checking for unsigned long long int... " >&6; }
19847if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19848  $as_echo_n "(cached) " >&6
19849else
19850  ac_cv_type_unsigned_long_long_int=yes
19851     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853/* end confdefs.h.  */
19854
19855  /* For now, do not test the preprocessor; as of 2007 there are too many
19856         implementations with broken preprocessors.  Perhaps this can
19857         be revisited in 2012.  In the meantime, code should not expect
19858         #if to work with literals wider than 32 bits.  */
19859      /* Test literals.  */
19860      long long int ll = 9223372036854775807ll;
19861      long long int nll = -9223372036854775807LL;
19862      unsigned long long int ull = 18446744073709551615ULL;
19863      /* Test constant expressions.   */
19864      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19865                     ? 1 : -1)];
19866      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19867                     ? 1 : -1)];
19868      int i = 63;
19869int
19870main ()
19871{
19872/* Test availability of runtime routines for shift and division.  */
19873      long long int llmax = 9223372036854775807ll;
19874      unsigned long long int ullmax = 18446744073709551615ull;
19875      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19876              | (llmax / ll) | (llmax % ll)
19877              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19878              | (ullmax / ull) | (ullmax % ull));
19879  ;
19880  return 0;
19881}
19882
19883_ACEOF
19884if ac_fn_c_try_link "$LINENO"; then :
19885
19886else
19887  ac_cv_type_unsigned_long_long_int=no
19888fi
19889rm -f core conftest.err conftest.$ac_objext \
19890    conftest$ac_exeext conftest.$ac_ext
19891     fi
19892fi
19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19894$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19895  if test $ac_cv_type_unsigned_long_long_int = yes; then
19896
19897$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19898
19899  fi
19900
19901
19902
19903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19904$as_echo_n "checking for long long int... " >&6; }
19905if ${ac_cv_type_long_long_int+:} false; then :
19906  $as_echo_n "(cached) " >&6
19907else
19908  ac_cv_type_long_long_int=yes
19909      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19910        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19911        if test $ac_cv_type_long_long_int = yes; then
19912                                        if test "$cross_compiling" = yes; then :
19913  :
19914else
19915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916/* end confdefs.h.  */
19917#include <limits.h>
19918                 #ifndef LLONG_MAX
19919                 # define HALF \
19920                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19921                 # define LLONG_MAX (HALF - 1 + HALF)
19922                 #endif
19923int
19924main ()
19925{
19926long long int n = 1;
19927                 int i;
19928                 for (i = 0; ; i++)
19929                   {
19930                     long long int m = n << i;
19931                     if (m >> i != n)
19932                       return 1;
19933                     if (LLONG_MAX / 2 < m)
19934                       break;
19935                   }
19936                 return 0;
19937  ;
19938  return 0;
19939}
19940_ACEOF
19941if ac_fn_c_try_run "$LINENO"; then :
19942
19943else
19944  ac_cv_type_long_long_int=no
19945fi
19946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19947  conftest.$ac_objext conftest.beam conftest.$ac_ext
19948fi
19949
19950        fi
19951      fi
19952fi
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19954$as_echo "$ac_cv_type_long_long_int" >&6; }
19955  if test $ac_cv_type_long_long_int = yes; then
19956
19957$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19958
19959  fi
19960
19961
19962
19963
19964
19965  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19966    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19967
19968$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19969
19970  else
19971    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19972  fi
19973
19974
19975
19976
19977
19978
19979    gl_cv_c_multiarch=no
19980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981/* end confdefs.h.  */
19982#ifndef __APPLE_CC__
19983         not a universal capable compiler
19984        #endif
19985        typedef int dummy;
19986
19987_ACEOF
19988if ac_fn_c_try_compile "$LINENO"; then :
19989
19990               arch=
19991     prev=
19992     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19993       if test -n "$prev"; then
19994         case $word in
19995           i?86 | x86_64 | ppc | ppc64)
19996             if test -z "$arch" || test "$arch" = "$word"; then
19997               arch="$word"
19998             else
19999               gl_cv_c_multiarch=yes
20000             fi
20001             ;;
20002         esac
20003         prev=
20004       else
20005         if test "x$word" = "x-arch"; then
20006           prev=arch
20007         fi
20008       fi
20009     done
20010
20011fi
20012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013  if test $gl_cv_c_multiarch = yes; then
20014    APPLE_UNIVERSAL_BUILD=1
20015  else
20016    APPLE_UNIVERSAL_BUILD=0
20017  fi
20018
20019
20020
20021  GNULIB_PTHREAD_SIGMASK=0;
20022  GNULIB_RAISE=0;
20023  GNULIB_SIGNAL_H_SIGPIPE=0;
20024  GNULIB_SIGPROCMASK=0;
20025  GNULIB_SIGACTION=0;
20026    HAVE_POSIX_SIGNALBLOCKING=1;
20027  HAVE_PTHREAD_SIGMASK=1;
20028  HAVE_RAISE=1;
20029  HAVE_SIGSET_T=1;
20030  HAVE_SIGINFO_T=1;
20031  HAVE_SIGACTION=1;
20032  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20033
20034  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20035
20036  HAVE_SIGHANDLER_T=1;
20037  REPLACE_PTHREAD_SIGMASK=0;
20038  REPLACE_RAISE=0;
20039
20040
20041  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20042      #include <signal.h>
20043      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
20044      #include <sys/types.h>
20045
20046"
20047if test "x$ac_cv_type_sigset_t" = xyes; then :
20048
20049cat >>confdefs.h <<_ACEOF
20050#define HAVE_SIGSET_T 1
20051_ACEOF
20052
20053gl_cv_type_sigset_t=yes
20054else
20055  gl_cv_type_sigset_t=no
20056fi
20057
20058  if test $gl_cv_type_sigset_t != yes; then
20059    HAVE_SIGSET_T=0
20060  fi
20061
20062
20063
20064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
20065$as_echo_n "checking for SIGPIPE... " >&6; }
20066if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
20067  $as_echo_n "(cached) " >&6
20068else
20069
20070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20071/* end confdefs.h.  */
20072
20073#include <signal.h>
20074#if !defined SIGPIPE
20075booboo
20076#endif
20077
20078_ACEOF
20079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080  $EGREP "booboo" >/dev/null 2>&1; then :
20081  gl_cv_header_signal_h_SIGPIPE=no
20082else
20083  gl_cv_header_signal_h_SIGPIPE=yes
20084fi
20085rm -f conftest*
20086
20087
20088fi
20089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
20090$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
20091
20092ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
20093if test "x$ac_cv_have_decl_setenv" = xyes; then :
20094  ac_have_decl=1
20095else
20096  ac_have_decl=0
20097fi
20098
20099cat >>confdefs.h <<_ACEOF
20100#define HAVE_DECL_SETENV $ac_have_decl
20101_ACEOF
20102
20103
20104
20105
20106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20107$as_echo_n "checking for ssize_t... " >&6; }
20108if ${gt_cv_ssize_t+:} false; then :
20109  $as_echo_n "(cached) " >&6
20110else
20111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112/* end confdefs.h.  */
20113#include <sys/types.h>
20114int
20115main ()
20116{
20117int x = sizeof (ssize_t *) + sizeof (ssize_t);
20118            return !x;
20119  ;
20120  return 0;
20121}
20122_ACEOF
20123if ac_fn_c_try_compile "$LINENO"; then :
20124  gt_cv_ssize_t=yes
20125else
20126  gt_cv_ssize_t=no
20127fi
20128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129fi
20130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20131$as_echo "$gt_cv_ssize_t" >&6; }
20132  if test $gt_cv_ssize_t = no; then
20133
20134$as_echo "#define ssize_t int" >>confdefs.h
20135
20136  fi
20137
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20139$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20140if ${ac_cv_type_uid_t+:} false; then :
20141  $as_echo_n "(cached) " >&6
20142else
20143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144/* end confdefs.h.  */
20145#include <sys/types.h>
20146
20147_ACEOF
20148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20149  $EGREP "uid_t" >/dev/null 2>&1; then :
20150  ac_cv_type_uid_t=yes
20151else
20152  ac_cv_type_uid_t=no
20153fi
20154rm -f conftest*
20155
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20158$as_echo "$ac_cv_type_uid_t" >&6; }
20159if test $ac_cv_type_uid_t = no; then
20160
20161$as_echo "#define uid_t int" >>confdefs.h
20162
20163
20164$as_echo "#define gid_t int" >>confdefs.h
20165
20166fi
20167
20168
20169  GNULIB_DPRINTF=0;
20170  GNULIB_FCLOSE=0;
20171  GNULIB_FDOPEN=0;
20172  GNULIB_FFLUSH=0;
20173  GNULIB_FGETC=0;
20174  GNULIB_FGETS=0;
20175  GNULIB_FOPEN=0;
20176  GNULIB_FPRINTF=0;
20177  GNULIB_FPRINTF_POSIX=0;
20178  GNULIB_FPURGE=0;
20179  GNULIB_FPUTC=0;
20180  GNULIB_FPUTS=0;
20181  GNULIB_FREAD=0;
20182  GNULIB_FREOPEN=0;
20183  GNULIB_FSCANF=0;
20184  GNULIB_FSEEK=0;
20185  GNULIB_FSEEKO=0;
20186  GNULIB_FTELL=0;
20187  GNULIB_FTELLO=0;
20188  GNULIB_FWRITE=0;
20189  GNULIB_GETC=0;
20190  GNULIB_GETCHAR=0;
20191  GNULIB_GETDELIM=0;
20192  GNULIB_GETLINE=0;
20193  GNULIB_OBSTACK_PRINTF=0;
20194  GNULIB_OBSTACK_PRINTF_POSIX=0;
20195  GNULIB_PCLOSE=0;
20196  GNULIB_PERROR=0;
20197  GNULIB_POPEN=0;
20198  GNULIB_PRINTF=0;
20199  GNULIB_PRINTF_POSIX=0;
20200  GNULIB_PUTC=0;
20201  GNULIB_PUTCHAR=0;
20202  GNULIB_PUTS=0;
20203  GNULIB_REMOVE=0;
20204  GNULIB_RENAME=0;
20205  GNULIB_RENAMEAT=0;
20206  GNULIB_SCANF=0;
20207  GNULIB_SNPRINTF=0;
20208  GNULIB_SPRINTF_POSIX=0;
20209  GNULIB_STDIO_H_NONBLOCKING=0;
20210  GNULIB_STDIO_H_SIGPIPE=0;
20211  GNULIB_TMPFILE=0;
20212  GNULIB_VASPRINTF=0;
20213  GNULIB_VFSCANF=0;
20214  GNULIB_VSCANF=0;
20215  GNULIB_VDPRINTF=0;
20216  GNULIB_VFPRINTF=0;
20217  GNULIB_VFPRINTF_POSIX=0;
20218  GNULIB_VPRINTF=0;
20219  GNULIB_VPRINTF_POSIX=0;
20220  GNULIB_VSNPRINTF=0;
20221  GNULIB_VSPRINTF_POSIX=0;
20222    HAVE_DECL_FPURGE=1;
20223  HAVE_DECL_FSEEKO=1;
20224  HAVE_DECL_FTELLO=1;
20225  HAVE_DECL_GETDELIM=1;
20226  HAVE_DECL_GETLINE=1;
20227  HAVE_DECL_OBSTACK_PRINTF=1;
20228  HAVE_DECL_SNPRINTF=1;
20229  HAVE_DECL_VSNPRINTF=1;
20230  HAVE_DPRINTF=1;
20231  HAVE_FSEEKO=1;
20232  HAVE_FTELLO=1;
20233  HAVE_PCLOSE=1;
20234  HAVE_POPEN=1;
20235  HAVE_RENAMEAT=1;
20236  HAVE_VASPRINTF=1;
20237  HAVE_VDPRINTF=1;
20238  REPLACE_DPRINTF=0;
20239  REPLACE_FCLOSE=0;
20240  REPLACE_FDOPEN=0;
20241  REPLACE_FFLUSH=0;
20242  REPLACE_FOPEN=0;
20243  REPLACE_FPRINTF=0;
20244  REPLACE_FPURGE=0;
20245  REPLACE_FREOPEN=0;
20246  REPLACE_FSEEK=0;
20247  REPLACE_FSEEKO=0;
20248  REPLACE_FTELL=0;
20249  REPLACE_FTELLO=0;
20250  REPLACE_GETDELIM=0;
20251  REPLACE_GETLINE=0;
20252  REPLACE_OBSTACK_PRINTF=0;
20253  REPLACE_PERROR=0;
20254  REPLACE_POPEN=0;
20255  REPLACE_PRINTF=0;
20256  REPLACE_REMOVE=0;
20257  REPLACE_RENAME=0;
20258  REPLACE_RENAMEAT=0;
20259  REPLACE_SNPRINTF=0;
20260  REPLACE_SPRINTF=0;
20261  REPLACE_STDIO_READ_FUNCS=0;
20262  REPLACE_STDIO_WRITE_FUNCS=0;
20263  REPLACE_TMPFILE=0;
20264  REPLACE_VASPRINTF=0;
20265  REPLACE_VDPRINTF=0;
20266  REPLACE_VFPRINTF=0;
20267  REPLACE_VPRINTF=0;
20268  REPLACE_VSNPRINTF=0;
20269  REPLACE_VSPRINTF=0;
20270
20271
20272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273/* end confdefs.h.  */
20274
20275#ifdef _MSC_VER
20276MicrosoftCompiler
20277#endif
20278
20279_ACEOF
20280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20281  $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
20282  gl_asmext='asm'
20283     gl_c_asm_opt='-c -Fa'
20284
20285else
20286  gl_asmext='s'
20287     gl_c_asm_opt='-S'
20288
20289fi
20290rm -f conftest*
20291
20292
20293
20294
20295
20296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
20297$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
20298if ${gl_cv_prog_as_underscore+:} false; then :
20299  $as_echo_n "(cached) " >&6
20300else
20301  cat > conftest.c <<EOF
20302#ifdef __cplusplus
20303extern "C" int foo (void);
20304#endif
20305int foo(void) { return 0; }
20306EOF
20307     # Look for the assembly language name in the .s file.
20308     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
20309  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20310  (eval $ac_try) 2>&5
20311  ac_status=$?
20312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20313  test $ac_status = 0; }; } >/dev/null 2>&1
20314     if LC_ALL=C $EGREP '(^|[^a-zA-Z0-9_])_foo([^a-zA-Z0-9_]|$)' conftest.$gl_asmext >/dev/null; then
20315       gl_cv_prog_as_underscore=yes
20316     else
20317       gl_cv_prog_as_underscore=no
20318     fi
20319     rm -f conftest*
20320
20321fi
20322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
20323$as_echo "$gl_cv_prog_as_underscore" >&6; }
20324  if test $gl_cv_prog_as_underscore = yes; then
20325    USER_LABEL_PREFIX=_
20326  else
20327    USER_LABEL_PREFIX=
20328  fi
20329
20330cat >>confdefs.h <<_ACEOF
20331#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
20332_ACEOF
20333
20334  ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
20335
20336
20337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20338$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20339if ${ac_cv_header_stat_broken+:} false; then :
20340  $as_echo_n "(cached) " >&6
20341else
20342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343/* end confdefs.h.  */
20344#include <sys/types.h>
20345#include <sys/stat.h>
20346
20347#if defined S_ISBLK && defined S_IFDIR
20348extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20349#endif
20350
20351#if defined S_ISBLK && defined S_IFCHR
20352extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20353#endif
20354
20355#if defined S_ISLNK && defined S_IFREG
20356extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20357#endif
20358
20359#if defined S_ISSOCK && defined S_IFREG
20360extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20361#endif
20362
20363_ACEOF
20364if ac_fn_c_try_compile "$LINENO"; then :
20365  ac_cv_header_stat_broken=no
20366else
20367  ac_cv_header_stat_broken=yes
20368fi
20369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370fi
20371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20372$as_echo "$ac_cv_header_stat_broken" >&6; }
20373if test $ac_cv_header_stat_broken = yes; then
20374
20375$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20376
20377fi
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395     if test $gl_cv_have_include_next = yes; then
20396       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20397     else
20398       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20399$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20400if ${gl_cv_next_sys_stat_h+:} false; then :
20401  $as_echo_n "(cached) " >&6
20402else
20403
20404             if test $ac_cv_header_sys_stat_h = yes; then
20405
20406
20407
20408
20409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20410/* end confdefs.h.  */
20411#include <sys/stat.h>
20412_ACEOF
20413                case "$host_os" in
20414    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20415    *)    gl_absname_cpp="$ac_cpp" ;;
20416  esac
20417
20418  case "$host_os" in
20419    mingw*)
20420                                          gl_dirsep_regex='[/\\]'
20421      ;;
20422    *)
20423      gl_dirsep_regex='\/'
20424      ;;
20425  esac
20426      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20427  gl_header_literal_regex=`echo 'sys/stat.h' \
20428                           | sed -e "$gl_make_literal_regex_sed"`
20429  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20430      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20431      s|^/[^/]|//&|
20432      p
20433      q
20434    }'
20435
20436        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20437  sed -n "$gl_absolute_header_sed"`
20438
20439           gl_header=$gl_cv_absolute_sys_stat_h
20440           gl_cv_next_sys_stat_h='"'$gl_header'"'
20441          else
20442               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20443             fi
20444
20445
20446fi
20447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20448$as_echo "$gl_cv_next_sys_stat_h" >&6; }
20449     fi
20450     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20451
20452     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20453       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20454       gl_next_as_first_directive='<'sys/stat.h'>'
20455     else
20456       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20457       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20458     fi
20459     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20460
20461
20462
20463
20464
20465
20466
20467
20468    WINDOWS_STAT_TIMESPEC=0
20469
20470
20471
20472
20473
20474
20475
20476
20477      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20478     #include <sys/stat.h>
20479"
20480if test "x$ac_cv_type_nlink_t" = xyes; then :
20481
20482else
20483
20484$as_echo "#define nlink_t int" >>confdefs.h
20485
20486fi
20487
20488
20489
20490
20491
20492
20493
20494
20495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20496$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20497if ${ac_cv_header_stdbool_h+:} false; then :
20498  $as_echo_n "(cached) " >&6
20499else
20500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501/* end confdefs.h.  */
20502
20503             #include <stdbool.h>
20504
20505             #ifdef __cplusplus
20506              typedef bool Bool;
20507             #else
20508              typedef _Bool Bool;
20509              #ifndef bool
20510               "error: bool is not defined"
20511              #endif
20512              #ifndef false
20513               "error: false is not defined"
20514              #endif
20515              #if false
20516               "error: false is not 0"
20517              #endif
20518              #ifndef true
20519               "error: true is not defined"
20520              #endif
20521              #if true != 1
20522               "error: true is not 1"
20523              #endif
20524             #endif
20525
20526             #ifndef __bool_true_false_are_defined
20527              "error: __bool_true_false_are_defined is not defined"
20528             #endif
20529
20530             struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20531
20532             char a[true == 1 ? 1 : -1];
20533             char b[false == 0 ? 1 : -1];
20534             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20535             char d[(bool) 0.5 == true ? 1 : -1];
20536             /* See body of main program for 'e'.  */
20537             char f[(Bool) 0.0 == false ? 1 : -1];
20538             char g[true];
20539             char h[sizeof (Bool)];
20540             char i[sizeof s.t];
20541             enum { j = false, k = true, l = false * true, m = true * 256 };
20542             /* The following fails for
20543                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20544             Bool n[m];
20545             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20546             char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20547             /* Catch a bug in an HP-UX C compiler.  See
20548                https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20549                https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20550              */
20551             Bool q = true;
20552             Bool *pq = &q;
20553             bool *qq = &q;
20554
20555int
20556main ()
20557{
20558
20559             bool e = &s;
20560             *pq |= q; *pq |= ! q;
20561             *qq |= q; *qq |= ! q;
20562             /* Refer to every declared value, to avoid compiler optimizations.  */
20563             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20564                     + !m + !n + !o + !p + !q + !pq + !qq);
20565
20566  ;
20567  return 0;
20568}
20569_ACEOF
20570if ac_fn_c_try_compile "$LINENO"; then :
20571  ac_cv_header_stdbool_h=yes
20572else
20573  ac_cv_header_stdbool_h=no
20574fi
20575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576fi
20577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20578$as_echo "$ac_cv_header_stdbool_h" >&6; }
20579   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20580if test "x$ac_cv_type__Bool" = xyes; then :
20581
20582cat >>confdefs.h <<_ACEOF
20583#define HAVE__BOOL 1
20584_ACEOF
20585
20586
20587fi
20588
20589
20590
20591    REPLACE_NULL=0;
20592  HAVE_MAX_ALIGN_T=1;
20593  HAVE_WCHAR_T=1;
20594
20595
20596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20597$as_echo_n "checking for wint_t... " >&6; }
20598if ${gt_cv_c_wint_t+:} false; then :
20599  $as_echo_n "(cached) " >&6
20600else
20601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602/* end confdefs.h.  */
20603
20604/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20605   <wchar.h>.
20606   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20607   before <wchar.h>.  */
20608#include <stddef.h>
20609#include <stdio.h>
20610#include <time.h>
20611#include <wchar.h>
20612            wint_t foo = (wchar_t)'\0';
20613int
20614main ()
20615{
20616
20617  ;
20618  return 0;
20619}
20620_ACEOF
20621if ac_fn_c_try_compile "$LINENO"; then :
20622  gt_cv_c_wint_t=yes
20623else
20624  gt_cv_c_wint_t=no
20625fi
20626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627fi
20628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20629$as_echo "$gt_cv_c_wint_t" >&6; }
20630  if test $gt_cv_c_wint_t = yes; then
20631
20632$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20633
20634
20635            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
20636$as_echo_n "checking whether wint_t is too small... " >&6; }
20637if ${gl_cv_type_wint_t_too_small+:} false; then :
20638  $as_echo_n "(cached) " >&6
20639else
20640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641/* end confdefs.h.  */
20642
20643/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20644   <wchar.h>.
20645   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20646   included before <wchar.h>.  */
20647#if !(defined __GLIBC__ && !defined __UCLIBC__)
20648# include <stddef.h>
20649# include <stdio.h>
20650# include <time.h>
20651#endif
20652#include <wchar.h>
20653              int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20654
20655int
20656main ()
20657{
20658
20659  ;
20660  return 0;
20661}
20662_ACEOF
20663if ac_fn_c_try_compile "$LINENO"; then :
20664  gl_cv_type_wint_t_too_small=no
20665else
20666  gl_cv_type_wint_t_too_small=yes
20667fi
20668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669fi
20670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
20671$as_echo "$gl_cv_type_wint_t_too_small" >&6; }
20672    if test $gl_cv_type_wint_t_too_small = yes; then
20673      GNULIB_OVERRIDES_WINT_T=1
20674    else
20675      GNULIB_OVERRIDES_WINT_T=0
20676    fi
20677  else
20678    GNULIB_OVERRIDES_WINT_T=0
20679  fi
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692  if test $ac_cv_type_long_long_int = yes; then
20693    HAVE_LONG_LONG_INT=1
20694  else
20695    HAVE_LONG_LONG_INT=0
20696  fi
20697
20698
20699  if test $ac_cv_type_unsigned_long_long_int = yes; then
20700    HAVE_UNSIGNED_LONG_LONG_INT=1
20701  else
20702    HAVE_UNSIGNED_LONG_LONG_INT=0
20703  fi
20704
20705
20706
20707  if test $ac_cv_header_wchar_h = yes; then
20708    HAVE_WCHAR_H=1
20709  else
20710    HAVE_WCHAR_H=0
20711  fi
20712
20713
20714      if test $ac_cv_header_inttypes_h = yes; then
20715    HAVE_INTTYPES_H=1
20716  else
20717    HAVE_INTTYPES_H=0
20718  fi
20719
20720
20721      if test $ac_cv_header_sys_types_h = yes; then
20722    HAVE_SYS_TYPES_H=1
20723  else
20724    HAVE_SYS_TYPES_H=0
20725  fi
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737     if test $gl_cv_have_include_next = yes; then
20738       gl_cv_next_stdint_h='<'stdint.h'>'
20739     else
20740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20741$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20742if ${gl_cv_next_stdint_h+:} false; then :
20743  $as_echo_n "(cached) " >&6
20744else
20745
20746             if test $ac_cv_header_stdint_h = yes; then
20747
20748
20749
20750
20751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h.  */
20753#include <stdint.h>
20754_ACEOF
20755                case "$host_os" in
20756    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20757    *)    gl_absname_cpp="$ac_cpp" ;;
20758  esac
20759
20760  case "$host_os" in
20761    mingw*)
20762                                          gl_dirsep_regex='[/\\]'
20763      ;;
20764    *)
20765      gl_dirsep_regex='\/'
20766      ;;
20767  esac
20768      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20769  gl_header_literal_regex=`echo 'stdint.h' \
20770                           | sed -e "$gl_make_literal_regex_sed"`
20771  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20772      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20773      s|^/[^/]|//&|
20774      p
20775      q
20776    }'
20777
20778        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20779  sed -n "$gl_absolute_header_sed"`
20780
20781           gl_header=$gl_cv_absolute_stdint_h
20782           gl_cv_next_stdint_h='"'$gl_header'"'
20783          else
20784               gl_cv_next_stdint_h='<'stdint.h'>'
20785             fi
20786
20787
20788fi
20789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20790$as_echo "$gl_cv_next_stdint_h" >&6; }
20791     fi
20792     NEXT_STDINT_H=$gl_cv_next_stdint_h
20793
20794     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20795       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20796       gl_next_as_first_directive='<'stdint.h'>'
20797     else
20798       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20799       gl_next_as_first_directive=$gl_cv_next_stdint_h
20800     fi
20801     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20802
20803
20804
20805
20806  if test $ac_cv_header_stdint_h = yes; then
20807    HAVE_STDINT_H=1
20808  else
20809    HAVE_STDINT_H=0
20810  fi
20811
20812
20813    if test $ac_cv_header_stdint_h = yes; then
20814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20815$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20816if ${gl_cv_header_working_stdint_h+:} false; then :
20817  $as_echo_n "(cached) " >&6
20818else
20819  gl_cv_header_working_stdint_h=no
20820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821/* end confdefs.h.  */
20822
20823
20824#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20825#define __STDC_CONSTANT_MACROS 1
20826#define __STDC_LIMIT_MACROS 1
20827#include <stdint.h>
20828/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
20829#if !(defined WCHAR_MIN && defined WCHAR_MAX)
20830#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20831#endif
20832
20833
20834  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20835     included before <wchar.h>.  */
20836  #include <stddef.h>
20837  #include <signal.h>
20838  #if HAVE_WCHAR_H
20839  # include <stdio.h>
20840  # include <time.h>
20841  # include <wchar.h>
20842  #endif
20843
20844
20845#ifdef INT8_MAX
20846int8_t a1 = INT8_MAX;
20847int8_t a1min = INT8_MIN;
20848#endif
20849#ifdef INT16_MAX
20850int16_t a2 = INT16_MAX;
20851int16_t a2min = INT16_MIN;
20852#endif
20853#ifdef INT32_MAX
20854int32_t a3 = INT32_MAX;
20855int32_t a3min = INT32_MIN;
20856#endif
20857#ifdef INT64_MAX
20858int64_t a4 = INT64_MAX;
20859int64_t a4min = INT64_MIN;
20860#endif
20861#ifdef UINT8_MAX
20862uint8_t b1 = UINT8_MAX;
20863#else
20864typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20865#endif
20866#ifdef UINT16_MAX
20867uint16_t b2 = UINT16_MAX;
20868#endif
20869#ifdef UINT32_MAX
20870uint32_t b3 = UINT32_MAX;
20871#endif
20872#ifdef UINT64_MAX
20873uint64_t b4 = UINT64_MAX;
20874#endif
20875int_least8_t c1 = INT8_C (0x7f);
20876int_least8_t c1max = INT_LEAST8_MAX;
20877int_least8_t c1min = INT_LEAST8_MIN;
20878int_least16_t c2 = INT16_C (0x7fff);
20879int_least16_t c2max = INT_LEAST16_MAX;
20880int_least16_t c2min = INT_LEAST16_MIN;
20881int_least32_t c3 = INT32_C (0x7fffffff);
20882int_least32_t c3max = INT_LEAST32_MAX;
20883int_least32_t c3min = INT_LEAST32_MIN;
20884int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20885int_least64_t c4max = INT_LEAST64_MAX;
20886int_least64_t c4min = INT_LEAST64_MIN;
20887uint_least8_t d1 = UINT8_C (0xff);
20888uint_least8_t d1max = UINT_LEAST8_MAX;
20889uint_least16_t d2 = UINT16_C (0xffff);
20890uint_least16_t d2max = UINT_LEAST16_MAX;
20891uint_least32_t d3 = UINT32_C (0xffffffff);
20892uint_least32_t d3max = UINT_LEAST32_MAX;
20893uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20894uint_least64_t d4max = UINT_LEAST64_MAX;
20895int_fast8_t e1 = INT_FAST8_MAX;
20896int_fast8_t e1min = INT_FAST8_MIN;
20897int_fast16_t e2 = INT_FAST16_MAX;
20898int_fast16_t e2min = INT_FAST16_MIN;
20899int_fast32_t e3 = INT_FAST32_MAX;
20900int_fast32_t e3min = INT_FAST32_MIN;
20901int_fast64_t e4 = INT_FAST64_MAX;
20902int_fast64_t e4min = INT_FAST64_MIN;
20903uint_fast8_t f1 = UINT_FAST8_MAX;
20904uint_fast16_t f2 = UINT_FAST16_MAX;
20905uint_fast32_t f3 = UINT_FAST32_MAX;
20906uint_fast64_t f4 = UINT_FAST64_MAX;
20907#ifdef INTPTR_MAX
20908intptr_t g = INTPTR_MAX;
20909intptr_t gmin = INTPTR_MIN;
20910#endif
20911#ifdef UINTPTR_MAX
20912uintptr_t h = UINTPTR_MAX;
20913#endif
20914intmax_t i = INTMAX_MAX;
20915uintmax_t j = UINTMAX_MAX;
20916
20917/* Check that SIZE_MAX has the correct type, if possible.  */
20918#if 201112 <= __STDC_VERSION__
20919int k = _Generic (SIZE_MAX, size_t: 0);
20920#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
20921       || (0x5110 <= __SUNPRO_C && !__STDC__))
20922extern size_t k;
20923extern __typeof__ (SIZE_MAX) k;
20924#endif
20925
20926#include <limits.h> /* for CHAR_BIT */
20927#define TYPE_MINIMUM(t) \
20928  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20929#define TYPE_MAXIMUM(t) \
20930  ((t) ((t) 0 < (t) -1 \
20931        ? (t) -1 \
20932        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20933struct s {
20934  int check_PTRDIFF:
20935      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20936      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20937      ? 1 : -1;
20938  /* Detect bug in FreeBSD 6.0 / ia64.  */
20939  int check_SIG_ATOMIC:
20940      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20941      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20942      ? 1 : -1;
20943  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20944  int check_WCHAR:
20945      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20946      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20947      ? 1 : -1;
20948  /* Detect bug in mingw.  */
20949  int check_WINT:
20950      WINT_MIN == TYPE_MINIMUM (wint_t)
20951      && WINT_MAX == TYPE_MAXIMUM (wint_t)
20952      ? 1 : -1;
20953
20954  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
20955  int check_UINT8_C:
20956        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20957  int check_UINT16_C:
20958        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20959
20960  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
20961#ifdef UINT8_MAX
20962  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20963#endif
20964#ifdef UINT16_MAX
20965  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20966#endif
20967#ifdef UINT32_MAX
20968  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20969#endif
20970#ifdef UINT64_MAX
20971  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20972#endif
20973  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20974  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20975  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20976  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20977  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20978  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20979  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20980  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20981  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20982  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20983  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20984};
20985
20986int
20987main ()
20988{
20989
20990  ;
20991  return 0;
20992}
20993_ACEOF
20994if ac_fn_c_try_compile "$LINENO"; then :
20995                                                    if test "$cross_compiling" = yes; then :
20996  case "$host_os" in
20997                         # Guess yes on native Windows.
20998                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
20999                         # In general, assume it works.
21000                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
21001               esac
21002
21003else
21004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005/* end confdefs.h.  */
21006
21007
21008#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21009#define __STDC_CONSTANT_MACROS 1
21010#define __STDC_LIMIT_MACROS 1
21011#include <stdint.h>
21012
21013
21014  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21015     included before <wchar.h>.  */
21016  #include <stddef.h>
21017  #include <signal.h>
21018  #if HAVE_WCHAR_H
21019  # include <stdio.h>
21020  # include <time.h>
21021  # include <wchar.h>
21022  #endif
21023
21024
21025#include <stdio.h>
21026#include <string.h>
21027#define MVAL(macro) MVAL1(macro)
21028#define MVAL1(expression) #expression
21029static const char *macro_values[] =
21030  {
21031#ifdef INT8_MAX
21032    MVAL (INT8_MAX),
21033#endif
21034#ifdef INT16_MAX
21035    MVAL (INT16_MAX),
21036#endif
21037#ifdef INT32_MAX
21038    MVAL (INT32_MAX),
21039#endif
21040#ifdef INT64_MAX
21041    MVAL (INT64_MAX),
21042#endif
21043#ifdef UINT8_MAX
21044    MVAL (UINT8_MAX),
21045#endif
21046#ifdef UINT16_MAX
21047    MVAL (UINT16_MAX),
21048#endif
21049#ifdef UINT32_MAX
21050    MVAL (UINT32_MAX),
21051#endif
21052#ifdef UINT64_MAX
21053    MVAL (UINT64_MAX),
21054#endif
21055    NULL
21056  };
21057
21058int
21059main ()
21060{
21061
21062  const char **mv;
21063  for (mv = macro_values; *mv != NULL; mv++)
21064    {
21065      const char *value = *mv;
21066      /* Test whether it looks like a cast expression.  */
21067      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21068          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21069          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21070          || strncmp (value, "((int)"/*)*/, 6) == 0
21071          || strncmp (value, "((signed short)"/*)*/, 15) == 0
21072          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21073        return mv - macro_values + 1;
21074    }
21075  return 0;
21076
21077  ;
21078  return 0;
21079}
21080_ACEOF
21081if ac_fn_c_try_run "$LINENO"; then :
21082  gl_cv_header_working_stdint_h=yes
21083fi
21084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21085  conftest.$ac_objext conftest.beam conftest.$ac_ext
21086fi
21087
21088
21089fi
21090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091
21092fi
21093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21094$as_echo "$gl_cv_header_working_stdint_h" >&6; }
21095  fi
21096
21097  HAVE_C99_STDINT_H=0
21098  HAVE_SYS_BITYPES_H=0
21099  HAVE_SYS_INTTYPES_H=0
21100  STDINT_H=stdint.h
21101  case "$gl_cv_header_working_stdint_h" in
21102    *yes)
21103      HAVE_C99_STDINT_H=1
21104                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
21105$as_echo_n "checking whether stdint.h predates C++11... " >&6; }
21106if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
21107  $as_echo_n "(cached) " >&6
21108else
21109  gl_cv_header_stdint_predates_cxx11_h=yes
21110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111/* end confdefs.h.  */
21112
21113
21114#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21115#include <stdint.h>
21116
21117
21118  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21119     included before <wchar.h>.  */
21120  #include <stddef.h>
21121  #include <signal.h>
21122  #if HAVE_WCHAR_H
21123  # include <stdio.h>
21124  # include <time.h>
21125  # include <wchar.h>
21126  #endif
21127
21128
21129intmax_t im = INTMAX_MAX;
21130int32_t i32 = INT32_C (0x7fffffff);
21131
21132int
21133main ()
21134{
21135
21136  ;
21137  return 0;
21138}
21139_ACEOF
21140if ac_fn_c_try_compile "$LINENO"; then :
21141  gl_cv_header_stdint_predates_cxx11_h=no
21142fi
21143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144fi
21145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
21146$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
21147
21148      if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
21149
21150$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21151
21152
21153$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21154
21155      fi
21156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21157$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21158if ${gl_cv_header_stdint_width+:} false; then :
21159  $as_echo_n "(cached) " >&6
21160else
21161  gl_cv_header_stdint_width=no
21162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163/* end confdefs.h.  */
21164
21165              /* Work if build is not clean.  */
21166              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21167              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21168               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21169              #endif
21170              #include <stdint.h>
21171
21172  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21173     included before <wchar.h>.  */
21174  #include <stddef.h>
21175  #include <signal.h>
21176  #if HAVE_WCHAR_H
21177  # include <stdio.h>
21178  # include <time.h>
21179  # include <wchar.h>
21180  #endif
21181
21182              int iw = UINTMAX_WIDTH;
21183
21184int
21185main ()
21186{
21187
21188  ;
21189  return 0;
21190}
21191_ACEOF
21192if ac_fn_c_try_compile "$LINENO"; then :
21193  gl_cv_header_stdint_width=yes
21194fi
21195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196fi
21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21198$as_echo "$gl_cv_header_stdint_width" >&6; }
21199      if test "$gl_cv_header_stdint_width" = yes; then
21200        STDINT_H=
21201      fi
21202      ;;
21203    *)
21204                  for ac_header in sys/inttypes.h sys/bitypes.h
21205do :
21206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21209  cat >>confdefs.h <<_ACEOF
21210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21211_ACEOF
21212
21213fi
21214
21215done
21216
21217      if test $ac_cv_header_sys_inttypes_h = yes; then
21218        HAVE_SYS_INTTYPES_H=1
21219      fi
21220      if test $ac_cv_header_sys_bitypes_h = yes; then
21221        HAVE_SYS_BITYPES_H=1
21222      fi
21223
21224
21225  if test $APPLE_UNIVERSAL_BUILD = 0; then
21226
21227
21228  for gltype in ptrdiff_t size_t ; do
21229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21230$as_echo_n "checking for bit size of $gltype... " >&6; }
21231if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21232  $as_echo_n "(cached) " >&6
21233else
21234  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21235  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21236     included before <wchar.h>.  */
21237  #include <stddef.h>
21238  #include <signal.h>
21239  #if HAVE_WCHAR_H
21240  # include <stdio.h>
21241  # include <time.h>
21242  # include <wchar.h>
21243  #endif
21244
21245#include <limits.h>"; then :
21246
21247else
21248  result=unknown
21249fi
21250
21251       eval gl_cv_bitsizeof_${gltype}=\$result
21252
21253fi
21254eval ac_res=\$gl_cv_bitsizeof_${gltype}
21255	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21256$as_echo "$ac_res" >&6; }
21257    eval result=\$gl_cv_bitsizeof_${gltype}
21258    if test $result = unknown; then
21259                                                result=0
21260    fi
21261    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21262    cat >>confdefs.h <<_ACEOF
21263#define BITSIZEOF_${GLTYPE} $result
21264_ACEOF
21265
21266    eval BITSIZEOF_${GLTYPE}=\$result
21267  done
21268
21269
21270  fi
21271
21272
21273  for gltype in sig_atomic_t wchar_t wint_t ; do
21274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21275$as_echo_n "checking for bit size of $gltype... " >&6; }
21276if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21277  $as_echo_n "(cached) " >&6
21278else
21279  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21280  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21281     included before <wchar.h>.  */
21282  #include <stddef.h>
21283  #include <signal.h>
21284  #if HAVE_WCHAR_H
21285  # include <stdio.h>
21286  # include <time.h>
21287  # include <wchar.h>
21288  #endif
21289
21290#include <limits.h>"; then :
21291
21292else
21293  result=unknown
21294fi
21295
21296       eval gl_cv_bitsizeof_${gltype}=\$result
21297
21298fi
21299eval ac_res=\$gl_cv_bitsizeof_${gltype}
21300	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21301$as_echo "$ac_res" >&6; }
21302    eval result=\$gl_cv_bitsizeof_${gltype}
21303    if test $result = unknown; then
21304                                                result=0
21305    fi
21306    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21307    cat >>confdefs.h <<_ACEOF
21308#define BITSIZEOF_${GLTYPE} $result
21309_ACEOF
21310
21311    eval BITSIZEOF_${GLTYPE}=\$result
21312  done
21313
21314
21315
21316
21317  for gltype in sig_atomic_t wchar_t wint_t ; do
21318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21319$as_echo_n "checking whether $gltype is signed... " >&6; }
21320if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21321  $as_echo_n "(cached) " >&6
21322else
21323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324/* end confdefs.h.  */
21325
21326  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21327     included before <wchar.h>.  */
21328  #include <stddef.h>
21329  #include <signal.h>
21330  #if HAVE_WCHAR_H
21331  # include <stdio.h>
21332  # include <time.h>
21333  # include <wchar.h>
21334  #endif
21335
21336            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21337int
21338main ()
21339{
21340
21341  ;
21342  return 0;
21343}
21344_ACEOF
21345if ac_fn_c_try_compile "$LINENO"; then :
21346  result=yes
21347else
21348  result=no
21349fi
21350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21351       eval gl_cv_type_${gltype}_signed=\$result
21352
21353fi
21354eval ac_res=\$gl_cv_type_${gltype}_signed
21355	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21356$as_echo "$ac_res" >&6; }
21357    eval result=\$gl_cv_type_${gltype}_signed
21358    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21359    if test "$result" = yes; then
21360      cat >>confdefs.h <<_ACEOF
21361#define HAVE_SIGNED_${GLTYPE} 1
21362_ACEOF
21363
21364      eval HAVE_SIGNED_${GLTYPE}=1
21365    else
21366      eval HAVE_SIGNED_${GLTYPE}=0
21367    fi
21368  done
21369
21370
21371  gl_cv_type_ptrdiff_t_signed=yes
21372  gl_cv_type_size_t_signed=no
21373  if test $APPLE_UNIVERSAL_BUILD = 0; then
21374
21375
21376  for gltype in ptrdiff_t size_t ; do
21377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21378$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21379if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21380  $as_echo_n "(cached) " >&6
21381else
21382  eval gl_cv_type_${gltype}_suffix=no
21383       eval result=\$gl_cv_type_${gltype}_signed
21384       if test "$result" = yes; then
21385         glsufu=
21386       else
21387         glsufu=u
21388       fi
21389       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21390         case $glsuf in
21391           '')  gltype1='int';;
21392           l)   gltype1='long int';;
21393           ll)  gltype1='long long int';;
21394           i64) gltype1='__int64';;
21395           u)   gltype1='unsigned int';;
21396           ul)  gltype1='unsigned long int';;
21397           ull) gltype1='unsigned long long int';;
21398           ui64)gltype1='unsigned __int64';;
21399         esac
21400         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401/* end confdefs.h.  */
21402
21403  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21404     included before <wchar.h>.  */
21405  #include <stddef.h>
21406  #include <signal.h>
21407  #if HAVE_WCHAR_H
21408  # include <stdio.h>
21409  # include <time.h>
21410  # include <wchar.h>
21411  #endif
21412
21413              extern $gltype foo;
21414              extern $gltype1 foo;
21415int
21416main ()
21417{
21418
21419  ;
21420  return 0;
21421}
21422_ACEOF
21423if ac_fn_c_try_compile "$LINENO"; then :
21424  eval gl_cv_type_${gltype}_suffix=\$glsuf
21425fi
21426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427         eval result=\$gl_cv_type_${gltype}_suffix
21428         test "$result" != no && break
21429       done
21430fi
21431eval ac_res=\$gl_cv_type_${gltype}_suffix
21432	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21433$as_echo "$ac_res" >&6; }
21434    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21435    eval result=\$gl_cv_type_${gltype}_suffix
21436    test "$result" = no && result=
21437    eval ${GLTYPE}_SUFFIX=\$result
21438    cat >>confdefs.h <<_ACEOF
21439#define ${GLTYPE}_SUFFIX $result
21440_ACEOF
21441
21442  done
21443
21444
21445  fi
21446
21447
21448  for gltype in sig_atomic_t wchar_t wint_t ; do
21449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21450$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21451if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21452  $as_echo_n "(cached) " >&6
21453else
21454  eval gl_cv_type_${gltype}_suffix=no
21455       eval result=\$gl_cv_type_${gltype}_signed
21456       if test "$result" = yes; then
21457         glsufu=
21458       else
21459         glsufu=u
21460       fi
21461       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21462         case $glsuf in
21463           '')  gltype1='int';;
21464           l)   gltype1='long int';;
21465           ll)  gltype1='long long int';;
21466           i64) gltype1='__int64';;
21467           u)   gltype1='unsigned int';;
21468           ul)  gltype1='unsigned long int';;
21469           ull) gltype1='unsigned long long int';;
21470           ui64)gltype1='unsigned __int64';;
21471         esac
21472         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473/* end confdefs.h.  */
21474
21475  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21476     included before <wchar.h>.  */
21477  #include <stddef.h>
21478  #include <signal.h>
21479  #if HAVE_WCHAR_H
21480  # include <stdio.h>
21481  # include <time.h>
21482  # include <wchar.h>
21483  #endif
21484
21485              extern $gltype foo;
21486              extern $gltype1 foo;
21487int
21488main ()
21489{
21490
21491  ;
21492  return 0;
21493}
21494_ACEOF
21495if ac_fn_c_try_compile "$LINENO"; then :
21496  eval gl_cv_type_${gltype}_suffix=\$glsuf
21497fi
21498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499         eval result=\$gl_cv_type_${gltype}_suffix
21500         test "$result" != no && break
21501       done
21502fi
21503eval ac_res=\$gl_cv_type_${gltype}_suffix
21504	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21505$as_echo "$ac_res" >&6; }
21506    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21507    eval result=\$gl_cv_type_${gltype}_suffix
21508    test "$result" = no && result=
21509    eval ${GLTYPE}_SUFFIX=\$result
21510    cat >>confdefs.h <<_ACEOF
21511#define ${GLTYPE}_SUFFIX $result
21512_ACEOF
21513
21514  done
21515
21516
21517
21518          if test $GNULIB_OVERRIDES_WINT_T = 1; then
21519    BITSIZEOF_WINT_T=32
21520  fi
21521
21522      ;;
21523  esac
21524
21525
21526
21527  LIMITS_H='limits.h'
21528   if test -n "$LIMITS_H"; then
21529  GL_GENERATE_LIMITS_H_TRUE=
21530  GL_GENERATE_LIMITS_H_FALSE='#'
21531else
21532  GL_GENERATE_LIMITS_H_TRUE='#'
21533  GL_GENERATE_LIMITS_H_FALSE=
21534fi
21535
21536
21537
21538
21539
21540
21541
21542   if test -n "$STDINT_H"; then
21543  GL_GENERATE_STDINT_H_TRUE=
21544  GL_GENERATE_STDINT_H_FALSE='#'
21545else
21546  GL_GENERATE_STDINT_H_TRUE='#'
21547  GL_GENERATE_STDINT_H_FALSE=
21548fi
21549
21550
21551
21552  GNULIB_EXPLICIT_BZERO=0;
21553  GNULIB_FFSL=0;
21554  GNULIB_FFSLL=0;
21555  GNULIB_MEMCHR=0;
21556  GNULIB_MEMMEM=0;
21557  GNULIB_MEMPCPY=0;
21558  GNULIB_MEMRCHR=0;
21559  GNULIB_RAWMEMCHR=0;
21560  GNULIB_STPCPY=0;
21561  GNULIB_STPNCPY=0;
21562  GNULIB_STRCHRNUL=0;
21563  GNULIB_STRDUP=0;
21564  GNULIB_STRNCAT=0;
21565  GNULIB_STRNDUP=0;
21566  GNULIB_STRNLEN=0;
21567  GNULIB_STRPBRK=0;
21568  GNULIB_STRSEP=0;
21569  GNULIB_STRSTR=0;
21570  GNULIB_STRCASESTR=0;
21571  GNULIB_STRTOK_R=0;
21572  GNULIB_MBSLEN=0;
21573  GNULIB_MBSNLEN=0;
21574  GNULIB_MBSCHR=0;
21575  GNULIB_MBSRCHR=0;
21576  GNULIB_MBSSTR=0;
21577  GNULIB_MBSCASECMP=0;
21578  GNULIB_MBSNCASECMP=0;
21579  GNULIB_MBSPCASECMP=0;
21580  GNULIB_MBSCASESTR=0;
21581  GNULIB_MBSCSPN=0;
21582  GNULIB_MBSPBRK=0;
21583  GNULIB_MBSSPN=0;
21584  GNULIB_MBSSEP=0;
21585  GNULIB_MBSTOK_R=0;
21586  GNULIB_STRERROR=0;
21587  GNULIB_STRERROR_R=0;
21588  GNULIB_STRSIGNAL=0;
21589  GNULIB_STRVERSCMP=0;
21590  HAVE_MBSLEN=0;
21591    HAVE_EXPLICIT_BZERO=1;
21592  HAVE_FFSL=1;
21593  HAVE_FFSLL=1;
21594  HAVE_MEMCHR=1;
21595  HAVE_DECL_MEMMEM=1;
21596  HAVE_MEMPCPY=1;
21597  HAVE_DECL_MEMRCHR=1;
21598  HAVE_RAWMEMCHR=1;
21599  HAVE_STPCPY=1;
21600  HAVE_STPNCPY=1;
21601  HAVE_STRCHRNUL=1;
21602  HAVE_DECL_STRDUP=1;
21603  HAVE_DECL_STRNDUP=1;
21604  HAVE_DECL_STRNLEN=1;
21605  HAVE_STRPBRK=1;
21606  HAVE_STRSEP=1;
21607  HAVE_STRCASESTR=1;
21608  HAVE_DECL_STRTOK_R=1;
21609  HAVE_DECL_STRERROR_R=1;
21610  HAVE_DECL_STRSIGNAL=1;
21611  HAVE_STRVERSCMP=1;
21612  REPLACE_MEMCHR=0;
21613  REPLACE_MEMMEM=0;
21614  REPLACE_STPNCPY=0;
21615  REPLACE_STRCHRNUL=0;
21616  REPLACE_STRDUP=0;
21617  REPLACE_STRNCAT=0;
21618  REPLACE_STRNDUP=0;
21619  REPLACE_STRNLEN=0;
21620  REPLACE_STRSTR=0;
21621  REPLACE_STRCASESTR=0;
21622  REPLACE_STRTOK_R=0;
21623  REPLACE_STRERROR=0;
21624  REPLACE_STRERROR_R=0;
21625  REPLACE_STRSIGNAL=0;
21626  UNDEFINE_STRTOK_R=0;
21627
21628
21629     REPLACE_STRERROR_0=0
21630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21631$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
21632if ${gl_cv_func_strerror_0_works+:} false; then :
21633  $as_echo_n "(cached) " >&6
21634else
21635  if test "$cross_compiling" = yes; then :
21636  case "$host_os" in
21637                        # Guess yes on glibc systems.
21638         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21639                        # Guess yes on musl systems.
21640         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
21641                        # Guess yes on native Windows.
21642         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
21643                        # If we don't know, assume the worst.
21644         *)             gl_cv_func_strerror_0_works="guessing no" ;;
21645       esac
21646
21647else
21648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649/* end confdefs.h.  */
21650#include <string.h>
21651           #include <errno.h>
21652
21653int
21654main ()
21655{
21656int result = 0;
21657           char *str;
21658           errno = 0;
21659           str = strerror (0);
21660           if (!*str) result |= 1;
21661           if (errno) result |= 2;
21662           if (strstr (str, "nknown") || strstr (str, "ndefined"))
21663             result |= 4;
21664           return result;
21665  ;
21666  return 0;
21667}
21668_ACEOF
21669if ac_fn_c_try_run "$LINENO"; then :
21670  gl_cv_func_strerror_0_works=yes
21671else
21672  gl_cv_func_strerror_0_works=no
21673fi
21674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21675  conftest.$ac_objext conftest.beam conftest.$ac_ext
21676fi
21677
21678
21679fi
21680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21681$as_echo "$gl_cv_func_strerror_0_works" >&6; }
21682  case "$gl_cv_func_strerror_0_works" in
21683    *yes) ;;
21684    *)
21685      REPLACE_STRERROR_0=1
21686
21687$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
21688
21689      ;;
21690  esac
21691
21692
21693
21694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21695$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21696if ${ac_cv_c_restrict+:} false; then :
21697  $as_echo_n "(cached) " >&6
21698else
21699  ac_cv_c_restrict=no
21700   # The order here caters to the fact that C++ does not require restrict.
21701   for ac_kw in __restrict __restrict__ _Restrict restrict; do
21702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703/* end confdefs.h.  */
21704typedef int *int_ptr;
21705           int foo (int_ptr $ac_kw ip) { return ip[0]; }
21706           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
21707           int bar (int ip[$ac_kw]) { return ip[0]; }
21708
21709int
21710main ()
21711{
21712int s[1];
21713           int *$ac_kw t = s;
21714           t[0] = 0;
21715           return foo (t) + bar (t);
21716
21717  ;
21718  return 0;
21719}
21720_ACEOF
21721if ac_fn_c_try_compile "$LINENO"; then :
21722  ac_cv_c_restrict=$ac_kw
21723fi
21724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725     test "$ac_cv_c_restrict" != no && break
21726   done
21727
21728fi
21729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21730$as_echo "$ac_cv_c_restrict" >&6; }
21731
21732 case $ac_cv_c_restrict in
21733   restrict) ;;
21734   no) $as_echo "#define restrict /**/" >>confdefs.h
21735 ;;
21736   *)  cat >>confdefs.h <<_ACEOF
21737#define restrict $ac_cv_c_restrict
21738_ACEOF
21739 ;;
21740 esac
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753     if test $gl_cv_have_include_next = yes; then
21754       gl_cv_next_string_h='<'string.h'>'
21755     else
21756       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21757$as_echo_n "checking absolute name of <string.h>... " >&6; }
21758if ${gl_cv_next_string_h+:} false; then :
21759  $as_echo_n "(cached) " >&6
21760else
21761
21762
21763
21764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765/* end confdefs.h.  */
21766#include <string.h>
21767_ACEOF
21768                case "$host_os" in
21769    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21770    *)    gl_absname_cpp="$ac_cpp" ;;
21771  esac
21772
21773  case "$host_os" in
21774    mingw*)
21775                                          gl_dirsep_regex='[/\\]'
21776      ;;
21777    *)
21778      gl_dirsep_regex='\/'
21779      ;;
21780  esac
21781      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21782  gl_header_literal_regex=`echo 'string.h' \
21783                           | sed -e "$gl_make_literal_regex_sed"`
21784  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21785      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21786      s|^/[^/]|//&|
21787      p
21788      q
21789    }'
21790
21791        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21792  sed -n "$gl_absolute_header_sed"`
21793
21794           gl_header=$gl_cv_absolute_string_h
21795           gl_cv_next_string_h='"'$gl_header'"'
21796
21797
21798fi
21799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21800$as_echo "$gl_cv_next_string_h" >&6; }
21801     fi
21802     NEXT_STRING_H=$gl_cv_next_string_h
21803
21804     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21805       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21806       gl_next_as_first_directive='<'string.h'>'
21807     else
21808       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21809       gl_next_as_first_directive=$gl_cv_next_string_h
21810     fi
21811     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831$as_echo "#define _USE_STD_STAT 1" >>confdefs.h
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843     if test $gl_cv_have_include_next = yes; then
21844       gl_cv_next_sys_types_h='<'sys/types.h'>'
21845     else
21846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21847$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21848if ${gl_cv_next_sys_types_h+:} false; then :
21849  $as_echo_n "(cached) " >&6
21850else
21851
21852
21853
21854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855/* end confdefs.h.  */
21856#include <sys/types.h>
21857_ACEOF
21858                case "$host_os" in
21859    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21860    *)    gl_absname_cpp="$ac_cpp" ;;
21861  esac
21862
21863  case "$host_os" in
21864    mingw*)
21865                                          gl_dirsep_regex='[/\\]'
21866      ;;
21867    *)
21868      gl_dirsep_regex='\/'
21869      ;;
21870  esac
21871      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21872  gl_header_literal_regex=`echo 'sys/types.h' \
21873                           | sed -e "$gl_make_literal_regex_sed"`
21874  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21875      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21876      s|^/[^/]|//&|
21877      p
21878      q
21879    }'
21880
21881        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21882  sed -n "$gl_absolute_header_sed"`
21883
21884           gl_header=$gl_cv_absolute_sys_types_h
21885           gl_cv_next_sys_types_h='"'$gl_header'"'
21886
21887
21888fi
21889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21890$as_echo "$gl_cv_next_sys_types_h" >&6; }
21891     fi
21892     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21893
21894     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21895       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21896       gl_next_as_first_directive='<'sys/types.h'>'
21897     else
21898       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21899       gl_next_as_first_directive=$gl_cv_next_sys_types_h
21900     fi
21901     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914    WINDOWS_STAT_INODES=0
21915
21916
21917
21918
21919  GNULIB_CTIME=0;
21920  GNULIB_MKTIME=0;
21921  GNULIB_LOCALTIME=0;
21922  GNULIB_NANOSLEEP=0;
21923  GNULIB_STRFTIME=0;
21924  GNULIB_STRPTIME=0;
21925  GNULIB_TIMEGM=0;
21926  GNULIB_TIME_R=0;
21927  GNULIB_TIME_RZ=0;
21928  GNULIB_TZSET=0;
21929    HAVE_DECL_LOCALTIME_R=1;
21930  HAVE_NANOSLEEP=1;
21931  HAVE_STRPTIME=1;
21932  HAVE_TIMEGM=1;
21933  HAVE_TZSET=1;
21934    HAVE_TIMEZONE_T=0;
21935        REPLACE_CTIME=GNULIB_PORTCHECK;
21936  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21937  REPLACE_MKTIME=GNULIB_PORTCHECK;
21938  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21939  REPLACE_STRFTIME=GNULIB_PORTCHECK;
21940  REPLACE_TIMEGM=GNULIB_PORTCHECK;
21941  REPLACE_TZSET=GNULIB_PORTCHECK;
21942
21943      : ${GNULIB_GETTIMEOFDAY=0};
21944        REPLACE_GMTIME=0;
21945  REPLACE_LOCALTIME=0;
21946
21947
21948
21949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21950$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21951if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
21952  $as_echo_n "(cached) " >&6
21953else
21954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955/* end confdefs.h.  */
21956#include <time.h>
21957
21958int
21959main ()
21960{
21961static struct timespec x; x.tv_sec = x.tv_nsec;
21962  ;
21963  return 0;
21964}
21965_ACEOF
21966if ac_fn_c_try_compile "$LINENO"; then :
21967  gl_cv_sys_struct_timespec_in_time_h=yes
21968else
21969  gl_cv_sys_struct_timespec_in_time_h=no
21970fi
21971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972fi
21973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21974$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21975
21976  TIME_H_DEFINES_STRUCT_TIMESPEC=0
21977  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21978  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21979  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
21980  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21981    TIME_H_DEFINES_STRUCT_TIMESPEC=1
21982  else
21983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21984$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21985if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
21986  $as_echo_n "(cached) " >&6
21987else
21988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989/* end confdefs.h.  */
21990#include <sys/time.h>
21991
21992int
21993main ()
21994{
21995static struct timespec x; x.tv_sec = x.tv_nsec;
21996  ;
21997  return 0;
21998}
21999_ACEOF
22000if ac_fn_c_try_compile "$LINENO"; then :
22001  gl_cv_sys_struct_timespec_in_sys_time_h=yes
22002else
22003  gl_cv_sys_struct_timespec_in_sys_time_h=no
22004fi
22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006fi
22007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22008$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22009    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22010      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22011    else
22012      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22013$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22014if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22015  $as_echo_n "(cached) " >&6
22016else
22017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018/* end confdefs.h.  */
22019#include <pthread.h>
22020
22021int
22022main ()
22023{
22024static struct timespec x; x.tv_sec = x.tv_nsec;
22025  ;
22026  return 0;
22027}
22028_ACEOF
22029if ac_fn_c_try_compile "$LINENO"; then :
22030  gl_cv_sys_struct_timespec_in_pthread_h=yes
22031else
22032  gl_cv_sys_struct_timespec_in_pthread_h=no
22033fi
22034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035fi
22036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22037$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22038      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22039        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22040      else
22041        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
22042$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
22043if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
22044  $as_echo_n "(cached) " >&6
22045else
22046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047/* end confdefs.h.  */
22048#include <unistd.h>
22049
22050int
22051main ()
22052{
22053static struct timespec x; x.tv_sec = x.tv_nsec;
22054  ;
22055  return 0;
22056}
22057_ACEOF
22058if ac_fn_c_try_compile "$LINENO"; then :
22059  gl_cv_sys_struct_timespec_in_unistd_h=yes
22060else
22061  gl_cv_sys_struct_timespec_in_unistd_h=no
22062fi
22063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064fi
22065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
22066$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
22067        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
22068          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
22069        fi
22070      fi
22071    fi
22072  fi
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089     if test $gl_cv_have_include_next = yes; then
22090       gl_cv_next_time_h='<'time.h'>'
22091     else
22092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22093$as_echo_n "checking absolute name of <time.h>... " >&6; }
22094if ${gl_cv_next_time_h+:} false; then :
22095  $as_echo_n "(cached) " >&6
22096else
22097
22098
22099
22100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101/* end confdefs.h.  */
22102#include <time.h>
22103_ACEOF
22104                case "$host_os" in
22105    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22106    *)    gl_absname_cpp="$ac_cpp" ;;
22107  esac
22108
22109  case "$host_os" in
22110    mingw*)
22111                                          gl_dirsep_regex='[/\\]'
22112      ;;
22113    *)
22114      gl_dirsep_regex='\/'
22115      ;;
22116  esac
22117      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22118  gl_header_literal_regex=`echo 'time.h' \
22119                           | sed -e "$gl_make_literal_regex_sed"`
22120  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22121      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22122      s|^/[^/]|//&|
22123      p
22124      q
22125    }'
22126
22127        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22128  sed -n "$gl_absolute_header_sed"`
22129
22130           gl_header=$gl_cv_absolute_time_h
22131           gl_cv_next_time_h='"'$gl_header'"'
22132
22133
22134fi
22135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22136$as_echo "$gl_cv_next_time_h" >&6; }
22137     fi
22138     NEXT_TIME_H=$gl_cv_next_time_h
22139
22140     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22141       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22142       gl_next_as_first_directive='<'time.h'>'
22143     else
22144       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22145       gl_next_as_first_directive=$gl_cv_next_time_h
22146     fi
22147     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
22161i\
221620
22163q
22164'
22165gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
22166i\
221670
22168q
22169'
22170gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
22171i\
221720
22173q
22174'
22175
22176
22177  if test "$HAVE_LIBUNISTRING" = yes; then
22178    LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
22179    LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
22180    LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
22181  fi
22182
22183ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
22184if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
22185  ac_have_decl=1
22186else
22187  ac_have_decl=0
22188fi
22189
22190cat >>confdefs.h <<_ACEOF
22191#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
22192_ACEOF
22193
22194ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
22195if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
22196  ac_have_decl=1
22197else
22198  ac_have_decl=0
22199fi
22200
22201cat >>confdefs.h <<_ACEOF
22202#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
22203_ACEOF
22204
22205ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
22206if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
22207  ac_have_decl=1
22208else
22209  ac_have_decl=0
22210fi
22211
22212cat >>confdefs.h <<_ACEOF
22213#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
22214_ACEOF
22215
22216ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
22217if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
22218  ac_have_decl=1
22219else
22220  ac_have_decl=0
22221fi
22222
22223cat >>confdefs.h <<_ACEOF
22224#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
22225_ACEOF
22226
22227ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
22228if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
22229  ac_have_decl=1
22230else
22231  ac_have_decl=0
22232fi
22233
22234cat >>confdefs.h <<_ACEOF
22235#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
22236_ACEOF
22237
22238ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
22239if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
22240  ac_have_decl=1
22241else
22242  ac_have_decl=0
22243fi
22244
22245cat >>confdefs.h <<_ACEOF
22246#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
22247_ACEOF
22248
22249ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
22250if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
22251  ac_have_decl=1
22252else
22253  ac_have_decl=0
22254fi
22255
22256cat >>confdefs.h <<_ACEOF
22257#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
22258_ACEOF
22259
22260ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
22261if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
22262  ac_have_decl=1
22263else
22264  ac_have_decl=0
22265fi
22266
22267cat >>confdefs.h <<_ACEOF
22268#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
22269_ACEOF
22270
22271ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
22272if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
22273  ac_have_decl=1
22274else
22275  ac_have_decl=0
22276fi
22277
22278cat >>confdefs.h <<_ACEOF
22279#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
22280_ACEOF
22281
22282ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
22283if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
22284  ac_have_decl=1
22285else
22286  ac_have_decl=0
22287fi
22288
22289cat >>confdefs.h <<_ACEOF
22290#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
22291_ACEOF
22292
22293ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
22294if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
22295  ac_have_decl=1
22296else
22297  ac_have_decl=0
22298fi
22299
22300cat >>confdefs.h <<_ACEOF
22301#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
22302_ACEOF
22303
22304ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
22305if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
22306  ac_have_decl=1
22307else
22308  ac_have_decl=0
22309fi
22310
22311cat >>confdefs.h <<_ACEOF
22312#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
22313_ACEOF
22314
22315ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
22316if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
22317  ac_have_decl=1
22318else
22319  ac_have_decl=0
22320fi
22321
22322cat >>confdefs.h <<_ACEOF
22323#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
22324_ACEOF
22325
22326
22327   if false; then
22328  GL_COND_LIBTOOL_TRUE=
22329  GL_COND_LIBTOOL_FALSE='#'
22330else
22331  GL_COND_LIBTOOL_TRUE='#'
22332  GL_COND_LIBTOOL_FALSE=
22333fi
22334
22335  gl_cond_libtool=false
22336  gl_libdeps=
22337  gl_ltlibdeps=
22338  gl_m4_base='srcm4'
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348  gl_source_base='srclib'
22349
22350
22351
22352
22353
22354  if test $ac_cv_func_alloca_works = no; then
22355
22356
22357  :
22358
22359  fi
22360
22361  # Define an additional variable used in the Makefile substitution.
22362
22363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22364/* end confdefs.h.  */
22365
22366#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
22367  Need own alloca
22368#endif
22369
22370_ACEOF
22371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22372  $EGREP "Need own alloca" >/dev/null 2>&1; then :
22373  ALLOCA_H=alloca.h
22374else
22375  ALLOCA_H=
22376fi
22377rm -f conftest*
22378
22379
22380   if test -n "$ALLOCA_H"; then
22381  GL_GENERATE_ALLOCA_H_TRUE=
22382  GL_GENERATE_ALLOCA_H_FALSE='#'
22383else
22384  GL_GENERATE_ALLOCA_H_TRUE='#'
22385  GL_GENERATE_ALLOCA_H_FALSE=
22386fi
22387
22388
22389
22390
22391
22392  if test $ac_cv_func_canonicalize_file_name = no; then
22393    HAVE_CANONICALIZE_FILE_NAME=0
22394    if test $ac_cv_func_realpath = no; then
22395      HAVE_REALPATH=0
22396    else
22397      case "$gl_cv_func_realpath_works" in
22398        *yes) ;;
22399        *)    REPLACE_REALPATH=1 ;;
22400      esac
22401    fi
22402  else
22403    case "$gl_cv_func_realpath_works" in
22404      *yes)
22405        ;;
22406      *)
22407        REPLACE_CANONICALIZE_FILE_NAME=1
22408        REPLACE_REALPATH=1
22409        ;;
22410    esac
22411  fi
22412
22413  if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
22414
22415
22416
22417
22418
22419
22420
22421
22422  gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
22423
22424  fi
22425
22426
22427cat >>confdefs.h <<_ACEOF
22428#define GNULIB_CANONICALIZE_LGPL 1
22429_ACEOF
22430
22431
22432
22433
22434
22435
22436
22437          GNULIB_CANONICALIZE_FILE_NAME=1
22438
22439
22440
22441
22442
22443$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
22444
22445
22446
22447
22448
22449
22450
22451
22452          GNULIB_REALPATH=1
22453
22454
22455
22456
22457
22458$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
22470$as_echo_n "checking whether // is distinct from /... " >&6; }
22471if ${gl_cv_double_slash_root+:} false; then :
22472  $as_echo_n "(cached) " >&6
22473else
22474   if test x"$cross_compiling" = xyes ; then
22475        # When cross-compiling, there is no way to tell whether // is special
22476        # short of a list of hosts.  However, the only known hosts to date
22477        # that have a distinct // are Apollo DomainOS (too old to port to),
22478        # Cygwin, and z/OS.  If anyone knows of another system for which // has
22479        # special semantics and is distinct from /, please report it to
22480        # <bug-gnulib@gnu.org>.
22481        case $host in
22482          *-cygwin | i370-ibm-openedition)
22483            gl_cv_double_slash_root=yes ;;
22484          *)
22485            # Be optimistic and assume that / and // are the same when we
22486            # don't know.
22487            gl_cv_double_slash_root='unknown, assuming no' ;;
22488        esac
22489      else
22490        set x `ls -di / // 2>/dev/null`
22491        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
22492          gl_cv_double_slash_root=no
22493        else
22494          gl_cv_double_slash_root=yes
22495        fi
22496      fi
22497fi
22498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
22499$as_echo "$gl_cv_double_slash_root" >&6; }
22500  if test "$gl_cv_double_slash_root" = yes; then
22501
22502$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
22503
22504  fi
22505
22506
22507
22508
22509
22510
22511
22512          GNULIB_ENVIRON=1
22513
22514
22515
22516
22517
22518$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
22519
22520
22521
22522
22523
22524      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22525$as_echo_n "checking for error_at_line... " >&6; }
22526if ${ac_cv_lib_error_at_line+:} false; then :
22527  $as_echo_n "(cached) " >&6
22528else
22529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530/* end confdefs.h.  */
22531#include <error.h>
22532int
22533main ()
22534{
22535error_at_line (0, 0, "", 0, "an error occurred");
22536  ;
22537  return 0;
22538}
22539_ACEOF
22540if ac_fn_c_try_link "$LINENO"; then :
22541  ac_cv_lib_error_at_line=yes
22542else
22543  ac_cv_lib_error_at_line=no
22544fi
22545rm -f core conftest.err conftest.$ac_objext \
22546    conftest$ac_exeext conftest.$ac_ext
22547fi
22548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22549$as_echo "$ac_cv_lib_error_at_line" >&6; }
22550
22551  if test $ac_cv_lib_error_at_line = no; then
22552
22553
22554
22555
22556
22557
22558
22559
22560  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
22561
22562
22563
22564  :
22565
22566  fi
22567
22568
22569  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
22570
22571
22572
22573  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587     if test $gl_cv_have_include_next = yes; then
22588       gl_cv_next_fcntl_h='<'fcntl.h'>'
22589     else
22590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22591$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22592if ${gl_cv_next_fcntl_h+:} false; then :
22593  $as_echo_n "(cached) " >&6
22594else
22595
22596
22597
22598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599/* end confdefs.h.  */
22600#include <fcntl.h>
22601_ACEOF
22602                case "$host_os" in
22603    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22604    *)    gl_absname_cpp="$ac_cpp" ;;
22605  esac
22606
22607  case "$host_os" in
22608    mingw*)
22609                                          gl_dirsep_regex='[/\\]'
22610      ;;
22611    *)
22612      gl_dirsep_regex='\/'
22613      ;;
22614  esac
22615      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22616  gl_header_literal_regex=`echo 'fcntl.h' \
22617                           | sed -e "$gl_make_literal_regex_sed"`
22618  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22619      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22620      s|^/[^/]|//&|
22621      p
22622      q
22623    }'
22624
22625        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22626  sed -n "$gl_absolute_header_sed"`
22627
22628           gl_header=$gl_cv_absolute_fcntl_h
22629           gl_cv_next_fcntl_h='"'$gl_header'"'
22630
22631
22632fi
22633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22634$as_echo "$gl_cv_next_fcntl_h" >&6; }
22635     fi
22636     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22637
22638     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22639       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22640       gl_next_as_first_directive='<'fcntl.h'>'
22641     else
22642       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22643       gl_next_as_first_directive=$gl_cv_next_fcntl_h
22644     fi
22645     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662  ac_found=0
22663  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
22664"
22665if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
22666  ac_have_decl=1
22667else
22668  ac_have_decl=0
22669fi
22670
22671cat >>confdefs.h <<_ACEOF
22672#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
22673_ACEOF
22674if test $ac_have_decl = 1; then :
22675  ac_found=1
22676fi
22677
22678  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22679"
22680if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22681  ac_have_decl=1
22682else
22683  ac_have_decl=0
22684fi
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22688_ACEOF
22689if test $ac_have_decl = 1; then :
22690  ac_found=1
22691fi
22692
22693  ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
22694"
22695if test "x$ac_cv_have_decl___argv" = xyes; then :
22696  ac_have_decl=1
22697else
22698  ac_have_decl=0
22699fi
22700
22701cat >>confdefs.h <<_ACEOF
22702#define HAVE_DECL___ARGV $ac_have_decl
22703_ACEOF
22704if test $ac_have_decl = 1; then :
22705  ac_found=1
22706fi
22707
22708
22709  # Incur the cost of this test only if none of the above worked.
22710  if test $ac_found = 0; then
22711    # On OpenBSD 5.1, using the global __progname variable appears to be
22712    # the only way to implement getprogname.
22713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
22714$as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
22715if ${gl_cv_var___progname+:} false; then :
22716  $as_echo_n "(cached) " >&6
22717else
22718
22719        gl_cv_var___progname=
22720        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721/* end confdefs.h.  */
22722extern char *__progname;
22723int
22724main ()
22725{
22726return *__progname;
22727
22728  ;
22729  return 0;
22730}
22731_ACEOF
22732if ac_fn_c_try_link "$LINENO"; then :
22733  gl_cv_var___progname=yes
22734
22735fi
22736rm -f core conftest.err conftest.$ac_objext \
22737    conftest$ac_exeext conftest.$ac_ext
22738
22739
22740fi
22741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
22742$as_echo "$gl_cv_var___progname" >&6; }
22743    if test "$gl_cv_var___progname" = yes; then
22744
22745$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
22746
22747    fi
22748  fi
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759  if test $ac_cv_func_lstat = yes; then
22760
22761    case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
22762      solaris* | *no)
22763        REPLACE_LSTAT=1
22764        ;;
22765    esac
22766  else
22767    HAVE_LSTAT=0
22768  fi
22769
22770  if test $REPLACE_LSTAT = 1; then
22771
22772
22773
22774
22775
22776
22777
22778
22779  gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22780
22781    :
22782  fi
22783
22784
22785
22786
22787
22788          GNULIB_LSTAT=1
22789
22790
22791
22792
22793
22794$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22795
22796
22797
22798
22799
22800
22801  if test $gl_cv_func_malloc_posix = yes; then
22802
22803$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22804
22805  else
22806    REPLACE_MALLOC=1
22807  fi
22808
22809  if test $REPLACE_MALLOC = 1; then
22810
22811
22812
22813
22814
22815
22816
22817
22818  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22819
22820  fi
22821
22822
22823
22824
22825
22826          GNULIB_MALLOC_POSIX=1
22827
22828
22829
22830
22831
22832$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22843$as_echo_n "checking for mbstate_t... " >&6; }
22844if ${ac_cv_type_mbstate_t+:} false; then :
22845  $as_echo_n "(cached) " >&6
22846else
22847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848/* end confdefs.h.  */
22849$ac_includes_default
22850/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22851   <wchar.h>.
22852   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22853   included before <wchar.h>.  */
22854#include <stddef.h>
22855#include <stdio.h>
22856#include <time.h>
22857#include <wchar.h>
22858int
22859main ()
22860{
22861mbstate_t x; return sizeof x;
22862  ;
22863  return 0;
22864}
22865_ACEOF
22866if ac_fn_c_try_compile "$LINENO"; then :
22867  ac_cv_type_mbstate_t=yes
22868else
22869  ac_cv_type_mbstate_t=no
22870fi
22871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872fi
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22874$as_echo "$ac_cv_type_mbstate_t" >&6; }
22875   if test $ac_cv_type_mbstate_t = yes; then
22876
22877$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22878
22879   else
22880
22881$as_echo "#define mbstate_t int" >>confdefs.h
22882
22883   fi
22884
22885
22886  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22887
22888
22889
22890
22891
22892
22893
22894
22895  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22896
22897  fi
22898
22899  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22900
22901
22902
22903
22904
22905
22906
22907
22908  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22909
22910  fi
22911
22912
22913cat >>confdefs.h <<_ACEOF
22914#define GNULIB_MSVC_NOTHROW 1
22915_ACEOF
22916
22917
22918
22919
22920
22921
22922  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
22923"
22924if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
22925  ac_have_decl=1
22926else
22927  ac_have_decl=0
22928fi
22929
22930cat >>confdefs.h <<_ACEOF
22931#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
22932_ACEOF
22933
22934  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22935"
22936if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22937  ac_have_decl=1
22938else
22939  ac_have_decl=0
22940fi
22941
22942cat >>confdefs.h <<_ACEOF
22943#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22944_ACEOF
22945
22946
22947
22948
22949  for ac_func in raise
22950do :
22951  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22952if test "x$ac_cv_func_raise" = xyes; then :
22953  cat >>confdefs.h <<_ACEOF
22954#define HAVE_RAISE 1
22955_ACEOF
22956
22957fi
22958done
22959
22960  if test $ac_cv_func_raise = no; then
22961    HAVE_RAISE=0
22962  else
22963
22964
22965      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22966        REPLACE_RAISE=1
22967      fi
22968
22969
22970
22971
22972
22973  if test $gl_cv_type_sigset_t = yes; then
22974    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22975if test "x$ac_cv_func_sigprocmask" = xyes; then :
22976  gl_cv_func_sigprocmask=1
22977fi
22978
22979  fi
22980  if test -z "$gl_cv_func_sigprocmask"; then
22981    HAVE_POSIX_SIGNALBLOCKING=0
22982  fi
22983
22984      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22985
22986
22987
22988
22989          if test $gl_cv_header_signal_h_SIGPIPE != yes; then
22990            REPLACE_RAISE=1
22991          fi
22992
22993      fi
22994
22995  fi
22996
22997  if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
22998
22999
23000
23001
23002
23003
23004
23005
23006  gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
23007
23008    :
23009  fi
23010
23011
23012
23013
23014
23015          GNULIB_RAISE=1
23016
23017
23018
23019
23020
23021$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
23022
23023
23024
23025
23026
23027
23028
23029    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23030      REPLACE_READ=1
23031    fi
23032
23033
23034
23035  if test $REPLACE_READ = 1; then
23036
23037
23038
23039
23040
23041
23042
23043
23044  gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
23045
23046    :
23047  fi
23048
23049
23050
23051
23052
23053          GNULIB_READ=1
23054
23055
23056
23057
23058
23059$as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
23060
23061
23062
23063
23064
23065
23066  if test $ac_cv_func_readlink = no; then
23067    HAVE_READLINK=0
23068  else
23069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23070$as_echo_n "checking whether readlink signature is correct... " >&6; }
23071if ${gl_cv_decl_readlink_works+:} false; then :
23072  $as_echo_n "(cached) " >&6
23073else
23074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23075/* end confdefs.h.  */
23076#include <unistd.h>
23077      /* Cause compilation failure if original declaration has wrong type.  */
23078      ssize_t readlink (const char *, char *, size_t);
23079int
23080main ()
23081{
23082
23083  ;
23084  return 0;
23085}
23086_ACEOF
23087if ac_fn_c_try_compile "$LINENO"; then :
23088  gl_cv_decl_readlink_works=yes
23089else
23090  gl_cv_decl_readlink_works=no
23091fi
23092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093fi
23094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23095$as_echo "$gl_cv_decl_readlink_works" >&6; }
23096            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23097$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23098if ${gl_cv_func_readlink_works+:} false; then :
23099  $as_echo_n "(cached) " >&6
23100else
23101  # We have readlink, so assume ln -s works.
23102       ln -s conftest.no-such conftest.link
23103       ln -s conftest.link conftest.lnk2
23104       if test "$cross_compiling" = yes; then :
23105  case "$host_os" in
23106                             # Guess yes on Linux systems.
23107            linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;;
23108                             # Guess yes on glibc systems.
23109            *-gnu* | gnu*)   gl_cv_func_readlink_works="guessing yes" ;;
23110                             # If we don't know, assume the worst.
23111            *)               gl_cv_func_readlink_works="guessing no" ;;
23112          esac
23113
23114else
23115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116/* end confdefs.h.  */
23117#include <unistd.h>
23118
23119int
23120main ()
23121{
23122char buf[20];
23123      return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23124  ;
23125  return 0;
23126}
23127_ACEOF
23128if ac_fn_c_try_run "$LINENO"; then :
23129  gl_cv_func_readlink_works=yes
23130else
23131  gl_cv_func_readlink_works=no
23132fi
23133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23134  conftest.$ac_objext conftest.beam conftest.$ac_ext
23135fi
23136
23137      rm -f conftest.link conftest.lnk2
23138fi
23139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23140$as_echo "$gl_cv_func_readlink_works" >&6; }
23141    case "$gl_cv_func_readlink_works" in
23142      *yes)
23143        if test "$gl_cv_decl_readlink_works" != yes; then
23144          REPLACE_READLINK=1
23145        fi
23146        ;;
23147      *)
23148
23149$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23150
23151        REPLACE_READLINK=1
23152        ;;
23153    esac
23154  fi
23155
23156  if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23157
23158
23159
23160
23161
23162
23163
23164
23165  gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23166
23167
23168  :
23169
23170  fi
23171
23172
23173
23174
23175
23176          GNULIB_READLINK=1
23177
23178
23179
23180
23181
23182$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
23183
23184
23185
23186
23187
23188
23189
23190
23191  : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
23192  RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
23193  RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
23194
23195  if test $RELOCATABLE = yes; then
23196
23197
23198
23199
23200
23201
23202
23203
23204  gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214  gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
23215
23216  fi
23217
23218
23219
23220  :
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240  if test $ac_cv_have_decl_setenv = no; then
23241    HAVE_DECL_SETENV=0
23242  fi
23243
23244
23245
23246
23247
23248  for ac_header in search.h
23249do :
23250  ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
23251if test "x$ac_cv_header_search_h" = xyes; then :
23252  cat >>confdefs.h <<_ACEOF
23253#define HAVE_SEARCH_H 1
23254_ACEOF
23255
23256fi
23257
23258done
23259
23260  for ac_func in tsearch
23261do :
23262  ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
23263if test "x$ac_cv_func_tsearch" = xyes; then :
23264  cat >>confdefs.h <<_ACEOF
23265#define HAVE_TSEARCH 1
23266_ACEOF
23267
23268fi
23269done
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287     if test $gl_cv_have_include_next = yes; then
23288       gl_cv_next_signal_h='<'signal.h'>'
23289     else
23290       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23291$as_echo_n "checking absolute name of <signal.h>... " >&6; }
23292if ${gl_cv_next_signal_h+:} false; then :
23293  $as_echo_n "(cached) " >&6
23294else
23295
23296
23297
23298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299/* end confdefs.h.  */
23300#include <signal.h>
23301_ACEOF
23302                case "$host_os" in
23303    aix*) gl_absname_cpp="$ac_cpp -C" ;;
23304    *)    gl_absname_cpp="$ac_cpp" ;;
23305  esac
23306
23307  case "$host_os" in
23308    mingw*)
23309                                          gl_dirsep_regex='[/\\]'
23310      ;;
23311    *)
23312      gl_dirsep_regex='\/'
23313      ;;
23314  esac
23315      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23316  gl_header_literal_regex=`echo 'signal.h' \
23317                           | sed -e "$gl_make_literal_regex_sed"`
23318  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23319      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23320      s|^/[^/]|//&|
23321      p
23322      q
23323    }'
23324
23325        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23326  sed -n "$gl_absolute_header_sed"`
23327
23328           gl_header=$gl_cv_absolute_signal_h
23329           gl_cv_next_signal_h='"'$gl_header'"'
23330
23331
23332fi
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23334$as_echo "$gl_cv_next_signal_h" >&6; }
23335     fi
23336     NEXT_SIGNAL_H=$gl_cv_next_signal_h
23337
23338     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23339       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23340       gl_next_as_first_directive='<'signal.h'>'
23341     else
23342       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23343       gl_next_as_first_directive=$gl_cv_next_signal_h
23344     fi
23345     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23346
23347
23348
23349
23350
23351# AIX declares sig_atomic_t to already include volatile, and C89 compilers
23352# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
23353  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23354#include <signal.h>
23355
23356"
23357if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
23358
23359else
23360  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23361fi
23362
23363
23364
23365
23366
23367
23368
23369  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23370#include <signal.h>
23371
23372"
23373if test "x$ac_cv_type_sighandler_t" = xyes; then :
23374
23375else
23376  HAVE_SIGHANDLER_T=0
23377fi
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389cat >>confdefs.h <<_ACEOF
23390#define GNULIB_SIGPIPE 1
23391_ACEOF
23392
23393
23394
23395  GNULIB_SIGNAL_H_SIGPIPE=1
23396
23397
23398  GNULIB_STDIO_H_SIGPIPE=1
23399
23400  GNULIB_UNISTD_H_SIGPIPE=1
23401
23402
23403
23404  if test $gl_cv_type_sigset_t = yes; then
23405    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
23406if test "x$ac_cv_func_sigprocmask" = xyes; then :
23407  gl_cv_func_sigprocmask=1
23408fi
23409
23410  fi
23411  if test -z "$gl_cv_func_sigprocmask"; then
23412    HAVE_POSIX_SIGNALBLOCKING=0
23413  fi
23414
23415  if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
23416
23417
23418
23419
23420
23421
23422
23423
23424  gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
23425
23426    :
23427  fi
23428
23429
23430
23431
23432
23433          GNULIB_SIGPROCMASK=1
23434
23435
23436
23437
23438
23439$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
23440
23441
23442
23443
23444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23445$as_echo_n "checking for ssize_t... " >&6; }
23446if ${gt_cv_ssize_t+:} false; then :
23447  $as_echo_n "(cached) " >&6
23448else
23449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23450/* end confdefs.h.  */
23451#include <sys/types.h>
23452int
23453main ()
23454{
23455int x = sizeof (ssize_t *) + sizeof (ssize_t);
23456            return !x;
23457  ;
23458  return 0;
23459}
23460_ACEOF
23461if ac_fn_c_try_compile "$LINENO"; then :
23462  gt_cv_ssize_t=yes
23463else
23464  gt_cv_ssize_t=no
23465fi
23466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467fi
23468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23469$as_echo "$gt_cv_ssize_t" >&6; }
23470  if test $gt_cv_ssize_t = no; then
23471
23472$as_echo "#define ssize_t int" >>confdefs.h
23473
23474  fi
23475
23476
23477
23478
23479
23480  case "$host_os" in
23481    mingw*)
23482                  REPLACE_STAT=1
23483      ;;
23484    *)
23485                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23486$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23487if ${gl_cv_func_stat_file_slash+:} false; then :
23488  $as_echo_n "(cached) " >&6
23489else
23490  touch conftest.tmp
23491         # Assume that if we have lstat, we can also check symlinks.
23492         if test $ac_cv_func_lstat = yes; then
23493           ln -s conftest.tmp conftest.lnk
23494         fi
23495         if test "$cross_compiling" = yes; then :
23496  case "$host_os" in
23497                               # Guess yes on Linux systems.
23498              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
23499                               # Guess yes on glibc systems.
23500              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
23501                               # If we don't know, assume the worst.
23502              *)               gl_cv_func_stat_file_slash="guessing no" ;;
23503            esac
23504
23505else
23506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507/* end confdefs.h.  */
23508#include <sys/stat.h>
23509
23510int
23511main ()
23512{
23513int result = 0;
23514               struct stat st;
23515               if (!stat ("conftest.tmp/", &st))
23516                 result |= 1;
23517#if HAVE_LSTAT
23518               if (!stat ("conftest.lnk/", &st))
23519                 result |= 2;
23520#endif
23521               return result;
23522
23523  ;
23524  return 0;
23525}
23526_ACEOF
23527if ac_fn_c_try_run "$LINENO"; then :
23528  gl_cv_func_stat_file_slash=yes
23529else
23530  gl_cv_func_stat_file_slash=no
23531fi
23532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23533  conftest.$ac_objext conftest.beam conftest.$ac_ext
23534fi
23535
23536         rm -f conftest.tmp conftest.lnk
23537fi
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23539$as_echo "$gl_cv_func_stat_file_slash" >&6; }
23540      case $gl_cv_func_stat_file_slash in
23541        *no)
23542          REPLACE_STAT=1
23543
23544$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23545;;
23546      esac
23547      case $host_os in
23548                solaris*)
23549          REPLACE_FSTAT=1 ;;
23550      esac
23551      ;;
23552  esac
23553
23554  if test $REPLACE_STAT = 1; then
23555
23556
23557
23558
23559
23560
23561
23562
23563  gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23564
23565    case "$host_os" in
23566      mingw*)
23567
23568
23569
23570
23571
23572
23573
23574
23575  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
23576
23577        ;;
23578    esac
23579
23580
23581  :
23582
23583  fi
23584
23585
23586
23587
23588
23589          GNULIB_STAT=1
23590
23591
23592
23593
23594
23595$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23596
23597
23598
23599
23600
23601
23602
23603  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>
23604     #include <sys/stat.h>
23605"
23606if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
23607
23608cat >>confdefs.h <<_ACEOF
23609#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23610_ACEOF
23611
23612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23613$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23614if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
23615  $as_echo_n "(cached) " >&6
23616else
23617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618/* end confdefs.h.  */
23619
23620            #include <sys/types.h>
23621            #include <sys/stat.h>
23622            #if HAVE_SYS_TIME_H
23623            # include <sys/time.h>
23624            #endif
23625            #include <time.h>
23626            struct timespec ts;
23627            struct stat st;
23628
23629int
23630main ()
23631{
23632
23633            st.st_atim = ts;
23634
23635  ;
23636  return 0;
23637}
23638_ACEOF
23639if ac_fn_c_try_compile "$LINENO"; then :
23640  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23641else
23642  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23643fi
23644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645fi
23646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23647$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23648     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23649
23650$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23651
23652     fi
23653else
23654  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>
23655        #include <sys/stat.h>
23656"
23657if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
23658
23659cat >>confdefs.h <<_ACEOF
23660#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23661_ACEOF
23662
23663
23664else
23665  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23666           #include <sys/stat.h>
23667"
23668if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
23669
23670cat >>confdefs.h <<_ACEOF
23671#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23672_ACEOF
23673
23674
23675else
23676  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>
23677              #include <sys/stat.h>
23678"
23679if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
23680
23681cat >>confdefs.h <<_ACEOF
23682#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23683_ACEOF
23684
23685
23686fi
23687
23688fi
23689
23690fi
23691
23692fi
23693
23694
23695
23696
23697
23698  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>
23699     #include <sys/stat.h>
23700"
23701if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
23702
23703cat >>confdefs.h <<_ACEOF
23704#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23705_ACEOF
23706
23707
23708else
23709  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23710        #include <sys/stat.h>
23711"
23712if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
23713
23714cat >>confdefs.h <<_ACEOF
23715#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23716_ACEOF
23717
23718
23719else
23720  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>
23721          #include <sys/stat.h>
23722"
23723if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
23724
23725cat >>confdefs.h <<_ACEOF
23726#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23727_ACEOF
23728
23729
23730fi
23731
23732fi
23733
23734fi
23735
23736
23737
23738
23739
23740  # Define two additional variables used in the Makefile substitution.
23741
23742  if test "$ac_cv_header_stdbool_h" = yes; then
23743    STDBOOL_H=''
23744  else
23745    STDBOOL_H='stdbool.h'
23746  fi
23747
23748   if test -n "$STDBOOL_H"; then
23749  GL_GENERATE_STDBOOL_H_TRUE=
23750  GL_GENERATE_STDBOOL_H_FALSE='#'
23751else
23752  GL_GENERATE_STDBOOL_H_TRUE='#'
23753  GL_GENERATE_STDBOOL_H_FALSE=
23754fi
23755
23756
23757  if test "$ac_cv_type__Bool" = yes; then
23758    HAVE__BOOL=1
23759  else
23760    HAVE__BOOL=0
23761  fi
23762
23763
23764
23765
23766
23767  STDDEF_H=
23768
23769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
23770$as_echo_n "checking for good max_align_t... " >&6; }
23771if ${gl_cv_type_max_align_t+:} false; then :
23772  $as_echo_n "(cached) " >&6
23773else
23774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775/* end confdefs.h.  */
23776#include <stddef.h>
23777            unsigned int s = sizeof (max_align_t);
23778            #if defined __GNUC__ || defined __IBM__ALIGNOF__
23779            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
23780            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
23781            #endif
23782
23783int
23784main ()
23785{
23786
23787  ;
23788  return 0;
23789}
23790_ACEOF
23791if ac_fn_c_try_compile "$LINENO"; then :
23792  gl_cv_type_max_align_t=yes
23793else
23794  gl_cv_type_max_align_t=no
23795fi
23796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797
23798fi
23799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
23800$as_echo "$gl_cv_type_max_align_t" >&6; }
23801  if test $gl_cv_type_max_align_t = no; then
23802    HAVE_MAX_ALIGN_T=0
23803    STDDEF_H=stddef.h
23804  fi
23805
23806  if test $gt_cv_c_wchar_t = no; then
23807    HAVE_WCHAR_T=0
23808    STDDEF_H=stddef.h
23809  fi
23810
23811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23812$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23813if ${gl_cv_decl_null_works+:} false; then :
23814  $as_echo_n "(cached) " >&6
23815else
23816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817/* end confdefs.h.  */
23818#include <stddef.h>
23819      int test[2 * (sizeof NULL == sizeof (void *)) -1];
23820
23821int
23822main ()
23823{
23824
23825  ;
23826  return 0;
23827}
23828_ACEOF
23829if ac_fn_c_try_compile "$LINENO"; then :
23830  gl_cv_decl_null_works=yes
23831else
23832  gl_cv_decl_null_works=no
23833fi
23834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835fi
23836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23837$as_echo "$gl_cv_decl_null_works" >&6; }
23838  if test $gl_cv_decl_null_works = no; then
23839    REPLACE_NULL=1
23840    STDDEF_H=stddef.h
23841  fi
23842
23843
23844   if test -n "$STDDEF_H"; then
23845  GL_GENERATE_STDDEF_H_TRUE=
23846  GL_GENERATE_STDDEF_H_FALSE='#'
23847else
23848  GL_GENERATE_STDDEF_H_TRUE='#'
23849  GL_GENERATE_STDDEF_H_FALSE=
23850fi
23851
23852  if test -n "$STDDEF_H"; then
23853
23854
23855
23856
23857
23858
23859
23860
23861     if test $gl_cv_have_include_next = yes; then
23862       gl_cv_next_stddef_h='<'stddef.h'>'
23863     else
23864       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23865$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23866if ${gl_cv_next_stddef_h+:} false; then :
23867  $as_echo_n "(cached) " >&6
23868else
23869
23870
23871
23872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23873/* end confdefs.h.  */
23874#include <stddef.h>
23875_ACEOF
23876                case "$host_os" in
23877    aix*) gl_absname_cpp="$ac_cpp -C" ;;
23878    *)    gl_absname_cpp="$ac_cpp" ;;
23879  esac
23880
23881  case "$host_os" in
23882    mingw*)
23883                                          gl_dirsep_regex='[/\\]'
23884      ;;
23885    *)
23886      gl_dirsep_regex='\/'
23887      ;;
23888  esac
23889      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23890  gl_header_literal_regex=`echo 'stddef.h' \
23891                           | sed -e "$gl_make_literal_regex_sed"`
23892  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23893      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23894      s|^/[^/]|//&|
23895      p
23896      q
23897    }'
23898
23899        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23900  sed -n "$gl_absolute_header_sed"`
23901
23902           gl_header=$gl_cv_absolute_stddef_h
23903           gl_cv_next_stddef_h='"'$gl_header'"'
23904
23905
23906fi
23907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23908$as_echo "$gl_cv_next_stddef_h" >&6; }
23909     fi
23910     NEXT_STDDEF_H=$gl_cv_next_stddef_h
23911
23912     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23913       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23914       gl_next_as_first_directive='<'stddef.h'>'
23915     else
23916       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23917       gl_next_as_first_directive=$gl_cv_next_stddef_h
23918     fi
23919     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23920
23921
23922
23923
23924  fi
23925
23926
23927
23928
23929  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940     if test $gl_cv_have_include_next = yes; then
23941       gl_cv_next_stdio_h='<'stdio.h'>'
23942     else
23943       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23944$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23945if ${gl_cv_next_stdio_h+:} false; then :
23946  $as_echo_n "(cached) " >&6
23947else
23948
23949
23950
23951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23952/* end confdefs.h.  */
23953#include <stdio.h>
23954_ACEOF
23955                case "$host_os" in
23956    aix*) gl_absname_cpp="$ac_cpp -C" ;;
23957    *)    gl_absname_cpp="$ac_cpp" ;;
23958  esac
23959
23960  case "$host_os" in
23961    mingw*)
23962                                          gl_dirsep_regex='[/\\]'
23963      ;;
23964    *)
23965      gl_dirsep_regex='\/'
23966      ;;
23967  esac
23968      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23969  gl_header_literal_regex=`echo 'stdio.h' \
23970                           | sed -e "$gl_make_literal_regex_sed"`
23971  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23972      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23973      s|^/[^/]|//&|
23974      p
23975      q
23976    }'
23977
23978        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23979  sed -n "$gl_absolute_header_sed"`
23980
23981           gl_header=$gl_cv_absolute_stdio_h
23982           gl_cv_next_stdio_h='"'$gl_header'"'
23983
23984
23985fi
23986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23987$as_echo "$gl_cv_next_stdio_h" >&6; }
23988     fi
23989     NEXT_STDIO_H=$gl_cv_next_stdio_h
23990
23991     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23992       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23993       gl_next_as_first_directive='<'stdio.h'>'
23994     else
23995       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23996       gl_next_as_first_directive=$gl_cv_next_stdio_h
23997     fi
23998     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23999
24000
24001
24002
24003
24004        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24005$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24006if ${gl_cv_func_printf_attribute_flavor+:} false; then :
24007  $as_echo_n "(cached) " >&6
24008else
24009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010/* end confdefs.h.  */
24011
24012       #define __STDC_FORMAT_MACROS 1
24013       #include <stdio.h>
24014       #include <inttypes.h>
24015       /* For non-mingw systems, compilation will trivially succeed.
24016          For mingw, compilation will succeed for older mingw (system
24017          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24018       #if (defined _WIN32 && ! defined __CYGWIN__) && \
24019         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24020       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24021       #endif
24022
24023int
24024main ()
24025{
24026
24027  ;
24028  return 0;
24029}
24030_ACEOF
24031if ac_fn_c_try_compile "$LINENO"; then :
24032  gl_cv_func_printf_attribute_flavor=system
24033else
24034  gl_cv_func_printf_attribute_flavor=gnu
24035fi
24036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037fi
24038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24039$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24040  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
24041
24042$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24043
24044  fi
24045
24046      GNULIB_FSCANF=1
24047
24048
24049cat >>confdefs.h <<_ACEOF
24050#define GNULIB_FSCANF 1
24051_ACEOF
24052
24053
24054  GNULIB_SCANF=1
24055
24056
24057cat >>confdefs.h <<_ACEOF
24058#define GNULIB_SCANF 1
24059_ACEOF
24060
24061
24062  GNULIB_FGETC=1
24063  GNULIB_GETC=1
24064  GNULIB_GETCHAR=1
24065  GNULIB_FGETS=1
24066  GNULIB_FREAD=1
24067
24068
24069      GNULIB_FPRINTF=1
24070  GNULIB_PRINTF=1
24071  GNULIB_VFPRINTF=1
24072  GNULIB_VPRINTF=1
24073  GNULIB_FPUTC=1
24074  GNULIB_PUTC=1
24075  GNULIB_PUTCHAR=1
24076  GNULIB_FPUTS=1
24077  GNULIB_PUTS=1
24078  GNULIB_FWRITE=1
24079
24080
24081
24082
24083    if test $gl_cv_header_signal_h_SIGPIPE != yes; then
24084      REPLACE_STDIO_WRITE_FUNCS=1
24085
24086
24087
24088
24089
24090
24091
24092
24093  gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
24094
24095    fi
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113     if test $gl_cv_have_include_next = yes; then
24114       gl_cv_next_stdlib_h='<'stdlib.h'>'
24115     else
24116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24117$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24118if ${gl_cv_next_stdlib_h+:} false; then :
24119  $as_echo_n "(cached) " >&6
24120else
24121
24122
24123
24124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24125/* end confdefs.h.  */
24126#include <stdlib.h>
24127_ACEOF
24128                case "$host_os" in
24129    aix*) gl_absname_cpp="$ac_cpp -C" ;;
24130    *)    gl_absname_cpp="$ac_cpp" ;;
24131  esac
24132
24133  case "$host_os" in
24134    mingw*)
24135                                          gl_dirsep_regex='[/\\]'
24136      ;;
24137    *)
24138      gl_dirsep_regex='\/'
24139      ;;
24140  esac
24141      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24142  gl_header_literal_regex=`echo 'stdlib.h' \
24143                           | sed -e "$gl_make_literal_regex_sed"`
24144  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24145      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24146      s|^/[^/]|//&|
24147      p
24148      q
24149    }'
24150
24151        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24152  sed -n "$gl_absolute_header_sed"`
24153
24154           gl_header=$gl_cv_absolute_stdlib_h
24155           gl_cv_next_stdlib_h='"'$gl_header'"'
24156
24157
24158fi
24159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24160$as_echo "$gl_cv_next_stdlib_h" >&6; }
24161     fi
24162     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24163
24164     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24165       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24166       gl_next_as_first_directive='<'stdlib.h'>'
24167     else
24168       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24169       gl_next_as_first_directive=$gl_cv_next_stdlib_h
24170     fi
24171     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24188$as_echo_n "checking for working strerror function... " >&6; }
24189if ${gl_cv_func_working_strerror+:} false; then :
24190  $as_echo_n "(cached) " >&6
24191else
24192  if test "$cross_compiling" = yes; then :
24193  case "$host_os" in
24194                          # Guess yes on glibc systems.
24195           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24196                          # Guess yes on musl systems.
24197           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
24198                          # If we don't know, assume the worst.
24199           *)             gl_cv_func_working_strerror="guessing no" ;;
24200         esac
24201
24202else
24203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24204/* end confdefs.h.  */
24205#include <string.h>
24206
24207int
24208main ()
24209{
24210if (!*strerror (-2)) return 1;
24211  ;
24212  return 0;
24213}
24214_ACEOF
24215if ac_fn_c_try_run "$LINENO"; then :
24216  gl_cv_func_working_strerror=yes
24217else
24218  gl_cv_func_working_strerror=no
24219fi
24220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24221  conftest.$ac_objext conftest.beam conftest.$ac_ext
24222fi
24223
24224
24225fi
24226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24227$as_echo "$gl_cv_func_working_strerror" >&6; }
24228    case "$gl_cv_func_working_strerror" in
24229      *yes) ;;
24230      *)
24231                        REPLACE_STRERROR=1
24232        ;;
24233    esac
24234
24235  else
24236            REPLACE_STRERROR=1
24237  fi
24238
24239  if test $REPLACE_STRERROR = 1; then
24240
24241
24242
24243
24244
24245
24246
24247
24248  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24249
24250  fi
24251
24252
24253cat >>confdefs.h <<_ACEOF
24254#define GNULIB_STRERROR 1
24255_ACEOF
24256
24257
24258
24259
24260
24261
24262
24263          GNULIB_STRERROR=1
24264
24265
24266
24267
24268
24269$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24270
24271
24272
24273
24274
24275  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24276
24277
24278
24279
24280
24281
24282
24283
24284  gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24285
24286
24287
24288
24289
24290  if test $ac_cv_header_sys_socket_h != yes; then
24291                    for ac_header in winsock2.h
24292do :
24293  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24294if test "x$ac_cv_header_winsock2_h" = xyes; then :
24295  cat >>confdefs.h <<_ACEOF
24296#define HAVE_WINSOCK2_H 1
24297_ACEOF
24298
24299fi
24300
24301done
24302
24303  fi
24304  if test "$ac_cv_header_winsock2_h" = yes; then
24305    HAVE_WINSOCK2_H=1
24306    UNISTD_H_HAVE_WINSOCK2_H=1
24307    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24308  else
24309    HAVE_WINSOCK2_H=0
24310  fi
24311
24312
24313  fi
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331     if test $gl_cv_have_include_next = yes; then
24332       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24333     else
24334       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24335$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24336if ${gl_cv_next_sys_stat_h+:} false; then :
24337  $as_echo_n "(cached) " >&6
24338else
24339
24340             if test $ac_cv_header_sys_stat_h = yes; then
24341
24342
24343
24344
24345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346/* end confdefs.h.  */
24347#include <sys/stat.h>
24348_ACEOF
24349                case "$host_os" in
24350    aix*) gl_absname_cpp="$ac_cpp -C" ;;
24351    *)    gl_absname_cpp="$ac_cpp" ;;
24352  esac
24353
24354  case "$host_os" in
24355    mingw*)
24356                                          gl_dirsep_regex='[/\\]'
24357      ;;
24358    *)
24359      gl_dirsep_regex='\/'
24360      ;;
24361  esac
24362      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24363  gl_header_literal_regex=`echo 'sys/stat.h' \
24364                           | sed -e "$gl_make_literal_regex_sed"`
24365  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24366      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24367      s|^/[^/]|//&|
24368      p
24369      q
24370    }'
24371
24372        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24373  sed -n "$gl_absolute_header_sed"`
24374
24375           gl_header=$gl_cv_absolute_sys_stat_h
24376           gl_cv_next_sys_stat_h='"'$gl_header'"'
24377          else
24378               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24379             fi
24380
24381
24382fi
24383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24384$as_echo "$gl_cv_next_sys_stat_h" >&6; }
24385     fi
24386     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24387
24388     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24389       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24390       gl_next_as_first_directive='<'sys/stat.h'>'
24391     else
24392       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24393       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24394     fi
24395     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24396
24397
24398
24399
24400
24401
24402
24403
24404    WINDOWS_STAT_TIMESPEC=0
24405
24406
24407
24408
24409
24410
24411
24412
24413      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24414     #include <sys/stat.h>
24415"
24416if test "x$ac_cv_type_nlink_t" = xyes; then :
24417
24418else
24419
24420$as_echo "#define nlink_t int" >>confdefs.h
24421
24422fi
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447     if test $gl_cv_have_include_next = yes; then
24448       gl_cv_next_unistd_h='<'unistd.h'>'
24449     else
24450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24451$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24452if ${gl_cv_next_unistd_h+:} false; then :
24453  $as_echo_n "(cached) " >&6
24454else
24455
24456             if test $ac_cv_header_unistd_h = yes; then
24457
24458
24459
24460
24461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24462/* end confdefs.h.  */
24463#include <unistd.h>
24464_ACEOF
24465                case "$host_os" in
24466    aix*) gl_absname_cpp="$ac_cpp -C" ;;
24467    *)    gl_absname_cpp="$ac_cpp" ;;
24468  esac
24469
24470  case "$host_os" in
24471    mingw*)
24472                                          gl_dirsep_regex='[/\\]'
24473      ;;
24474    *)
24475      gl_dirsep_regex='\/'
24476      ;;
24477  esac
24478      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24479  gl_header_literal_regex=`echo 'unistd.h' \
24480                           | sed -e "$gl_make_literal_regex_sed"`
24481  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24482      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24483      s|^/[^/]|//&|
24484      p
24485      q
24486    }'
24487
24488        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24489  sed -n "$gl_absolute_header_sed"`
24490
24491           gl_header=$gl_cv_absolute_unistd_h
24492           gl_cv_next_unistd_h='"'$gl_header'"'
24493          else
24494               gl_cv_next_unistd_h='<'unistd.h'>'
24495             fi
24496
24497
24498fi
24499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24500$as_echo "$gl_cv_next_unistd_h" >&6; }
24501     fi
24502     NEXT_UNISTD_H=$gl_cv_next_unistd_h
24503
24504     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24505       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24506       gl_next_as_first_directive='<'unistd.h'>'
24507     else
24508       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24509       gl_next_as_first_directive=$gl_cv_next_unistd_h
24510     fi
24511     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24512
24513
24514
24515
24516  if test $ac_cv_header_unistd_h = yes; then
24517    HAVE_UNISTD_H=1
24518  else
24519    HAVE_UNISTD_H=0
24520  fi
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533      if  { test "$HAVE_LIBUNISTRING" != yes \
24534    || {
24535
24536
24537
24538            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
24539            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
24540                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
24541                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
24542                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
24543                         }
24544                    }
24545               }
24546
24547
24548
24549
24550       }
24551  }; then
24552    LIBUNISTRING_UNITYPES_H='unitypes.h'
24553  else
24554    LIBUNISTRING_UNITYPES_H=
24555  fi
24556
24557
24558
24559
24560      if  { test "$HAVE_LIBUNISTRING" != yes \
24561    || {
24562
24563
24564
24565            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
24566            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
24567                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
24568                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
24569                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
24570                         }
24571                    }
24572               }
24573
24574
24575
24576
24577       }
24578  }; then
24579    LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
24580  else
24581    LIBUNISTRING_UNIWIDTH_H=
24582  fi
24583
24584
24585
24586
24587       if  { test "$HAVE_LIBUNISTRING" != yes \
24588    || {
24589
24590
24591
24592            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
24593            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
24594                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
24595                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
24596                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
24597                         }
24598                    }
24599               }
24600
24601
24602
24603
24604       }
24605  }; then
24606  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
24607  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
24608else
24609  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
24610  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
24611fi
24612
24613
24614
24615
24616$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635  # End of code from modules
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645  gltests_libdeps=
24646  gltests_ltlibdeps=
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656  gl_source_base='tests'
24657  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
24658
24659  gl_module_indicator_condition=$gltests_WITNESS
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669  LIBICRT_LIBDEPS="$gl_libdeps"
24670
24671  LIBICRT_LTLIBDEPS="$gl_ltlibdeps"
24672
24673
24674
24675
24676
24677
24678
24679
24680if test "$enable_shared" = yes; then
24681  case "$host_os" in
24682    mingw* | cygwin*) is_woe32dll=yes ;;
24683    *) is_woe32dll=no ;;
24684  esac
24685else
24686  is_woe32dll=no
24687fi
24688WOE32DLL=$is_woe32dll
24689
24690if test $is_woe32dll = yes; then
24691  DLL_VARIABLE='__declspec (dllimport)'
24692else
24693  DLL_VARIABLE=
24694fi
24695
24696
24697
24698
24699
24700
24701subdirs="$subdirs libcharset"
24702
24703ac_config_files="$ac_config_files Makefile"
24704
24705ac_config_files="$ac_config_files lib/Makefile"
24706
24707ac_config_files="$ac_config_files srclib/Makefile"
24708
24709ac_config_files="$ac_config_files src/Makefile"
24710
24711ac_config_files="$ac_config_files po/Makefile.in"
24712
24713ac_config_files="$ac_config_files man/Makefile"
24714
24715if test -d "${srcdir}/tests"; then
24716  ac_config_files="$ac_config_files tests/Makefile"
24717
24718fi
24719ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
24720
24721ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
24722
24723cat >confcache <<\_ACEOF
24724# This file is a shell script that caches the results of configure
24725# tests run on this system so they can be shared between configure
24726# scripts and configure runs, see configure's option --config-cache.
24727# It is not useful on other systems.  If it contains results you don't
24728# want to keep, you may remove or edit it.
24729#
24730# config.status only pays attention to the cache file if you give it
24731# the --recheck option to rerun configure.
24732#
24733# `ac_cv_env_foo' variables (set or unset) will be overridden when
24734# loading this file, other *unset* `ac_cv_foo' will be assigned the
24735# following values.
24736
24737_ACEOF
24738
24739# The following way of writing the cache mishandles newlines in values,
24740# but we know of no workaround that is simple, portable, and efficient.
24741# So, we kill variables containing newlines.
24742# Ultrix sh set writes to stderr and can't be redirected directly,
24743# and sets the high bit in the cache file unless we assign to the vars.
24744(
24745  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24746    eval ac_val=\$$ac_var
24747    case $ac_val in #(
24748    *${as_nl}*)
24749      case $ac_var in #(
24750      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24751$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24752      esac
24753      case $ac_var in #(
24754      _ | IFS | as_nl) ;; #(
24755      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24756      *) { eval $ac_var=; unset $ac_var;} ;;
24757      esac ;;
24758    esac
24759  done
24760
24761  (set) 2>&1 |
24762    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24763    *${as_nl}ac_space=\ *)
24764      # `set' does not quote correctly, so add quotes: double-quote
24765      # substitution turns \\\\ into \\, and sed turns \\ into \.
24766      sed -n \
24767	"s/'/'\\\\''/g;
24768	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24769      ;; #(
24770    *)
24771      # `set' quotes correctly as required by POSIX, so do not add quotes.
24772      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24773      ;;
24774    esac |
24775    sort
24776) |
24777  sed '
24778     /^ac_cv_env_/b end
24779     t clear
24780     :clear
24781     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24782     t end
24783     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24784     :end' >>confcache
24785if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24786  if test -w "$cache_file"; then
24787    if test "x$cache_file" != "x/dev/null"; then
24788      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24789$as_echo "$as_me: updating cache $cache_file" >&6;}
24790      if test ! -f "$cache_file" || test -h "$cache_file"; then
24791	cat confcache >"$cache_file"
24792      else
24793        case $cache_file in #(
24794        */* | ?:*)
24795	  mv -f confcache "$cache_file"$$ &&
24796	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24797        *)
24798	  mv -f confcache "$cache_file" ;;
24799	esac
24800      fi
24801    fi
24802  else
24803    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24804$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24805  fi
24806fi
24807rm -f confcache
24808
24809test "x$prefix" = xNONE && prefix=$ac_default_prefix
24810# Let make expand exec_prefix.
24811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24812
24813DEFS=-DHAVE_CONFIG_H
24814
24815ac_libobjs=
24816ac_ltlibobjs=
24817U=
24818for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24819  # 1. Remove the extension, and $U if already installed.
24820  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24821  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24822  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24823  #    will be set to the directory where LIBOBJS objects are built.
24824  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24825  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24826done
24827LIBOBJS=$ac_libobjs
24828
24829LTLIBOBJS=$ac_ltlibobjs
24830
24831
24832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24833$as_echo_n "checking that generated files are newer than configure... " >&6; }
24834   if test -n "$am_sleep_pid"; then
24835     # Hide warnings about reused PIDs.
24836     wait $am_sleep_pid 2>/dev/null
24837   fi
24838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24839$as_echo "done" >&6; }
24840 if test -n "$EXEEXT"; then
24841  am__EXEEXT_TRUE=
24842  am__EXEEXT_FALSE='#'
24843else
24844  am__EXEEXT_TRUE='#'
24845  am__EXEEXT_FALSE=
24846fi
24847
24848if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24849  as_fn_error $? "conditional \"AMDEP\" was never defined.
24850Usually this means the macro was only invoked conditionally." "$LINENO" 5
24851fi
24852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24853  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24854Usually this means the macro was only invoked conditionally." "$LINENO" 5
24855fi
24856if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
24857  as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
24858Usually this means the macro was only invoked conditionally." "$LINENO" 5
24859fi
24860if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
24861  as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
24862Usually this means the macro was only invoked conditionally." "$LINENO" 5
24863fi
24864if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24865  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
24866Usually this means the macro was only invoked conditionally." "$LINENO" 5
24867fi
24868if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24869  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24870Usually this means the macro was only invoked conditionally." "$LINENO" 5
24871fi
24872if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
24873  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
24874Usually this means the macro was only invoked conditionally." "$LINENO" 5
24875fi
24876if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24877  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24878Usually this means the macro was only invoked conditionally." "$LINENO" 5
24879fi
24880if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24881  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24882Usually this means the macro was only invoked conditionally." "$LINENO" 5
24883fi
24884if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24885  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24886Usually this means the macro was only invoked conditionally." "$LINENO" 5
24887fi
24888if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24889  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24890Usually this means the macro was only invoked conditionally." "$LINENO" 5
24891fi
24892if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24893  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24894Usually this means the macro was only invoked conditionally." "$LINENO" 5
24895fi
24896if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
24897  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
24898Usually this means the macro was only invoked conditionally." "$LINENO" 5
24899fi
24900
24901    gl_libobjs=
24902    gl_ltlibobjs=
24903    if test -n "$gl_LIBOBJS"; then
24904      # Remove the extension.
24905      sed_drop_objext='s/\.o$//;s/\.obj$//'
24906      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24907        gl_libobjs="$gl_libobjs $i.$ac_objext"
24908        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24909      done
24910    fi
24911    gl_LIBOBJS=$gl_libobjs
24912
24913    gl_LTLIBOBJS=$gl_ltlibobjs
24914
24915
24916
24917    gltests_libobjs=
24918    gltests_ltlibobjs=
24919    if test -n "$gltests_LIBOBJS"; then
24920      # Remove the extension.
24921      sed_drop_objext='s/\.o$//;s/\.obj$//'
24922      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24923        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24924        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24925      done
24926    fi
24927    gltests_LIBOBJS=$gltests_libobjs
24928
24929    gltests_LTLIBOBJS=$gltests_ltlibobjs
24930
24931
24932
24933: "${CONFIG_STATUS=./config.status}"
24934ac_write_fail=0
24935ac_clean_files_save=$ac_clean_files
24936ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24937{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24938$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24939as_write_fail=0
24940cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24941#! $SHELL
24942# Generated by $as_me.
24943# Run this file to recreate the current configuration.
24944# Compiler output produced by configure, useful for debugging
24945# configure, is in config.log if it exists.
24946
24947debug=false
24948ac_cs_recheck=false
24949ac_cs_silent=false
24950
24951SHELL=\${CONFIG_SHELL-$SHELL}
24952export SHELL
24953_ASEOF
24954cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24955## -------------------- ##
24956## M4sh Initialization. ##
24957## -------------------- ##
24958
24959# Be more Bourne compatible
24960DUALCASE=1; export DUALCASE # for MKS sh
24961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24962  emulate sh
24963  NULLCMD=:
24964  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24965  # is contrary to our usage.  Disable this feature.
24966  alias -g '${1+"$@"}'='"$@"'
24967  setopt NO_GLOB_SUBST
24968else
24969  case `(set -o) 2>/dev/null` in #(
24970  *posix*) :
24971    set -o posix ;; #(
24972  *) :
24973     ;;
24974esac
24975fi
24976
24977
24978as_nl='
24979'
24980export as_nl
24981# Printing a long string crashes Solaris 7 /usr/bin/printf.
24982as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24984as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24985# Prefer a ksh shell builtin over an external printf program on Solaris,
24986# but without wasting forks for bash or zsh.
24987if test -z "$BASH_VERSION$ZSH_VERSION" \
24988    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24989  as_echo='print -r --'
24990  as_echo_n='print -rn --'
24991elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24992  as_echo='printf %s\n'
24993  as_echo_n='printf %s'
24994else
24995  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24996    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24997    as_echo_n='/usr/ucb/echo -n'
24998  else
24999    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25000    as_echo_n_body='eval
25001      arg=$1;
25002      case $arg in #(
25003      *"$as_nl"*)
25004	expr "X$arg" : "X\\(.*\\)$as_nl";
25005	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25006      esac;
25007      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25008    '
25009    export as_echo_n_body
25010    as_echo_n='sh -c $as_echo_n_body as_echo'
25011  fi
25012  export as_echo_body
25013  as_echo='sh -c $as_echo_body as_echo'
25014fi
25015
25016# The user is always right.
25017if test "${PATH_SEPARATOR+set}" != set; then
25018  PATH_SEPARATOR=:
25019  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25020    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25021      PATH_SEPARATOR=';'
25022  }
25023fi
25024
25025
25026# IFS
25027# We need space, tab and new line, in precisely that order.  Quoting is
25028# there to prevent editors from complaining about space-tab.
25029# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25030# splitting by setting IFS to empty value.)
25031IFS=" ""	$as_nl"
25032
25033# Find who we are.  Look in the path if we contain no directory separator.
25034as_myself=
25035case $0 in #((
25036  *[\\/]* ) as_myself=$0 ;;
25037  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25038for as_dir in $PATH
25039do
25040  IFS=$as_save_IFS
25041  test -z "$as_dir" && as_dir=.
25042    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25043  done
25044IFS=$as_save_IFS
25045
25046     ;;
25047esac
25048# We did not find ourselves, most probably we were run as `sh COMMAND'
25049# in which case we are not to be found in the path.
25050if test "x$as_myself" = x; then
25051  as_myself=$0
25052fi
25053if test ! -f "$as_myself"; then
25054  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25055  exit 1
25056fi
25057
25058# Unset variables that we do not need and which cause bugs (e.g. in
25059# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25060# suppresses any "Segmentation fault" message there.  '((' could
25061# trigger a bug in pdksh 5.2.14.
25062for as_var in BASH_ENV ENV MAIL MAILPATH
25063do eval test x\${$as_var+set} = xset \
25064  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25065done
25066PS1='$ '
25067PS2='> '
25068PS4='+ '
25069
25070# NLS nuisances.
25071LC_ALL=C
25072export LC_ALL
25073LANGUAGE=C
25074export LANGUAGE
25075
25076# CDPATH.
25077(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25078
25079
25080# as_fn_error STATUS ERROR [LINENO LOG_FD]
25081# ----------------------------------------
25082# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25083# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25084# script with STATUS, using 1 if that was 0.
25085as_fn_error ()
25086{
25087  as_status=$1; test $as_status -eq 0 && as_status=1
25088  if test "$4"; then
25089    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25090    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25091  fi
25092  $as_echo "$as_me: error: $2" >&2
25093  as_fn_exit $as_status
25094} # as_fn_error
25095
25096
25097# as_fn_set_status STATUS
25098# -----------------------
25099# Set $? to STATUS, without forking.
25100as_fn_set_status ()
25101{
25102  return $1
25103} # as_fn_set_status
25104
25105# as_fn_exit STATUS
25106# -----------------
25107# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25108as_fn_exit ()
25109{
25110  set +e
25111  as_fn_set_status $1
25112  exit $1
25113} # as_fn_exit
25114
25115# as_fn_unset VAR
25116# ---------------
25117# Portably unset VAR.
25118as_fn_unset ()
25119{
25120  { eval $1=; unset $1;}
25121}
25122as_unset=as_fn_unset
25123# as_fn_append VAR VALUE
25124# ----------------------
25125# Append the text in VALUE to the end of the definition contained in VAR. Take
25126# advantage of any shell optimizations that allow amortized linear growth over
25127# repeated appends, instead of the typical quadratic growth present in naive
25128# implementations.
25129if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25130  eval 'as_fn_append ()
25131  {
25132    eval $1+=\$2
25133  }'
25134else
25135  as_fn_append ()
25136  {
25137    eval $1=\$$1\$2
25138  }
25139fi # as_fn_append
25140
25141# as_fn_arith ARG...
25142# ------------------
25143# Perform arithmetic evaluation on the ARGs, and store the result in the
25144# global $as_val. Take advantage of shells that can avoid forks. The arguments
25145# must be portable across $(()) and expr.
25146if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25147  eval 'as_fn_arith ()
25148  {
25149    as_val=$(( $* ))
25150  }'
25151else
25152  as_fn_arith ()
25153  {
25154    as_val=`expr "$@" || test $? -eq 1`
25155  }
25156fi # as_fn_arith
25157
25158
25159if expr a : '\(a\)' >/dev/null 2>&1 &&
25160   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25161  as_expr=expr
25162else
25163  as_expr=false
25164fi
25165
25166if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25167  as_basename=basename
25168else
25169  as_basename=false
25170fi
25171
25172if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25173  as_dirname=dirname
25174else
25175  as_dirname=false
25176fi
25177
25178as_me=`$as_basename -- "$0" ||
25179$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25180	 X"$0" : 'X\(//\)$' \| \
25181	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25182$as_echo X/"$0" |
25183    sed '/^.*\/\([^/][^/]*\)\/*$/{
25184	    s//\1/
25185	    q
25186	  }
25187	  /^X\/\(\/\/\)$/{
25188	    s//\1/
25189	    q
25190	  }
25191	  /^X\/\(\/\).*/{
25192	    s//\1/
25193	    q
25194	  }
25195	  s/.*/./; q'`
25196
25197# Avoid depending upon Character Ranges.
25198as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25199as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25200as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25201as_cr_digits='0123456789'
25202as_cr_alnum=$as_cr_Letters$as_cr_digits
25203
25204ECHO_C= ECHO_N= ECHO_T=
25205case `echo -n x` in #(((((
25206-n*)
25207  case `echo 'xy\c'` in
25208  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25209  xy)  ECHO_C='\c';;
25210  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25211       ECHO_T='	';;
25212  esac;;
25213*)
25214  ECHO_N='-n';;
25215esac
25216
25217rm -f conf$$ conf$$.exe conf$$.file
25218if test -d conf$$.dir; then
25219  rm -f conf$$.dir/conf$$.file
25220else
25221  rm -f conf$$.dir
25222  mkdir conf$$.dir 2>/dev/null
25223fi
25224if (echo >conf$$.file) 2>/dev/null; then
25225  if ln -s conf$$.file conf$$ 2>/dev/null; then
25226    as_ln_s='ln -s'
25227    # ... but there are two gotchas:
25228    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25229    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25230    # In both cases, we have to default to `cp -pR'.
25231    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25232      as_ln_s='cp -pR'
25233  elif ln conf$$.file conf$$ 2>/dev/null; then
25234    as_ln_s=ln
25235  else
25236    as_ln_s='cp -pR'
25237  fi
25238else
25239  as_ln_s='cp -pR'
25240fi
25241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25242rmdir conf$$.dir 2>/dev/null
25243
25244
25245# as_fn_mkdir_p
25246# -------------
25247# Create "$as_dir" as a directory, including parents if necessary.
25248as_fn_mkdir_p ()
25249{
25250
25251  case $as_dir in #(
25252  -*) as_dir=./$as_dir;;
25253  esac
25254  test -d "$as_dir" || eval $as_mkdir_p || {
25255    as_dirs=
25256    while :; do
25257      case $as_dir in #(
25258      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25259      *) as_qdir=$as_dir;;
25260      esac
25261      as_dirs="'$as_qdir' $as_dirs"
25262      as_dir=`$as_dirname -- "$as_dir" ||
25263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25264	 X"$as_dir" : 'X\(//\)[^/]' \| \
25265	 X"$as_dir" : 'X\(//\)$' \| \
25266	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25267$as_echo X"$as_dir" |
25268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25269	    s//\1/
25270	    q
25271	  }
25272	  /^X\(\/\/\)[^/].*/{
25273	    s//\1/
25274	    q
25275	  }
25276	  /^X\(\/\/\)$/{
25277	    s//\1/
25278	    q
25279	  }
25280	  /^X\(\/\).*/{
25281	    s//\1/
25282	    q
25283	  }
25284	  s/.*/./; q'`
25285      test -d "$as_dir" && break
25286    done
25287    test -z "$as_dirs" || eval "mkdir $as_dirs"
25288  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25289
25290
25291} # as_fn_mkdir_p
25292if mkdir -p . 2>/dev/null; then
25293  as_mkdir_p='mkdir -p "$as_dir"'
25294else
25295  test -d ./-p && rmdir ./-p
25296  as_mkdir_p=false
25297fi
25298
25299
25300# as_fn_executable_p FILE
25301# -----------------------
25302# Test if FILE is an executable regular file.
25303as_fn_executable_p ()
25304{
25305  test -f "$1" && test -x "$1"
25306} # as_fn_executable_p
25307as_test_x='test -x'
25308as_executable_p=as_fn_executable_p
25309
25310# Sed expression to map a string onto a valid CPP name.
25311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25312
25313# Sed expression to map a string onto a valid variable name.
25314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25315
25316
25317exec 6>&1
25318## ----------------------------------- ##
25319## Main body of $CONFIG_STATUS script. ##
25320## ----------------------------------- ##
25321_ASEOF
25322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25323
25324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25325# Save the log message, to keep $0 and so on meaningful, and to
25326# report actual input values of CONFIG_FILES etc. instead of their
25327# values after options handling.
25328ac_log="
25329This file was extended by libiconv $as_me 1.16, which was
25330generated by GNU Autoconf 2.69.  Invocation command line was
25331
25332  CONFIG_FILES    = $CONFIG_FILES
25333  CONFIG_HEADERS  = $CONFIG_HEADERS
25334  CONFIG_LINKS    = $CONFIG_LINKS
25335  CONFIG_COMMANDS = $CONFIG_COMMANDS
25336  $ $0 $@
25337
25338on `(hostname || uname -n) 2>/dev/null | sed 1q`
25339"
25340
25341_ACEOF
25342
25343case $ac_config_files in *"
25344"*) set x $ac_config_files; shift; ac_config_files=$*;;
25345esac
25346
25347case $ac_config_headers in *"
25348"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25349esac
25350
25351
25352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25353# Files that config.status was made for.
25354config_files="$ac_config_files"
25355config_headers="$ac_config_headers"
25356config_commands="$ac_config_commands"
25357
25358_ACEOF
25359
25360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25361ac_cs_usage="\
25362\`$as_me' instantiates files and other configuration actions
25363from templates according to the current configuration.  Unless the files
25364and actions are specified as TAGs, all are instantiated by default.
25365
25366Usage: $0 [OPTION]... [TAG]...
25367
25368  -h, --help       print this help, then exit
25369  -V, --version    print version number and configuration settings, then exit
25370      --config     print configuration, then exit
25371  -q, --quiet, --silent
25372                   do not print progress messages
25373  -d, --debug      don't remove temporary files
25374      --recheck    update $as_me by reconfiguring in the same conditions
25375      --file=FILE[:TEMPLATE]
25376                   instantiate the configuration file FILE
25377      --header=FILE[:TEMPLATE]
25378                   instantiate the configuration header FILE
25379
25380Configuration files:
25381$config_files
25382
25383Configuration headers:
25384$config_headers
25385
25386Configuration commands:
25387$config_commands
25388
25389Report bugs to the package provider."
25390
25391_ACEOF
25392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25393ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25394ac_cs_version="\\
25395libiconv config.status 1.16
25396configured by $0, generated by GNU Autoconf 2.69,
25397  with options \\"\$ac_cs_config\\"
25398
25399Copyright (C) 2012 Free Software Foundation, Inc.
25400This config.status script is free software; the Free Software Foundation
25401gives unlimited permission to copy, distribute and modify it."
25402
25403ac_pwd='$ac_pwd'
25404srcdir='$srcdir'
25405INSTALL='$INSTALL'
25406MKDIR_P='$MKDIR_P'
25407AWK='$AWK'
25408test -n "\$AWK" || AWK=awk
25409_ACEOF
25410
25411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25412# The default lists apply if the user does not specify any file.
25413ac_need_defaults=:
25414while test $# != 0
25415do
25416  case $1 in
25417  --*=?*)
25418    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25419    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25420    ac_shift=:
25421    ;;
25422  --*=)
25423    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25424    ac_optarg=
25425    ac_shift=:
25426    ;;
25427  *)
25428    ac_option=$1
25429    ac_optarg=$2
25430    ac_shift=shift
25431    ;;
25432  esac
25433
25434  case $ac_option in
25435  # Handling of the options.
25436  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25437    ac_cs_recheck=: ;;
25438  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25439    $as_echo "$ac_cs_version"; exit ;;
25440  --config | --confi | --conf | --con | --co | --c )
25441    $as_echo "$ac_cs_config"; exit ;;
25442  --debug | --debu | --deb | --de | --d | -d )
25443    debug=: ;;
25444  --file | --fil | --fi | --f )
25445    $ac_shift
25446    case $ac_optarg in
25447    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25448    '') as_fn_error $? "missing file argument" ;;
25449    esac
25450    as_fn_append CONFIG_FILES " '$ac_optarg'"
25451    ac_need_defaults=false;;
25452  --header | --heade | --head | --hea )
25453    $ac_shift
25454    case $ac_optarg in
25455    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25456    esac
25457    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25458    ac_need_defaults=false;;
25459  --he | --h)
25460    # Conflict between --help and --header
25461    as_fn_error $? "ambiguous option: \`$1'
25462Try \`$0 --help' for more information.";;
25463  --help | --hel | -h )
25464    $as_echo "$ac_cs_usage"; exit ;;
25465  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25466  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25467    ac_cs_silent=: ;;
25468
25469  # This is an error.
25470  -*) as_fn_error $? "unrecognized option: \`$1'
25471Try \`$0 --help' for more information." ;;
25472
25473  *) as_fn_append ac_config_targets " $1"
25474     ac_need_defaults=false ;;
25475
25476  esac
25477  shift
25478done
25479
25480ac_configure_extra_args=
25481
25482if $ac_cs_silent; then
25483  exec 6>/dev/null
25484  ac_configure_extra_args="$ac_configure_extra_args --silent"
25485fi
25486
25487_ACEOF
25488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25489if \$ac_cs_recheck; then
25490  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25491  shift
25492  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25493  CONFIG_SHELL='$SHELL'
25494  export CONFIG_SHELL
25495  exec "\$@"
25496fi
25497
25498_ACEOF
25499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25500exec 5>>config.log
25501{
25502  echo
25503  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25504## Running $as_me. ##
25505_ASBOX
25506  $as_echo "$ac_log"
25507} >&5
25508
25509_ACEOF
25510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25511#
25512# INIT-COMMANDS
25513#
25514AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25515
25516
25517# The HP-UX ksh and POSIX shell print the target directory to stdout
25518# if CDPATH is set.
25519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25520
25521sed_quote_subst='$sed_quote_subst'
25522double_quote_subst='$double_quote_subst'
25523delay_variable_subst='$delay_variable_subst'
25524macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25525macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25526enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25527AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25528DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25529OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25530enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25532enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25533shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25534SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25535ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25536PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25537host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25538host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25539host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25540build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25541build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25542build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25543SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25544Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25545GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25546EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25547FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25548LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25549NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25550LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25551max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25552ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25553exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25554lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25555lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25556lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25557lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25558lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25559reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25560reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25561deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25562file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25563file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25564want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25565sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25566AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25567AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25568archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25569STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25570RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25571old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25572old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25573old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25574lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25575CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25576CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25577compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25578GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25579lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25580lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25581lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25582lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25583lt_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"`'
25584lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25585nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25586lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25587lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25588objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25589MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25590lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25591lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25592lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25593lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25594lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25595need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25596MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25597DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25598NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25599LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25600OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25601OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25602libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25603shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25604extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25605archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25606enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25607export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25608whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25609compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25610old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25611old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25612archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25613archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25614module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25615module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25616with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25617allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25618no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25619hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25620hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25621hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25622hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25623hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25624hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25625hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25626inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25627link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25628always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25629export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25630exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25631include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25632prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25633postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25634file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25635variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25636need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25637need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25638version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25639runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25640shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25641shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25642libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25643library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25644soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25645install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25646postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25647postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25648finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25649finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25650hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25651sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25652configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25653configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25654hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25655enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25656enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25657enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25658old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25659striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25660LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
25661reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
25662reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
25663old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
25664compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
25665GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
25666lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
25667lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
25668lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
25669lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
25670lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
25671archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
25672enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
25673export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25674whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25675compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
25676old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
25677old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
25678archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
25679archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
25680module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
25681module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
25682with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
25683allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
25684no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
25685hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25686hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
25687hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
25688hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
25689hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
25690hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
25691hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
25692inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
25693link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
25694always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
25695export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
25696exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
25697include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
25698prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
25699postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
25700file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
25701hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
25702
25703LTCC='$LTCC'
25704LTCFLAGS='$LTCFLAGS'
25705compiler='$compiler_DEFAULT'
25706
25707# A function that is used when there is no print builtin or printf.
25708func_fallback_echo ()
25709{
25710  eval 'cat <<_LTECHO_EOF
25711\$1
25712_LTECHO_EOF'
25713}
25714
25715# Quote evaled strings.
25716for var in AS \
25717DLLTOOL \
25718OBJDUMP \
25719SHELL \
25720ECHO \
25721PATH_SEPARATOR \
25722SED \
25723GREP \
25724EGREP \
25725FGREP \
25726LD \
25727NM \
25728LN_S \
25729lt_SP2NL \
25730lt_NL2SP \
25731reload_flag \
25732deplibs_check_method \
25733file_magic_cmd \
25734file_magic_glob \
25735want_nocaseglob \
25736sharedlib_from_linklib_cmd \
25737AR \
25738AR_FLAGS \
25739archiver_list_spec \
25740STRIP \
25741RANLIB \
25742CC \
25743CFLAGS \
25744compiler \
25745lt_cv_sys_global_symbol_pipe \
25746lt_cv_sys_global_symbol_to_cdecl \
25747lt_cv_sys_global_symbol_to_import \
25748lt_cv_sys_global_symbol_to_c_name_address \
25749lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25750lt_cv_nm_interface \
25751nm_file_list_spec \
25752lt_cv_truncate_bin \
25753lt_prog_compiler_no_builtin_flag \
25754lt_prog_compiler_pic \
25755lt_prog_compiler_wl \
25756lt_prog_compiler_static \
25757lt_cv_prog_compiler_c_o \
25758need_locks \
25759MANIFEST_TOOL \
25760DSYMUTIL \
25761NMEDIT \
25762LIPO \
25763OTOOL \
25764OTOOL64 \
25765shrext_cmds \
25766export_dynamic_flag_spec \
25767whole_archive_flag_spec \
25768compiler_needs_object \
25769with_gnu_ld \
25770allow_undefined_flag \
25771no_undefined_flag \
25772hardcode_libdir_flag_spec \
25773hardcode_libdir_separator \
25774exclude_expsyms \
25775include_expsyms \
25776file_list_spec \
25777variables_saved_for_relink \
25778libname_spec \
25779library_names_spec \
25780soname_spec \
25781install_override_mode \
25782finish_eval \
25783old_striplib \
25784striplib \
25785LD_RC \
25786reload_flag_RC \
25787compiler_RC \
25788lt_prog_compiler_no_builtin_flag_RC \
25789lt_prog_compiler_pic_RC \
25790lt_prog_compiler_wl_RC \
25791lt_prog_compiler_static_RC \
25792lt_cv_prog_compiler_c_o_RC \
25793export_dynamic_flag_spec_RC \
25794whole_archive_flag_spec_RC \
25795compiler_needs_object_RC \
25796with_gnu_ld_RC \
25797allow_undefined_flag_RC \
25798no_undefined_flag_RC \
25799hardcode_libdir_flag_spec_RC \
25800hardcode_libdir_separator_RC \
25801exclude_expsyms_RC \
25802include_expsyms_RC \
25803file_list_spec_RC; do
25804    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25805    *[\\\\\\\`\\"\\\$]*)
25806      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25807      ;;
25808    *)
25809      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25810      ;;
25811    esac
25812done
25813
25814# Double-quote double-evaled strings.
25815for var in reload_cmds \
25816old_postinstall_cmds \
25817old_postuninstall_cmds \
25818old_archive_cmds \
25819extract_expsyms_cmds \
25820old_archive_from_new_cmds \
25821old_archive_from_expsyms_cmds \
25822archive_cmds \
25823archive_expsym_cmds \
25824module_cmds \
25825module_expsym_cmds \
25826export_symbols_cmds \
25827prelink_cmds \
25828postlink_cmds \
25829postinstall_cmds \
25830postuninstall_cmds \
25831finish_cmds \
25832sys_lib_search_path_spec \
25833configure_time_dlsearch_path \
25834configure_time_lt_sys_library_path \
25835reload_cmds_RC \
25836old_archive_cmds_RC \
25837old_archive_from_new_cmds_RC \
25838old_archive_from_expsyms_cmds_RC \
25839archive_cmds_RC \
25840archive_expsym_cmds_RC \
25841module_cmds_RC \
25842module_expsym_cmds_RC \
25843export_symbols_cmds_RC \
25844prelink_cmds_RC \
25845postlink_cmds_RC; do
25846    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25847    *[\\\\\\\`\\"\\\$]*)
25848      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25849      ;;
25850    *)
25851      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25852      ;;
25853    esac
25854done
25855
25856ac_aux_dir='$ac_aux_dir'
25857
25858# See if we are running on zsh, and set the options that allow our
25859# commands through without removal of \ escapes INIT.
25860if test -n "\${ZSH_VERSION+set}"; then
25861   setopt NO_GLOB_SUBST
25862fi
25863
25864
25865    PACKAGE='$PACKAGE'
25866    VERSION='$VERSION'
25867    RM='$RM'
25868    ofile='$ofile'
25869
25870
25871
25872
25873
25874# Capture the value of obsolete ALL_LINGUAS because we need it to compute
25875    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
25876    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
25877    # Capture the value of LINGUAS because we need it to compute CATALOGS.
25878    LINGUAS="${LINGUAS-%UNSET%}"
25879
25880
25881_ACEOF
25882
25883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25884
25885# Handling of arguments.
25886for ac_config_target in $ac_config_targets
25887do
25888  case $ac_config_target in
25889    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25890    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
25891    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25892    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25893    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
25894    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25895    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25896    "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
25897    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25898    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25899    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25900    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25901    "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
25902    "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
25903
25904  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25905  esac
25906done
25907
25908
25909# If the user did not use the arguments to specify the items to instantiate,
25910# then the envvar interface is used.  Set only those that are not.
25911# We use the long form for the default assignment because of an extremely
25912# bizarre bug on SunOS 4.1.3.
25913if $ac_need_defaults; then
25914  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25915  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25916  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25917fi
25918
25919# Have a temporary directory for convenience.  Make it in the build tree
25920# simply because there is no reason against having it here, and in addition,
25921# creating and moving files from /tmp can sometimes cause problems.
25922# Hook for its removal unless debugging.
25923# Note that there is a small window in which the directory will not be cleaned:
25924# after its creation but before its name has been assigned to `$tmp'.
25925$debug ||
25926{
25927  tmp= ac_tmp=
25928  trap 'exit_status=$?
25929  : "${ac_tmp:=$tmp}"
25930  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25931' 0
25932  trap 'as_fn_exit 1' 1 2 13 15
25933}
25934# Create a (secure) tmp directory for tmp files.
25935
25936{
25937  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25938  test -d "$tmp"
25939}  ||
25940{
25941  tmp=./conf$$-$RANDOM
25942  (umask 077 && mkdir "$tmp")
25943} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25944ac_tmp=$tmp
25945
25946# Set up the scripts for CONFIG_FILES section.
25947# No need to generate them if there are no CONFIG_FILES.
25948# This happens for instance with `./config.status config.h'.
25949if test -n "$CONFIG_FILES"; then
25950
25951
25952ac_cr=`echo X | tr X '\015'`
25953# On cygwin, bash can eat \r inside `` if the user requested igncr.
25954# But we know of no other shell where ac_cr would be empty at this
25955# point, so we can use a bashism as a fallback.
25956if test "x$ac_cr" = x; then
25957  eval ac_cr=\$\'\\r\'
25958fi
25959ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25960if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25961  ac_cs_awk_cr='\\r'
25962else
25963  ac_cs_awk_cr=$ac_cr
25964fi
25965
25966echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25967_ACEOF
25968
25969
25970{
25971  echo "cat >conf$$subs.awk <<_ACEOF" &&
25972  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25973  echo "_ACEOF"
25974} >conf$$subs.sh ||
25975  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25976ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25977ac_delim='%!_!# '
25978for ac_last_try in false false false false false :; do
25979  . ./conf$$subs.sh ||
25980    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25981
25982  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25983  if test $ac_delim_n = $ac_delim_num; then
25984    break
25985  elif $ac_last_try; then
25986    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25987  else
25988    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25989  fi
25990done
25991rm -f conf$$subs.sh
25992
25993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25994cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25995_ACEOF
25996sed -n '
25997h
25998s/^/S["/; s/!.*/"]=/
25999p
26000g
26001s/^[^!]*!//
26002:repl
26003t repl
26004s/'"$ac_delim"'$//
26005t delim
26006:nl
26007h
26008s/\(.\{148\}\)..*/\1/
26009t more1
26010s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26011p
26012n
26013b repl
26014:more1
26015s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26016p
26017g
26018s/.\{148\}//
26019t nl
26020:delim
26021h
26022s/\(.\{148\}\)..*/\1/
26023t more2
26024s/["\\]/\\&/g; s/^/"/; s/$/"/
26025p
26026b
26027:more2
26028s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26029p
26030g
26031s/.\{148\}//
26032t delim
26033' <conf$$subs.awk | sed '
26034/^[^""]/{
26035  N
26036  s/\n//
26037}
26038' >>$CONFIG_STATUS || ac_write_fail=1
26039rm -f conf$$subs.awk
26040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26041_ACAWK
26042cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26043  for (key in S) S_is_set[key] = 1
26044  FS = ""
26045
26046}
26047{
26048  line = $ 0
26049  nfields = split(line, field, "@")
26050  substed = 0
26051  len = length(field[1])
26052  for (i = 2; i < nfields; i++) {
26053    key = field[i]
26054    keylen = length(key)
26055    if (S_is_set[key]) {
26056      value = S[key]
26057      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26058      len += length(value) + length(field[++i])
26059      substed = 1
26060    } else
26061      len += 1 + keylen
26062  }
26063
26064  print line
26065}
26066
26067_ACAWK
26068_ACEOF
26069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26070if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26071  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26072else
26073  cat
26074fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26075  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26076_ACEOF
26077
26078# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26079# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26080# trailing colons and then remove the whole line if VPATH becomes empty
26081# (actually we leave an empty line to preserve line numbers).
26082if test "x$srcdir" = x.; then
26083  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26084h
26085s///
26086s/^/:/
26087s/[	 ]*$/:/
26088s/:\$(srcdir):/:/g
26089s/:\${srcdir}:/:/g
26090s/:@srcdir@:/:/g
26091s/^:*//
26092s/:*$//
26093x
26094s/\(=[	 ]*\).*/\1/
26095G
26096s/\n//
26097s/^[^=]*=[	 ]*$//
26098}'
26099fi
26100
26101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26102fi # test -n "$CONFIG_FILES"
26103
26104# Set up the scripts for CONFIG_HEADERS section.
26105# No need to generate them if there are no CONFIG_HEADERS.
26106# This happens for instance with `./config.status Makefile'.
26107if test -n "$CONFIG_HEADERS"; then
26108cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26109BEGIN {
26110_ACEOF
26111
26112# Transform confdefs.h into an awk script `defines.awk', embedded as
26113# here-document in config.status, that substitutes the proper values into
26114# config.h.in to produce config.h.
26115
26116# Create a delimiter string that does not exist in confdefs.h, to ease
26117# handling of long lines.
26118ac_delim='%!_!# '
26119for ac_last_try in false false :; do
26120  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26121  if test -z "$ac_tt"; then
26122    break
26123  elif $ac_last_try; then
26124    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26125  else
26126    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26127  fi
26128done
26129
26130# For the awk script, D is an array of macro values keyed by name,
26131# likewise P contains macro parameters if any.  Preserve backslash
26132# newline sequences.
26133
26134ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26135sed -n '
26136s/.\{148\}/&'"$ac_delim"'/g
26137t rset
26138:rset
26139s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26140t def
26141d
26142:def
26143s/\\$//
26144t bsnl
26145s/["\\]/\\&/g
26146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26147D["\1"]=" \3"/p
26148s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26149d
26150:bsnl
26151s/["\\]/\\&/g
26152s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26153D["\1"]=" \3\\\\\\n"\\/p
26154t cont
26155s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26156t cont
26157d
26158:cont
26159n
26160s/.\{148\}/&'"$ac_delim"'/g
26161t clear
26162:clear
26163s/\\$//
26164t bsnlc
26165s/["\\]/\\&/g; s/^/"/; s/$/"/p
26166d
26167:bsnlc
26168s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26169b cont
26170' <confdefs.h | sed '
26171s/'"$ac_delim"'/"\\\
26172"/g' >>$CONFIG_STATUS || ac_write_fail=1
26173
26174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26175  for (key in D) D_is_set[key] = 1
26176  FS = ""
26177}
26178/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26179  line = \$ 0
26180  split(line, arg, " ")
26181  if (arg[1] == "#") {
26182    defundef = arg[2]
26183    mac1 = arg[3]
26184  } else {
26185    defundef = substr(arg[1], 2)
26186    mac1 = arg[2]
26187  }
26188  split(mac1, mac2, "(") #)
26189  macro = mac2[1]
26190  prefix = substr(line, 1, index(line, defundef) - 1)
26191  if (D_is_set[macro]) {
26192    # Preserve the white space surrounding the "#".
26193    print prefix "define", macro P[macro] D[macro]
26194    next
26195  } else {
26196    # Replace #undef with comments.  This is necessary, for example,
26197    # in the case of _POSIX_SOURCE, which is predefined and required
26198    # on some systems where configure will not decide to define it.
26199    if (defundef == "undef") {
26200      print "/*", prefix defundef, macro, "*/"
26201      next
26202    }
26203  }
26204}
26205{ print }
26206_ACAWK
26207_ACEOF
26208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26209  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26210fi # test -n "$CONFIG_HEADERS"
26211
26212
26213eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26214shift
26215for ac_tag
26216do
26217  case $ac_tag in
26218  :[FHLC]) ac_mode=$ac_tag; continue;;
26219  esac
26220  case $ac_mode$ac_tag in
26221  :[FHL]*:*);;
26222  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26223  :[FH]-) ac_tag=-:-;;
26224  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26225  esac
26226  ac_save_IFS=$IFS
26227  IFS=:
26228  set x $ac_tag
26229  IFS=$ac_save_IFS
26230  shift
26231  ac_file=$1
26232  shift
26233
26234  case $ac_mode in
26235  :L) ac_source=$1;;
26236  :[FH])
26237    ac_file_inputs=
26238    for ac_f
26239    do
26240      case $ac_f in
26241      -) ac_f="$ac_tmp/stdin";;
26242      *) # Look for the file first in the build tree, then in the source tree
26243	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26244	 # because $ac_f cannot contain `:'.
26245	 test -f "$ac_f" ||
26246	   case $ac_f in
26247	   [\\/$]*) false;;
26248	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26249	   esac ||
26250	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26251      esac
26252      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26253      as_fn_append ac_file_inputs " '$ac_f'"
26254    done
26255
26256    # Let's still pretend it is `configure' which instantiates (i.e., don't
26257    # use $as_me), people would be surprised to read:
26258    #    /* config.h.  Generated by config.status.  */
26259    configure_input='Generated from '`
26260	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26261	`' by configure.'
26262    if test x"$ac_file" != x-; then
26263      configure_input="$ac_file.  $configure_input"
26264      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26265$as_echo "$as_me: creating $ac_file" >&6;}
26266    fi
26267    # Neutralize special characters interpreted by sed in replacement strings.
26268    case $configure_input in #(
26269    *\&* | *\|* | *\\* )
26270       ac_sed_conf_input=`$as_echo "$configure_input" |
26271       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26272    *) ac_sed_conf_input=$configure_input;;
26273    esac
26274
26275    case $ac_tag in
26276    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26277      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26278    esac
26279    ;;
26280  esac
26281
26282  ac_dir=`$as_dirname -- "$ac_file" ||
26283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26284	 X"$ac_file" : 'X\(//\)[^/]' \| \
26285	 X"$ac_file" : 'X\(//\)$' \| \
26286	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26287$as_echo X"$ac_file" |
26288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26289	    s//\1/
26290	    q
26291	  }
26292	  /^X\(\/\/\)[^/].*/{
26293	    s//\1/
26294	    q
26295	  }
26296	  /^X\(\/\/\)$/{
26297	    s//\1/
26298	    q
26299	  }
26300	  /^X\(\/\).*/{
26301	    s//\1/
26302	    q
26303	  }
26304	  s/.*/./; q'`
26305  as_dir="$ac_dir"; as_fn_mkdir_p
26306  ac_builddir=.
26307
26308case "$ac_dir" in
26309.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26310*)
26311  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26312  # A ".." for each directory in $ac_dir_suffix.
26313  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26314  case $ac_top_builddir_sub in
26315  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26316  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26317  esac ;;
26318esac
26319ac_abs_top_builddir=$ac_pwd
26320ac_abs_builddir=$ac_pwd$ac_dir_suffix
26321# for backward compatibility:
26322ac_top_builddir=$ac_top_build_prefix
26323
26324case $srcdir in
26325  .)  # We are building in place.
26326    ac_srcdir=.
26327    ac_top_srcdir=$ac_top_builddir_sub
26328    ac_abs_top_srcdir=$ac_pwd ;;
26329  [\\/]* | ?:[\\/]* )  # Absolute name.
26330    ac_srcdir=$srcdir$ac_dir_suffix;
26331    ac_top_srcdir=$srcdir
26332    ac_abs_top_srcdir=$srcdir ;;
26333  *) # Relative name.
26334    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26335    ac_top_srcdir=$ac_top_build_prefix$srcdir
26336    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26337esac
26338ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26339
26340
26341  case $ac_mode in
26342  :F)
26343  #
26344  # CONFIG_FILE
26345  #
26346
26347  case $INSTALL in
26348  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26349  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26350  esac
26351  ac_MKDIR_P=$MKDIR_P
26352  case $MKDIR_P in
26353  [\\/$]* | ?:[\\/]* ) ;;
26354  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26355  esac
26356_ACEOF
26357
26358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26359# If the template does not know about datarootdir, expand it.
26360# FIXME: This hack should be removed a few years after 2.60.
26361ac_datarootdir_hack=; ac_datarootdir_seen=
26362ac_sed_dataroot='
26363/datarootdir/ {
26364  p
26365  q
26366}
26367/@datadir@/p
26368/@docdir@/p
26369/@infodir@/p
26370/@localedir@/p
26371/@mandir@/p'
26372case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26373*datarootdir*) ac_datarootdir_seen=yes;;
26374*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26376$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26377_ACEOF
26378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26379  ac_datarootdir_hack='
26380  s&@datadir@&$datadir&g
26381  s&@docdir@&$docdir&g
26382  s&@infodir@&$infodir&g
26383  s&@localedir@&$localedir&g
26384  s&@mandir@&$mandir&g
26385  s&\\\${datarootdir}&$datarootdir&g' ;;
26386esac
26387_ACEOF
26388
26389# Neutralize VPATH when `$srcdir' = `.'.
26390# Shell code in configure.ac might set extrasub.
26391# FIXME: do we really want to maintain this feature?
26392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26393ac_sed_extra="$ac_vpsub
26394$extrasub
26395_ACEOF
26396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26397:t
26398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26399s|@configure_input@|$ac_sed_conf_input|;t t
26400s&@top_builddir@&$ac_top_builddir_sub&;t t
26401s&@top_build_prefix@&$ac_top_build_prefix&;t t
26402s&@srcdir@&$ac_srcdir&;t t
26403s&@abs_srcdir@&$ac_abs_srcdir&;t t
26404s&@top_srcdir@&$ac_top_srcdir&;t t
26405s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26406s&@builddir@&$ac_builddir&;t t
26407s&@abs_builddir@&$ac_abs_builddir&;t t
26408s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26409s&@INSTALL@&$ac_INSTALL&;t t
26410s&@MKDIR_P@&$ac_MKDIR_P&;t t
26411$ac_datarootdir_hack
26412"
26413eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26414  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26415
26416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26417  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26418  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26419      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26420  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26421which seems to be undefined.  Please make sure it is defined" >&5
26422$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26423which seems to be undefined.  Please make sure it is defined" >&2;}
26424
26425  rm -f "$ac_tmp/stdin"
26426  case $ac_file in
26427  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26428  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26429  esac \
26430  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26431 ;;
26432  :H)
26433  #
26434  # CONFIG_HEADER
26435  #
26436  if test x"$ac_file" != x-; then
26437    {
26438      $as_echo "/* $configure_input  */" \
26439      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26440    } >"$ac_tmp/config.h" \
26441      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26442    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26443      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26444$as_echo "$as_me: $ac_file is unchanged" >&6;}
26445    else
26446      rm -f "$ac_file"
26447      mv "$ac_tmp/config.h" "$ac_file" \
26448	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26449    fi
26450  else
26451    $as_echo "/* $configure_input  */" \
26452      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26453      || as_fn_error $? "could not create -" "$LINENO" 5
26454  fi
26455# Compute "$ac_file"'s index in $config_headers.
26456_am_arg="$ac_file"
26457_am_stamp_count=1
26458for _am_header in $config_headers :; do
26459  case $_am_header in
26460    $_am_arg | $_am_arg:* )
26461      break ;;
26462    * )
26463      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26464  esac
26465done
26466echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26467$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26468	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26469	 X"$_am_arg" : 'X\(//\)$' \| \
26470	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26471$as_echo X"$_am_arg" |
26472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26473	    s//\1/
26474	    q
26475	  }
26476	  /^X\(\/\/\)[^/].*/{
26477	    s//\1/
26478	    q
26479	  }
26480	  /^X\(\/\/\)$/{
26481	    s//\1/
26482	    q
26483	  }
26484	  /^X\(\/\).*/{
26485	    s//\1/
26486	    q
26487	  }
26488	  s/.*/./; q'`/stamp-h$_am_stamp_count
26489 ;;
26490
26491  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26492$as_echo "$as_me: executing $ac_file commands" >&6;}
26493 ;;
26494  esac
26495
26496
26497  case $ac_file$ac_mode in
26498    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26499  # Older Autoconf quotes --file arguments for eval, but not when files
26500  # are listed without --file.  Let's play safe and only enable the eval
26501  # if we detect the quoting.
26502  # TODO: see whether this extra hack can be removed once we start
26503  # requiring Autoconf 2.70 or later.
26504  case $CONFIG_FILES in #(
26505  *\'*) :
26506    eval set x "$CONFIG_FILES" ;; #(
26507  *) :
26508    set x $CONFIG_FILES ;; #(
26509  *) :
26510     ;;
26511esac
26512  shift
26513  # Used to flag and report bootstrapping failures.
26514  am_rc=0
26515  for am_mf
26516  do
26517    # Strip MF so we end up with the name of the file.
26518    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26519    # Check whether this is an Automake generated Makefile which includes
26520    # dependency-tracking related rules and includes.
26521    # Grep'ing the whole file directly is not great: AIX grep has a line
26522    # limit of 2048, but all sed's we know have understand at least 4000.
26523    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26524      || continue
26525    am_dirpart=`$as_dirname -- "$am_mf" ||
26526$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26527	 X"$am_mf" : 'X\(//\)[^/]' \| \
26528	 X"$am_mf" : 'X\(//\)$' \| \
26529	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26530$as_echo X"$am_mf" |
26531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26532	    s//\1/
26533	    q
26534	  }
26535	  /^X\(\/\/\)[^/].*/{
26536	    s//\1/
26537	    q
26538	  }
26539	  /^X\(\/\/\)$/{
26540	    s//\1/
26541	    q
26542	  }
26543	  /^X\(\/\).*/{
26544	    s//\1/
26545	    q
26546	  }
26547	  s/.*/./; q'`
26548    am_filepart=`$as_basename -- "$am_mf" ||
26549$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26550	 X"$am_mf" : 'X\(//\)$' \| \
26551	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26552$as_echo X/"$am_mf" |
26553    sed '/^.*\/\([^/][^/]*\)\/*$/{
26554	    s//\1/
26555	    q
26556	  }
26557	  /^X\/\(\/\/\)$/{
26558	    s//\1/
26559	    q
26560	  }
26561	  /^X\/\(\/\).*/{
26562	    s//\1/
26563	    q
26564	  }
26565	  s/.*/./; q'`
26566    { echo "$as_me:$LINENO: cd "$am_dirpart" \
26567      && sed -e '/# am--include-marker/d' "$am_filepart" \
26568        | $MAKE -f - am--depfiles" >&5
26569   (cd "$am_dirpart" \
26570      && sed -e '/# am--include-marker/d' "$am_filepart" \
26571        | $MAKE -f - am--depfiles) >&5 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); } || am_rc=$?
26575  done
26576  if test $am_rc -ne 0; then
26577    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26579as_fn_error $? "Something went wrong bootstrapping makefile fragments
26580    for automatic dependency tracking.  Try re-running configure with the
26581    '--disable-dependency-tracking' option to at least be able to build
26582    the package (albeit without support for automatic dependency tracking).
26583See \`config.log' for more details" "$LINENO" 5; }
26584  fi
26585  { am_dirpart=; unset am_dirpart;}
26586  { am_filepart=; unset am_filepart;}
26587  { am_mf=; unset am_mf;}
26588  { am_rc=; unset am_rc;}
26589  rm -f conftest-deps.mk
26590}
26591 ;;
26592    "libtool":C)
26593
26594    # See if we are running on zsh, and set the options that allow our
26595    # commands through without removal of \ escapes.
26596    if test -n "${ZSH_VERSION+set}"; then
26597      setopt NO_GLOB_SUBST
26598    fi
26599
26600    cfgfile=${ofile}T
26601    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26602    $RM "$cfgfile"
26603
26604    cat <<_LT_EOF >> "$cfgfile"
26605#! $SHELL
26606# Generated automatically by $as_me ($PACKAGE) $VERSION
26607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26608# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26609
26610# Provide generalized library-building support services.
26611# Written by Gordon Matzigkeit, 1996
26612
26613# Copyright (C) 2014 Free Software Foundation, Inc.
26614# This is free software; see the source for copying conditions.  There is NO
26615# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26616
26617# GNU Libtool is free software; you can redistribute it and/or modify
26618# it under the terms of the GNU General Public License as published by
26619# the Free Software Foundation; either version 2 of of the License, or
26620# (at your option) any later version.
26621#
26622# As a special exception to the GNU General Public License, if you
26623# distribute this file as part of a program or library that is built
26624# using GNU Libtool, you may include this file under the  same
26625# distribution terms that you use for the rest of that program.
26626#
26627# GNU Libtool is distributed in the hope that it will be useful, but
26628# WITHOUT ANY WARRANTY; without even the implied warranty of
26629# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26630# GNU General Public License for more details.
26631#
26632# You should have received a copy of the GNU General Public License
26633# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26634
26635
26636# The names of the tagged configurations supported by this script.
26637available_tags='RC '
26638
26639# Configured defaults for sys_lib_dlsearch_path munging.
26640: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26641
26642# ### BEGIN LIBTOOL CONFIG
26643
26644# Which release of libtool.m4 was used?
26645macro_version=$macro_version
26646macro_revision=$macro_revision
26647
26648# Whether or not to build static libraries.
26649build_old_libs=$enable_static
26650
26651# Assembler program.
26652AS=$lt_AS
26653
26654# DLL creation program.
26655DLLTOOL=$lt_DLLTOOL
26656
26657# Object dumper program.
26658OBJDUMP=$lt_OBJDUMP
26659
26660# Whether or not to build shared libraries.
26661build_libtool_libs=$enable_shared
26662
26663# What type of objects to build.
26664pic_mode=$pic_mode
26665
26666# Whether or not to optimize for fast installation.
26667fast_install=$enable_fast_install
26668
26669# Shared archive member basename,for filename based shared library versioning on AIX.
26670shared_archive_member_spec=$shared_archive_member_spec
26671
26672# Shell to use when invoking shell scripts.
26673SHELL=$lt_SHELL
26674
26675# An echo program that protects backslashes.
26676ECHO=$lt_ECHO
26677
26678# The PATH separator for the build system.
26679PATH_SEPARATOR=$lt_PATH_SEPARATOR
26680
26681# The host system.
26682host_alias=$host_alias
26683host=$host
26684host_os=$host_os
26685
26686# The build system.
26687build_alias=$build_alias
26688build=$build
26689build_os=$build_os
26690
26691# A sed program that does not truncate output.
26692SED=$lt_SED
26693
26694# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26695Xsed="\$SED -e 1s/^X//"
26696
26697# A grep program that handles long lines.
26698GREP=$lt_GREP
26699
26700# An ERE matcher.
26701EGREP=$lt_EGREP
26702
26703# A literal string matcher.
26704FGREP=$lt_FGREP
26705
26706# A BSD- or MS-compatible name lister.
26707NM=$lt_NM
26708
26709# Whether we need soft or hard links.
26710LN_S=$lt_LN_S
26711
26712# What is the maximum length of a command?
26713max_cmd_len=$max_cmd_len
26714
26715# Object file suffix (normally "o").
26716objext=$ac_objext
26717
26718# Executable file suffix (normally "").
26719exeext=$exeext
26720
26721# whether the shell understands "unset".
26722lt_unset=$lt_unset
26723
26724# turn spaces into newlines.
26725SP2NL=$lt_lt_SP2NL
26726
26727# turn newlines into spaces.
26728NL2SP=$lt_lt_NL2SP
26729
26730# convert \$build file names to \$host format.
26731to_host_file_cmd=$lt_cv_to_host_file_cmd
26732
26733# convert \$build files to toolchain format.
26734to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26735
26736# Method to check whether dependent libraries are shared objects.
26737deplibs_check_method=$lt_deplibs_check_method
26738
26739# Command to use when deplibs_check_method = "file_magic".
26740file_magic_cmd=$lt_file_magic_cmd
26741
26742# How to find potential files when deplibs_check_method = "file_magic".
26743file_magic_glob=$lt_file_magic_glob
26744
26745# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26746want_nocaseglob=$lt_want_nocaseglob
26747
26748# Command to associate shared and link libraries.
26749sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26750
26751# The archiver.
26752AR=$lt_AR
26753
26754# Flags to create an archive.
26755AR_FLAGS=$lt_AR_FLAGS
26756
26757# How to feed a file listing to the archiver.
26758archiver_list_spec=$lt_archiver_list_spec
26759
26760# A symbol stripping program.
26761STRIP=$lt_STRIP
26762
26763# Commands used to install an old-style archive.
26764RANLIB=$lt_RANLIB
26765old_postinstall_cmds=$lt_old_postinstall_cmds
26766old_postuninstall_cmds=$lt_old_postuninstall_cmds
26767
26768# Whether to use a lock for old archive extraction.
26769lock_old_archive_extraction=$lock_old_archive_extraction
26770
26771# A C compiler.
26772LTCC=$lt_CC
26773
26774# LTCC compiler flags.
26775LTCFLAGS=$lt_CFLAGS
26776
26777# Take the output of nm and produce a listing of raw symbols and C names.
26778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26779
26780# Transform the output of nm in a proper C declaration.
26781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26782
26783# Transform the output of nm into a list of symbols to manually relocate.
26784global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26785
26786# Transform the output of nm in a C name address pair.
26787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26788
26789# Transform the output of nm in a C name address pair when lib prefix is needed.
26790global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26791
26792# The name lister interface.
26793nm_interface=$lt_lt_cv_nm_interface
26794
26795# Specify filename containing input files for \$NM.
26796nm_file_list_spec=$lt_nm_file_list_spec
26797
26798# The root where to search for dependent libraries,and where our libraries should be installed.
26799lt_sysroot=$lt_sysroot
26800
26801# Command to truncate a binary pipe.
26802lt_truncate_bin=$lt_lt_cv_truncate_bin
26803
26804# The name of the directory that contains temporary libtool files.
26805objdir=$objdir
26806
26807# Used to examine libraries when file_magic_cmd begins with "file".
26808MAGIC_CMD=$MAGIC_CMD
26809
26810# Must we lock files when doing compilation?
26811need_locks=$lt_need_locks
26812
26813# Manifest tool.
26814MANIFEST_TOOL=$lt_MANIFEST_TOOL
26815
26816# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26817DSYMUTIL=$lt_DSYMUTIL
26818
26819# Tool to change global to local symbols on Mac OS X.
26820NMEDIT=$lt_NMEDIT
26821
26822# Tool to manipulate fat objects and archives on Mac OS X.
26823LIPO=$lt_LIPO
26824
26825# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26826OTOOL=$lt_OTOOL
26827
26828# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26829OTOOL64=$lt_OTOOL64
26830
26831# Old archive suffix (normally "a").
26832libext=$libext
26833
26834# Shared library suffix (normally ".so").
26835shrext_cmds=$lt_shrext_cmds
26836
26837# The commands to extract the exported symbol list from a shared archive.
26838extract_expsyms_cmds=$lt_extract_expsyms_cmds
26839
26840# Variables whose values should be saved in libtool wrapper scripts and
26841# restored at link time.
26842variables_saved_for_relink=$lt_variables_saved_for_relink
26843
26844# Do we need the "lib" prefix for modules?
26845need_lib_prefix=$need_lib_prefix
26846
26847# Do we need a version for libraries?
26848need_version=$need_version
26849
26850# Library versioning type.
26851version_type=$version_type
26852
26853# Shared library runtime path variable.
26854runpath_var=$runpath_var
26855
26856# Shared library path variable.
26857shlibpath_var=$shlibpath_var
26858
26859# Is shlibpath searched before the hard-coded library search path?
26860shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26861
26862# Format of library name prefix.
26863libname_spec=$lt_libname_spec
26864
26865# List of archive names.  First name is the real one, the rest are links.
26866# The last name is the one that the linker finds with -lNAME
26867library_names_spec=$lt_library_names_spec
26868
26869# The coded name of the library, if different from the real name.
26870soname_spec=$lt_soname_spec
26871
26872# Permission mode override for installation of shared libraries.
26873install_override_mode=$lt_install_override_mode
26874
26875# Command to use after installation of a shared archive.
26876postinstall_cmds=$lt_postinstall_cmds
26877
26878# Command to use after uninstallation of a shared archive.
26879postuninstall_cmds=$lt_postuninstall_cmds
26880
26881# Commands used to finish a libtool library installation in a directory.
26882finish_cmds=$lt_finish_cmds
26883
26884# As "finish_cmds", except a single script fragment to be evaled but
26885# not shown.
26886finish_eval=$lt_finish_eval
26887
26888# Whether we should hardcode library paths into libraries.
26889hardcode_into_libs=$hardcode_into_libs
26890
26891# Compile-time system search path for libraries.
26892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26893
26894# Detected run-time system search path for libraries.
26895sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26896
26897# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26898configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26899
26900# Whether dlopen is supported.
26901dlopen_support=$enable_dlopen
26902
26903# Whether dlopen of programs is supported.
26904dlopen_self=$enable_dlopen_self
26905
26906# Whether dlopen of statically linked programs is supported.
26907dlopen_self_static=$enable_dlopen_self_static
26908
26909# Commands to strip libraries.
26910old_striplib=$lt_old_striplib
26911striplib=$lt_striplib
26912
26913
26914# The linker used to build libraries.
26915LD=$lt_LD
26916
26917# How to create reloadable object files.
26918reload_flag=$lt_reload_flag
26919reload_cmds=$lt_reload_cmds
26920
26921# Commands used to build an old-style archive.
26922old_archive_cmds=$lt_old_archive_cmds
26923
26924# A language specific compiler.
26925CC=$lt_compiler
26926
26927# Is the compiler the GNU compiler?
26928with_gcc=$GCC
26929
26930# Compiler flag to turn off builtin functions.
26931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26932
26933# Additional compiler flags for building library objects.
26934pic_flag=$lt_lt_prog_compiler_pic
26935
26936# How to pass a linker flag through the compiler.
26937wl=$lt_lt_prog_compiler_wl
26938
26939# Compiler flag to prevent dynamic linking.
26940link_static_flag=$lt_lt_prog_compiler_static
26941
26942# Does compiler simultaneously support -c and -o options?
26943compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26944
26945# Whether or not to add -lc for building shared libraries.
26946build_libtool_need_lc=$archive_cmds_need_lc
26947
26948# Whether or not to disallow shared libs when runtime libs are static.
26949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26950
26951# Compiler flag to allow reflexive dlopens.
26952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26953
26954# Compiler flag to generate shared objects directly from archives.
26955whole_archive_flag_spec=$lt_whole_archive_flag_spec
26956
26957# Whether the compiler copes with passing no objects directly.
26958compiler_needs_object=$lt_compiler_needs_object
26959
26960# Create an old-style archive from a shared archive.
26961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26962
26963# Create a temporary old-style archive to link instead of a shared archive.
26964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26965
26966# Commands used to build a shared archive.
26967archive_cmds=$lt_archive_cmds
26968archive_expsym_cmds=$lt_archive_expsym_cmds
26969
26970# Commands used to build a loadable module if different from building
26971# a shared archive.
26972module_cmds=$lt_module_cmds
26973module_expsym_cmds=$lt_module_expsym_cmds
26974
26975# Whether we are building with GNU ld or not.
26976with_gnu_ld=$lt_with_gnu_ld
26977
26978# Flag that allows shared libraries with undefined symbols to be built.
26979allow_undefined_flag=$lt_allow_undefined_flag
26980
26981# Flag that enforces no undefined symbols.
26982no_undefined_flag=$lt_no_undefined_flag
26983
26984# Flag to hardcode \$libdir into a binary during linking.
26985# This must work even if \$libdir does not exist
26986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26987
26988# Whether we need a single "-rpath" flag with a separated argument.
26989hardcode_libdir_separator=$lt_hardcode_libdir_separator
26990
26991# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26992# DIR into the resulting binary.
26993hardcode_direct=$hardcode_direct
26994
26995# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26996# DIR into the resulting binary and the resulting library dependency is
26997# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26998# library is relocated.
26999hardcode_direct_absolute=$hardcode_direct_absolute
27000
27001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27002# into the resulting binary.
27003hardcode_minus_L=$hardcode_minus_L
27004
27005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27006# into the resulting binary.
27007hardcode_shlibpath_var=$hardcode_shlibpath_var
27008
27009# Set to "yes" if building a shared library automatically hardcodes DIR
27010# into the library and all subsequent libraries and executables linked
27011# against it.
27012hardcode_automatic=$hardcode_automatic
27013
27014# Set to yes if linker adds runtime paths of dependent libraries
27015# to runtime path list.
27016inherit_rpath=$inherit_rpath
27017
27018# Whether libtool must link a program against all its dependency libraries.
27019link_all_deplibs=$link_all_deplibs
27020
27021# Set to "yes" if exported symbols are required.
27022always_export_symbols=$always_export_symbols
27023
27024# The commands to list exported symbols.
27025export_symbols_cmds=$lt_export_symbols_cmds
27026
27027# Symbols that should not be listed in the preloaded symbols.
27028exclude_expsyms=$lt_exclude_expsyms
27029
27030# Symbols that must always be exported.
27031include_expsyms=$lt_include_expsyms
27032
27033# Commands necessary for linking programs (against libraries) with templates.
27034prelink_cmds=$lt_prelink_cmds
27035
27036# Commands necessary for finishing linking programs.
27037postlink_cmds=$lt_postlink_cmds
27038
27039# Specify filename containing input files.
27040file_list_spec=$lt_file_list_spec
27041
27042# How to hardcode a shared library path into an executable.
27043hardcode_action=$hardcode_action
27044
27045# ### END LIBTOOL CONFIG
27046
27047_LT_EOF
27048
27049    cat <<'_LT_EOF' >> "$cfgfile"
27050
27051# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27052
27053# func_munge_path_list VARIABLE PATH
27054# -----------------------------------
27055# VARIABLE is name of variable containing _space_ separated list of
27056# directories to be munged by the contents of PATH, which is string
27057# having a format:
27058# "DIR[:DIR]:"
27059#       string "DIR[ DIR]" will be prepended to VARIABLE
27060# ":DIR[:DIR]"
27061#       string "DIR[ DIR]" will be appended to VARIABLE
27062# "DIRP[:DIRP]::[DIRA:]DIRA"
27063#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27064#       "DIRA[ DIRA]" will be appended to VARIABLE
27065# "DIR[:DIR]"
27066#       VARIABLE will be replaced by "DIR[ DIR]"
27067func_munge_path_list ()
27068{
27069    case x$2 in
27070    x)
27071        ;;
27072    *:)
27073        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27074        ;;
27075    x:*)
27076        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27077        ;;
27078    *::*)
27079        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27080        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27081        ;;
27082    *)
27083        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27084        ;;
27085    esac
27086}
27087
27088
27089# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
27090func_cc_basename ()
27091{
27092    for cc_temp in $*""; do
27093      case $cc_temp in
27094        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27095        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27096        \-*) ;;
27097        *) break;;
27098      esac
27099    done
27100    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27101}
27102
27103
27104# ### END FUNCTIONS SHARED WITH CONFIGURE
27105
27106_LT_EOF
27107
27108  case $host_os in
27109  aix3*)
27110    cat <<\_LT_EOF >> "$cfgfile"
27111# AIX sometimes has problems with the GCC collect2 program.  For some
27112# reason, if we set the COLLECT_NAMES environment variable, the problems
27113# vanish in a puff of smoke.
27114if test set != "${COLLECT_NAMES+set}"; then
27115  COLLECT_NAMES=
27116  export COLLECT_NAMES
27117fi
27118_LT_EOF
27119    ;;
27120  esac
27121
27122
27123ltmain=$ac_aux_dir/ltmain.sh
27124
27125
27126  # We use sed instead of cat because bash on DJGPP gets confused if
27127  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27128  # text mode, it properly converts lines to CR/LF.  This bash problem
27129  # is reportedly fixed, but why not run on old versions too?
27130  sed '$q' "$ltmain" >> "$cfgfile" \
27131     || (rm -f "$cfgfile"; exit 1)
27132
27133   mv -f "$cfgfile" "$ofile" ||
27134    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27135  chmod +x "$ofile"
27136
27137
27138    cat <<_LT_EOF >> "$ofile"
27139
27140# ### BEGIN LIBTOOL TAG CONFIG: RC
27141
27142# The linker used to build libraries.
27143LD=$lt_LD_RC
27144
27145# How to create reloadable object files.
27146reload_flag=$lt_reload_flag_RC
27147reload_cmds=$lt_reload_cmds_RC
27148
27149# Commands used to build an old-style archive.
27150old_archive_cmds=$lt_old_archive_cmds_RC
27151
27152# A language specific compiler.
27153CC=$lt_compiler_RC
27154
27155# Is the compiler the GNU compiler?
27156with_gcc=$GCC_RC
27157
27158# Compiler flag to turn off builtin functions.
27159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27160
27161# Additional compiler flags for building library objects.
27162pic_flag=$lt_lt_prog_compiler_pic_RC
27163
27164# How to pass a linker flag through the compiler.
27165wl=$lt_lt_prog_compiler_wl_RC
27166
27167# Compiler flag to prevent dynamic linking.
27168link_static_flag=$lt_lt_prog_compiler_static_RC
27169
27170# Does compiler simultaneously support -c and -o options?
27171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27172
27173# Whether or not to add -lc for building shared libraries.
27174build_libtool_need_lc=$archive_cmds_need_lc_RC
27175
27176# Whether or not to disallow shared libs when runtime libs are static.
27177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27178
27179# Compiler flag to allow reflexive dlopens.
27180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27181
27182# Compiler flag to generate shared objects directly from archives.
27183whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27184
27185# Whether the compiler copes with passing no objects directly.
27186compiler_needs_object=$lt_compiler_needs_object_RC
27187
27188# Create an old-style archive from a shared archive.
27189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27190
27191# Create a temporary old-style archive to link instead of a shared archive.
27192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27193
27194# Commands used to build a shared archive.
27195archive_cmds=$lt_archive_cmds_RC
27196archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27197
27198# Commands used to build a loadable module if different from building
27199# a shared archive.
27200module_cmds=$lt_module_cmds_RC
27201module_expsym_cmds=$lt_module_expsym_cmds_RC
27202
27203# Whether we are building with GNU ld or not.
27204with_gnu_ld=$lt_with_gnu_ld_RC
27205
27206# Flag that allows shared libraries with undefined symbols to be built.
27207allow_undefined_flag=$lt_allow_undefined_flag_RC
27208
27209# Flag that enforces no undefined symbols.
27210no_undefined_flag=$lt_no_undefined_flag_RC
27211
27212# Flag to hardcode \$libdir into a binary during linking.
27213# This must work even if \$libdir does not exist
27214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27215
27216# Whether we need a single "-rpath" flag with a separated argument.
27217hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27218
27219# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27220# DIR into the resulting binary.
27221hardcode_direct=$hardcode_direct_RC
27222
27223# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27224# DIR into the resulting binary and the resulting library dependency is
27225# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27226# library is relocated.
27227hardcode_direct_absolute=$hardcode_direct_absolute_RC
27228
27229# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27230# into the resulting binary.
27231hardcode_minus_L=$hardcode_minus_L_RC
27232
27233# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27234# into the resulting binary.
27235hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27236
27237# Set to "yes" if building a shared library automatically hardcodes DIR
27238# into the library and all subsequent libraries and executables linked
27239# against it.
27240hardcode_automatic=$hardcode_automatic_RC
27241
27242# Set to yes if linker adds runtime paths of dependent libraries
27243# to runtime path list.
27244inherit_rpath=$inherit_rpath_RC
27245
27246# Whether libtool must link a program against all its dependency libraries.
27247link_all_deplibs=$link_all_deplibs_RC
27248
27249# Set to "yes" if exported symbols are required.
27250always_export_symbols=$always_export_symbols_RC
27251
27252# The commands to list exported symbols.
27253export_symbols_cmds=$lt_export_symbols_cmds_RC
27254
27255# Symbols that should not be listed in the preloaded symbols.
27256exclude_expsyms=$lt_exclude_expsyms_RC
27257
27258# Symbols that must always be exported.
27259include_expsyms=$lt_include_expsyms_RC
27260
27261# Commands necessary for linking programs (against libraries) with templates.
27262prelink_cmds=$lt_prelink_cmds_RC
27263
27264# Commands necessary for finishing linking programs.
27265postlink_cmds=$lt_postlink_cmds_RC
27266
27267# Specify filename containing input files.
27268file_list_spec=$lt_file_list_spec_RC
27269
27270# How to hardcode a shared library path into an executable.
27271hardcode_action=$hardcode_action_RC
27272
27273# ### END LIBTOOL TAG CONFIG: RC
27274_LT_EOF
27275
27276 ;;
27277    "po-directories":C)
27278    for ac_file in $CONFIG_FILES; do
27279      # Support "outfile[:infile[:infile...]]"
27280      case "$ac_file" in
27281        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27282      esac
27283      # PO directories have a Makefile.in generated from Makefile.in.in.
27284      case "$ac_file" in */Makefile.in)
27285        # Adjust a relative srcdir.
27286        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27287        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27288        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27289        # In autoconf-2.13 it is called $ac_given_srcdir.
27290        # In autoconf-2.50 it is called $srcdir.
27291        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27292        case "$ac_given_srcdir" in
27293          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27294          /*) top_srcdir="$ac_given_srcdir" ;;
27295          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
27296        esac
27297        # Treat a directory as a PO directory if and only if it has a
27298        # POTFILES.in file. This allows packages to have multiple PO
27299        # directories under different names or in different locations.
27300        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27301          rm -f "$ac_dir/POTFILES"
27302          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27303          gt_tab=`printf '\t'`
27304          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27305          POMAKEFILEDEPS="POTFILES.in"
27306          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27307          # on $ac_dir but don't depend on user-specified configuration
27308          # parameters.
27309          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27310            # The LINGUAS file contains the set of available languages.
27311            if test -n "$OBSOLETE_ALL_LINGUAS"; then
27312              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27313            fi
27314            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27315            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27316          else
27317            # The set of available languages was given in configure.in.
27318            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
27319          fi
27320          # Compute POFILES
27321          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27322          # Compute UPDATEPOFILES
27323          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27324          # Compute DUMMYPOFILES
27325          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27326          # Compute GMOFILES
27327          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27328          case "$ac_given_srcdir" in
27329            .) srcdirpre= ;;
27330            *) srcdirpre='$(srcdir)/' ;;
27331          esac
27332          POFILES=
27333          UPDATEPOFILES=
27334          DUMMYPOFILES=
27335          GMOFILES=
27336          for lang in $ALL_LINGUAS; do
27337            POFILES="$POFILES $srcdirpre$lang.po"
27338            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27339            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27340            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27341          done
27342          # CATALOGS depends on both $ac_dir and the user's LINGUAS
27343          # environment variable.
27344          INST_LINGUAS=
27345          if test -n "$ALL_LINGUAS"; then
27346            for presentlang in $ALL_LINGUAS; do
27347              useit=no
27348              if test "%UNSET%" != "$LINGUAS"; then
27349                desiredlanguages="$LINGUAS"
27350              else
27351                desiredlanguages="$ALL_LINGUAS"
27352              fi
27353              for desiredlang in $desiredlanguages; do
27354                # Use the presentlang catalog if desiredlang is
27355                #   a. equal to presentlang, or
27356                #   b. a variant of presentlang (because in this case,
27357                #      presentlang can be used as a fallback for messages
27358                #      which are not translated in the desiredlang catalog).
27359                case "$desiredlang" in
27360                  "$presentlang"*) useit=yes;;
27361                esac
27362              done
27363              if test $useit = yes; then
27364                INST_LINGUAS="$INST_LINGUAS $presentlang"
27365              fi
27366            done
27367          fi
27368          CATALOGS=
27369          if test -n "$INST_LINGUAS"; then
27370            for lang in $INST_LINGUAS; do
27371              CATALOGS="$CATALOGS $lang.gmo"
27372            done
27373          fi
27374          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27375          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27376          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27377            if test -f "$f"; then
27378              case "$f" in
27379                *.orig | *.bak | *~) ;;
27380                *) cat "$f" >> "$ac_dir/Makefile" ;;
27381              esac
27382            fi
27383          done
27384        fi
27385        ;;
27386      esac
27387    done ;;
27388
27389  esac
27390done # for ac_tag
27391
27392
27393as_fn_exit 0
27394_ACEOF
27395ac_clean_files=$ac_clean_files_save
27396
27397test $ac_write_fail = 0 ||
27398  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27399
27400
27401# configure is writing to config.log, and then calls config.status.
27402# config.status does its own redirection, appending to config.log.
27403# Unfortunately, on DOS this fails, as config.log is still kept open
27404# by configure, so config.status won't be able to write to it; its
27405# output is simply discarded.  So we exec the FD to /dev/null,
27406# effectively closing config.log, so it can be properly (re)opened and
27407# appended to by config.status.  When coming back to configure, we
27408# need to make the FD available again.
27409if test "$no_create" != yes; then
27410  ac_cs_success=:
27411  ac_config_status_args=
27412  test "$silent" = yes &&
27413    ac_config_status_args="$ac_config_status_args --quiet"
27414  exec 5>/dev/null
27415  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27416  exec 5>>config.log
27417  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27418  # would make configure fail if this is the last instruction.
27419  $ac_cs_success || as_fn_exit 1
27420fi
27421
27422#
27423# CONFIG_SUBDIRS section.
27424#
27425if test "$no_recursion" != yes; then
27426
27427  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27428  # so they do not pile up.
27429  ac_sub_configure_args=
27430  ac_prev=
27431  eval "set x $ac_configure_args"
27432  shift
27433  for ac_arg
27434  do
27435    if test -n "$ac_prev"; then
27436      ac_prev=
27437      continue
27438    fi
27439    case $ac_arg in
27440    -cache-file | --cache-file | --cache-fil | --cache-fi \
27441    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27442      ac_prev=cache_file ;;
27443    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27444    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27445    | --c=*)
27446      ;;
27447    --config-cache | -C)
27448      ;;
27449    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27450      ac_prev=srcdir ;;
27451    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27452      ;;
27453    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27454      ac_prev=prefix ;;
27455    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27456      ;;
27457    --disable-option-checking)
27458      ;;
27459    *)
27460      case $ac_arg in
27461      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27462      esac
27463      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27464    esac
27465  done
27466
27467  # Always prepend --prefix to ensure using the same prefix
27468  # in subdir configurations.
27469  ac_arg="--prefix=$prefix"
27470  case $ac_arg in
27471  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27472  esac
27473  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27474
27475  # Pass --silent
27476  if test "$silent" = yes; then
27477    ac_sub_configure_args="--silent $ac_sub_configure_args"
27478  fi
27479
27480  # Always prepend --disable-option-checking to silence warnings, since
27481  # different subdirs can have different --enable and --with options.
27482  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27483
27484  ac_popdir=`pwd`
27485  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27486
27487    # Do not complain, so a configure script can configure whichever
27488    # parts of a large source tree are present.
27489    test -d "$srcdir/$ac_dir" || continue
27490
27491    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27492    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27493    $as_echo "$ac_msg" >&6
27494    as_dir="$ac_dir"; as_fn_mkdir_p
27495    ac_builddir=.
27496
27497case "$ac_dir" in
27498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27499*)
27500  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27501  # A ".." for each directory in $ac_dir_suffix.
27502  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27503  case $ac_top_builddir_sub in
27504  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27505  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27506  esac ;;
27507esac
27508ac_abs_top_builddir=$ac_pwd
27509ac_abs_builddir=$ac_pwd$ac_dir_suffix
27510# for backward compatibility:
27511ac_top_builddir=$ac_top_build_prefix
27512
27513case $srcdir in
27514  .)  # We are building in place.
27515    ac_srcdir=.
27516    ac_top_srcdir=$ac_top_builddir_sub
27517    ac_abs_top_srcdir=$ac_pwd ;;
27518  [\\/]* | ?:[\\/]* )  # Absolute name.
27519    ac_srcdir=$srcdir$ac_dir_suffix;
27520    ac_top_srcdir=$srcdir
27521    ac_abs_top_srcdir=$srcdir ;;
27522  *) # Relative name.
27523    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27524    ac_top_srcdir=$ac_top_build_prefix$srcdir
27525    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27526esac
27527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27528
27529
27530    cd "$ac_dir"
27531
27532    # Check for guested configure; otherwise get Cygnus style configure.
27533    if test -f "$ac_srcdir/configure.gnu"; then
27534      ac_sub_configure=$ac_srcdir/configure.gnu
27535    elif test -f "$ac_srcdir/configure"; then
27536      ac_sub_configure=$ac_srcdir/configure
27537    elif test -f "$ac_srcdir/configure.in"; then
27538      # This should be Cygnus configure.
27539      ac_sub_configure=$ac_aux_dir/configure
27540    else
27541      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27542$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27543      ac_sub_configure=
27544    fi
27545
27546    # The recursion is here.
27547    if test -n "$ac_sub_configure"; then
27548      # Make the cache file name correct relative to the subdirectory.
27549      case $cache_file in
27550      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27551      *) # Relative name.
27552	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27553      esac
27554
27555      { $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
27556$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27557      # The eval makes quoting arguments work.
27558      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27559	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27560	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27561    fi
27562
27563    cd "$ac_popdir"
27564  done
27565fi
27566if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27568$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27569fi
27570
27571