xref: /netbsd-src/external/gpl3/binutils/dist/gold/configure (revision dc885bbdd67f8b48e2ba6ab723946b314c387ea0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gold 0.1.
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  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='gold'
579PACKAGE_TARNAME='gold'
580PACKAGE_VERSION='0.1'
581PACKAGE_STRING='gold 0.1'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="gold.cc"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622gt_needs=
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626MAINT
627MAINTAINER_MODE_FALSE
628MAINTAINER_MODE_TRUE
629HAVE_CXX11
630DLOPEN_LIBS
631CXXCPP
632HAVE_NO_USE_LINKER_PLUGIN_FALSE
633HAVE_NO_USE_LINKER_PLUGIN_TRUE
634HAVE_PUBNAMES_FALSE
635HAVE_PUBNAMES_TRUE
636JANSSON_LIBS
637JANSSON_CFLAGS
638THREADS_FALSE
639THREADS_TRUE
640PTHREAD_CFLAGS
641PTHREAD_LIBS
642PTHREAD_CC
643ax_pthread_config
644SED
645HAVE_ZSTD_FALSE
646HAVE_ZSTD_TRUE
647ZSTD_LIBS
648ZSTD_CFLAGS
649PKG_CONFIG_LIBDIR
650PKG_CONFIG_PATH
651PKG_CONFIG
652zlibinc
653zlibdir
654LIBOBJS
655LFS_CFLAGS
656GOLD_LDADD
657GOLD_LDFLAGS
658WARN_CXXFLAGS
659WARN_WRITE_STRINGS
660NO_WERROR
661WARN_CFLAGS_FOR_BUILD
662WARN_CFLAGS
663IFUNC_STATIC_FALSE
664IFUNC_STATIC_TRUE
665IFUNC_FALSE
666IFUNC_TRUE
667RANDOM_SEED_CFLAGS
668TLS_DESCRIPTORS_FALSE
669TLS_DESCRIPTORS_TRUE
670TLS_GNU2_DIALECT_FALSE
671TLS_GNU2_DIALECT_TRUE
672OMP_SUPPORT_FALSE
673OMP_SUPPORT_TRUE
674STATIC_TLS_FALSE
675STATIC_TLS_TRUE
676TLS_FALSE
677TLS_TRUE
678MERGE_CONSTANTS_FLAG
679CFLAGS_CF_PROTECTION_FALSE
680CFLAGS_CF_PROTECTION_TRUE
681GCC9_FALSE
682GCC9_TRUE
683MCMODEL_MEDIUM_FALSE
684MCMODEL_MEDIUM_TRUE
685FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
686FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
687HAVE_STATIC_FALSE
688HAVE_STATIC_TRUE
689NATIVE_OR_CROSS_LINKER_FALSE
690NATIVE_OR_CROSS_LINKER_TRUE
691GCC_FALSE
692GCC_TRUE
693NATIVE_LINKER_FALSE
694NATIVE_LINKER_TRUE
695CATOBJEXT
696GENCAT
697INSTOBJEXT
698DATADIRNAME
699CATALOGS
700INCINTL
701LIBINTL_DEP
702POSUB
703LTLIBINTL
704LIBINTL
705INTLLIBS
706LTLIBICONV
707LIBICONV
708INTL_MACOSX_LIBS
709MSGMERGE
710XGETTEXT
711GMSGFMT
712MSGFMT
713USE_NLS
714MKINSTALLDIRS
715LN_S
716RANLIB
717YFLAGS
718YACC
719am__fastdepCXX_FALSE
720am__fastdepCXX_TRUE
721CXXDEPMODE
722ac_ct_CXX
723CXXFLAGS
724CXX
725NM
726TARGETOBJS
727DEFAULT_TARGET
728DEFAULT_TARGET_MIPS_FALSE
729DEFAULT_TARGET_MIPS_TRUE
730DEFAULT_TARGET_TILEGX_FALSE
731DEFAULT_TARGET_TILEGX_TRUE
732DEFAULT_TARGET_X86_64_OR_X32_FALSE
733DEFAULT_TARGET_X86_64_OR_X32_TRUE
734DEFAULT_TARGET_X32_FALSE
735DEFAULT_TARGET_X32_TRUE
736DEFAULT_TARGET_X86_64_FALSE
737DEFAULT_TARGET_X86_64_TRUE
738DEFAULT_TARGET_S390_FALSE
739DEFAULT_TARGET_S390_TRUE
740DEFAULT_TARGET_SPARC_FALSE
741DEFAULT_TARGET_SPARC_TRUE
742DEFAULT_TARGET_POWERPC_FALSE
743DEFAULT_TARGET_POWERPC_TRUE
744DEFAULT_TARGET_I386_FALSE
745DEFAULT_TARGET_I386_TRUE
746DEFAULT_TARGET_ARM_FALSE
747DEFAULT_TARGET_ARM_TRUE
748DEFAULT_TARGET_AARCH64_FALSE
749DEFAULT_TARGET_AARCH64_TRUE
750PLUGINS_FALSE
751PLUGINS_TRUE
752installed_linker
753install_as_default
754EGREP
755GREP
756CPP
757am__fastdepCC_FALSE
758am__fastdepCC_TRUE
759CCDEPMODE
760am__nodep
761AMDEPBACKSLASH
762AMDEP_FALSE
763AMDEP_TRUE
764am__quote
765am__include
766DEPDIR
767OBJEXT
768EXEEXT
769ac_ct_CC
770CPPFLAGS
771LDFLAGS
772CFLAGS
773CC
774AM_BACKSLASH
775AM_DEFAULT_VERBOSITY
776AM_DEFAULT_V
777AM_V
778am__untar
779am__tar
780AMTAR
781am__leading_dot
782SET_MAKE
783AWK
784mkdir_p
785MKDIR_P
786INSTALL_STRIP_PROGRAM
787STRIP
788install_sh
789MAKEINFO
790AUTOHEADER
791AUTOMAKE
792AUTOCONF
793ACLOCAL
794VERSION
795PACKAGE
796CYGPATH_W
797am__isrc
798INSTALL_DATA
799INSTALL_SCRIPT
800INSTALL_PROGRAM
801target_os
802target_vendor
803target_cpu
804target
805host_os
806host_vendor
807host_cpu
808host
809build_os
810build_vendor
811build_cpu
812build
813target_alias
814host_alias
815build_alias
816LIBS
817ECHO_T
818ECHO_N
819ECHO_C
820DEFS
821mandir
822localedir
823libdir
824psdir
825pdfdir
826dvidir
827htmldir
828infodir
829docdir
830oldincludedir
831includedir
832localstatedir
833sharedstatedir
834sysconfdir
835datadir
836datarootdir
837libexecdir
838sbindir
839bindir
840program_transform_name
841prefix
842exec_prefix
843PACKAGE_URL
844PACKAGE_BUGREPORT
845PACKAGE_STRING
846PACKAGE_VERSION
847PACKAGE_TARNAME
848PACKAGE_NAME
849PATH_SEPARATOR
850SHELL'
851ac_subst_files=''
852ac_user_opts='
853enable_option_checking
854enable_silent_rules
855enable_dependency_tracking
856with_sysroot
857enable_gold
858enable_plugins
859enable_relro
860enable_targets
861enable_default_hash_style
862with_lib_path
863enable_nls
864with_gnu_ld
865enable_rpath
866with_libiconv_prefix
867with_libiconv_type
868with_libintl_prefix
869with_libintl_type
870enable_werror
871enable_build_warnings
872with_gold_ldflags
873with_gold_ldadd
874with_system_zlib
875with_zstd
876enable_threads
877enable_jansson
878enable_maintainer_mode
879'
880      ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP
889CXX
890CXXFLAGS
891CCC
892YACC
893YFLAGS
894PKG_CONFIG
895PKG_CONFIG_PATH
896PKG_CONFIG_LIBDIR
897ZSTD_CFLAGS
898ZSTD_LIBS
899JANSSON_CFLAGS
900JANSSON_LIBS
901CXXCPP'
902
903
904# Initialize some variables set by options.
905ac_init_help=
906ac_init_version=false
907ac_unrecognized_opts=
908ac_unrecognized_sep=
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
931# (The list follows the same order as the GNU Coding Standards.)
932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
940includedir='${prefix}/include'
941oldincludedir='/usr/include'
942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943infodir='${datarootdir}/info'
944htmldir='${docdir}'
945dvidir='${docdir}'
946pdfdir='${docdir}'
947psdir='${docdir}'
948libdir='${exec_prefix}/lib'
949localedir='${datarootdir}/locale'
950mandir='${datarootdir}/man'
951
952ac_prev=
953ac_dashdash=
954for ac_option
955do
956  # If the previous option needs an argument, assign it.
957  if test -n "$ac_prev"; then
958    eval $ac_prev=\$ac_option
959    ac_prev=
960    continue
961  fi
962
963  case $ac_option in
964  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965  *=)   ac_optarg= ;;
966  *)    ac_optarg=yes ;;
967  esac
968
969  # Accept the important Cygnus configure options, so we can diagnose typos.
970
971  case $ac_dashdash$ac_option in
972  --)
973    ac_dashdash=yes ;;
974
975  -bindir | --bindir | --bindi | --bind | --bin | --bi)
976    ac_prev=bindir ;;
977  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978    bindir=$ac_optarg ;;
979
980  -build | --build | --buil | --bui | --bu)
981    ac_prev=build_alias ;;
982  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983    build_alias=$ac_optarg ;;
984
985  -cache-file | --cache-file | --cache-fil | --cache-fi \
986  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987    ac_prev=cache_file ;;
988  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990    cache_file=$ac_optarg ;;
991
992  --config-cache | -C)
993    cache_file=config.cache ;;
994
995  -datadir | --datadir | --datadi | --datad)
996    ac_prev=datadir ;;
997  -datadir=* | --datadir=* | --datadi=* | --datad=*)
998    datadir=$ac_optarg ;;
999
1000  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001  | --dataroo | --dataro | --datar)
1002    ac_prev=datarootdir ;;
1003  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005    datarootdir=$ac_optarg ;;
1006
1007  -disable-* | --disable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=no ;;
1022
1023  -docdir | --docdir | --docdi | --doc | --do)
1024    ac_prev=docdir ;;
1025  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026    docdir=$ac_optarg ;;
1027
1028  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029    ac_prev=dvidir ;;
1030  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031    dvidir=$ac_optarg ;;
1032
1033  -enable-* | --enable-*)
1034    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035    # Reject names that are not valid shell variable names.
1036    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037      as_fn_error $? "invalid feature name: $ac_useropt"
1038    ac_useropt_orig=$ac_useropt
1039    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040    case $ac_user_opts in
1041      *"
1042"enable_$ac_useropt"
1043"*) ;;
1044      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045	 ac_unrecognized_sep=', ';;
1046    esac
1047    eval enable_$ac_useropt=\$ac_optarg ;;
1048
1049  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051  | --exec | --exe | --ex)
1052    ac_prev=exec_prefix ;;
1053  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055  | --exec=* | --exe=* | --ex=*)
1056    exec_prefix=$ac_optarg ;;
1057
1058  -gas | --gas | --ga | --g)
1059    # Obsolete; use --with-gas.
1060    with_gas=yes ;;
1061
1062  -help | --help | --hel | --he | -h)
1063    ac_init_help=long ;;
1064  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065    ac_init_help=recursive ;;
1066  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067    ac_init_help=short ;;
1068
1069  -host | --host | --hos | --ho)
1070    ac_prev=host_alias ;;
1071  -host=* | --host=* | --hos=* | --ho=*)
1072    host_alias=$ac_optarg ;;
1073
1074  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075    ac_prev=htmldir ;;
1076  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077  | --ht=*)
1078    htmldir=$ac_optarg ;;
1079
1080  -includedir | --includedir | --includedi | --included | --include \
1081  | --includ | --inclu | --incl | --inc)
1082    ac_prev=includedir ;;
1083  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084  | --includ=* | --inclu=* | --incl=* | --inc=*)
1085    includedir=$ac_optarg ;;
1086
1087  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088    ac_prev=infodir ;;
1089  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090    infodir=$ac_optarg ;;
1091
1092  -libdir | --libdir | --libdi | --libd)
1093    ac_prev=libdir ;;
1094  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095    libdir=$ac_optarg ;;
1096
1097  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098  | --libexe | --libex | --libe)
1099    ac_prev=libexecdir ;;
1100  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101  | --libexe=* | --libex=* | --libe=*)
1102    libexecdir=$ac_optarg ;;
1103
1104  -localedir | --localedir | --localedi | --localed | --locale)
1105    ac_prev=localedir ;;
1106  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107    localedir=$ac_optarg ;;
1108
1109  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110  | --localstate | --localstat | --localsta | --localst | --locals)
1111    ac_prev=localstatedir ;;
1112  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114    localstatedir=$ac_optarg ;;
1115
1116  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117    ac_prev=mandir ;;
1118  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119    mandir=$ac_optarg ;;
1120
1121  -nfp | --nfp | --nf)
1122    # Obsolete; use --without-fp.
1123    with_fp=no ;;
1124
1125  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126  | --no-cr | --no-c | -n)
1127    no_create=yes ;;
1128
1129  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131    no_recursion=yes ;;
1132
1133  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135  | --oldin | --oldi | --old | --ol | --o)
1136    ac_prev=oldincludedir ;;
1137  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140    oldincludedir=$ac_optarg ;;
1141
1142  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143    ac_prev=prefix ;;
1144  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145    prefix=$ac_optarg ;;
1146
1147  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148  | --program-pre | --program-pr | --program-p)
1149    ac_prev=program_prefix ;;
1150  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152    program_prefix=$ac_optarg ;;
1153
1154  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155  | --program-suf | --program-su | --program-s)
1156    ac_prev=program_suffix ;;
1157  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159    program_suffix=$ac_optarg ;;
1160
1161  -program-transform-name | --program-transform-name \
1162  | --program-transform-nam | --program-transform-na \
1163  | --program-transform-n | --program-transform- \
1164  | --program-transform | --program-transfor \
1165  | --program-transfo | --program-transf \
1166  | --program-trans | --program-tran \
1167  | --progr-tra | --program-tr | --program-t)
1168    ac_prev=program_transform_name ;;
1169  -program-transform-name=* | --program-transform-name=* \
1170  | --program-transform-nam=* | --program-transform-na=* \
1171  | --program-transform-n=* | --program-transform-=* \
1172  | --program-transform=* | --program-transfor=* \
1173  | --program-transfo=* | --program-transf=* \
1174  | --program-trans=* | --program-tran=* \
1175  | --progr-tra=* | --program-tr=* | --program-t=*)
1176    program_transform_name=$ac_optarg ;;
1177
1178  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179    ac_prev=pdfdir ;;
1180  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181    pdfdir=$ac_optarg ;;
1182
1183  -psdir | --psdir | --psdi | --psd | --ps)
1184    ac_prev=psdir ;;
1185  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186    psdir=$ac_optarg ;;
1187
1188  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189  | -silent | --silent | --silen | --sile | --sil)
1190    silent=yes ;;
1191
1192  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193    ac_prev=sbindir ;;
1194  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195  | --sbi=* | --sb=*)
1196    sbindir=$ac_optarg ;;
1197
1198  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200  | --sharedst | --shareds | --shared | --share | --shar \
1201  | --sha | --sh)
1202    ac_prev=sharedstatedir ;;
1203  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206  | --sha=* | --sh=*)
1207    sharedstatedir=$ac_optarg ;;
1208
1209  -site | --site | --sit)
1210    ac_prev=site ;;
1211  -site=* | --site=* | --sit=*)
1212    site=$ac_optarg ;;
1213
1214  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215    ac_prev=srcdir ;;
1216  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217    srcdir=$ac_optarg ;;
1218
1219  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220  | --syscon | --sysco | --sysc | --sys | --sy)
1221    ac_prev=sysconfdir ;;
1222  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224    sysconfdir=$ac_optarg ;;
1225
1226  -target | --target | --targe | --targ | --tar | --ta | --t)
1227    ac_prev=target_alias ;;
1228  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229    target_alias=$ac_optarg ;;
1230
1231  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232    verbose=yes ;;
1233
1234  -version | --version | --versio | --versi | --vers | -V)
1235    ac_init_version=: ;;
1236
1237  -with-* | --with-*)
1238    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239    # Reject names that are not valid shell variable names.
1240    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241      as_fn_error $? "invalid package name: $ac_useropt"
1242    ac_useropt_orig=$ac_useropt
1243    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244    case $ac_user_opts in
1245      *"
1246"with_$ac_useropt"
1247"*) ;;
1248      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249	 ac_unrecognized_sep=', ';;
1250    esac
1251    eval with_$ac_useropt=\$ac_optarg ;;
1252
1253  -without-* | --without-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error $? "invalid package name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"with_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265	 ac_unrecognized_sep=', ';;
1266    esac
1267    eval with_$ac_useropt=no ;;
1268
1269  --x)
1270    # Obsolete; use --with-x.
1271    with_x=yes ;;
1272
1273  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274  | --x-incl | --x-inc | --x-in | --x-i)
1275    ac_prev=x_includes ;;
1276  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278    x_includes=$ac_optarg ;;
1279
1280  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282    ac_prev=x_libraries ;;
1283  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285    x_libraries=$ac_optarg ;;
1286
1287  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288Try \`$0 --help' for more information"
1289    ;;
1290
1291  *=*)
1292    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293    # Reject names that are not valid shell variable names.
1294    case $ac_envvar in #(
1295      '' | [0-9]* | *[!_$as_cr_alnum]* )
1296      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297    esac
1298    eval $ac_envvar=\$ac_optarg
1299    export $ac_envvar ;;
1300
1301  *)
1302    # FIXME: should be removed in autoconf 3.0.
1303    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307    ;;
1308
1309  esac
1310done
1311
1312if test -n "$ac_prev"; then
1313  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314  as_fn_error $? "missing argument to $ac_option"
1315fi
1316
1317if test -n "$ac_unrecognized_opts"; then
1318  case $enable_option_checking in
1319    no) ;;
1320    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322  esac
1323fi
1324
1325# Check all directory arguments for consistency.
1326for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327		datadir sysconfdir sharedstatedir localstatedir includedir \
1328		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329		libdir localedir mandir
1330do
1331  eval ac_val=\$$ac_var
1332  # Remove trailing slashes.
1333  case $ac_val in
1334    */ )
1335      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336      eval $ac_var=\$ac_val;;
1337  esac
1338  # Be sure to have absolute directory names.
1339  case $ac_val in
1340    [\\/$]* | ?:[\\/]* )  continue;;
1341    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342  esac
1343  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344done
1345
1346# There might be people who depend on the old broken behavior: `$host'
1347# used to hold the argument of --host etc.
1348# FIXME: To remove some day.
1349build=$build_alias
1350host=$host_alias
1351target=$target_alias
1352
1353# FIXME: To remove some day.
1354if test "x$host_alias" != x; then
1355  if test "x$build_alias" = x; then
1356    cross_compiling=maybe
1357  elif test "x$build_alias" != "x$host_alias"; then
1358    cross_compiling=yes
1359  fi
1360fi
1361
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
1366
1367
1368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371  as_fn_error $? "working directory cannot be determined"
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373  as_fn_error $? "pwd does not report name of working directory"
1374
1375
1376# Find the source files, if location was not specified.
1377if test -z "$srcdir"; then
1378  ac_srcdir_defaulted=yes
1379  # Try the directory containing this script, then the parent directory.
1380  ac_confdir=`$as_dirname -- "$as_myself" ||
1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382	 X"$as_myself" : 'X\(//\)[^/]' \| \
1383	 X"$as_myself" : 'X\(//\)$' \| \
1384	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385$as_echo X"$as_myself" |
1386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\/\)[^/].*/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\/\)$/{
1395	    s//\1/
1396	    q
1397	  }
1398	  /^X\(\/\).*/{
1399	    s//\1/
1400	    q
1401	  }
1402	  s/.*/./; q'`
1403  srcdir=$ac_confdir
1404  if test ! -r "$srcdir/$ac_unique_file"; then
1405    srcdir=..
1406  fi
1407else
1408  ac_srcdir_defaulted=no
1409fi
1410if test ! -r "$srcdir/$ac_unique_file"; then
1411  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413fi
1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415ac_abs_confdir=`(
1416	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417	pwd)`
1418# When building in place, set srcdir=.
1419if test "$ac_abs_confdir" = "$ac_pwd"; then
1420  srcdir=.
1421fi
1422# Remove unnecessary trailing slashes from srcdir.
1423# Double slashes in file names in object file debugging info
1424# mess up M-x gdb in Emacs.
1425case $srcdir in
1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427esac
1428for ac_var in $ac_precious_vars; do
1429  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430  eval ac_env_${ac_var}_value=\$${ac_var}
1431  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433done
1434
1435#
1436# Report the --help message.
1437#
1438if test "$ac_init_help" = "long"; then
1439  # Omit some internal or obsolete options to make the list less imposing.
1440  # This message is too long to be a string in the A/UX 3.1 sh.
1441  cat <<_ACEOF
1442\`configure' configures gold 0.1 to adapt to many kinds of systems.
1443
1444Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447VAR=VALUE.  See below for descriptions of some of the useful variables.
1448
1449Defaults for the options are specified in brackets.
1450
1451Configuration:
1452  -h, --help              display this help and exit
1453      --help=short        display options specific to this package
1454      --help=recursive    display the short help of all the included packages
1455  -V, --version           display version information and exit
1456  -q, --quiet, --silent   do not print \`checking ...' messages
1457      --cache-file=FILE   cache test results in FILE [disabled]
1458  -C, --config-cache      alias for \`--cache-file=config.cache'
1459  -n, --no-create         do not create output files
1460      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1461
1462Installation directories:
1463  --prefix=PREFIX         install architecture-independent files in PREFIX
1464                          [$ac_default_prefix]
1465  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1466                          [PREFIX]
1467
1468By default, \`make install' will install all the files in
1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1470an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471for instance \`--prefix=\$HOME'.
1472
1473For better control, use the options below.
1474
1475Fine tuning of the installation directories:
1476  --bindir=DIR            user executables [EPREFIX/bin]
1477  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1478  --libexecdir=DIR        program executables [EPREFIX/libexec]
1479  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1480  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1481  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1482  --libdir=DIR            object code libraries [EPREFIX/lib]
1483  --includedir=DIR        C header files [PREFIX/include]
1484  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1485  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1486  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1487  --infodir=DIR           info documentation [DATAROOTDIR/info]
1488  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1489  --mandir=DIR            man documentation [DATAROOTDIR/man]
1490  --docdir=DIR            documentation root [DATAROOTDIR/doc/gold]
1491  --htmldir=DIR           html documentation [DOCDIR]
1492  --dvidir=DIR            dvi documentation [DOCDIR]
1493  --pdfdir=DIR            pdf documentation [DOCDIR]
1494  --psdir=DIR             ps documentation [DOCDIR]
1495_ACEOF
1496
1497  cat <<\_ACEOF
1498
1499Program names:
1500  --program-prefix=PREFIX            prepend PREFIX to installed program names
1501  --program-suffix=SUFFIX            append SUFFIX to installed program names
1502  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1503
1504System types:
1505  --build=BUILD     configure for building on BUILD [guessed]
1506  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507  --target=TARGET   configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512  case $ac_init_help in
1513     short | recursive ) echo "Configuration of gold 0.1:";;
1514   esac
1515  cat <<\_ACEOF
1516
1517Optional Features:
1518  --disable-option-checking  ignore unrecognized --enable/--with options
1519  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521  --enable-silent-rules   less verbose build output (undo: "make V=1")
1522  --disable-silent-rules  verbose build output (undo: "make V=0")
1523  --enable-dependency-tracking
1524                          do not reject slow dependency extractors
1525  --disable-dependency-tracking
1526                          speeds up one-time build
1527  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1528  --enable-plugins        Enable support for plugins
1529  --enable-relro          enable -z relro in ELF linker by default
1530  --enable-targets        alternative target configurations
1531  --enable-default-hash-style={sysv,gnu,both}
1532                          use this default hash style
1533  --disable-nls           do not use Native Language Support
1534  --disable-rpath         do not hardcode runtime library paths
1535  --enable-werror         treat compile warnings as errors
1536  --enable-build-warnings enable build-time compiler warnings
1537  --enable-threads[=ARG]  multi-threaded linking [ARG={auto,yes,no}]
1538  --enable-jansson        enable jansson [default=no]
1539  --enable-maintainer-mode
1540                          enable make rules and dependencies not useful (and
1541                          sometimes confusing) to the casual installer
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546  --with-sysroot=DIR    search for usr/lib et al within DIR
1547  --with-lib-path=dir1:dir2...  set default LIB_PATH
1548  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1549  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1550  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1551  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1552  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1553  --without-libintl-prefix     don't search for libintl in includedir and libdir
1554  --with-libintl-type=TYPE     type of library to search for (auto/static/shared)
1555  --with-gold-ldflags=FLAGS  additional link flags for gold
1556  --with-gold-ldadd=LIBS     additional libraries for gold
1557  --with-system-zlib      use installed libz
1558  --with-zstd             support zstd compressed debug sections
1559                          (default=auto)
1560
1561Some influential environment variables:
1562  CC          C compiler command
1563  CFLAGS      C compiler flags
1564  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565              nonstandard directory <lib dir>
1566  LIBS        libraries to pass to the linker, e.g. -l<library>
1567  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568              you have headers in a nonstandard directory <include dir>
1569  CPP         C preprocessor
1570  CXX         C++ compiler command
1571  CXXFLAGS    C++ compiler flags
1572  YACC        The `Yet Another Compiler Compiler' implementation to use.
1573              Defaults to the first program found out of: `bison -y', `byacc',
1574              `yacc'.
1575  YFLAGS      The list of arguments that will be passed by default to $YACC.
1576              This script will default YFLAGS to the empty string to avoid a
1577              default value of `-d' given by some make applications.
1578  PKG_CONFIG  path to pkg-config utility
1579  PKG_CONFIG_PATH
1580              directories to add to pkg-config's search path
1581  PKG_CONFIG_LIBDIR
1582              path overriding pkg-config's built-in search path
1583  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1584  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1585  JANSSON_CFLAGS
1586              C compiler flags for JANSSON, overriding pkg-config
1587  JANSSON_LIBS
1588              linker flags for JANSSON, overriding pkg-config
1589  CXXCPP      C++ preprocessor
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to the package provider.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" ||
1603      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604      continue
1605    ac_builddir=.
1606
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611  # A ".." for each directory in $ac_dir_suffix.
1612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613  case $ac_top_builddir_sub in
1614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616  esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
1622
1623case $srcdir in
1624  .)  # We are building in place.
1625    ac_srcdir=.
1626    ac_top_srcdir=$ac_top_builddir_sub
1627    ac_abs_top_srcdir=$ac_pwd ;;
1628  [\\/]* | ?:[\\/]* )  # Absolute name.
1629    ac_srcdir=$srcdir$ac_dir_suffix;
1630    ac_top_srcdir=$srcdir
1631    ac_abs_top_srcdir=$srcdir ;;
1632  *) # Relative name.
1633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636esac
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639    cd "$ac_dir" || { ac_status=$?; continue; }
1640    # Check for guested configure.
1641    if test -f "$ac_srcdir/configure.gnu"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644    elif test -f "$ac_srcdir/configure"; then
1645      echo &&
1646      $SHELL "$ac_srcdir/configure" --help=recursive
1647    else
1648      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649    fi || ac_status=$?
1650    cd "$ac_pwd" || { ac_status=$?; break; }
1651  done
1652fi
1653
1654test -n "$ac_init_help" && exit $ac_status
1655if $ac_init_version; then
1656  cat <<\_ACEOF
1657gold configure 0.1
1658generated by GNU Autoconf 2.69
1659
1660Copyright (C) 2012 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext
1678  if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_compile") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest.$ac_objext; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702	ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_cpp LINENO
1710# ----------------------
1711# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_cpp ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  if { { ac_try="$ac_cpp conftest.$ac_ext"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723  ac_status=$?
1724  if test -s conftest.err; then
1725    grep -v '^ *+' conftest.err >conftest.er1
1726    cat conftest.er1 >&5
1727    mv -f conftest.er1 conftest.err
1728  fi
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } > conftest.i && {
1731	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732	 test ! -s conftest.err
1733       }; then :
1734  ac_retval=0
1735else
1736  $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739    ac_retval=1
1740fi
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_cpp
1745
1746# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747# -------------------------------------------------------
1748# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749# the include files in INCLUDES and setting the cache variable VAR
1750# accordingly.
1751ac_fn_c_check_header_mongrel ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  if eval \${$3+:} false; then :
1755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758  $as_echo_n "(cached) " >&6
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763else
1764  # Is the header compilable?
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766$as_echo_n "checking $2 usability... " >&6; }
1767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773  ac_header_compiler=yes
1774else
1775  ac_header_compiler=no
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779$as_echo "$ac_header_compiler" >&6; }
1780
1781# Is the header present?
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783$as_echo_n "checking $2 presence... " >&6; }
1784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786#include <$2>
1787_ACEOF
1788if ac_fn_c_try_cpp "$LINENO"; then :
1789  ac_header_preproc=yes
1790else
1791  ac_header_preproc=no
1792fi
1793rm -f conftest.err conftest.i conftest.$ac_ext
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795$as_echo "$ac_header_preproc" >&6; }
1796
1797# So?  What about this header?
1798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799  yes:no: )
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804    ;;
1805  no:yes:* )
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1809$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1813$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816    ;;
1817esac
1818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if eval \${$3+:} false; then :
1821  $as_echo_n "(cached) " >&6
1822else
1823  eval "$3=\$ac_header_compiler"
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828fi
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_c_check_header_mongrel
1832
1833# ac_fn_c_try_run LINENO
1834# ----------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836# that executables *can* be run.
1837ac_fn_c_try_run ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_link") 2>&5
1848  ac_status=$?
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851  { { case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_try") 2>&5
1858  ac_status=$?
1859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; }; }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: program exited with status $ac_status" >&5
1864       $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867       ac_retval=$ac_status
1868fi
1869  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871  as_fn_set_status $ac_retval
1872
1873} # ac_fn_c_try_run
1874
1875# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876# -------------------------------------------------------
1877# Tests whether HEADER exists and can be compiled using the include files in
1878# INCLUDES, setting the cache variable VAR accordingly.
1879ac_fn_c_check_header_compile ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h.  */
1889$4
1890#include <$2>
1891_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then :
1893  eval "$3=yes"
1894else
1895  eval "$3=no"
1896fi
1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898fi
1899eval ac_res=\$$3
1900	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904} # ac_fn_c_check_header_compile
1905
1906# ac_fn_c_try_link LINENO
1907# -----------------------
1908# Try to link conftest.$ac_ext, and return whether this succeeded.
1909ac_fn_c_try_link ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  rm -f conftest.$ac_objext conftest$ac_exeext
1913  if { { ac_try="$ac_link"
1914case "(($ac_try" in
1915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916  *) ac_try_echo=$ac_try;;
1917esac
1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919$as_echo "$ac_try_echo"; } >&5
1920  (eval "$ac_link") 2>conftest.err
1921  ac_status=$?
1922  if test -s conftest.err; then
1923    grep -v '^ *+' conftest.err >conftest.er1
1924    cat conftest.er1 >&5
1925    mv -f conftest.er1 conftest.err
1926  fi
1927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928  test $ac_status = 0; } && {
1929	 test -z "$ac_c_werror_flag" ||
1930	 test ! -s conftest.err
1931       } && test -s conftest$ac_exeext && {
1932	 test "$cross_compiling" = yes ||
1933	 test -x conftest$ac_exeext
1934       }; then :
1935  ac_retval=0
1936else
1937  $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940	ac_retval=1
1941fi
1942  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944  # interfere with the next link command; also delete a directory that is
1945  # left behind by Apple's compiler.  We do this before executing the actions.
1946  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948  as_fn_set_status $ac_retval
1949
1950} # ac_fn_c_try_link
1951
1952# ac_fn_cxx_try_compile LINENO
1953# ----------------------------
1954# Try to compile conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_compile ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  rm -f conftest.$ac_objext
1959  if { { ac_try="$ac_compile"
1960case "(($ac_try" in
1961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962  *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966  (eval "$ac_compile") 2>conftest.err
1967  ac_status=$?
1968  if test -s conftest.err; then
1969    grep -v '^ *+' conftest.err >conftest.er1
1970    cat conftest.er1 >&5
1971    mv -f conftest.er1 conftest.err
1972  fi
1973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974  test $ac_status = 0; } && {
1975	 test -z "$ac_cxx_werror_flag" ||
1976	 test ! -s conftest.err
1977       } && test -s conftest.$ac_objext; then :
1978  ac_retval=0
1979else
1980  $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983	ac_retval=1
1984fi
1985  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986  as_fn_set_status $ac_retval
1987
1988} # ac_fn_cxx_try_compile
1989
1990# ac_fn_c_check_func LINENO FUNC VAR
1991# ----------------------------------
1992# Tests whether FUNC exists, setting the cache variable VAR accordingly
1993ac_fn_c_check_func ()
1994{
1995  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2005#define $2 innocuous_$2
2006
2007/* System header to define __stub macros and hopefully few prototypes,
2008    which can conflict with char $2 (); below.
2009    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010    <limits.h> exists even on freestanding compilers.  */
2011
2012#ifdef __STDC__
2013# include <limits.h>
2014#else
2015# include <assert.h>
2016#endif
2017
2018#undef $2
2019
2020/* Override any GCC internal prototype to avoid an error.
2021   Use char because int might match the return type of a GCC
2022   builtin and then its argument prototype would still apply.  */
2023#ifdef __cplusplus
2024extern "C"
2025#endif
2026char $2 ();
2027/* The GNU C library defines this for functions which it implements
2028    to always fail with ENOSYS.  Some functions are actually named
2029    something starting with __ and the normal name is an alias.  */
2030#if defined __stub_$2 || defined __stub___$2
2031choke me
2032#endif
2033
2034int
2035main ()
2036{
2037return $2 ();
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_link "$LINENO"; then :
2043  eval "$3=yes"
2044else
2045  eval "$3=no"
2046fi
2047rm -f core conftest.err conftest.$ac_objext \
2048    conftest$ac_exeext conftest.$ac_ext
2049fi
2050eval ac_res=\$$3
2051	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055} # ac_fn_c_check_func
2056
2057# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058# ---------------------------------------------
2059# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2060# accordingly.
2061ac_fn_c_check_decl ()
2062{
2063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064  as_decl_name=`echo $2|sed 's/ *(.*//'`
2065  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068if eval \${$3+:} false; then :
2069  $as_echo_n "(cached) " >&6
2070else
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074int
2075main ()
2076{
2077#ifndef $as_decl_name
2078#ifdef __cplusplus
2079  (void) $as_decl_use;
2080#else
2081  (void) $as_decl_name;
2082#endif
2083#endif
2084
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090  eval "$3=yes"
2091else
2092  eval "$3=no"
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096eval ac_res=\$$3
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_c_check_decl
2102
2103# ac_fn_cxx_try_cpp LINENO
2104# ------------------------
2105# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106ac_fn_cxx_try_cpp ()
2107{
2108  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109  if { { ac_try="$ac_cpp conftest.$ac_ext"
2110case "(($ac_try" in
2111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112  *) ac_try_echo=$ac_try;;
2113esac
2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115$as_echo "$ac_try_echo"; } >&5
2116  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117  ac_status=$?
2118  if test -s conftest.err; then
2119    grep -v '^ *+' conftest.err >conftest.er1
2120    cat conftest.er1 >&5
2121    mv -f conftest.er1 conftest.err
2122  fi
2123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124  test $ac_status = 0; } > conftest.i && {
2125	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126	 test ! -s conftest.err
2127       }; then :
2128  ac_retval=0
2129else
2130  $as_echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133    ac_retval=1
2134fi
2135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136  as_fn_set_status $ac_retval
2137
2138} # ac_fn_cxx_try_cpp
2139
2140# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141# ---------------------------------------------------------
2142# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143# the include files in INCLUDES and setting the cache variable VAR
2144# accordingly.
2145ac_fn_cxx_check_header_mongrel ()
2146{
2147  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148  if eval \${$3+:} false; then :
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150$as_echo_n "checking for $2... " >&6; }
2151if eval \${$3+:} false; then :
2152  $as_echo_n "(cached) " >&6
2153fi
2154eval ac_res=\$$3
2155	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; }
2157else
2158  # Is the header compilable?
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160$as_echo_n "checking $2 usability... " >&6; }
2161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163$4
2164#include <$2>
2165_ACEOF
2166if ac_fn_cxx_try_compile "$LINENO"; then :
2167  ac_header_compiler=yes
2168else
2169  ac_header_compiler=no
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173$as_echo "$ac_header_compiler" >&6; }
2174
2175# Is the header present?
2176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177$as_echo_n "checking $2 presence... " >&6; }
2178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h.  */
2180#include <$2>
2181_ACEOF
2182if ac_fn_cxx_try_cpp "$LINENO"; then :
2183  ac_header_preproc=yes
2184else
2185  ac_header_preproc=no
2186fi
2187rm -f conftest.err conftest.i conftest.$ac_ext
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189$as_echo "$ac_header_preproc" >&6; }
2190
2191# So?  What about this header?
2192case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193  yes:no: )
2194    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198    ;;
2199  no:yes:* )
2200    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2203$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2207$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210    ;;
2211esac
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
2214if eval \${$3+:} false; then :
2215  $as_echo_n "(cached) " >&6
2216else
2217  eval "$3=\$ac_header_compiler"
2218fi
2219eval ac_res=\$$3
2220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222fi
2223  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224
2225} # ac_fn_cxx_check_header_mongrel
2226
2227# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2228# -----------------------------------------------
2229# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2230# accordingly.
2231ac_fn_cxx_check_decl ()
2232{
2233  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234  as_decl_name=`echo $2|sed 's/ *(.*//'`
2235  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238if eval \${$3+:} false; then :
2239  $as_echo_n "(cached) " >&6
2240else
2241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h.  */
2243$4
2244int
2245main ()
2246{
2247#ifndef $as_decl_name
2248#ifdef __cplusplus
2249  (void) $as_decl_use;
2250#else
2251  (void) $as_decl_name;
2252#endif
2253#endif
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259if ac_fn_cxx_try_compile "$LINENO"; then :
2260  eval "$3=yes"
2261else
2262  eval "$3=no"
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266eval ac_res=\$$3
2267	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268$as_echo "$ac_res" >&6; }
2269  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271} # ac_fn_cxx_check_decl
2272
2273# ac_fn_cxx_try_link LINENO
2274# -------------------------
2275# Try to link conftest.$ac_ext, and return whether this succeeded.
2276ac_fn_cxx_try_link ()
2277{
2278  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279  rm -f conftest.$ac_objext conftest$ac_exeext
2280  if { { ac_try="$ac_link"
2281case "(($ac_try" in
2282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283  *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287  (eval "$ac_link") 2>conftest.err
2288  ac_status=$?
2289  if test -s conftest.err; then
2290    grep -v '^ *+' conftest.err >conftest.er1
2291    cat conftest.er1 >&5
2292    mv -f conftest.er1 conftest.err
2293  fi
2294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295  test $ac_status = 0; } && {
2296	 test -z "$ac_cxx_werror_flag" ||
2297	 test ! -s conftest.err
2298       } && test -s conftest$ac_exeext && {
2299	 test "$cross_compiling" = yes ||
2300	 test -x conftest$ac_exeext
2301       }; then :
2302  ac_retval=0
2303else
2304  $as_echo "$as_me: failed program was:" >&5
2305sed 's/^/| /' conftest.$ac_ext >&5
2306
2307	ac_retval=1
2308fi
2309  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311  # interfere with the next link command; also delete a directory that is
2312  # left behind by Apple's compiler.  We do this before executing the actions.
2313  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315  as_fn_set_status $ac_retval
2316
2317} # ac_fn_cxx_try_link
2318
2319# ac_fn_cxx_check_func LINENO FUNC VAR
2320# ------------------------------------
2321# Tests whether FUNC exists, setting the cache variable VAR accordingly
2322ac_fn_cxx_check_func ()
2323{
2324  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326$as_echo_n "checking for $2... " >&6; }
2327if eval \${$3+:} false; then :
2328  $as_echo_n "(cached) " >&6
2329else
2330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h.  */
2332/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2334#define $2 innocuous_$2
2335
2336/* System header to define __stub macros and hopefully few prototypes,
2337    which can conflict with char $2 (); below.
2338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339    <limits.h> exists even on freestanding compilers.  */
2340
2341#ifdef __STDC__
2342# include <limits.h>
2343#else
2344# include <assert.h>
2345#endif
2346
2347#undef $2
2348
2349/* Override any GCC internal prototype to avoid an error.
2350   Use char because int might match the return type of a GCC
2351   builtin and then its argument prototype would still apply.  */
2352#ifdef __cplusplus
2353extern "C"
2354#endif
2355char $2 ();
2356/* The GNU C library defines this for functions which it implements
2357    to always fail with ENOSYS.  Some functions are actually named
2358    something starting with __ and the normal name is an alias.  */
2359#if defined __stub_$2 || defined __stub___$2
2360choke me
2361#endif
2362
2363int
2364main ()
2365{
2366return $2 ();
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371if ac_fn_cxx_try_link "$LINENO"; then :
2372  eval "$3=yes"
2373else
2374  eval "$3=no"
2375fi
2376rm -f core conftest.err conftest.$ac_objext \
2377    conftest$ac_exeext conftest.$ac_ext
2378fi
2379eval ac_res=\$$3
2380	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381$as_echo "$ac_res" >&6; }
2382  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
2384} # ac_fn_cxx_check_func
2385cat >config.log <<_ACEOF
2386This file contains any messages produced by compilers while
2387running configure, to aid debugging if configure makes a mistake.
2388
2389It was created by gold $as_me 0.1, which was
2390generated by GNU Autoconf 2.69.  Invocation command line was
2391
2392  $ $0 $@
2393
2394_ACEOF
2395exec 5>>config.log
2396{
2397cat <<_ASUNAME
2398## --------- ##
2399## Platform. ##
2400## --------- ##
2401
2402hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406uname -v = `(uname -v) 2>/dev/null || echo unknown`
2407
2408/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2410
2411/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2412/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2413/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2415/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2416/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2417/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2418
2419_ASUNAME
2420
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426    $as_echo "PATH: $as_dir"
2427  done
2428IFS=$as_save_IFS
2429
2430} >&5
2431
2432cat >&5 <<_ACEOF
2433
2434
2435## ----------- ##
2436## Core tests. ##
2437## ----------- ##
2438
2439_ACEOF
2440
2441
2442# Keep a trace of the command line.
2443# Strip out --no-create and --no-recursion so they do not pile up.
2444# Strip out --silent because we don't want to record it for future runs.
2445# Also quote any args containing shell meta-characters.
2446# Make two passes to allow for proper duplicate-argument suppression.
2447ac_configure_args=
2448ac_configure_args0=
2449ac_configure_args1=
2450ac_must_keep_next=false
2451for ac_pass in 1 2
2452do
2453  for ac_arg
2454  do
2455    case $ac_arg in
2456    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458    | -silent | --silent | --silen | --sile | --sil)
2459      continue ;;
2460    *\'*)
2461      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462    esac
2463    case $ac_pass in
2464    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2465    2)
2466      as_fn_append ac_configure_args1 " '$ac_arg'"
2467      if test $ac_must_keep_next = true; then
2468	ac_must_keep_next=false # Got value, back to normal.
2469      else
2470	case $ac_arg in
2471	  *=* | --config-cache | -C | -disable-* | --disable-* \
2472	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474	  | -with-* | --with-* | -without-* | --without-* | --x)
2475	    case "$ac_configure_args0 " in
2476	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477	    esac
2478	    ;;
2479	  -* ) ac_must_keep_next=true ;;
2480	esac
2481      fi
2482      as_fn_append ac_configure_args " '$ac_arg'"
2483      ;;
2484    esac
2485  done
2486done
2487{ ac_configure_args0=; unset ac_configure_args0;}
2488{ ac_configure_args1=; unset ac_configure_args1;}
2489
2490# When interrupted or exit'd, cleanup temporary files, and complete
2491# config.log.  We remove comments because anyway the quotes in there
2492# would cause problems or look ugly.
2493# WARNING: Use '\'' to represent an apostrophe within the trap.
2494# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495trap 'exit_status=$?
2496  # Save into config.log some information that might help in debugging.
2497  {
2498    echo
2499
2500    $as_echo "## ---------------- ##
2501## Cache variables. ##
2502## ---------------- ##"
2503    echo
2504    # The following way of writing the cache mishandles newlines in values,
2505(
2506  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507    eval ac_val=\$$ac_var
2508    case $ac_val in #(
2509    *${as_nl}*)
2510      case $ac_var in #(
2511      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2513      esac
2514      case $ac_var in #(
2515      _ | IFS | as_nl) ;; #(
2516      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517      *) { eval $ac_var=; unset $ac_var;} ;;
2518      esac ;;
2519    esac
2520  done
2521  (set) 2>&1 |
2522    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523    *${as_nl}ac_space=\ *)
2524      sed -n \
2525	"s/'\''/'\''\\\\'\'''\''/g;
2526	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2527      ;; #(
2528    *)
2529      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2530      ;;
2531    esac |
2532    sort
2533)
2534    echo
2535
2536    $as_echo "## ----------------- ##
2537## Output variables. ##
2538## ----------------- ##"
2539    echo
2540    for ac_var in $ac_subst_vars
2541    do
2542      eval ac_val=\$$ac_var
2543      case $ac_val in
2544      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545      esac
2546      $as_echo "$ac_var='\''$ac_val'\''"
2547    done | sort
2548    echo
2549
2550    if test -n "$ac_subst_files"; then
2551      $as_echo "## ------------------- ##
2552## File substitutions. ##
2553## ------------------- ##"
2554      echo
2555      for ac_var in $ac_subst_files
2556      do
2557	eval ac_val=\$$ac_var
2558	case $ac_val in
2559	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560	esac
2561	$as_echo "$ac_var='\''$ac_val'\''"
2562      done | sort
2563      echo
2564    fi
2565
2566    if test -s confdefs.h; then
2567      $as_echo "## ----------- ##
2568## confdefs.h. ##
2569## ----------- ##"
2570      echo
2571      cat confdefs.h
2572      echo
2573    fi
2574    test "$ac_signal" != 0 &&
2575      $as_echo "$as_me: caught signal $ac_signal"
2576    $as_echo "$as_me: exit $exit_status"
2577  } >&5
2578  rm -f core *.core core.conftest.* &&
2579    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580    exit $exit_status
2581' 0
2582for ac_signal in 1 2 13 15; do
2583  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584done
2585ac_signal=0
2586
2587# confdefs.h avoids OS command line length limits that DEFS can exceed.
2588rm -f -r conftest* confdefs.h
2589
2590$as_echo "/* confdefs.h */" > confdefs.h
2591
2592# Predefined preprocessor variables.
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_NAME "$PACKAGE_NAME"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600_ACEOF
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_VERSION "$PACKAGE_VERSION"
2604_ACEOF
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_STRING "$PACKAGE_STRING"
2608_ACEOF
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_URL "$PACKAGE_URL"
2616_ACEOF
2617
2618
2619# Let the site file select an alternate cache file if it wants to.
2620# Prefer an explicitly selected file to automatically selected ones.
2621ac_site_file1=NONE
2622ac_site_file2=NONE
2623if test -n "$CONFIG_SITE"; then
2624  # We do not want a PATH search for config.site.
2625  case $CONFIG_SITE in #((
2626    -*)  ac_site_file1=./$CONFIG_SITE;;
2627    */*) ac_site_file1=$CONFIG_SITE;;
2628    *)   ac_site_file1=./$CONFIG_SITE;;
2629  esac
2630elif test "x$prefix" != xNONE; then
2631  ac_site_file1=$prefix/share/config.site
2632  ac_site_file2=$prefix/etc/config.site
2633else
2634  ac_site_file1=$ac_default_prefix/share/config.site
2635  ac_site_file2=$ac_default_prefix/etc/config.site
2636fi
2637for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2638do
2639  test "x$ac_site_file" = xNONE && continue
2640  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2641    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643    sed 's/^/| /' "$ac_site_file" >&5
2644    . "$ac_site_file" \
2645      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647as_fn_error $? "failed to load site script $ac_site_file
2648See \`config.log' for more details" "$LINENO" 5; }
2649  fi
2650done
2651
2652if test -r "$cache_file"; then
2653  # Some versions of bash will fail to source /dev/null (special files
2654  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2655  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2656    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657$as_echo "$as_me: loading cache $cache_file" >&6;}
2658    case $cache_file in
2659      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2660      *)                      . "./$cache_file";;
2661    esac
2662  fi
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665$as_echo "$as_me: creating cache $cache_file" >&6;}
2666  >$cache_file
2667fi
2668
2669gt_needs="$gt_needs "
2670# Check that the precious variables saved in the cache have kept the same
2671# value.
2672ac_cache_corrupted=false
2673for ac_var in $ac_precious_vars; do
2674  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2675  eval ac_new_set=\$ac_env_${ac_var}_set
2676  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2677  eval ac_new_val=\$ac_env_${ac_var}_value
2678  case $ac_old_set,$ac_new_set in
2679    set,)
2680      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682      ac_cache_corrupted=: ;;
2683    ,set)
2684      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686      ac_cache_corrupted=: ;;
2687    ,);;
2688    *)
2689      if test "x$ac_old_val" != "x$ac_new_val"; then
2690	# differences in whitespace do not lead to failure.
2691	ac_old_val_w=`echo x $ac_old_val`
2692	ac_new_val_w=`echo x $ac_new_val`
2693	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696	  ac_cache_corrupted=:
2697	else
2698	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700	  eval $ac_var=\$ac_old_val
2701	fi
2702	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2703$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2704	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2705$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2706      fi;;
2707  esac
2708  # Pass precious variables to config.status.
2709  if test "$ac_new_set" = set; then
2710    case $ac_new_val in
2711    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712    *) ac_arg=$ac_var=$ac_new_val ;;
2713    esac
2714    case " $ac_configure_args " in
2715      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2716      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717    esac
2718  fi
2719done
2720if $ac_cache_corrupted; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2726fi
2727## -------------------- ##
2728## Main body of script. ##
2729## -------------------- ##
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738
2739
2740
2741
2742
2743ac_aux_dir=
2744for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745  if test -f "$ac_dir/install-sh"; then
2746    ac_aux_dir=$ac_dir
2747    ac_install_sh="$ac_aux_dir/install-sh -c"
2748    break
2749  elif test -f "$ac_dir/install.sh"; then
2750    ac_aux_dir=$ac_dir
2751    ac_install_sh="$ac_aux_dir/install.sh -c"
2752    break
2753  elif test -f "$ac_dir/shtool"; then
2754    ac_aux_dir=$ac_dir
2755    ac_install_sh="$ac_aux_dir/shtool install -c"
2756    break
2757  fi
2758done
2759if test -z "$ac_aux_dir"; then
2760  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2761fi
2762
2763# These three variables are undocumented and unsupported,
2764# and are intended to be withdrawn in a future Autoconf release.
2765# They can cause serious problems if a builder's source tree is in a directory
2766# whose full name contains unusual characters.
2767ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2768ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2769ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2770
2771
2772# Make sure we can run config.sub.
2773$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2774  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2777$as_echo_n "checking build system type... " >&6; }
2778if ${ac_cv_build+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  ac_build_alias=$build_alias
2782test "x$ac_build_alias" = x &&
2783  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2784test "x$ac_build_alias" = x &&
2785  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2788
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2791$as_echo "$ac_cv_build" >&6; }
2792case $ac_cv_build in
2793*-*-*) ;;
2794*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795esac
2796build=$ac_cv_build
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_build
2799shift
2800build_cpu=$1
2801build_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805build_os=$*
2806IFS=$ac_save_IFS
2807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2811$as_echo_n "checking host system type... " >&6; }
2812if ${ac_cv_host+:} false; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  if test "x$host_alias" = x; then
2816  ac_cv_host=$ac_cv_build
2817else
2818  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2820fi
2821
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2824$as_echo "$ac_cv_host" >&6; }
2825case $ac_cv_host in
2826*-*-*) ;;
2827*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828esac
2829host=$ac_cv_host
2830ac_save_IFS=$IFS; IFS='-'
2831set x $ac_cv_host
2832shift
2833host_cpu=$1
2834host_vendor=$2
2835shift; shift
2836# Remember, the first character of IFS is used to create $*,
2837# except with old shells:
2838host_os=$*
2839IFS=$ac_save_IFS
2840case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2841
2842
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2844$as_echo_n "checking target system type... " >&6; }
2845if ${ac_cv_target+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test "x$target_alias" = x; then
2849  ac_cv_target=$ac_cv_host
2850else
2851  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2852    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2853fi
2854
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2857$as_echo "$ac_cv_target" >&6; }
2858case $ac_cv_target in
2859*-*-*) ;;
2860*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2861esac
2862target=$ac_cv_target
2863ac_save_IFS=$IFS; IFS='-'
2864set x $ac_cv_target
2865shift
2866target_cpu=$1
2867target_vendor=$2
2868shift; shift
2869# Remember, the first character of IFS is used to create $*,
2870# except with old shells:
2871target_os=$*
2872IFS=$ac_save_IFS
2873case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2874
2875
2876# The aliases save the names the user supplied, while $host etc.
2877# will get canonicalized.
2878test -n "$target_alias" &&
2879  test "$program_prefix$program_suffix$program_transform_name" = \
2880    NONENONEs,x,x, &&
2881  program_prefix=${target_alias}-
2882
2883am__api_version='1.15'
2884
2885# Find a good install program.  We prefer a C program (faster),
2886# so one script is as good as another.  But avoid the broken or
2887# incompatible versions:
2888# SysV /etc/install, /usr/sbin/install
2889# SunOS /usr/etc/install
2890# IRIX /sbin/install
2891# AIX /bin/install
2892# AmigaOS /C/install, which installs bootblocks on floppy discs
2893# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896# OS/2's system install, which has a completely different semantic
2897# ./install, which can be erroneously created by make from ./install.sh.
2898# Reject install programs that cannot install multiple files.
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900$as_echo_n "checking for a BSD-compatible install... " >&6; }
2901if test -z "$INSTALL"; then
2902if ${ac_cv_path_install+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    # Account for people who put trailing slashes in PATH elements.
2911case $as_dir/ in #((
2912  ./ | .// | /[cC]/* | \
2913  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2914  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2915  /usr/ucb/* ) ;;
2916  *)
2917    # OSF1 and SCO ODT 3.0 have their own names for install.
2918    # Don't use installbsd from OSF since it installs stuff as root
2919    # by default.
2920    for ac_prog in ginstall scoinst install; do
2921      for ac_exec_ext in '' $ac_executable_extensions; do
2922	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2923	  if test $ac_prog = install &&
2924	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925	    # AIX install.  It has an incompatible calling convention.
2926	    :
2927	  elif test $ac_prog = install &&
2928	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929	    # program-specific install script used by HP pwplus--don't use.
2930	    :
2931	  else
2932	    rm -rf conftest.one conftest.two conftest.dir
2933	    echo one > conftest.one
2934	    echo two > conftest.two
2935	    mkdir conftest.dir
2936	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2937	      test -s conftest.one && test -s conftest.two &&
2938	      test -s conftest.dir/conftest.one &&
2939	      test -s conftest.dir/conftest.two
2940	    then
2941	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2942	      break 3
2943	    fi
2944	  fi
2945	fi
2946      done
2947    done
2948    ;;
2949esac
2950
2951  done
2952IFS=$as_save_IFS
2953
2954rm -rf conftest.one conftest.two conftest.dir
2955
2956fi
2957  if test "${ac_cv_path_install+set}" = set; then
2958    INSTALL=$ac_cv_path_install
2959  else
2960    # As a last resort, use the slow shell script.  Don't cache a
2961    # value for INSTALL within a source directory, because that will
2962    # break other packages using the cache if that directory is
2963    # removed, or if the value is a relative name.
2964    INSTALL=$ac_install_sh
2965  fi
2966fi
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2968$as_echo "$INSTALL" >&6; }
2969
2970# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971# It thinks the first close brace ends the variable substitution.
2972test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2973
2974test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2975
2976test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979$as_echo_n "checking whether build environment is sane... " >&6; }
2980# Reject unsafe characters in $srcdir or the absolute working directory
2981# name.  Accept space and tab only in the latter.
2982am_lf='
2983'
2984case `pwd` in
2985  *[\\\"\#\$\&\'\`$am_lf]*)
2986    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987esac
2988case $srcdir in
2989  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2990    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2991esac
2992
2993# Do 'set' in a subshell so we don't clobber the current shell's
2994# arguments.  Must try -L first in case configure is actually a
2995# symlink; some systems play weird games with the mod time of symlinks
2996# (eg FreeBSD returns the mod time of the symlink's containing
2997# directory).
2998if (
2999   am_has_slept=no
3000   for am_try in 1 2; do
3001     echo "timestamp, slept: $am_has_slept" > conftest.file
3002     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3003     if test "$*" = "X"; then
3004	# -L didn't work.
3005	set X `ls -t "$srcdir/configure" conftest.file`
3006     fi
3007     if test "$*" != "X $srcdir/configure conftest.file" \
3008	&& test "$*" != "X conftest.file $srcdir/configure"; then
3009
3010	# If neither matched, then we have a broken ls.  This can happen
3011	# if, for instance, CONFIG_SHELL is bash and it inherits a
3012	# broken ls alias from the environment.  This has actually
3013	# happened.  Such a system could not be considered "sane".
3014	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3015  alias in your environment" "$LINENO" 5
3016     fi
3017     if test "$2" = conftest.file || test $am_try -eq 2; then
3018       break
3019     fi
3020     # Just in case.
3021     sleep 1
3022     am_has_slept=yes
3023   done
3024   test "$2" = conftest.file
3025   )
3026then
3027   # Ok.
3028   :
3029else
3030   as_fn_error $? "newly created file is older than distributed files!
3031Check your system clock" "$LINENO" 5
3032fi
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034$as_echo "yes" >&6; }
3035# If we didn't sleep, we still need to ensure time stamps of config.status and
3036# generated files are strictly newer.
3037am_sleep_pid=
3038if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3039  ( sleep 1 ) &
3040  am_sleep_pid=$!
3041fi
3042
3043rm -f conftest.file
3044
3045test "$program_prefix" != NONE &&
3046  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3047# Use a double $ so make ignores it.
3048test "$program_suffix" != NONE &&
3049  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3050# Double any \ or $.
3051# By default was `s,x,x', remove it if useless.
3052ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3053program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3054
3055# Expand $ac_aux_dir to an absolute path.
3056am_aux_dir=`cd "$ac_aux_dir" && pwd`
3057
3058if test x"${MISSING+set}" != xset; then
3059  case $am_aux_dir in
3060  *\ * | *\	*)
3061    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3062  *)
3063    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3064  esac
3065fi
3066# Use eval to expand $SHELL
3067if eval "$MISSING --is-lightweight"; then
3068  am_missing_run="$MISSING "
3069else
3070  am_missing_run=
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3073fi
3074
3075if test x"${install_sh+set}" != xset; then
3076  case $am_aux_dir in
3077  *\ * | *\	*)
3078    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3079  *)
3080    install_sh="\${SHELL} $am_aux_dir/install-sh"
3081  esac
3082fi
3083
3084# Installed binaries are usually stripped using 'strip' when the user
3085# run "make install-strip".  However 'strip' might not be the right
3086# tool to use in cross-compilation environments, therefore Automake
3087# will honor the 'STRIP' environment variable to overrule this program.
3088if test "$cross_compiling" != no; then
3089  if test -n "$ac_tool_prefix"; then
3090  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091set dummy ${ac_tool_prefix}strip; ac_word=$2
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093$as_echo_n "checking for $ac_word... " >&6; }
3094if ${ac_cv_prog_STRIP+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  if test -n "$STRIP"; then
3098  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3099else
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103  IFS=$as_save_IFS
3104  test -z "$as_dir" && as_dir=.
3105    for ac_exec_ext in '' $ac_executable_extensions; do
3106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109    break 2
3110  fi
3111done
3112  done
3113IFS=$as_save_IFS
3114
3115fi
3116fi
3117STRIP=$ac_cv_prog_STRIP
3118if test -n "$STRIP"; then
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3120$as_echo "$STRIP" >&6; }
3121else
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124fi
3125
3126
3127fi
3128if test -z "$ac_cv_prog_STRIP"; then
3129  ac_ct_STRIP=$STRIP
3130  # Extract the first word of "strip", so it can be a program name with args.
3131set dummy strip; ac_word=$2
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133$as_echo_n "checking for $ac_word... " >&6; }
3134if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  if test -n "$ac_ct_STRIP"; then
3138  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143  IFS=$as_save_IFS
3144  test -z "$as_dir" && as_dir=.
3145    for ac_exec_ext in '' $ac_executable_extensions; do
3146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147    ac_cv_prog_ac_ct_STRIP="strip"
3148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149    break 2
3150  fi
3151done
3152  done
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3158if test -n "$ac_ct_STRIP"; then
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3160$as_echo "$ac_ct_STRIP" >&6; }
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166  if test "x$ac_ct_STRIP" = x; then
3167    STRIP=":"
3168  else
3169    case $cross_compiling:$ac_tool_warned in
3170yes:)
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173ac_tool_warned=yes ;;
3174esac
3175    STRIP=$ac_ct_STRIP
3176  fi
3177else
3178  STRIP="$ac_cv_prog_STRIP"
3179fi
3180
3181fi
3182INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3183
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3185$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3186if test -z "$MKDIR_P"; then
3187  if ${ac_cv_path_mkdir+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189else
3190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_prog in mkdir gmkdir; do
3196	 for ac_exec_ext in '' $ac_executable_extensions; do
3197	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3198	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3199	     'mkdir (GNU coreutils) '* | \
3200	     'mkdir (coreutils) '* | \
3201	     'mkdir (fileutils) '4.1*)
3202	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3203	       break 3;;
3204	   esac
3205	 done
3206       done
3207  done
3208IFS=$as_save_IFS
3209
3210fi
3211
3212  test -d ./--version && rmdir ./--version
3213  if test "${ac_cv_path_mkdir+set}" = set; then
3214    MKDIR_P="$ac_cv_path_mkdir -p"
3215  else
3216    # As a last resort, use the slow shell script.  Don't cache a
3217    # value for MKDIR_P within a source directory, because that will
3218    # break other packages using the cache if that directory is
3219    # removed, or if the value is a relative name.
3220    MKDIR_P="$ac_install_sh -d"
3221  fi
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3224$as_echo "$MKDIR_P" >&6; }
3225
3226for ac_prog in gawk mawk nawk awk
3227do
3228  # Extract the first word of "$ac_prog", so it can be a program name with args.
3229set dummy $ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_AWK+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$AWK"; then
3236  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_AWK="$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255AWK=$ac_cv_prog_AWK
3256if test -n "$AWK"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3258$as_echo "$AWK" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265  test -n "$AWK" && break
3266done
3267
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3269$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3270set x ${MAKE-make}
3271ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3272if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  cat >conftest.make <<\_ACEOF
3276SHELL = /bin/sh
3277all:
3278	@echo '@@@%%%=$(MAKE)=@@@%%%'
3279_ACEOF
3280# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3281case `${MAKE-make} -f conftest.make 2>/dev/null` in
3282  *@@@%%%=?*=@@@%%%*)
3283    eval ac_cv_prog_make_${ac_make}_set=yes;;
3284  *)
3285    eval ac_cv_prog_make_${ac_make}_set=no;;
3286esac
3287rm -f conftest.make
3288fi
3289if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291$as_echo "yes" >&6; }
3292  SET_MAKE=
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296  SET_MAKE="MAKE=${MAKE-make}"
3297fi
3298
3299rm -rf .tst 2>/dev/null
3300mkdir .tst 2>/dev/null
3301if test -d .tst; then
3302  am__leading_dot=.
3303else
3304  am__leading_dot=_
3305fi
3306rmdir .tst 2>/dev/null
3307
3308# Check whether --enable-silent-rules was given.
3309if test "${enable_silent_rules+set}" = set; then :
3310  enableval=$enable_silent_rules;
3311fi
3312
3313case $enable_silent_rules in # (((
3314  yes) AM_DEFAULT_VERBOSITY=0;;
3315   no) AM_DEFAULT_VERBOSITY=1;;
3316    *) AM_DEFAULT_VERBOSITY=1;;
3317esac
3318am_make=${MAKE-make}
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3321if ${am_cv_make_support_nested_variables+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if $as_echo 'TRUE=$(BAR$(V))
3325BAR0=false
3326BAR1=true
3327V=1
3328am__doit:
3329	@$(TRUE)
3330.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3331  am_cv_make_support_nested_variables=yes
3332else
3333  am_cv_make_support_nested_variables=no
3334fi
3335fi
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3337$as_echo "$am_cv_make_support_nested_variables" >&6; }
3338if test $am_cv_make_support_nested_variables = yes; then
3339    AM_V='$(V)'
3340  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3341else
3342  AM_V=$AM_DEFAULT_VERBOSITY
3343  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3344fi
3345AM_BACKSLASH='\'
3346
3347if test "`cd $srcdir && pwd`" != "`pwd`"; then
3348  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3349  # is not polluted with repeated "-I."
3350  am__isrc=' -I$(srcdir)'
3351  # test to see if srcdir already configured
3352  if test -f $srcdir/config.status; then
3353    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3354  fi
3355fi
3356
3357# test whether we have cygpath
3358if test -z "$CYGPATH_W"; then
3359  if (cygpath --version) >/dev/null 2>/dev/null; then
3360    CYGPATH_W='cygpath -w'
3361  else
3362    CYGPATH_W=echo
3363  fi
3364fi
3365
3366
3367# Define the identity of the package.
3368 PACKAGE='gold'
3369 VERSION='0.1'
3370
3371
3372cat >>confdefs.h <<_ACEOF
3373#define PACKAGE "$PACKAGE"
3374_ACEOF
3375
3376
3377cat >>confdefs.h <<_ACEOF
3378#define VERSION "$VERSION"
3379_ACEOF
3380
3381# Some tools Automake needs.
3382
3383ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384
3385
3386AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387
3388
3389AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390
3391
3392AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393
3394
3395MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396
3397# For better backward compatibility.  To be removed once Automake 1.9.x
3398# dies out for good.  For more background, see:
3399# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401mkdir_p='$(MKDIR_P)'
3402
3403# We need awk for the "check" target (and possibly the TAP driver).  The
3404# system "awk" is bad on some platforms.
3405# Always define AMTAR for backward compatibility.  Yes, it's still used
3406# in the wild :-(  We should find a proper way to deprecate it ...
3407AMTAR='$${TAR-tar}'
3408
3409
3410# We'll loop over all known methods to create a tar archive until one works.
3411_am_tools='gnutar  pax cpio none'
3412
3413am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3414
3415
3416
3417
3418
3419
3420# POSIX will say in a future version that running "rm -f" with no argument
3421# is OK; and we want to be able to make that assumption in our Makefile
3422# recipes.  So use an aggressive probe to check that the usage we want is
3423# actually supported "in the wild" to an acceptable degree.
3424# See automake bug#10828.
3425# To make any issue more visible, cause the running configure to be aborted
3426# by default if the 'rm' program in use doesn't match our expectations; the
3427# user can still override this though.
3428if rm -f && rm -fr && rm -rf; then : OK; else
3429  cat >&2 <<'END'
3430Oops!
3431
3432Your 'rm' program seems unable to run without file operands specified
3433on the command line, even when the '-f' option is present.  This is contrary
3434to the behaviour of most rm programs out there, and not conforming with
3435the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3436
3437Please tell bug-automake@gnu.org about your system, including the value
3438of your $PATH and any error possibly output before this message.  This
3439can help us improve future automake versions.
3440
3441END
3442  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3443    echo 'Configuration will proceed anyway, since you have set the' >&2
3444    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3445    echo >&2
3446  else
3447    cat >&2 <<'END'
3448Aborting the configuration process, to ensure you take notice of the issue.
3449
3450You can download and install GNU coreutils to get an 'rm' implementation
3451that behaves properly: <http://www.gnu.org/software/coreutils/>.
3452
3453If you want to complete the configuration process using your problematic
3454'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3455to "yes", and re-run configure.
3456
3457END
3458    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3459  fi
3460fi
3461
3462# Check whether --enable-silent-rules was given.
3463if test "${enable_silent_rules+set}" = set; then :
3464  enableval=$enable_silent_rules;
3465fi
3466
3467case $enable_silent_rules in # (((
3468  yes) AM_DEFAULT_VERBOSITY=0;;
3469   no) AM_DEFAULT_VERBOSITY=1;;
3470    *) AM_DEFAULT_VERBOSITY=0;;
3471esac
3472am_make=${MAKE-make}
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475if ${am_cv_make_support_nested_variables+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  if $as_echo 'TRUE=$(BAR$(V))
3479BAR0=false
3480BAR1=true
3481V=1
3482am__doit:
3483	@$(TRUE)
3484.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3485  am_cv_make_support_nested_variables=yes
3486else
3487  am_cv_make_support_nested_variables=no
3488fi
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491$as_echo "$am_cv_make_support_nested_variables" >&6; }
3492if test $am_cv_make_support_nested_variables = yes; then
3493    AM_V='$(V)'
3494  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3495else
3496  AM_V=$AM_DEFAULT_VERBOSITY
3497  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3498fi
3499AM_BACKSLASH='\'
3500
3501
3502ac_config_headers="$ac_config_headers config.h:config.in"
3503
3504
3505DEPDIR="${am__leading_dot}deps"
3506
3507ac_config_commands="$ac_config_commands depfiles"
3508
3509
3510am_make=${MAKE-make}
3511cat > confinc << 'END'
3512am__doit:
3513	@echo this is the am__doit target
3514.PHONY: am__doit
3515END
3516# If we don't find an include directive, just comment out the code.
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518$as_echo_n "checking for style of include used by $am_make... " >&6; }
3519am__include="#"
3520am__quote=
3521_am_result=none
3522# First try GNU make style include.
3523echo "include confinc" > confmf
3524# Ignore all kinds of additional output from 'make'.
3525case `$am_make -s -f confmf 2> /dev/null` in #(
3526*the\ am__doit\ target*)
3527  am__include=include
3528  am__quote=
3529  _am_result=GNU
3530  ;;
3531esac
3532# Now try BSD make style include.
3533if test "$am__include" = "#"; then
3534   echo '.include "confinc"' > confmf
3535   case `$am_make -s -f confmf 2> /dev/null` in #(
3536   *the\ am__doit\ target*)
3537     am__include=.include
3538     am__quote="\""
3539     _am_result=BSD
3540     ;;
3541   esac
3542fi
3543
3544
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546$as_echo "$_am_result" >&6; }
3547rm -f confinc confmf
3548
3549# Check whether --enable-dependency-tracking was given.
3550if test "${enable_dependency_tracking+set}" = set; then :
3551  enableval=$enable_dependency_tracking;
3552fi
3553
3554if test "x$enable_dependency_tracking" != xno; then
3555  am_depcomp="$ac_aux_dir/depcomp"
3556  AMDEPBACKSLASH='\'
3557  am__nodep='_no'
3558fi
3559 if test "x$enable_dependency_tracking" != xno; then
3560  AMDEP_TRUE=
3561  AMDEP_FALSE='#'
3562else
3563  AMDEP_TRUE='#'
3564  AMDEP_FALSE=
3565fi
3566
3567
3568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573if test -n "$ac_tool_prefix"; then
3574  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if ${ac_cv_prog_CC+:} false; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  if test -n "$CC"; then
3582  ac_cv_prog_CC="$CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587  IFS=$as_save_IFS
3588  test -z "$as_dir" && as_dir=.
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596  done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601CC=$ac_cv_prog_CC
3602if test -n "$CC"; then
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604$as_echo "$CC" >&6; }
3605else
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611fi
3612if test -z "$ac_cv_prog_CC"; then
3613  ac_ct_CC=$CC
3614  # Extract the first word of "gcc", so it can be a program name with args.
3615set dummy gcc; ac_word=$2
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617$as_echo_n "checking for $ac_word... " >&6; }
3618if ${ac_cv_prog_ac_ct_CC+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if test -n "$ac_ct_CC"; then
3622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629    for ac_exec_ext in '' $ac_executable_extensions; do
3630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631    ac_cv_prog_ac_ct_CC="gcc"
3632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633    break 2
3634  fi
3635done
3636  done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642if test -n "$ac_ct_CC"; then
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644$as_echo "$ac_ct_CC" >&6; }
3645else
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648fi
3649
3650  if test "x$ac_ct_CC" = x; then
3651    CC=""
3652  else
3653    case $cross_compiling:$ac_tool_warned in
3654yes:)
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657ac_tool_warned=yes ;;
3658esac
3659    CC=$ac_ct_CC
3660  fi
3661else
3662  CC="$ac_cv_prog_CC"
3663fi
3664
3665if test -z "$CC"; then
3666          if test -n "$ac_tool_prefix"; then
3667    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668set dummy ${ac_tool_prefix}cc; ac_word=$2
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670$as_echo_n "checking for $ac_word... " >&6; }
3671if ${ac_cv_prog_CC+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  if test -n "$CC"; then
3675  ac_cv_prog_CC="$CC" # Let the user override the test.
3676else
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680  IFS=$as_save_IFS
3681  test -z "$as_dir" && as_dir=.
3682    for ac_exec_ext in '' $ac_executable_extensions; do
3683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684    ac_cv_prog_CC="${ac_tool_prefix}cc"
3685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686    break 2
3687  fi
3688done
3689  done
3690IFS=$as_save_IFS
3691
3692fi
3693fi
3694CC=$ac_cv_prog_CC
3695if test -n "$CC"; then
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697$as_echo "$CC" >&6; }
3698else
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701fi
3702
3703
3704  fi
3705fi
3706if test -z "$CC"; then
3707  # Extract the first word of "cc", so it can be a program name with args.
3708set dummy cc; ac_word=$2
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710$as_echo_n "checking for $ac_word... " >&6; }
3711if ${ac_cv_prog_CC+:} false; then :
3712  $as_echo_n "(cached) " >&6
3713else
3714  if test -n "$CC"; then
3715  ac_cv_prog_CC="$CC" # Let the user override the test.
3716else
3717  ac_prog_rejected=no
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721  IFS=$as_save_IFS
3722  test -z "$as_dir" && as_dir=.
3723    for ac_exec_ext in '' $ac_executable_extensions; do
3724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726       ac_prog_rejected=yes
3727       continue
3728     fi
3729    ac_cv_prog_CC="cc"
3730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731    break 2
3732  fi
3733done
3734  done
3735IFS=$as_save_IFS
3736
3737if test $ac_prog_rejected = yes; then
3738  # We found a bogon in the path, so make sure we never use it.
3739  set dummy $ac_cv_prog_CC
3740  shift
3741  if test $# != 0; then
3742    # We chose a different compiler from the bogus one.
3743    # However, it has the same basename, so the bogon will be chosen
3744    # first if we set CC to just the basename; use the full file name.
3745    shift
3746    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3747  fi
3748fi
3749fi
3750fi
3751CC=$ac_cv_prog_CC
3752if test -n "$CC"; then
3753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754$as_echo "$CC" >&6; }
3755else
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
3758fi
3759
3760
3761fi
3762if test -z "$CC"; then
3763  if test -n "$ac_tool_prefix"; then
3764  for ac_prog in cl.exe
3765  do
3766    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if ${ac_cv_prog_CC+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  if test -n "$CC"; then
3774  ac_cv_prog_CC="$CC" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779  IFS=$as_save_IFS
3780  test -z "$as_dir" && as_dir=.
3781    for ac_exec_ext in '' $ac_executable_extensions; do
3782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785    break 2
3786  fi
3787done
3788  done
3789IFS=$as_save_IFS
3790
3791fi
3792fi
3793CC=$ac_cv_prog_CC
3794if test -n "$CC"; then
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796$as_echo "$CC" >&6; }
3797else
3798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802
3803    test -n "$CC" && break
3804  done
3805fi
3806if test -z "$CC"; then
3807  ac_ct_CC=$CC
3808  for ac_prog in cl.exe
3809do
3810  # Extract the first word of "$ac_prog", so it can be a program name with args.
3811set dummy $ac_prog; ac_word=$2
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813$as_echo_n "checking for $ac_word... " >&6; }
3814if ${ac_cv_prog_ac_ct_CC+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  if test -n "$ac_ct_CC"; then
3818  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825    for ac_exec_ext in '' $ac_executable_extensions; do
3826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827    ac_cv_prog_ac_ct_CC="$ac_prog"
3828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832  done
3833IFS=$as_save_IFS
3834
3835fi
3836fi
3837ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838if test -n "$ac_ct_CC"; then
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840$as_echo "$ac_ct_CC" >&6; }
3841else
3842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
3844fi
3845
3846
3847  test -n "$ac_ct_CC" && break
3848done
3849
3850  if test "x$ac_ct_CC" = x; then
3851    CC=""
3852  else
3853    case $cross_compiling:$ac_tool_warned in
3854yes:)
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857ac_tool_warned=yes ;;
3858esac
3859    CC=$ac_ct_CC
3860  fi
3861fi
3862
3863fi
3864
3865
3866test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error $? "no acceptable C compiler found in \$PATH
3869See \`config.log' for more details" "$LINENO" 5; }
3870
3871# Provide some information about the compiler.
3872$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873set X $ac_compile
3874ac_compiler=$2
3875for ac_option in --version -v -V -qversion; do
3876  { { ac_try="$ac_compiler $ac_option >&5"
3877case "(($ac_try" in
3878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879  *) ac_try_echo=$ac_try;;
3880esac
3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882$as_echo "$ac_try_echo"; } >&5
3883  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884  ac_status=$?
3885  if test -s conftest.err; then
3886    sed '10a\
3887... rest of stderr output deleted ...
3888         10q' conftest.err >conftest.er1
3889    cat conftest.er1 >&5
3890  fi
3891  rm -f conftest.er1 conftest.err
3892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893  test $ac_status = 0; }
3894done
3895
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898
3899int
3900main ()
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907ac_clean_files_save=$ac_clean_files
3908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909# Try to create an executable without -o first, disregard a.out.
3910# It will help us diagnose broken compilers, and finding out an intuition
3911# of exeext.
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913$as_echo_n "checking whether the C compiler works... " >&6; }
3914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916# The possible output files:
3917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919ac_rmfiles=
3920for ac_file in $ac_files
3921do
3922  case $ac_file in
3923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925  esac
3926done
3927rm -f $ac_rmfiles
3928
3929if { { ac_try="$ac_link_default"
3930case "(($ac_try" in
3931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932  *) ac_try_echo=$ac_try;;
3933esac
3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935$as_echo "$ac_try_echo"; } >&5
3936  (eval "$ac_link_default") 2>&5
3937  ac_status=$?
3938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939  test $ac_status = 0; }; then :
3940  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3943# so that the user can short-circuit this test for compilers unknown to
3944# Autoconf.
3945for ac_file in $ac_files ''
3946do
3947  test -f "$ac_file" || continue
3948  case $ac_file in
3949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3950	;;
3951    [ab].out )
3952	# We found the default executable, but exeext='' is most
3953	# certainly right.
3954	break;;
3955    *.* )
3956	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957	then :; else
3958	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959	fi
3960	# We set ac_cv_exeext here because the later test for it is not
3961	# safe: cross compilers may not add the suffix if given an `-o'
3962	# argument, so we may need to know it at that point already.
3963	# Even if this section looks crufty: it has the advantage of
3964	# actually working.
3965	break;;
3966    * )
3967	break;;
3968  esac
3969done
3970test "$ac_cv_exeext" = no && ac_cv_exeext=
3971
3972else
3973  ac_file=''
3974fi
3975if test -z "$ac_file"; then :
3976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
3978$as_echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983as_fn_error 77 "C compiler cannot create executables
3984See \`config.log' for more details" "$LINENO" 5; }
3985else
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987$as_echo "yes" >&6; }
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990$as_echo_n "checking for C compiler default output file name... " >&6; }
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992$as_echo "$ac_file" >&6; }
3993ac_exeext=$ac_cv_exeext
3994
3995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996ac_clean_files=$ac_clean_files_save
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998$as_echo_n "checking for suffix of executables... " >&6; }
3999if { { ac_try="$ac_link"
4000case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005$as_echo "$ac_try_echo"; } >&5
4006  (eval "$ac_link") 2>&5
4007  ac_status=$?
4008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009  test $ac_status = 0; }; then :
4010  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4012# work properly (i.e., refer to `conftest.exe'), while it won't with
4013# `rm'.
4014for ac_file in conftest.exe conftest conftest.*; do
4015  test -f "$ac_file" || continue
4016  case $ac_file in
4017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019	  break;;
4020    * ) break;;
4021  esac
4022done
4023else
4024  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027See \`config.log' for more details" "$LINENO" 5; }
4028fi
4029rm -f conftest conftest$ac_cv_exeext
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031$as_echo "$ac_cv_exeext" >&6; }
4032
4033rm -f conftest.$ac_ext
4034EXEEXT=$ac_cv_exeext
4035ac_exeext=$EXEEXT
4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038#include <stdio.h>
4039int
4040main ()
4041{
4042FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049ac_clean_files="$ac_clean_files conftest.out"
4050# Check that the compiler produces executables we can run.  If not, either
4051# the compiler is broken, or we cross compile.
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053$as_echo_n "checking whether we are cross compiling... " >&6; }
4054if test "$cross_compiling" != yes; then
4055  { { ac_try="$ac_link"
4056case "(($ac_try" in
4057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058  *) ac_try_echo=$ac_try;;
4059esac
4060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061$as_echo "$ac_try_echo"; } >&5
4062  (eval "$ac_link") 2>&5
4063  ac_status=$?
4064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065  test $ac_status = 0; }
4066  if { ac_try='./conftest$ac_cv_exeext'
4067  { { case "(($ac_try" in
4068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069  *) ac_try_echo=$ac_try;;
4070esac
4071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072$as_echo "$ac_try_echo"; } >&5
4073  (eval "$ac_try") 2>&5
4074  ac_status=$?
4075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076  test $ac_status = 0; }; }; then
4077    cross_compiling=no
4078  else
4079    if test "$cross_compiling" = maybe; then
4080	cross_compiling=yes
4081    else
4082	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084as_fn_error $? "cannot run C compiled programs.
4085If you meant to cross compile, use \`--host'.
4086See \`config.log' for more details" "$LINENO" 5; }
4087    fi
4088  fi
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091$as_echo "$cross_compiling" >&6; }
4092
4093rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094ac_clean_files=$ac_clean_files_save
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096$as_echo_n "checking for suffix of object files... " >&6; }
4097if ${ac_cv_objext+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111rm -f conftest.o conftest.obj
4112if { { ac_try="$ac_compile"
4113case "(($ac_try" in
4114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115  *) ac_try_echo=$ac_try;;
4116esac
4117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118$as_echo "$ac_try_echo"; } >&5
4119  (eval "$ac_compile") 2>&5
4120  ac_status=$?
4121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122  test $ac_status = 0; }; then :
4123  for ac_file in conftest.o conftest.obj conftest.*; do
4124  test -f "$ac_file" || continue;
4125  case $ac_file in
4126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128       break;;
4129  esac
4130done
4131else
4132  $as_echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137as_fn_error $? "cannot compute suffix of object files: cannot compile
4138See \`config.log' for more details" "$LINENO" 5; }
4139fi
4140rm -f conftest.$ac_cv_objext conftest.$ac_ext
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143$as_echo "$ac_cv_objext" >&6; }
4144OBJEXT=$ac_cv_objext
4145ac_objext=$OBJEXT
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148if ${ac_cv_c_compiler_gnu+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153
4154int
4155main ()
4156{
4157#ifndef __GNUC__
4158       choke me
4159#endif
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165if ac_fn_c_try_compile "$LINENO"; then :
4166  ac_compiler_gnu=yes
4167else
4168  ac_compiler_gnu=no
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176if test $ac_compiler_gnu = yes; then
4177  GCC=yes
4178else
4179  GCC=
4180fi
4181ac_test_CFLAGS=${CFLAGS+set}
4182ac_save_CFLAGS=$CFLAGS
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184$as_echo_n "checking whether $CC accepts -g... " >&6; }
4185if ${ac_cv_prog_cc_g+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  ac_save_c_werror_flag=$ac_c_werror_flag
4189   ac_c_werror_flag=yes
4190   ac_cv_prog_cc_g=no
4191   CFLAGS="-g"
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"; then :
4204  ac_cv_prog_cc_g=yes
4205else
4206  CFLAGS=""
4207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209
4210int
4211main ()
4212{
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218if ac_fn_c_try_compile "$LINENO"; then :
4219
4220else
4221  ac_c_werror_flag=$ac_save_c_werror_flag
4222	 CFLAGS="-g"
4223	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225
4226int
4227main ()
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_compile "$LINENO"; then :
4235  ac_cv_prog_cc_g=yes
4236fi
4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240fi
4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242   ac_c_werror_flag=$ac_save_c_werror_flag
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245$as_echo "$ac_cv_prog_cc_g" >&6; }
4246if test "$ac_test_CFLAGS" = set; then
4247  CFLAGS=$ac_save_CFLAGS
4248elif test $ac_cv_prog_cc_g = yes; then
4249  if test "$GCC" = yes; then
4250    CFLAGS="-g -O2"
4251  else
4252    CFLAGS="-g"
4253  fi
4254else
4255  if test "$GCC" = yes; then
4256    CFLAGS="-O2"
4257  else
4258    CFLAGS=
4259  fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263if ${ac_cv_prog_cc_c89+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  ac_cv_prog_cc_c89=no
4267ac_save_CC=$CC
4268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#include <stdarg.h>
4271#include <stdio.h>
4272struct stat;
4273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4274struct buf { int x; };
4275FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276static char *e (p, i)
4277     char **p;
4278     int i;
4279{
4280  return p[i];
4281}
4282static char *f (char * (*g) (char **, int), char **p, ...)
4283{
4284  char *s;
4285  va_list v;
4286  va_start (v,p);
4287  s = g (p, va_arg (v,int));
4288  va_end (v);
4289  return s;
4290}
4291
4292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4293   function prototypes and stuff, but not '\xHH' hex character constants.
4294   These don't provoke an error unfortunately, instead are silently treated
4295   as 'x'.  The following induces an error, until -std is added to get
4296   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4297   array size at least.  It's necessary to write '\x00'==0 to get something
4298   that's true only with -std.  */
4299int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4300
4301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302   inside strings and character constants.  */
4303#define FOO(x) 'x'
4304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4305
4306int test (int i, double x);
4307struct s1 {int (*f) (int a);};
4308struct s2 {int (*f) (double a);};
4309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310int argc;
4311char **argv;
4312int
4313main ()
4314{
4315return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322do
4323  CC="$ac_save_CC $ac_arg"
4324  if ac_fn_c_try_compile "$LINENO"; then :
4325  ac_cv_prog_cc_c89=$ac_arg
4326fi
4327rm -f core conftest.err conftest.$ac_objext
4328  test "x$ac_cv_prog_cc_c89" != "xno" && break
4329done
4330rm -f conftest.$ac_ext
4331CC=$ac_save_CC
4332
4333fi
4334# AC_CACHE_VAL
4335case "x$ac_cv_prog_cc_c89" in
4336  x)
4337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338$as_echo "none needed" >&6; } ;;
4339  xno)
4340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341$as_echo "unsupported" >&6; } ;;
4342  *)
4343    CC="$CC $ac_cv_prog_cc_c89"
4344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346esac
4347if test "x$ac_cv_prog_cc_c89" != xno; then :
4348
4349fi
4350
4351ac_ext=c
4352ac_cpp='$CPP $CPPFLAGS'
4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356
4357ac_ext=c
4358ac_cpp='$CPP $CPPFLAGS'
4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364if ${am_cv_prog_cc_c_o+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378  # Make sure it works both with $CC and with simple cc.
4379  # Following AC_PROG_CC_C_O, we do the test twice because some
4380  # compilers refuse to overwrite an existing .o file with -o,
4381  # though they will create one.
4382  am_cv_prog_cc_c_o=yes
4383  for am_i in 1 2; do
4384    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } \
4389         && test -f conftest2.$ac_objext; then
4390      : OK
4391    else
4392      am_cv_prog_cc_c_o=no
4393      break
4394    fi
4395  done
4396  rm -f core conftest*
4397  unset am_i
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400$as_echo "$am_cv_prog_cc_c_o" >&6; }
4401if test "$am_cv_prog_cc_c_o" != yes; then
4402   # Losing compiler, so override with the script.
4403   # FIXME: It is wrong to rewrite CC.
4404   # But if we don't then we get into trouble of one sort or another.
4405   # A longer-term fix would be to have automake use am__CC in this case,
4406   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407   CC="$am_aux_dir/compile $CC"
4408fi
4409ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415
4416depcc="$CC"   am_compiler_list=
4417
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419$as_echo_n "checking dependency style of $depcc... " >&6; }
4420if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421  $as_echo_n "(cached) " >&6
4422else
4423  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424  # We make a subdir and do the tests there.  Otherwise we can end up
4425  # making bogus files that we don't know about and never remove.  For
4426  # instance it was reported that on HP-UX the gcc test will end up
4427  # making a dummy file named 'D' -- because '-MD' means "put the output
4428  # in D".
4429  rm -rf conftest.dir
4430  mkdir conftest.dir
4431  # Copy depcomp to subdir because otherwise we won't find it if we're
4432  # using a relative directory.
4433  cp "$am_depcomp" conftest.dir
4434  cd conftest.dir
4435  # We will build objects and dependencies in a subdirectory because
4436  # it helps to detect inapplicable dependency modes.  For instance
4437  # both Tru64's cc and ICC support -MD to output dependencies as a
4438  # side effect of compilation, but ICC will put the dependencies in
4439  # the current directory while Tru64 will put them in the object
4440  # directory.
4441  mkdir sub
4442
4443  am_cv_CC_dependencies_compiler_type=none
4444  if test "$am_compiler_list" = ""; then
4445     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4446  fi
4447  am__universal=false
4448  case " $depcc " in #(
4449     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4450     esac
4451
4452  for depmode in $am_compiler_list; do
4453    # Setup a source with many dependencies, because some compilers
4454    # like to wrap large dependency lists on column 80 (with \), and
4455    # we should not choose a depcomp mode which is confused by this.
4456    #
4457    # We need to recreate these files for each test, as the compiler may
4458    # overwrite some of them when testing with obscure command lines.
4459    # This happens at least with the AIX C compiler.
4460    : > sub/conftest.c
4461    for i in 1 2 3 4 5 6; do
4462      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464      # Solaris 10 /bin/sh.
4465      echo '/* dummy */' > sub/conftst$i.h
4466    done
4467    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4468
4469    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470    # mode.  It turns out that the SunPro C++ compiler does not properly
4471    # handle '-M -o', and we need to detect this.  Also, some Intel
4472    # versions had trouble with output in subdirs.
4473    am__obj=sub/conftest.${OBJEXT-o}
4474    am__minus_obj="-o $am__obj"
4475    case $depmode in
4476    gcc)
4477      # This depmode causes a compiler race in universal mode.
4478      test "$am__universal" = false || continue
4479      ;;
4480    nosideeffect)
4481      # After this tag, mechanisms are not by side-effect, so they'll
4482      # only be used when explicitly requested.
4483      if test "x$enable_dependency_tracking" = xyes; then
4484	continue
4485      else
4486	break
4487      fi
4488      ;;
4489    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490      # This compiler won't grok '-c -o', but also, the minuso test has
4491      # not run yet.  These depmodes are late enough in the game, and
4492      # so weak that their functioning should not be impacted.
4493      am__obj=conftest.${OBJEXT-o}
4494      am__minus_obj=
4495      ;;
4496    none) break ;;
4497    esac
4498    if depmode=$depmode \
4499       source=sub/conftest.c object=$am__obj \
4500       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502         >/dev/null 2>conftest.err &&
4503       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507      # icc doesn't choke on unknown options, it will just issue warnings
4508      # or remarks (even with -Werror).  So we grep stderr for any message
4509      # that says an option was ignored or not supported.
4510      # When given -MP, icc 7.0 and 7.1 complain thusly:
4511      #   icc: Command line warning: ignoring option '-M'; no argument required
4512      # The diagnosis changed in icc 8.0:
4513      #   icc: Command line remark: option '-MP' not supported
4514      if (grep 'ignoring option' conftest.err ||
4515          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516        am_cv_CC_dependencies_compiler_type=$depmode
4517        break
4518      fi
4519    fi
4520  done
4521
4522  cd ..
4523  rm -rf conftest.dir
4524else
4525  am_cv_CC_dependencies_compiler_type=none
4526fi
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4532
4533 if
4534  test "x$enable_dependency_tracking" != xno \
4535  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536  am__fastdepCC_TRUE=
4537  am__fastdepCC_FALSE='#'
4538else
4539  am__fastdepCC_TRUE='#'
4540  am__fastdepCC_FALSE=
4541fi
4542
4543
4544
4545ac_ext=c
4546ac_cpp='$CPP $CPPFLAGS'
4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551$as_echo_n "checking how to run the C preprocessor... " >&6; }
4552# On Suns, sometimes $CPP names a directory.
4553if test -n "$CPP" && test -d "$CPP"; then
4554  CPP=
4555fi
4556if test -z "$CPP"; then
4557  if ${ac_cv_prog_CPP+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560      # Double quotes because CPP needs to be expanded
4561    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4562    do
4563      ac_preproc_ok=false
4564for ac_c_preproc_warn_flag in '' yes
4565do
4566  # Use a header file that comes with gcc, so configuring glibc
4567  # with a fresh cross-compiler works.
4568  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569  # <limits.h> exists even on freestanding compilers.
4570  # On the NeXT, cc -E runs the code through the compiler's parser,
4571  # not just through cpp. "Syntax error" is here to catch this case.
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#ifdef __STDC__
4575# include <limits.h>
4576#else
4577# include <assert.h>
4578#endif
4579		     Syntax error
4580_ACEOF
4581if ac_fn_c_try_cpp "$LINENO"; then :
4582
4583else
4584  # Broken: fails on valid input.
4585continue
4586fi
4587rm -f conftest.err conftest.i conftest.$ac_ext
4588
4589  # OK, works on sane cases.  Now check whether nonexistent headers
4590  # can be detected and how.
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593#include <ac_nonexistent.h>
4594_ACEOF
4595if ac_fn_c_try_cpp "$LINENO"; then :
4596  # Broken: success on invalid input.
4597continue
4598else
4599  # Passes both tests.
4600ac_preproc_ok=:
4601break
4602fi
4603rm -f conftest.err conftest.i conftest.$ac_ext
4604
4605done
4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607rm -f conftest.i conftest.err conftest.$ac_ext
4608if $ac_preproc_ok; then :
4609  break
4610fi
4611
4612    done
4613    ac_cv_prog_CPP=$CPP
4614
4615fi
4616  CPP=$ac_cv_prog_CPP
4617else
4618  ac_cv_prog_CPP=$CPP
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621$as_echo "$CPP" >&6; }
4622ac_preproc_ok=false
4623for ac_c_preproc_warn_flag in '' yes
4624do
4625  # Use a header file that comes with gcc, so configuring glibc
4626  # with a fresh cross-compiler works.
4627  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628  # <limits.h> exists even on freestanding compilers.
4629  # On the NeXT, cc -E runs the code through the compiler's parser,
4630  # not just through cpp. "Syntax error" is here to catch this case.
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633#ifdef __STDC__
4634# include <limits.h>
4635#else
4636# include <assert.h>
4637#endif
4638		     Syntax error
4639_ACEOF
4640if ac_fn_c_try_cpp "$LINENO"; then :
4641
4642else
4643  # Broken: fails on valid input.
4644continue
4645fi
4646rm -f conftest.err conftest.i conftest.$ac_ext
4647
4648  # OK, works on sane cases.  Now check whether nonexistent headers
4649  # can be detected and how.
4650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652#include <ac_nonexistent.h>
4653_ACEOF
4654if ac_fn_c_try_cpp "$LINENO"; then :
4655  # Broken: success on invalid input.
4656continue
4657else
4658  # Passes both tests.
4659ac_preproc_ok=:
4660break
4661fi
4662rm -f conftest.err conftest.i conftest.$ac_ext
4663
4664done
4665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666rm -f conftest.i conftest.err conftest.$ac_ext
4667if $ac_preproc_ok; then :
4668
4669else
4670  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4673See \`config.log' for more details" "$LINENO" 5; }
4674fi
4675
4676ac_ext=c
4677ac_cpp='$CPP $CPPFLAGS'
4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685if ${ac_cv_path_GREP+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if test -z "$GREP"; then
4689  ac_path_GREP_found=false
4690  # Loop through the user's path and test for each of PROGNAME-LIST
4691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693do
4694  IFS=$as_save_IFS
4695  test -z "$as_dir" && as_dir=.
4696    for ac_prog in grep ggrep; do
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4699      as_fn_executable_p "$ac_path_GREP" || continue
4700# Check for GNU ac_path_GREP and select it if it is found.
4701  # Check for GNU $ac_path_GREP
4702case `"$ac_path_GREP" --version 2>&1` in
4703*GNU*)
4704  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4705*)
4706  ac_count=0
4707  $as_echo_n 0123456789 >"conftest.in"
4708  while :
4709  do
4710    cat "conftest.in" "conftest.in" >"conftest.tmp"
4711    mv "conftest.tmp" "conftest.in"
4712    cp "conftest.in" "conftest.nl"
4713    $as_echo 'GREP' >> "conftest.nl"
4714    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716    as_fn_arith $ac_count + 1 && ac_count=$as_val
4717    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718      # Best one so far, save it but keep looking for a better one
4719      ac_cv_path_GREP="$ac_path_GREP"
4720      ac_path_GREP_max=$ac_count
4721    fi
4722    # 10*(2^10) chars as input seems more than enough
4723    test $ac_count -gt 10 && break
4724  done
4725  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726esac
4727
4728      $ac_path_GREP_found && break 3
4729    done
4730  done
4731  done
4732IFS=$as_save_IFS
4733  if test -z "$ac_cv_path_GREP"; then
4734    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735  fi
4736else
4737  ac_cv_path_GREP=$GREP
4738fi
4739
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742$as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP="$ac_cv_path_GREP"
4744
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747$as_echo_n "checking for egrep... " >&6; }
4748if ${ac_cv_path_EGREP+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4752   then ac_cv_path_EGREP="$GREP -E"
4753   else
4754     if test -z "$EGREP"; then
4755  ac_path_EGREP_found=false
4756  # Loop through the user's path and test for each of PROGNAME-LIST
4757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762    for ac_prog in egrep; do
4763    for ac_exec_ext in '' $ac_executable_extensions; do
4764      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765      as_fn_executable_p "$ac_path_EGREP" || continue
4766# Check for GNU ac_path_EGREP and select it if it is found.
4767  # Check for GNU $ac_path_EGREP
4768case `"$ac_path_EGREP" --version 2>&1` in
4769*GNU*)
4770  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4771*)
4772  ac_count=0
4773  $as_echo_n 0123456789 >"conftest.in"
4774  while :
4775  do
4776    cat "conftest.in" "conftest.in" >"conftest.tmp"
4777    mv "conftest.tmp" "conftest.in"
4778    cp "conftest.in" "conftest.nl"
4779    $as_echo 'EGREP' >> "conftest.nl"
4780    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782    as_fn_arith $ac_count + 1 && ac_count=$as_val
4783    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784      # Best one so far, save it but keep looking for a better one
4785      ac_cv_path_EGREP="$ac_path_EGREP"
4786      ac_path_EGREP_max=$ac_count
4787    fi
4788    # 10*(2^10) chars as input seems more than enough
4789    test $ac_count -gt 10 && break
4790  done
4791  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792esac
4793
4794      $ac_path_EGREP_found && break 3
4795    done
4796  done
4797  done
4798IFS=$as_save_IFS
4799  if test -z "$ac_cv_path_EGREP"; then
4800    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801  fi
4802else
4803  ac_cv_path_EGREP=$EGREP
4804fi
4805
4806   fi
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809$as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP="$ac_cv_path_EGREP"
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814$as_echo_n "checking for ANSI C header files... " >&6; }
4815if ${ac_cv_header_stdc+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820#include <stdlib.h>
4821#include <stdarg.h>
4822#include <string.h>
4823#include <float.h>
4824
4825int
4826main ()
4827{
4828
4829  ;
4830  return 0;
4831}
4832_ACEOF
4833if ac_fn_c_try_compile "$LINENO"; then :
4834  ac_cv_header_stdc=yes
4835else
4836  ac_cv_header_stdc=no
4837fi
4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839
4840if test $ac_cv_header_stdc = yes; then
4841  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h.  */
4844#include <string.h>
4845
4846_ACEOF
4847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848  $EGREP "memchr" >/dev/null 2>&1; then :
4849
4850else
4851  ac_cv_header_stdc=no
4852fi
4853rm -f conftest*
4854
4855fi
4856
4857if test $ac_cv_header_stdc = yes; then
4858  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861#include <stdlib.h>
4862
4863_ACEOF
4864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865  $EGREP "free" >/dev/null 2>&1; then :
4866
4867else
4868  ac_cv_header_stdc=no
4869fi
4870rm -f conftest*
4871
4872fi
4873
4874if test $ac_cv_header_stdc = yes; then
4875  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876  if test "$cross_compiling" = yes; then :
4877  :
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881#include <ctype.h>
4882#include <stdlib.h>
4883#if ((' ' & 0x0FF) == 0x020)
4884# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886#else
4887# define ISLOWER(c) \
4888		   (('a' <= (c) && (c) <= 'i') \
4889		     || ('j' <= (c) && (c) <= 'r') \
4890		     || ('s' <= (c) && (c) <= 'z'))
4891# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4892#endif
4893
4894#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4895int
4896main ()
4897{
4898  int i;
4899  for (i = 0; i < 256; i++)
4900    if (XOR (islower (i), ISLOWER (i))
4901	|| toupper (i) != TOUPPER (i))
4902      return 2;
4903  return 0;
4904}
4905_ACEOF
4906if ac_fn_c_try_run "$LINENO"; then :
4907
4908else
4909  ac_cv_header_stdc=no
4910fi
4911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4912  conftest.$ac_objext conftest.beam conftest.$ac_ext
4913fi
4914
4915fi
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918$as_echo "$ac_cv_header_stdc" >&6; }
4919if test $ac_cv_header_stdc = yes; then
4920
4921$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4922
4923fi
4924
4925# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927		  inttypes.h stdint.h unistd.h
4928do :
4929  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4931"
4932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4933  cat >>confdefs.h <<_ACEOF
4934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935_ACEOF
4936
4937fi
4938
4939done
4940
4941
4942
4943  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4944if test "x$ac_cv_header_minix_config_h" = xyes; then :
4945  MINIX=yes
4946else
4947  MINIX=
4948fi
4949
4950
4951  if test "$MINIX" = yes; then
4952
4953$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4954
4955
4956$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4957
4958
4959$as_echo "#define _MINIX 1" >>confdefs.h
4960
4961  fi
4962
4963
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4965$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4966if ${ac_cv_safe_to_define___extensions__+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h.  */
4971
4972#         define __EXTENSIONS__ 1
4973          $ac_includes_default
4974int
4975main ()
4976{
4977
4978  ;
4979  return 0;
4980}
4981_ACEOF
4982if ac_fn_c_try_compile "$LINENO"; then :
4983  ac_cv_safe_to_define___extensions__=yes
4984else
4985  ac_cv_safe_to_define___extensions__=no
4986fi
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4990$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4991  test $ac_cv_safe_to_define___extensions__ = yes &&
4992    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4993
4994  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4995
4996  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4997
4998  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4999
5000  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5001
5002
5003
5004# PR 14072
5005
5006
5007
5008# Check whether --with-sysroot was given.
5009if test "${with_sysroot+set}" = set; then :
5010  withval=$with_sysroot; sysroot=$withval
5011else
5012  sysroot=no
5013fi
5014
5015
5016if test "$sysroot" = "yes"; then
5017  sysroot='${exec_prefix}/${target_alias}/sys-root'
5018elif test "$sysroot" = "no"; then
5019  sysroot=
5020fi
5021
5022sysroot_relocatable=0
5023if test -n "$sysroot"; then
5024  case "$sysroot" in
5025    "${prefix}" | "${prefix}/"* | \
5026    "${exec_prefix}" | "${exec_prefix}/"* | \
5027    '${prefix}' | '${prefix}/'*| \
5028    '${exec_prefix}' | '${exec_prefix}/'*)
5029      sysroot_relocatable=1
5030      ;;
5031  esac
5032fi
5033
5034
5035cat >>confdefs.h <<_ACEOF
5036#define TARGET_SYSTEM_ROOT "$sysroot"
5037_ACEOF
5038
5039
5040cat >>confdefs.h <<_ACEOF
5041#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5042_ACEOF
5043
5044
5045
5046installed_linker=ld.gold
5047# Check whether --enable-gold was given.
5048if test "${enable_gold+set}" = set; then :
5049  enableval=$enable_gold; case "${enableval}" in
5050 default)
5051   install_as_default=yes
5052   ;;
5053 yes)
5054   if test x${enable_ld} = xno; then
5055     install_as_default=yes
5056   fi
5057   ;;
5058 esac
5059else
5060  install_as_default=no
5061fi
5062
5063
5064
5065
5066
5067  maybe_plugins=no
5068  for ac_header in dlfcn.h
5069do :
5070  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5071"
5072if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5073  cat >>confdefs.h <<_ACEOF
5074#define HAVE_DLFCN_H 1
5075_ACEOF
5076 maybe_plugins=yes
5077fi
5078
5079done
5080
5081  for ac_header in windows.h
5082do :
5083  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5084"
5085if test "x$ac_cv_header_windows_h" = xyes; then :
5086  cat >>confdefs.h <<_ACEOF
5087#define HAVE_WINDOWS_H 1
5088_ACEOF
5089 maybe_plugins=yes
5090fi
5091
5092done
5093
5094
5095  # Check whether --enable-plugins was given.
5096if test "${enable_plugins+set}" = set; then :
5097  enableval=$enable_plugins; case "${enableval}" in
5098      no) plugins=no ;;
5099      *) plugins=yes
5100         if test "$maybe_plugins" != "yes" ; then
5101	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5102	 fi ;;
5103     esac
5104else
5105  plugins=$maybe_plugins
5106
5107fi
5108
5109  if test "$plugins" = "yes"; then
5110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5111$as_echo_n "checking for library containing dlsym... " >&6; }
5112if ${ac_cv_search_dlsym+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  ac_func_search_save_LIBS=$LIBS
5116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118
5119/* Override any GCC internal prototype to avoid an error.
5120   Use char because int might match the return type of a GCC
5121   builtin and then its argument prototype would still apply.  */
5122#ifdef __cplusplus
5123extern "C"
5124#endif
5125char dlsym ();
5126int
5127main ()
5128{
5129return dlsym ();
5130  ;
5131  return 0;
5132}
5133_ACEOF
5134for ac_lib in '' dl; do
5135  if test -z "$ac_lib"; then
5136    ac_res="none required"
5137  else
5138    ac_res=-l$ac_lib
5139    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5140  fi
5141  if ac_fn_c_try_link "$LINENO"; then :
5142  ac_cv_search_dlsym=$ac_res
5143fi
5144rm -f core conftest.err conftest.$ac_objext \
5145    conftest$ac_exeext
5146  if ${ac_cv_search_dlsym+:} false; then :
5147  break
5148fi
5149done
5150if ${ac_cv_search_dlsym+:} false; then :
5151
5152else
5153  ac_cv_search_dlsym=no
5154fi
5155rm conftest.$ac_ext
5156LIBS=$ac_func_search_save_LIBS
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5159$as_echo "$ac_cv_search_dlsym" >&6; }
5160ac_res=$ac_cv_search_dlsym
5161if test "$ac_res" != no; then :
5162  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5163
5164fi
5165
5166  fi
5167
5168if test "$plugins" = "yes"; then
5169
5170$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5171
5172fi
5173 if test "$plugins" = "yes"; then
5174  PLUGINS_TRUE=
5175  PLUGINS_FALSE='#'
5176else
5177  PLUGINS_TRUE='#'
5178  PLUGINS_FALSE=
5179fi
5180
5181
5182# Decide if -z relro should be enabled in ELF linker by default.
5183ac_default_ld_z_relro=unset
5184# Provide a configure time option to override our default.
5185# Check whether --enable-relro was given.
5186if test "${enable_relro+set}" = set; then :
5187  enableval=$enable_relro; case "${enableval}" in
5188  yes)  ac_default_ld_z_relro=1 ;;
5189  no)  ac_default_ld_z_relro=0 ;;
5190esac
5191fi
5192if test "${ac_default_ld_z_relro}" = unset; then
5193  ac_default_ld_z_relro=1
5194fi
5195
5196cat >>confdefs.h <<_ACEOF
5197#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5198_ACEOF
5199
5200
5201# Check whether --enable-targets was given.
5202if test "${enable_targets+set}" = set; then :
5203  enableval=$enable_targets; case "${enableval}" in
5204  yes | "")
5205    as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5206    ;;
5207  no)
5208    enable_targets=
5209    ;;
5210  *)
5211    enable_targets=$enableval
5212    ;;
5213esac
5214else
5215  # For now, enable all targets by default
5216 enable_targets=all
5217
5218fi
5219
5220
5221# Canonicalize the enabled targets.
5222if test -n "$enable_targets"; then
5223  for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5224    result=`$ac_config_sub $targ 2>/dev/null`
5225    if test -n "$result"; then
5226      canon_targets="$canon_targets $result"
5227    else
5228      # Permit unrecognized target names, like "all".
5229      canon_targets="$canon_targets $targ"
5230    fi
5231  done
5232fi
5233
5234# Decide which "--hash-style" to use by default
5235# Provide a configure time option to override our default.
5236# Check whether --enable-default-hash-style was given.
5237if test "${enable_default_hash_style+set}" = set; then :
5238  enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5239  sysv | gnu | both) ;;
5240  *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5241esac
5242else
5243  case "${target}" in
5244  # Enable gnu hash only on GNU targets, but not mips
5245  mips*-*-*) enable_default_hash_style=sysv ;;
5246  *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5247  *) enable_default_hash_style=sysv ;;
5248esac
5249fi
5250
5251
5252
5253cat >>confdefs.h <<_ACEOF
5254#define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5255_ACEOF
5256
5257
5258# See which specific instantiations we need.
5259targetobjs=
5260all_targets=
5261default_machine=
5262default_size=
5263default_big_endian=
5264default_osabi=ELFOSABI_NONE
5265targ_32_little=
5266targ_32_big=
5267targ_64_little=
5268targ_64_big=
5269for targ in $target $canon_targets; do
5270  if test "$targ" = "all"; then
5271    targ_32_little=yes
5272    targ_32_big=yes
5273    targ_64_little=yes
5274    targ_64_big=yes
5275    all_targets=yes
5276  else
5277    . ${srcdir}/configure.tgt
5278
5279    if test "$targ_obj" = "UNKNOWN"; then
5280      as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5281    else
5282      targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5283      if test "$targ_extra_obj" != ""; then
5284        targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5285      fi
5286      if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5287	  if test "$targ_big_endian" = "true" \
5288	      -o "$targ_extra_big_endian" = "true"; then
5289	      targ_32_big=yes
5290	  fi
5291	  if test "$targ_big_endian" = "false" \
5292	      -o "$targ_extra_big_endian" = "false"; then
5293	      targ_32_little=yes
5294	  fi
5295      fi
5296      if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5297	  if test "$targ_big_endian" = "true" \
5298	      -o "$targ_extra_big_endian" = "true"; then
5299	      targ_64_big=yes
5300	  fi
5301	  if test "$targ_big_endian" = "false" \
5302	      -o "$targ_extra_big_endian" = "false"; then
5303	      targ_64_little=yes
5304	  fi
5305      fi
5306
5307      if test "$target" = "$targ"; then
5308        default_machine=$targ_machine
5309	default_size=$targ_size
5310	default_big_endian=$targ_big_endian
5311	default_osabi=$targ_osabi
5312
5313	 if test "$targ_obj" = "aarch64"; then
5314  DEFAULT_TARGET_AARCH64_TRUE=
5315  DEFAULT_TARGET_AARCH64_FALSE='#'
5316else
5317  DEFAULT_TARGET_AARCH64_TRUE='#'
5318  DEFAULT_TARGET_AARCH64_FALSE=
5319fi
5320
5321	 if test "$targ_obj" = "arm"; then
5322  DEFAULT_TARGET_ARM_TRUE=
5323  DEFAULT_TARGET_ARM_FALSE='#'
5324else
5325  DEFAULT_TARGET_ARM_TRUE='#'
5326  DEFAULT_TARGET_ARM_FALSE=
5327fi
5328
5329	 if test "$targ_obj" = "i386"; then
5330  DEFAULT_TARGET_I386_TRUE=
5331  DEFAULT_TARGET_I386_FALSE='#'
5332else
5333  DEFAULT_TARGET_I386_TRUE='#'
5334  DEFAULT_TARGET_I386_FALSE=
5335fi
5336
5337	 if test "$targ_obj" = "powerpc"; then
5338  DEFAULT_TARGET_POWERPC_TRUE=
5339  DEFAULT_TARGET_POWERPC_FALSE='#'
5340else
5341  DEFAULT_TARGET_POWERPC_TRUE='#'
5342  DEFAULT_TARGET_POWERPC_FALSE=
5343fi
5344
5345	 if test "$targ_obj" = "sparc"; then
5346  DEFAULT_TARGET_SPARC_TRUE=
5347  DEFAULT_TARGET_SPARC_FALSE='#'
5348else
5349  DEFAULT_TARGET_SPARC_TRUE='#'
5350  DEFAULT_TARGET_SPARC_FALSE=
5351fi
5352
5353	 if test "$targ_obj" = "s390"; then
5354  DEFAULT_TARGET_S390_TRUE=
5355  DEFAULT_TARGET_S390_FALSE='#'
5356else
5357  DEFAULT_TARGET_S390_TRUE='#'
5358  DEFAULT_TARGET_S390_FALSE=
5359fi
5360
5361	target_x86_64=no
5362	target_x32=no
5363	if test "$targ_obj" = "x86_64"; then
5364	  case "$target" in
5365	  x86_64*-linux-gnux32)
5366	    target_x32=yes
5367	    default_size=32
5368	    ;;
5369	  *)
5370	    target_x86_64=yes
5371	    ;;
5372	  esac
5373	fi
5374	 if test "$target_x86_64" = "yes"; then
5375  DEFAULT_TARGET_X86_64_TRUE=
5376  DEFAULT_TARGET_X86_64_FALSE='#'
5377else
5378  DEFAULT_TARGET_X86_64_TRUE='#'
5379  DEFAULT_TARGET_X86_64_FALSE=
5380fi
5381
5382	 if test "$target_x32" = "yes"; then
5383  DEFAULT_TARGET_X32_TRUE=
5384  DEFAULT_TARGET_X32_FALSE='#'
5385else
5386  DEFAULT_TARGET_X32_TRUE='#'
5387  DEFAULT_TARGET_X32_FALSE=
5388fi
5389
5390	 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5391  DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5392  DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5393else
5394  DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5395  DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5396fi
5397
5398	 if test "$targ_obj" = "tilegx"; then
5399  DEFAULT_TARGET_TILEGX_TRUE=
5400  DEFAULT_TARGET_TILEGX_FALSE='#'
5401else
5402  DEFAULT_TARGET_TILEGX_TRUE='#'
5403  DEFAULT_TARGET_TILEGX_FALSE=
5404fi
5405
5406         if test "$targ_obj" = "mips"; then
5407  DEFAULT_TARGET_MIPS_TRUE=
5408  DEFAULT_TARGET_MIPS_FALSE='#'
5409else
5410  DEFAULT_TARGET_MIPS_TRUE='#'
5411  DEFAULT_TARGET_MIPS_FALSE=
5412fi
5413
5414	DEFAULT_TARGET=${targ_obj}
5415
5416      fi
5417    fi
5418  fi
5419done
5420
5421# Remove any duplicates.
5422to=""
5423for t in $targetobjs; do
5424  case " $to " in
5425  *" $t "*) ;;
5426  *) to="$to $t" ;;
5427  esac
5428done
5429targetobjs=$to
5430
5431if test -n "$targ_32_little"; then
5432
5433$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5434
5435fi
5436if test -n "$targ_32_big"; then
5437
5438$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5439
5440fi
5441if test -n "$targ_64_little"; then
5442
5443$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5444
5445fi
5446if test -n "$targ_64_big"; then
5447
5448$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5449
5450fi
5451
5452if test -n "$all_targets"; then
5453  TARGETOBJS='$(ALL_TARGETOBJS)'
5454else
5455  TARGETOBJS="$targetobjs"
5456fi
5457
5458
5459
5460cat >>confdefs.h <<_ACEOF
5461#define GOLD_DEFAULT_MACHINE $default_machine
5462_ACEOF
5463
5464
5465cat >>confdefs.h <<_ACEOF
5466#define GOLD_DEFAULT_SIZE $default_size
5467_ACEOF
5468
5469
5470cat >>confdefs.h <<_ACEOF
5471#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5472_ACEOF
5473
5474
5475cat >>confdefs.h <<_ACEOF
5476#define GOLD_DEFAULT_OSABI $default_osabi
5477_ACEOF
5478
5479
5480
5481# Check whether --with-lib-path was given.
5482if test "${with_lib_path+set}" = set; then :
5483  withval=$with_lib_path; case "$withval" in
5484 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5485 no) LIB_PATH='""' ;;
5486 *) LIB_PATH='"'"$withval"'"' ;;
5487 esac
5488else
5489  LIB_PATH='"::DEFAULT::"'
5490fi
5491
5492
5493cat >>confdefs.h <<_ACEOF
5494#define LIB_PATH $LIB_PATH
5495_ACEOF
5496
5497if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5498
5499$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5500
5501fi
5502
5503if test -n "$ac_tool_prefix"; then
5504  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}nm; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if ${ac_cv_prog_NM+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  if test -n "$NM"; then
5512  ac_cv_prog_NM="$NM" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517  IFS=$as_save_IFS
5518  test -z "$as_dir" && as_dir=.
5519    for ac_exec_ext in '' $ac_executable_extensions; do
5520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521    ac_cv_prog_NM="${ac_tool_prefix}nm"
5522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523    break 2
5524  fi
5525done
5526  done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531NM=$ac_cv_prog_NM
5532if test -n "$NM"; then
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5534$as_echo "$NM" >&6; }
5535else
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541fi
5542if test -z "$ac_cv_prog_NM"; then
5543  ac_ct_NM=$NM
5544  # Extract the first word of "nm", so it can be a program name with args.
5545set dummy nm; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if ${ac_cv_prog_ac_ct_NM+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -n "$ac_ct_NM"; then
5552  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561    ac_cv_prog_ac_ct_NM="nm"
5562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566  done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_NM=$ac_cv_prog_ac_ct_NM
5572if test -n "$ac_ct_NM"; then
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5574$as_echo "$ac_ct_NM" >&6; }
5575else
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580  if test "x$ac_ct_NM" = x; then
5581    NM=""
5582  else
5583    case $cross_compiling:$ac_tool_warned in
5584yes:)
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587ac_tool_warned=yes ;;
5588esac
5589    NM=$ac_ct_NM
5590  fi
5591else
5592  NM="$ac_cv_prog_NM"
5593fi
5594
5595
5596ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601if test -n "$ac_tool_prefix"; then
5602  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603set dummy ${ac_tool_prefix}gcc; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if ${ac_cv_prog_CC+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  if test -n "$CC"; then
5610  ac_cv_prog_CC="$CC" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615  IFS=$as_save_IFS
5616  test -z "$as_dir" && as_dir=.
5617    for ac_exec_ext in '' $ac_executable_extensions; do
5618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621    break 2
5622  fi
5623done
5624  done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629CC=$ac_cv_prog_CC
5630if test -n "$CC"; then
5631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632$as_echo "$CC" >&6; }
5633else
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638
5639fi
5640if test -z "$ac_cv_prog_CC"; then
5641  ac_ct_CC=$CC
5642  # Extract the first word of "gcc", so it can be a program name with args.
5643set dummy gcc; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_ac_ct_CC+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  if test -n "$ac_ct_CC"; then
5650  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655  IFS=$as_save_IFS
5656  test -z "$as_dir" && as_dir=.
5657    for ac_exec_ext in '' $ac_executable_extensions; do
5658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659    ac_cv_prog_ac_ct_CC="gcc"
5660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661    break 2
5662  fi
5663done
5664  done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670if test -n "$ac_ct_CC"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672$as_echo "$ac_ct_CC" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678  if test "x$ac_ct_CC" = x; then
5679    CC=""
5680  else
5681    case $cross_compiling:$ac_tool_warned in
5682yes:)
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685ac_tool_warned=yes ;;
5686esac
5687    CC=$ac_ct_CC
5688  fi
5689else
5690  CC="$ac_cv_prog_CC"
5691fi
5692
5693if test -z "$CC"; then
5694          if test -n "$ac_tool_prefix"; then
5695    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}cc; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if ${ac_cv_prog_CC+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  if test -n "$CC"; then
5703  ac_cv_prog_CC="$CC" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710    for ac_exec_ext in '' $ac_executable_extensions; do
5711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712    ac_cv_prog_CC="${ac_tool_prefix}cc"
5713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717  done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722CC=$ac_cv_prog_CC
5723if test -n "$CC"; then
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725$as_echo "$CC" >&6; }
5726else
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732  fi
5733fi
5734if test -z "$CC"; then
5735  # Extract the first word of "cc", so it can be a program name with args.
5736set dummy cc; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_CC+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$CC"; then
5743  ac_cv_prog_CC="$CC" # Let the user override the test.
5744else
5745  ac_prog_rejected=no
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751    for ac_exec_ext in '' $ac_executable_extensions; do
5752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754       ac_prog_rejected=yes
5755       continue
5756     fi
5757    ac_cv_prog_CC="cc"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765if test $ac_prog_rejected = yes; then
5766  # We found a bogon in the path, so make sure we never use it.
5767  set dummy $ac_cv_prog_CC
5768  shift
5769  if test $# != 0; then
5770    # We chose a different compiler from the bogus one.
5771    # However, it has the same basename, so the bogon will be chosen
5772    # first if we set CC to just the basename; use the full file name.
5773    shift
5774    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5775  fi
5776fi
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789fi
5790if test -z "$CC"; then
5791  if test -n "$ac_tool_prefix"; then
5792  for ac_prog in cl.exe
5793  do
5794    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if ${ac_cv_prog_CC+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  if test -n "$CC"; then
5802  ac_cv_prog_CC="$CC" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809    for ac_exec_ext in '' $ac_executable_extensions; do
5810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816  done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821CC=$ac_cv_prog_CC
5822if test -n "$CC"; then
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824$as_echo "$CC" >&6; }
5825else
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831    test -n "$CC" && break
5832  done
5833fi
5834if test -z "$CC"; then
5835  ac_ct_CC=$CC
5836  for ac_prog in cl.exe
5837do
5838  # Extract the first word of "$ac_prog", so it can be a program name with args.
5839set dummy $ac_prog; ac_word=$2
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841$as_echo_n "checking for $ac_word... " >&6; }
5842if ${ac_cv_prog_ac_ct_CC+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  if test -n "$ac_ct_CC"; then
5846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851  IFS=$as_save_IFS
5852  test -z "$as_dir" && as_dir=.
5853    for ac_exec_ext in '' $ac_executable_extensions; do
5854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855    ac_cv_prog_ac_ct_CC="$ac_prog"
5856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857    break 2
5858  fi
5859done
5860  done
5861IFS=$as_save_IFS
5862
5863fi
5864fi
5865ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866if test -n "$ac_ct_CC"; then
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868$as_echo "$ac_ct_CC" >&6; }
5869else
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875  test -n "$ac_ct_CC" && break
5876done
5877
5878  if test "x$ac_ct_CC" = x; then
5879    CC=""
5880  else
5881    case $cross_compiling:$ac_tool_warned in
5882yes:)
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885ac_tool_warned=yes ;;
5886esac
5887    CC=$ac_ct_CC
5888  fi
5889fi
5890
5891fi
5892
5893
5894test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896as_fn_error $? "no acceptable C compiler found in \$PATH
5897See \`config.log' for more details" "$LINENO" 5; }
5898
5899# Provide some information about the compiler.
5900$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5901set X $ac_compile
5902ac_compiler=$2
5903for ac_option in --version -v -V -qversion; do
5904  { { ac_try="$ac_compiler $ac_option >&5"
5905case "(($ac_try" in
5906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907  *) ac_try_echo=$ac_try;;
5908esac
5909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910$as_echo "$ac_try_echo"; } >&5
5911  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912  ac_status=$?
5913  if test -s conftest.err; then
5914    sed '10a\
5915... rest of stderr output deleted ...
5916         10q' conftest.err >conftest.er1
5917    cat conftest.er1 >&5
5918  fi
5919  rm -f conftest.er1 conftest.err
5920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921  test $ac_status = 0; }
5922done
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926if ${ac_cv_c_compiler_gnu+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931
5932int
5933main ()
5934{
5935#ifndef __GNUC__
5936       choke me
5937#endif
5938
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"; then :
5944  ac_compiler_gnu=yes
5945else
5946  ac_compiler_gnu=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949ac_cv_c_compiler_gnu=$ac_compiler_gnu
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954if test $ac_compiler_gnu = yes; then
5955  GCC=yes
5956else
5957  GCC=
5958fi
5959ac_test_CFLAGS=${CFLAGS+set}
5960ac_save_CFLAGS=$CFLAGS
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962$as_echo_n "checking whether $CC accepts -g... " >&6; }
5963if ${ac_cv_prog_cc_g+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  ac_save_c_werror_flag=$ac_c_werror_flag
5967   ac_c_werror_flag=yes
5968   ac_cv_prog_cc_g=no
5969   CFLAGS="-g"
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"; then :
5982  ac_cv_prog_cc_g=yes
5983else
5984  CFLAGS=""
5985      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997
5998else
5999  ac_c_werror_flag=$ac_save_c_werror_flag
6000	 CFLAGS="-g"
6001	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h.  */
6003
6004int
6005main ()
6006{
6007
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  ac_cv_prog_cc_g=yes
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020   ac_c_werror_flag=$ac_save_c_werror_flag
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023$as_echo "$ac_cv_prog_cc_g" >&6; }
6024if test "$ac_test_CFLAGS" = set; then
6025  CFLAGS=$ac_save_CFLAGS
6026elif test $ac_cv_prog_cc_g = yes; then
6027  if test "$GCC" = yes; then
6028    CFLAGS="-g -O2"
6029  else
6030    CFLAGS="-g"
6031  fi
6032else
6033  if test "$GCC" = yes; then
6034    CFLAGS="-O2"
6035  else
6036    CFLAGS=
6037  fi
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041if ${ac_cv_prog_cc_c89+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  ac_cv_prog_cc_c89=no
6045ac_save_CC=$CC
6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048#include <stdarg.h>
6049#include <stdio.h>
6050struct stat;
6051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6052struct buf { int x; };
6053FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054static char *e (p, i)
6055     char **p;
6056     int i;
6057{
6058  return p[i];
6059}
6060static char *f (char * (*g) (char **, int), char **p, ...)
6061{
6062  char *s;
6063  va_list v;
6064  va_start (v,p);
6065  s = g (p, va_arg (v,int));
6066  va_end (v);
6067  return s;
6068}
6069
6070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6071   function prototypes and stuff, but not '\xHH' hex character constants.
6072   These don't provoke an error unfortunately, instead are silently treated
6073   as 'x'.  The following induces an error, until -std is added to get
6074   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6075   array size at least.  It's necessary to write '\x00'==0 to get something
6076   that's true only with -std.  */
6077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6078
6079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080   inside strings and character constants.  */
6081#define FOO(x) 'x'
6082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6083
6084int test (int i, double x);
6085struct s1 {int (*f) (int a);};
6086struct s2 {int (*f) (double a);};
6087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6088int argc;
6089char **argv;
6090int
6091main ()
6092{
6093return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6094  ;
6095  return 0;
6096}
6097_ACEOF
6098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6100do
6101  CC="$ac_save_CC $ac_arg"
6102  if ac_fn_c_try_compile "$LINENO"; then :
6103  ac_cv_prog_cc_c89=$ac_arg
6104fi
6105rm -f core conftest.err conftest.$ac_objext
6106  test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114  x)
6115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116$as_echo "none needed" >&6; } ;;
6117  xno)
6118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119$as_echo "unsupported" >&6; } ;;
6120  *)
6121    CC="$CC $ac_cv_prog_cc_c89"
6122    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125if test "x$ac_cv_prog_cc_c89" != xno; then :
6126
6127fi
6128
6129ac_ext=c
6130ac_cpp='$CPP $CPPFLAGS'
6131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6141$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6142if ${am_cv_prog_cc_c_o+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147
6148int
6149main ()
6150{
6151
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156  # Make sure it works both with $CC and with simple cc.
6157  # Following AC_PROG_CC_C_O, we do the test twice because some
6158  # compilers refuse to overwrite an existing .o file with -o,
6159  # though they will create one.
6160  am_cv_prog_cc_c_o=yes
6161  for am_i in 1 2; do
6162    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6163   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } \
6167         && test -f conftest2.$ac_objext; then
6168      : OK
6169    else
6170      am_cv_prog_cc_c_o=no
6171      break
6172    fi
6173  done
6174  rm -f core conftest*
6175  unset am_i
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6178$as_echo "$am_cv_prog_cc_c_o" >&6; }
6179if test "$am_cv_prog_cc_c_o" != yes; then
6180   # Losing compiler, so override with the script.
6181   # FIXME: It is wrong to rewrite CC.
6182   # But if we don't then we get into trouble of one sort or another.
6183   # A longer-term fix would be to have automake use am__CC in this case,
6184   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6185   CC="$am_aux_dir/compile $CC"
6186fi
6187ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194depcc="$CC"   am_compiler_list=
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197$as_echo_n "checking dependency style of $depcc... " >&6; }
6198if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202  # We make a subdir and do the tests there.  Otherwise we can end up
6203  # making bogus files that we don't know about and never remove.  For
6204  # instance it was reported that on HP-UX the gcc test will end up
6205  # making a dummy file named 'D' -- because '-MD' means "put the output
6206  # in D".
6207  rm -rf conftest.dir
6208  mkdir conftest.dir
6209  # Copy depcomp to subdir because otherwise we won't find it if we're
6210  # using a relative directory.
6211  cp "$am_depcomp" conftest.dir
6212  cd conftest.dir
6213  # We will build objects and dependencies in a subdirectory because
6214  # it helps to detect inapplicable dependency modes.  For instance
6215  # both Tru64's cc and ICC support -MD to output dependencies as a
6216  # side effect of compilation, but ICC will put the dependencies in
6217  # the current directory while Tru64 will put them in the object
6218  # directory.
6219  mkdir sub
6220
6221  am_cv_CC_dependencies_compiler_type=none
6222  if test "$am_compiler_list" = ""; then
6223     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6224  fi
6225  am__universal=false
6226  case " $depcc " in #(
6227     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6228     esac
6229
6230  for depmode in $am_compiler_list; do
6231    # Setup a source with many dependencies, because some compilers
6232    # like to wrap large dependency lists on column 80 (with \), and
6233    # we should not choose a depcomp mode which is confused by this.
6234    #
6235    # We need to recreate these files for each test, as the compiler may
6236    # overwrite some of them when testing with obscure command lines.
6237    # This happens at least with the AIX C compiler.
6238    : > sub/conftest.c
6239    for i in 1 2 3 4 5 6; do
6240      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6242      # Solaris 10 /bin/sh.
6243      echo '/* dummy */' > sub/conftst$i.h
6244    done
6245    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6246
6247    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6248    # mode.  It turns out that the SunPro C++ compiler does not properly
6249    # handle '-M -o', and we need to detect this.  Also, some Intel
6250    # versions had trouble with output in subdirs.
6251    am__obj=sub/conftest.${OBJEXT-o}
6252    am__minus_obj="-o $am__obj"
6253    case $depmode in
6254    gcc)
6255      # This depmode causes a compiler race in universal mode.
6256      test "$am__universal" = false || continue
6257      ;;
6258    nosideeffect)
6259      # After this tag, mechanisms are not by side-effect, so they'll
6260      # only be used when explicitly requested.
6261      if test "x$enable_dependency_tracking" = xyes; then
6262	continue
6263      else
6264	break
6265      fi
6266      ;;
6267    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6268      # This compiler won't grok '-c -o', but also, the minuso test has
6269      # not run yet.  These depmodes are late enough in the game, and
6270      # so weak that their functioning should not be impacted.
6271      am__obj=conftest.${OBJEXT-o}
6272      am__minus_obj=
6273      ;;
6274    none) break ;;
6275    esac
6276    if depmode=$depmode \
6277       source=sub/conftest.c object=$am__obj \
6278       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6279       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6280         >/dev/null 2>conftest.err &&
6281       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6282       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6283       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6284       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6285      # icc doesn't choke on unknown options, it will just issue warnings
6286      # or remarks (even with -Werror).  So we grep stderr for any message
6287      # that says an option was ignored or not supported.
6288      # When given -MP, icc 7.0 and 7.1 complain thusly:
6289      #   icc: Command line warning: ignoring option '-M'; no argument required
6290      # The diagnosis changed in icc 8.0:
6291      #   icc: Command line remark: option '-MP' not supported
6292      if (grep 'ignoring option' conftest.err ||
6293          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6294        am_cv_CC_dependencies_compiler_type=$depmode
6295        break
6296      fi
6297    fi
6298  done
6299
6300  cd ..
6301  rm -rf conftest.dir
6302else
6303  am_cv_CC_dependencies_compiler_type=none
6304fi
6305
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6310
6311 if
6312  test "x$enable_dependency_tracking" != xno \
6313  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6314  am__fastdepCC_TRUE=
6315  am__fastdepCC_FALSE='#'
6316else
6317  am__fastdepCC_TRUE='#'
6318  am__fastdepCC_FALSE=
6319fi
6320
6321
6322ac_ext=cpp
6323ac_cpp='$CXXCPP $CPPFLAGS'
6324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327if test -z "$CXX"; then
6328  if test -n "$CCC"; then
6329    CXX=$CCC
6330  else
6331    if test -n "$ac_tool_prefix"; then
6332  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6333  do
6334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337$as_echo_n "checking for $ac_word... " >&6; }
6338if ${ac_cv_prog_CXX+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  if test -n "$CXX"; then
6342  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349    for ac_exec_ext in '' $ac_executable_extensions; do
6350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356  done
6357IFS=$as_save_IFS
6358
6359fi
6360fi
6361CXX=$ac_cv_prog_CXX
6362if test -n "$CXX"; then
6363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6364$as_echo "$CXX" >&6; }
6365else
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368fi
6369
6370
6371    test -n "$CXX" && break
6372  done
6373fi
6374if test -z "$CXX"; then
6375  ac_ct_CXX=$CXX
6376  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6377do
6378  # Extract the first word of "$ac_prog", so it can be a program name with args.
6379set dummy $ac_prog; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  if test -n "$ac_ct_CXX"; then
6386  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_exec_ext in '' $ac_executable_extensions; do
6394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395    ac_cv_prog_ac_ct_CXX="$ac_prog"
6396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397    break 2
6398  fi
6399done
6400  done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6406if test -n "$ac_ct_CXX"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6408$as_echo "$ac_ct_CXX" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415  test -n "$ac_ct_CXX" && break
6416done
6417
6418  if test "x$ac_ct_CXX" = x; then
6419    CXX="g++"
6420  else
6421    case $cross_compiling:$ac_tool_warned in
6422yes:)
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425ac_tool_warned=yes ;;
6426esac
6427    CXX=$ac_ct_CXX
6428  fi
6429fi
6430
6431  fi
6432fi
6433# Provide some information about the compiler.
6434$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6435set X $ac_compile
6436ac_compiler=$2
6437for ac_option in --version -v -V -qversion; do
6438  { { ac_try="$ac_compiler $ac_option >&5"
6439case "(($ac_try" in
6440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441  *) ac_try_echo=$ac_try;;
6442esac
6443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6444$as_echo "$ac_try_echo"; } >&5
6445  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6446  ac_status=$?
6447  if test -s conftest.err; then
6448    sed '10a\
6449... rest of stderr output deleted ...
6450         10q' conftest.err >conftest.er1
6451    cat conftest.er1 >&5
6452  fi
6453  rm -f conftest.er1 conftest.err
6454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }
6456done
6457
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6459$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6460if ${ac_cv_cxx_compiler_gnu+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465
6466int
6467main ()
6468{
6469#ifndef __GNUC__
6470       choke me
6471#endif
6472
6473  ;
6474  return 0;
6475}
6476_ACEOF
6477if ac_fn_cxx_try_compile "$LINENO"; then :
6478  ac_compiler_gnu=yes
6479else
6480  ac_compiler_gnu=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6484
6485fi
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6487$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6488if test $ac_compiler_gnu = yes; then
6489  GXX=yes
6490else
6491  GXX=
6492fi
6493ac_test_CXXFLAGS=${CXXFLAGS+set}
6494ac_save_CXXFLAGS=$CXXFLAGS
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6496$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6497if ${ac_cv_prog_cxx_g+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6501   ac_cxx_werror_flag=yes
6502   ac_cv_prog_cxx_g=no
6503   CXXFLAGS="-g"
6504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506
6507int
6508main ()
6509{
6510
6511  ;
6512  return 0;
6513}
6514_ACEOF
6515if ac_fn_cxx_try_compile "$LINENO"; then :
6516  ac_cv_prog_cxx_g=yes
6517else
6518  CXXFLAGS=""
6519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_cxx_try_compile "$LINENO"; then :
6531
6532else
6533  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6534	 CXXFLAGS="-g"
6535	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537
6538int
6539main ()
6540{
6541
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_cxx_try_compile "$LINENO"; then :
6547  ac_cv_prog_cxx_g=yes
6548fi
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6557$as_echo "$ac_cv_prog_cxx_g" >&6; }
6558if test "$ac_test_CXXFLAGS" = set; then
6559  CXXFLAGS=$ac_save_CXXFLAGS
6560elif test $ac_cv_prog_cxx_g = yes; then
6561  if test "$GXX" = yes; then
6562    CXXFLAGS="-g -O2"
6563  else
6564    CXXFLAGS="-g"
6565  fi
6566else
6567  if test "$GXX" = yes; then
6568    CXXFLAGS="-O2"
6569  else
6570    CXXFLAGS=
6571  fi
6572fi
6573ac_ext=c
6574ac_cpp='$CPP $CPPFLAGS'
6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
6579depcc="$CXX"  am_compiler_list=
6580
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6582$as_echo_n "checking dependency style of $depcc... " >&6; }
6583if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6587  # We make a subdir and do the tests there.  Otherwise we can end up
6588  # making bogus files that we don't know about and never remove.  For
6589  # instance it was reported that on HP-UX the gcc test will end up
6590  # making a dummy file named 'D' -- because '-MD' means "put the output
6591  # in D".
6592  rm -rf conftest.dir
6593  mkdir conftest.dir
6594  # Copy depcomp to subdir because otherwise we won't find it if we're
6595  # using a relative directory.
6596  cp "$am_depcomp" conftest.dir
6597  cd conftest.dir
6598  # We will build objects and dependencies in a subdirectory because
6599  # it helps to detect inapplicable dependency modes.  For instance
6600  # both Tru64's cc and ICC support -MD to output dependencies as a
6601  # side effect of compilation, but ICC will put the dependencies in
6602  # the current directory while Tru64 will put them in the object
6603  # directory.
6604  mkdir sub
6605
6606  am_cv_CXX_dependencies_compiler_type=none
6607  if test "$am_compiler_list" = ""; then
6608     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6609  fi
6610  am__universal=false
6611  case " $depcc " in #(
6612     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6613     esac
6614
6615  for depmode in $am_compiler_list; do
6616    # Setup a source with many dependencies, because some compilers
6617    # like to wrap large dependency lists on column 80 (with \), and
6618    # we should not choose a depcomp mode which is confused by this.
6619    #
6620    # We need to recreate these files for each test, as the compiler may
6621    # overwrite some of them when testing with obscure command lines.
6622    # This happens at least with the AIX C compiler.
6623    : > sub/conftest.c
6624    for i in 1 2 3 4 5 6; do
6625      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6626      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6627      # Solaris 10 /bin/sh.
6628      echo '/* dummy */' > sub/conftst$i.h
6629    done
6630    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6631
6632    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6633    # mode.  It turns out that the SunPro C++ compiler does not properly
6634    # handle '-M -o', and we need to detect this.  Also, some Intel
6635    # versions had trouble with output in subdirs.
6636    am__obj=sub/conftest.${OBJEXT-o}
6637    am__minus_obj="-o $am__obj"
6638    case $depmode in
6639    gcc)
6640      # This depmode causes a compiler race in universal mode.
6641      test "$am__universal" = false || continue
6642      ;;
6643    nosideeffect)
6644      # After this tag, mechanisms are not by side-effect, so they'll
6645      # only be used when explicitly requested.
6646      if test "x$enable_dependency_tracking" = xyes; then
6647	continue
6648      else
6649	break
6650      fi
6651      ;;
6652    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6653      # This compiler won't grok '-c -o', but also, the minuso test has
6654      # not run yet.  These depmodes are late enough in the game, and
6655      # so weak that their functioning should not be impacted.
6656      am__obj=conftest.${OBJEXT-o}
6657      am__minus_obj=
6658      ;;
6659    none) break ;;
6660    esac
6661    if depmode=$depmode \
6662       source=sub/conftest.c object=$am__obj \
6663       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6664       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6665         >/dev/null 2>conftest.err &&
6666       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6667       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6668       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6669       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6670      # icc doesn't choke on unknown options, it will just issue warnings
6671      # or remarks (even with -Werror).  So we grep stderr for any message
6672      # that says an option was ignored or not supported.
6673      # When given -MP, icc 7.0 and 7.1 complain thusly:
6674      #   icc: Command line warning: ignoring option '-M'; no argument required
6675      # The diagnosis changed in icc 8.0:
6676      #   icc: Command line remark: option '-MP' not supported
6677      if (grep 'ignoring option' conftest.err ||
6678          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6679        am_cv_CXX_dependencies_compiler_type=$depmode
6680        break
6681      fi
6682    fi
6683  done
6684
6685  cd ..
6686  rm -rf conftest.dir
6687else
6688  am_cv_CXX_dependencies_compiler_type=none
6689fi
6690
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6693$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6694CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6695
6696 if
6697  test "x$enable_dependency_tracking" != xno \
6698  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6699  am__fastdepCXX_TRUE=
6700  am__fastdepCXX_FALSE='#'
6701else
6702  am__fastdepCXX_TRUE='#'
6703  am__fastdepCXX_FALSE=
6704fi
6705
6706
6707for ac_prog in 'bison -y' byacc
6708do
6709  # Extract the first word of "$ac_prog", so it can be a program name with args.
6710set dummy $ac_prog; ac_word=$2
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712$as_echo_n "checking for $ac_word... " >&6; }
6713if ${ac_cv_prog_YACC+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  if test -n "$YACC"; then
6717  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6718else
6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722  IFS=$as_save_IFS
6723  test -z "$as_dir" && as_dir=.
6724    for ac_exec_ext in '' $ac_executable_extensions; do
6725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726    ac_cv_prog_YACC="$ac_prog"
6727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728    break 2
6729  fi
6730done
6731  done
6732IFS=$as_save_IFS
6733
6734fi
6735fi
6736YACC=$ac_cv_prog_YACC
6737if test -n "$YACC"; then
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6739$as_echo "$YACC" >&6; }
6740else
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742$as_echo "no" >&6; }
6743fi
6744
6745
6746  test -n "$YACC" && break
6747done
6748test -n "$YACC" || YACC="yacc"
6749
6750if test -n "$ac_tool_prefix"; then
6751  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if ${ac_cv_prog_RANLIB+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  if test -n "$RANLIB"; then
6759  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766    for ac_exec_ext in '' $ac_executable_extensions; do
6767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773  done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778RANLIB=$ac_cv_prog_RANLIB
6779if test -n "$RANLIB"; then
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781$as_echo "$RANLIB" >&6; }
6782else
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787
6788fi
6789if test -z "$ac_cv_prog_RANLIB"; then
6790  ac_ct_RANLIB=$RANLIB
6791  # Extract the first word of "ranlib", so it can be a program name with args.
6792set dummy ranlib; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$ac_ct_RANLIB"; then
6799  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808    ac_cv_prog_ac_ct_RANLIB="ranlib"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819if test -n "$ac_ct_RANLIB"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821$as_echo "$ac_ct_RANLIB" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827  if test "x$ac_ct_RANLIB" = x; then
6828    RANLIB=":"
6829  else
6830    case $cross_compiling:$ac_tool_warned in
6831yes:)
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834ac_tool_warned=yes ;;
6835esac
6836    RANLIB=$ac_ct_RANLIB
6837  fi
6838else
6839  RANLIB="$ac_cv_prog_RANLIB"
6840fi
6841
6842
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844$as_echo_n "checking whether ln -s works... " >&6; }
6845LN_S=$as_ln_s
6846if test "$LN_S" = "ln -s"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848$as_echo "yes" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851$as_echo "no, using $LN_S" >&6; }
6852fi
6853
6854
6855
6856
6857
6858        MKINSTALLDIRS=
6859  if test -n "$ac_aux_dir"; then
6860    case "$ac_aux_dir" in
6861      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6862      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6863    esac
6864  fi
6865  if test -z "$MKINSTALLDIRS"; then
6866    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6867  fi
6868
6869
6870
6871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6872$as_echo_n "checking whether NLS is requested... " >&6; }
6873    # Check whether --enable-nls was given.
6874if test "${enable_nls+set}" = set; then :
6875  enableval=$enable_nls; USE_NLS=$enableval
6876else
6877  USE_NLS=yes
6878fi
6879
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6881$as_echo "$USE_NLS" >&6; }
6882
6883
6884
6885
6886
6887
6888# Prepare PATH_SEPARATOR.
6889# The user is always right.
6890if test "${PATH_SEPARATOR+set}" != set; then
6891  echo "#! /bin/sh" >conf$$.sh
6892  echo  "exit 0"   >>conf$$.sh
6893  chmod +x conf$$.sh
6894  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6895    PATH_SEPARATOR=';'
6896  else
6897    PATH_SEPARATOR=:
6898  fi
6899  rm -f conf$$.sh
6900fi
6901
6902# Find out how to test for executable files. Don't use a zero-byte file,
6903# as systems may use methods other than mode bits to determine executability.
6904cat >conf$$.file <<_ASEOF
6905#! /bin/sh
6906exit 0
6907_ASEOF
6908chmod +x conf$$.file
6909if test -x conf$$.file >/dev/null 2>&1; then
6910  ac_executable_p="test -x"
6911else
6912  ac_executable_p="test -f"
6913fi
6914rm -f conf$$.file
6915
6916# Extract the first word of "msgfmt", so it can be a program name with args.
6917set dummy msgfmt; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_path_MSGFMT+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  case "$MSGFMT" in
6924  [\\/]* | ?:[\\/]*)
6925    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6926    ;;
6927  *)
6928    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6929    for ac_dir in $PATH; do
6930      IFS="$ac_save_IFS"
6931      test -z "$ac_dir" && ac_dir=.
6932      for ac_exec_ext in '' $ac_executable_extensions; do
6933        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6934          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6935     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6936            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6937            break 2
6938          fi
6939        fi
6940      done
6941    done
6942    IFS="$ac_save_IFS"
6943  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6944    ;;
6945esac
6946fi
6947MSGFMT="$ac_cv_path_MSGFMT"
6948if test "$MSGFMT" != ":"; then
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6950$as_echo "$MSGFMT" >&6; }
6951else
6952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6957set dummy gmsgfmt; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
6960if ${ac_cv_path_GMSGFMT+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  case $GMSGFMT in
6964  [\\/]* | ?:[\\/]*)
6965  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6966  ;;
6967  *)
6968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971  IFS=$as_save_IFS
6972  test -z "$as_dir" && as_dir=.
6973    for ac_exec_ext in '' $ac_executable_extensions; do
6974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980  done
6981IFS=$as_save_IFS
6982
6983  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6984  ;;
6985esac
6986fi
6987GMSGFMT=$ac_cv_path_GMSGFMT
6988if test -n "$GMSGFMT"; then
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6990$as_echo "$GMSGFMT" >&6; }
6991else
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996
6997
6998
6999# Prepare PATH_SEPARATOR.
7000# The user is always right.
7001if test "${PATH_SEPARATOR+set}" != set; then
7002  echo "#! /bin/sh" >conf$$.sh
7003  echo  "exit 0"   >>conf$$.sh
7004  chmod +x conf$$.sh
7005  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7006    PATH_SEPARATOR=';'
7007  else
7008    PATH_SEPARATOR=:
7009  fi
7010  rm -f conf$$.sh
7011fi
7012
7013# Find out how to test for executable files. Don't use a zero-byte file,
7014# as systems may use methods other than mode bits to determine executability.
7015cat >conf$$.file <<_ASEOF
7016#! /bin/sh
7017exit 0
7018_ASEOF
7019chmod +x conf$$.file
7020if test -x conf$$.file >/dev/null 2>&1; then
7021  ac_executable_p="test -x"
7022else
7023  ac_executable_p="test -f"
7024fi
7025rm -f conf$$.file
7026
7027# Extract the first word of "xgettext", so it can be a program name with args.
7028set dummy xgettext; ac_word=$2
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030$as_echo_n "checking for $ac_word... " >&6; }
7031if ${ac_cv_path_XGETTEXT+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  case "$XGETTEXT" in
7035  [\\/]* | ?:[\\/]*)
7036    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7037    ;;
7038  *)
7039    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7040    for ac_dir in $PATH; do
7041      IFS="$ac_save_IFS"
7042      test -z "$ac_dir" && ac_dir=.
7043      for ac_exec_ext in '' $ac_executable_extensions; do
7044        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7045          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7046     (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
7047            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7048            break 2
7049          fi
7050        fi
7051      done
7052    done
7053    IFS="$ac_save_IFS"
7054  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7055    ;;
7056esac
7057fi
7058XGETTEXT="$ac_cv_path_XGETTEXT"
7059if test "$XGETTEXT" != ":"; then
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7061$as_echo "$XGETTEXT" >&6; }
7062else
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064$as_echo "no" >&6; }
7065fi
7066
7067    rm -f messages.po
7068
7069
7070# Prepare PATH_SEPARATOR.
7071# The user is always right.
7072if test "${PATH_SEPARATOR+set}" != set; then
7073  echo "#! /bin/sh" >conf$$.sh
7074  echo  "exit 0"   >>conf$$.sh
7075  chmod +x conf$$.sh
7076  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7077    PATH_SEPARATOR=';'
7078  else
7079    PATH_SEPARATOR=:
7080  fi
7081  rm -f conf$$.sh
7082fi
7083
7084# Find out how to test for executable files. Don't use a zero-byte file,
7085# as systems may use methods other than mode bits to determine executability.
7086cat >conf$$.file <<_ASEOF
7087#! /bin/sh
7088exit 0
7089_ASEOF
7090chmod +x conf$$.file
7091if test -x conf$$.file >/dev/null 2>&1; then
7092  ac_executable_p="test -x"
7093else
7094  ac_executable_p="test -f"
7095fi
7096rm -f conf$$.file
7097
7098# Extract the first word of "msgmerge", so it can be a program name with args.
7099set dummy msgmerge; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if ${ac_cv_path_MSGMERGE+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  case "$MSGMERGE" in
7106  [\\/]* | ?:[\\/]*)
7107    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7108    ;;
7109  *)
7110    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7111    for ac_dir in $PATH; do
7112      IFS="$ac_save_IFS"
7113      test -z "$ac_dir" && ac_dir=.
7114      for ac_exec_ext in '' $ac_executable_extensions; do
7115        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7116          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7117            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7118            break 2
7119          fi
7120        fi
7121      done
7122    done
7123    IFS="$ac_save_IFS"
7124  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7125    ;;
7126esac
7127fi
7128MSGMERGE="$ac_cv_path_MSGMERGE"
7129if test "$MSGMERGE" != ":"; then
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7131$as_echo "$MSGMERGE" >&6; }
7132else
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135fi
7136
7137
7138      if test "$GMSGFMT" != ":"; then
7139            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7140       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7141      : ;
7142    else
7143      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7145$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7146      GMSGFMT=":"
7147    fi
7148  fi
7149
7150      if test "$XGETTEXT" != ":"; then
7151            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7152       (if $XGETTEXT --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
7153      : ;
7154    else
7155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7156$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7157      XGETTEXT=":"
7158    fi
7159        rm -f messages.po
7160  fi
7161
7162  ac_config_commands="$ac_config_commands default-1"
7163
7164
7165
7166      if test "X$prefix" = "XNONE"; then
7167    acl_final_prefix="$ac_default_prefix"
7168  else
7169    acl_final_prefix="$prefix"
7170  fi
7171  if test "X$exec_prefix" = "XNONE"; then
7172    acl_final_exec_prefix='${prefix}'
7173  else
7174    acl_final_exec_prefix="$exec_prefix"
7175  fi
7176  acl_save_prefix="$prefix"
7177  prefix="$acl_final_prefix"
7178  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7179  prefix="$acl_save_prefix"
7180
7181
7182# Check whether --with-gnu-ld was given.
7183if test "${with_gnu_ld+set}" = set; then :
7184  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7185else
7186  with_gnu_ld=no
7187fi
7188
7189# Prepare PATH_SEPARATOR.
7190# The user is always right.
7191if test "${PATH_SEPARATOR+set}" != set; then
7192  echo "#! /bin/sh" >conf$$.sh
7193  echo  "exit 0"   >>conf$$.sh
7194  chmod +x conf$$.sh
7195  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7196    PATH_SEPARATOR=';'
7197  else
7198    PATH_SEPARATOR=:
7199  fi
7200  rm -f conf$$.sh
7201fi
7202ac_prog=ld
7203if test "$GCC" = yes; then
7204  # Check if gcc -print-prog-name=ld gives a path.
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7206$as_echo_n "checking for ld used by GCC... " >&6; }
7207  case $host in
7208  *-*-mingw*)
7209    # gcc leaves a trailing carriage return which upsets mingw
7210    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7211  *)
7212    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7213  esac
7214  case $ac_prog in
7215    # Accept absolute paths.
7216    [\\/]* | [A-Za-z]:[\\/]*)
7217      re_direlt='/[^/][^/]*/\.\./'
7218      # Canonicalize the path of ld
7219      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7220      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7221	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7222      done
7223      test -z "$LD" && LD="$ac_prog"
7224      ;;
7225  "")
7226    # If it fails, then pretend we aren't using GCC.
7227    ac_prog=ld
7228    ;;
7229  *)
7230    # If it is relative, then search for the first ld in PATH.
7231    with_gnu_ld=unknown
7232    ;;
7233  esac
7234elif test "$with_gnu_ld" = yes; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7236$as_echo_n "checking for GNU ld... " >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7239$as_echo_n "checking for non-GNU ld... " >&6; }
7240fi
7241if ${acl_cv_path_LD+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  if test -z "$LD"; then
7245  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7246  for ac_dir in $PATH; do
7247    test -z "$ac_dir" && ac_dir=.
7248    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7249      acl_cv_path_LD="$ac_dir/$ac_prog"
7250      # Check to see if the program is GNU ld.  I'd rather use --version,
7251      # but apparently some GNU ld's only accept -v.
7252      # Break only if it was the GNU/non-GNU ld that we prefer.
7253      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7254	test "$with_gnu_ld" != no && break
7255      else
7256	test "$with_gnu_ld" != yes && break
7257      fi
7258    fi
7259  done
7260  IFS="$ac_save_ifs"
7261else
7262  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7263fi
7264fi
7265
7266LD="$acl_cv_path_LD"
7267if test -n "$LD"; then
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7269$as_echo "$LD" >&6; }
7270else
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
7274test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7276$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7277if ${acl_cv_prog_gnu_ld+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7281if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7282  acl_cv_prog_gnu_ld=yes
7283else
7284  acl_cv_prog_gnu_ld=no
7285fi
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7288$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7289with_gnu_ld=$acl_cv_prog_gnu_ld
7290
7291
7292
7293                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7294$as_echo_n "checking for shared library run path origin... " >&6; }
7295if ${acl_cv_rpath+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298
7299    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7300    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7301    . ./conftest.sh
7302    rm -f ./conftest.sh
7303    acl_cv_rpath=done
7304
7305fi
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7307$as_echo "$acl_cv_rpath" >&6; }
7308  wl="$acl_cv_wl"
7309  libext="$acl_cv_libext"
7310  shlibext="$acl_cv_shlibext"
7311  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7312  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7313  hardcode_direct="$acl_cv_hardcode_direct"
7314  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7315    # Check whether --enable-rpath was given.
7316if test "${enable_rpath+set}" = set; then :
7317  enableval=$enable_rpath; :
7318else
7319  enable_rpath=yes
7320fi
7321
7322
7323
7324
7325
7326
7327
7328
7329    use_additional=yes
7330
7331  acl_save_prefix="$prefix"
7332  prefix="$acl_final_prefix"
7333  acl_save_exec_prefix="$exec_prefix"
7334  exec_prefix="$acl_final_exec_prefix"
7335
7336    eval additional_includedir=\"$includedir\"
7337    eval additional_libdir=\"$libdir\"
7338
7339  exec_prefix="$acl_save_exec_prefix"
7340  prefix="$acl_save_prefix"
7341
7342
7343# Check whether --with-libiconv-prefix was given.
7344if test "${with_libiconv_prefix+set}" = set; then :
7345  withval=$with_libiconv_prefix;
7346    if test "X$withval" = "Xno"; then
7347      use_additional=no
7348    else
7349      if test "X$withval" = "X"; then
7350
7351  acl_save_prefix="$prefix"
7352  prefix="$acl_final_prefix"
7353  acl_save_exec_prefix="$exec_prefix"
7354  exec_prefix="$acl_final_exec_prefix"
7355
7356          eval additional_includedir=\"$includedir\"
7357          eval additional_libdir=\"$libdir\"
7358
7359  exec_prefix="$acl_save_exec_prefix"
7360  prefix="$acl_save_prefix"
7361
7362      else
7363        additional_includedir="$withval/include"
7364        additional_libdir="$withval/lib"
7365      fi
7366    fi
7367
7368fi
7369
7370
7371# Check whether --with-libiconv-type was given.
7372if test "${with_libiconv_type+set}" = set; then :
7373  withval=$with_libiconv_type;  with_libiconv_type=$withval
7374else
7375   with_libiconv_type=auto
7376fi
7377
7378  lib_type=`eval echo \$with_libiconv_type`
7379
7380      LIBICONV=
7381  LTLIBICONV=
7382  INCICONV=
7383  rpathdirs=
7384  ltrpathdirs=
7385  names_already_handled=
7386  names_next_round='iconv '
7387  while test -n "$names_next_round"; do
7388    names_this_round="$names_next_round"
7389    names_next_round=
7390    for name in $names_this_round; do
7391      already_handled=
7392      for n in $names_already_handled; do
7393        if test "$n" = "$name"; then
7394          already_handled=yes
7395          break
7396        fi
7397      done
7398      if test -z "$already_handled"; then
7399        names_already_handled="$names_already_handled $name"
7400                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7401        eval value=\"\$HAVE_LIB$uppername\"
7402        if test -n "$value"; then
7403          if test "$value" = yes; then
7404            eval value=\"\$LIB$uppername\"
7405            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7406            eval value=\"\$LTLIB$uppername\"
7407            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7408          else
7409                                    :
7410          fi
7411        else
7412                              found_dir=
7413          found_la=
7414          found_so=
7415          found_a=
7416          if test $use_additional = yes; then
7417            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7418              found_dir="$additional_libdir"
7419              found_so="$additional_libdir/lib$name.$shlibext"
7420              if test -f "$additional_libdir/lib$name.la"; then
7421                found_la="$additional_libdir/lib$name.la"
7422              fi
7423            elif test x$lib_type != xshared; then
7424              if test -f "$additional_libdir/lib$name.$libext"; then
7425                found_dir="$additional_libdir"
7426                found_a="$additional_libdir/lib$name.$libext"
7427                if test -f "$additional_libdir/lib$name.la"; then
7428                  found_la="$additional_libdir/lib$name.la"
7429                fi
7430              fi
7431            fi
7432          fi
7433          if test "X$found_dir" = "X"; then
7434            for x in $LDFLAGS $LTLIBICONV; do
7435
7436  acl_save_prefix="$prefix"
7437  prefix="$acl_final_prefix"
7438  acl_save_exec_prefix="$exec_prefix"
7439  exec_prefix="$acl_final_exec_prefix"
7440  eval x=\"$x\"
7441  exec_prefix="$acl_save_exec_prefix"
7442  prefix="$acl_save_prefix"
7443
7444              case "$x" in
7445                -L*)
7446                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7447                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7448                    found_dir="$dir"
7449                    found_so="$dir/lib$name.$shlibext"
7450                    if test -f "$dir/lib$name.la"; then
7451                      found_la="$dir/lib$name.la"
7452                    fi
7453                  elif test x$lib_type != xshared; then
7454                    if test -f "$dir/lib$name.$libext"; then
7455                      found_dir="$dir"
7456                      found_a="$dir/lib$name.$libext"
7457                      if test -f "$dir/lib$name.la"; then
7458                        found_la="$dir/lib$name.la"
7459                      fi
7460                    fi
7461                  fi
7462                  ;;
7463              esac
7464              if test "X$found_dir" != "X"; then
7465                break
7466              fi
7467            done
7468          fi
7469          if test "X$found_dir" != "X"; then
7470                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7471            if test "X$found_so" != "X"; then
7472                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7473                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7474              else
7475                                                                                haveit=
7476                for x in $ltrpathdirs; do
7477                  if test "X$x" = "X$found_dir"; then
7478                    haveit=yes
7479                    break
7480                  fi
7481                done
7482                if test -z "$haveit"; then
7483                  ltrpathdirs="$ltrpathdirs $found_dir"
7484                fi
7485                                if test "$hardcode_direct" = yes; then
7486                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7487                else
7488                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7489                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7490                                                            haveit=
7491                    for x in $rpathdirs; do
7492                      if test "X$x" = "X$found_dir"; then
7493                        haveit=yes
7494                        break
7495                      fi
7496                    done
7497                    if test -z "$haveit"; then
7498                      rpathdirs="$rpathdirs $found_dir"
7499                    fi
7500                  else
7501                                                                                haveit=
7502                    for x in $LDFLAGS $LIBICONV; do
7503
7504  acl_save_prefix="$prefix"
7505  prefix="$acl_final_prefix"
7506  acl_save_exec_prefix="$exec_prefix"
7507  exec_prefix="$acl_final_exec_prefix"
7508  eval x=\"$x\"
7509  exec_prefix="$acl_save_exec_prefix"
7510  prefix="$acl_save_prefix"
7511
7512                      if test "X$x" = "X-L$found_dir"; then
7513                        haveit=yes
7514                        break
7515                      fi
7516                    done
7517                    if test -z "$haveit"; then
7518                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7519                    fi
7520                    if test "$hardcode_minus_L" != no; then
7521                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7522                    else
7523                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7524                    fi
7525                  fi
7526                fi
7527              fi
7528            else
7529              if test "X$found_a" != "X"; then
7530                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7531              else
7532                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7533              fi
7534            fi
7535                        additional_includedir=
7536            case "$found_dir" in
7537              */lib | */lib/)
7538                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7539                additional_includedir="$basedir/include"
7540                ;;
7541            esac
7542            if test "X$additional_includedir" != "X"; then
7543                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7544                haveit=
7545                if test "X$additional_includedir" = "X/usr/local/include"; then
7546                  if test -n "$GCC"; then
7547                    case $host_os in
7548                      linux*) haveit=yes;;
7549                    esac
7550                  fi
7551                fi
7552                if test -z "$haveit"; then
7553                  for x in $CPPFLAGS $INCICONV; do
7554
7555  acl_save_prefix="$prefix"
7556  prefix="$acl_final_prefix"
7557  acl_save_exec_prefix="$exec_prefix"
7558  exec_prefix="$acl_final_exec_prefix"
7559  eval x=\"$x\"
7560  exec_prefix="$acl_save_exec_prefix"
7561  prefix="$acl_save_prefix"
7562
7563                    if test "X$x" = "X-I$additional_includedir"; then
7564                      haveit=yes
7565                      break
7566                    fi
7567                  done
7568                  if test -z "$haveit"; then
7569                    if test -d "$additional_includedir"; then
7570                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7571                    fi
7572                  fi
7573                fi
7574              fi
7575            fi
7576                        if test -n "$found_la"; then
7577                                                        save_libdir="$libdir"
7578              case "$found_la" in
7579                */* | *\\*) . "$found_la" ;;
7580                *) . "./$found_la" ;;
7581              esac
7582              libdir="$save_libdir"
7583                            for dep in $dependency_libs; do
7584                case "$dep" in
7585                  -L*)
7586                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7587                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7588                      haveit=
7589                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7590                        if test -n "$GCC"; then
7591                          case $host_os in
7592                            linux*) haveit=yes;;
7593                          esac
7594                        fi
7595                      fi
7596                      if test -z "$haveit"; then
7597                        haveit=
7598                        for x in $LDFLAGS $LIBICONV; do
7599
7600  acl_save_prefix="$prefix"
7601  prefix="$acl_final_prefix"
7602  acl_save_exec_prefix="$exec_prefix"
7603  exec_prefix="$acl_final_exec_prefix"
7604  eval x=\"$x\"
7605  exec_prefix="$acl_save_exec_prefix"
7606  prefix="$acl_save_prefix"
7607
7608                          if test "X$x" = "X-L$additional_libdir"; then
7609                            haveit=yes
7610                            break
7611                          fi
7612                        done
7613                        if test -z "$haveit"; then
7614                          if test -d "$additional_libdir"; then
7615                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7616                          fi
7617                        fi
7618                        haveit=
7619                        for x in $LDFLAGS $LTLIBICONV; do
7620
7621  acl_save_prefix="$prefix"
7622  prefix="$acl_final_prefix"
7623  acl_save_exec_prefix="$exec_prefix"
7624  exec_prefix="$acl_final_exec_prefix"
7625  eval x=\"$x\"
7626  exec_prefix="$acl_save_exec_prefix"
7627  prefix="$acl_save_prefix"
7628
7629                          if test "X$x" = "X-L$additional_libdir"; then
7630                            haveit=yes
7631                            break
7632                          fi
7633                        done
7634                        if test -z "$haveit"; then
7635                          if test -d "$additional_libdir"; then
7636                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7637                          fi
7638                        fi
7639                      fi
7640                    fi
7641                    ;;
7642                  -R*)
7643                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7644                    if test "$enable_rpath" != no; then
7645                                                                  haveit=
7646                      for x in $rpathdirs; do
7647                        if test "X$x" = "X$dir"; then
7648                          haveit=yes
7649                          break
7650                        fi
7651                      done
7652                      if test -z "$haveit"; then
7653                        rpathdirs="$rpathdirs $dir"
7654                      fi
7655                                                                  haveit=
7656                      for x in $ltrpathdirs; do
7657                        if test "X$x" = "X$dir"; then
7658                          haveit=yes
7659                          break
7660                        fi
7661                      done
7662                      if test -z "$haveit"; then
7663                        ltrpathdirs="$ltrpathdirs $dir"
7664                      fi
7665                    fi
7666                    ;;
7667                  -l*)
7668                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7669                    ;;
7670                  *.la)
7671                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7672                    ;;
7673                  *)
7674                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7675                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7676                    ;;
7677                esac
7678              done
7679            fi
7680          else
7681                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7682              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7683              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7684            else
7685              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7686              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7687            fi
7688          fi
7689        fi
7690      fi
7691    done
7692  done
7693  if test "X$rpathdirs" != "X"; then
7694    if test -n "$hardcode_libdir_separator"; then
7695                        alldirs=
7696      for found_dir in $rpathdirs; do
7697        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7698      done
7699            acl_save_libdir="$libdir"
7700      libdir="$alldirs"
7701      eval flag=\"$hardcode_libdir_flag_spec\"
7702      libdir="$acl_save_libdir"
7703      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7704    else
7705            for found_dir in $rpathdirs; do
7706        acl_save_libdir="$libdir"
7707        libdir="$found_dir"
7708        eval flag=\"$hardcode_libdir_flag_spec\"
7709        libdir="$acl_save_libdir"
7710        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7711      done
7712    fi
7713  fi
7714  if test "X$ltrpathdirs" != "X"; then
7715            for found_dir in $ltrpathdirs; do
7716      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7717    done
7718  fi
7719
7720
7721
7722
7723
7724if test -f ../gettext/uninstalled-config.sh; then
7725  relative_builddir='$(top_builddir)/../gettext'
7726  .  ../gettext/uninstalled-config.sh
7727else
7728  # The sister gettext directory doesn't exist and won't collect information on
7729  # using gettext for us.  Call a bundled AM_GNU_GETTEXT.
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7754$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7755if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  gt_save_LIBS="$LIBS"
7759     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762#include <CoreFoundation/CFPreferences.h>
7763int
7764main ()
7765{
7766CFPreferencesCopyAppValue(NULL, NULL)
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_link "$LINENO"; then :
7772  gt_cv_func_CFPreferencesCopyAppValue=yes
7773else
7774  gt_cv_func_CFPreferencesCopyAppValue=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext \
7777    conftest$ac_exeext conftest.$ac_ext
7778     LIBS="$gt_save_LIBS"
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7781$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7782  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7783
7784$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7785
7786  fi
7787                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7788$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7789if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  gt_save_LIBS="$LIBS"
7793     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796#include <CoreFoundation/CFLocale.h>
7797int
7798main ()
7799{
7800CFLocaleCopyPreferredLanguages();
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"; then :
7806  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7807else
7808  gt_cv_func_CFLocaleCopyPreferredLanguages=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext \
7811    conftest$ac_exeext conftest.$ac_ext
7812     LIBS="$gt_save_LIBS"
7813fi
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7815$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7816  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7817
7818$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7819
7820  fi
7821  INTL_MACOSX_LIBS=
7822  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7823     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7824                    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7825  fi
7826
7827
7828
7829
7830
7831
7832  LIBINTL=
7833  LTLIBINTL=
7834  POSUB=
7835
7836    case " $gt_needs " in
7837    *" need-formatstring-macros "*) gt_api_version=3 ;;
7838    *" need-ngettext "*) gt_api_version=2 ;;
7839    *) gt_api_version=1 ;;
7840  esac
7841  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7842  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7843
7844    if test "$USE_NLS" = "yes"; then
7845    gt_use_preinstalled_gnugettext=no
7846
7847
7848        if test $gt_api_version -ge 3; then
7849          gt_revision_test_code='
7850#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7851#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7852#endif
7853typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7854'
7855        else
7856          gt_revision_test_code=
7857        fi
7858        if test $gt_api_version -ge 2; then
7859          gt_expression_test_code=' + * ngettext ("", "", 0)'
7860        else
7861          gt_expression_test_code=
7862        fi
7863
7864        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7865$as_echo_n "checking for GNU gettext in libc... " >&6; }
7866if eval \${$gt_func_gnugettext_libc+:} false; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870/* end confdefs.h.  */
7871
7872#include <libintl.h>
7873#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7874extern int _nl_msg_cat_cntr;
7875extern int *_nl_domain_bindings;
7876#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7877#else
7878#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7879#endif
7880$gt_revision_test_code
7881
7882int
7883main ()
7884{
7885
7886bindtextdomain ("", "");
7887return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7888
7889  ;
7890  return 0;
7891}
7892_ACEOF
7893if ac_fn_c_try_link "$LINENO"; then :
7894  eval "$gt_func_gnugettext_libc=yes"
7895else
7896  eval "$gt_func_gnugettext_libc=no"
7897fi
7898rm -f core conftest.err conftest.$ac_objext \
7899    conftest$ac_exeext conftest.$ac_ext
7900fi
7901eval ac_res=\$$gt_func_gnugettext_libc
7902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7903$as_echo "$ac_res" >&6; }
7904
7905        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7906
7907
7908
7909
7910
7911          am_save_CPPFLAGS="$CPPFLAGS"
7912
7913  for element in $INCICONV; do
7914    haveit=
7915    for x in $CPPFLAGS; do
7916
7917  acl_save_prefix="$prefix"
7918  prefix="$acl_final_prefix"
7919  acl_save_exec_prefix="$exec_prefix"
7920  exec_prefix="$acl_final_exec_prefix"
7921  eval x=\"$x\"
7922  exec_prefix="$acl_save_exec_prefix"
7923  prefix="$acl_save_prefix"
7924
7925      if test "X$x" = "X$element"; then
7926        haveit=yes
7927        break
7928      fi
7929    done
7930    if test -z "$haveit"; then
7931      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7932    fi
7933  done
7934
7935
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7937$as_echo_n "checking for iconv... " >&6; }
7938if ${am_cv_func_iconv+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941
7942    am_cv_func_iconv="no, consider installing GNU libiconv"
7943    am_cv_lib_iconv=no
7944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946
7947#include <stdlib.h>
7948#include <iconv.h>
7949
7950int
7951main ()
7952{
7953iconv_t cd = iconv_open("","");
7954           iconv(cd,NULL,NULL,NULL,NULL);
7955           iconv_close(cd);
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960if ac_fn_c_try_link "$LINENO"; then :
7961  am_cv_func_iconv=yes
7962fi
7963rm -f core conftest.err conftest.$ac_objext \
7964    conftest$ac_exeext conftest.$ac_ext
7965    if test "$am_cv_func_iconv" != yes; then
7966      am_save_LIBS="$LIBS"
7967      LIBS="$LIBS $LIBICONV"
7968      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970
7971#include <stdlib.h>
7972#include <iconv.h>
7973
7974int
7975main ()
7976{
7977iconv_t cd = iconv_open("","");
7978             iconv(cd,NULL,NULL,NULL,NULL);
7979             iconv_close(cd);
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"; then :
7985  am_cv_lib_iconv=yes
7986        am_cv_func_iconv=yes
7987fi
7988rm -f core conftest.err conftest.$ac_objext \
7989    conftest$ac_exeext conftest.$ac_ext
7990      LIBS="$am_save_LIBS"
7991    fi
7992
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7995$as_echo "$am_cv_func_iconv" >&6; }
7996  if test "$am_cv_func_iconv" = yes; then
7997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7998$as_echo_n "checking for working iconv... " >&6; }
7999if ${am_cv_func_iconv_works+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002
8003                  am_save_LIBS="$LIBS"
8004      if test $am_cv_lib_iconv = yes; then
8005        LIBS="$LIBS $LIBICONV"
8006      fi
8007      am_cv_func_iconv_works=no
8008      for ac_iconv_const in '' 'const'; do
8009        if test "$cross_compiling" = yes; then :
8010  case "$host_os" in
8011             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8012             *)            am_cv_func_iconv_works="guessing yes" ;;
8013           esac
8014else
8015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017
8018#include <iconv.h>
8019#include <string.h>
8020
8021#ifndef ICONV_CONST
8022# define ICONV_CONST $ac_iconv_const
8023#endif
8024
8025int
8026main ()
8027{
8028int result = 0;
8029  /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8030     successful returns.  This is even documented in
8031     <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8032  {
8033    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8034    if (cd_utf8_to_88591 != (iconv_t)(-1))
8035      {
8036        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8037        char buf[10];
8038        ICONV_CONST char *inptr = input;
8039        size_t inbytesleft = strlen (input);
8040        char *outptr = buf;
8041        size_t outbytesleft = sizeof (buf);
8042        size_t res = iconv (cd_utf8_to_88591,
8043                            &inptr, &inbytesleft,
8044                            &outptr, &outbytesleft);
8045        if (res == 0)
8046          result |= 1;
8047        iconv_close (cd_utf8_to_88591);
8048      }
8049  }
8050  /* Test against Solaris 10 bug: Failures are not distinguishable from
8051     successful returns.  */
8052  {
8053    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8054    if (cd_ascii_to_88591 != (iconv_t)(-1))
8055      {
8056        static ICONV_CONST char input[] = "\263";
8057        char buf[10];
8058        ICONV_CONST char *inptr = input;
8059        size_t inbytesleft = strlen (input);
8060        char *outptr = buf;
8061        size_t outbytesleft = sizeof (buf);
8062        size_t res = iconv (cd_ascii_to_88591,
8063                            &inptr, &inbytesleft,
8064                            &outptr, &outbytesleft);
8065        if (res == 0)
8066          result |= 2;
8067        iconv_close (cd_ascii_to_88591);
8068      }
8069  }
8070  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8071  {
8072    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8073    if (cd_88591_to_utf8 != (iconv_t)(-1))
8074      {
8075        static ICONV_CONST char input[] = "\304";
8076        static char buf[2] = { (char)0xDE, (char)0xAD };
8077        ICONV_CONST char *inptr = input;
8078        size_t inbytesleft = 1;
8079        char *outptr = buf;
8080        size_t outbytesleft = 1;
8081        size_t res = iconv (cd_88591_to_utf8,
8082                            &inptr, &inbytesleft,
8083                            &outptr, &outbytesleft);
8084        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8085          result |= 4;
8086        iconv_close (cd_88591_to_utf8);
8087      }
8088  }
8089#if 0 /* This bug could be worked around by the caller.  */
8090  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8091  {
8092    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8093    if (cd_88591_to_utf8 != (iconv_t)(-1))
8094      {
8095        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8096        char buf[50];
8097        ICONV_CONST char *inptr = input;
8098        size_t inbytesleft = strlen (input);
8099        char *outptr = buf;
8100        size_t outbytesleft = sizeof (buf);
8101        size_t res = iconv (cd_88591_to_utf8,
8102                            &inptr, &inbytesleft,
8103                            &outptr, &outbytesleft);
8104        if ((int)res > 0)
8105          result |= 8;
8106        iconv_close (cd_88591_to_utf8);
8107      }
8108  }
8109#endif
8110  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8111     provided.  */
8112  {
8113    /* Try standardized names.  */
8114    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8115    /* Try IRIX, OSF/1 names.  */
8116    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8117    /* Try AIX names.  */
8118    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8119    /* Try HP-UX names.  */
8120    iconv_t cd4 = iconv_open ("utf8", "eucJP");
8121    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8122        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8123      result |= 16;
8124    if (cd1 != (iconv_t)(-1))
8125      iconv_close (cd1);
8126    if (cd2 != (iconv_t)(-1))
8127      iconv_close (cd2);
8128    if (cd3 != (iconv_t)(-1))
8129      iconv_close (cd3);
8130    if (cd4 != (iconv_t)(-1))
8131      iconv_close (cd4);
8132  }
8133  return result;
8134
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139if ac_fn_c_try_run "$LINENO"; then :
8140  am_cv_func_iconv_works=yes
8141fi
8142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8143  conftest.$ac_objext conftest.beam conftest.$ac_ext
8144fi
8145
8146        test "$am_cv_func_iconv_works" = no || break
8147      done
8148      LIBS="$am_save_LIBS"
8149
8150fi
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8152$as_echo "$am_cv_func_iconv_works" >&6; }
8153    case "$am_cv_func_iconv_works" in
8154      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8155      *)   am_func_iconv=yes ;;
8156    esac
8157  else
8158    am_func_iconv=no am_cv_lib_iconv=no
8159  fi
8160  if test "$am_func_iconv" = yes; then
8161
8162$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8163
8164  fi
8165  if test "$am_cv_lib_iconv" = yes; then
8166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8167$as_echo_n "checking how to link with libiconv... " >&6; }
8168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8169$as_echo "$LIBICONV" >&6; }
8170  else
8171            CPPFLAGS="$am_save_CPPFLAGS"
8172    LIBICONV=
8173    LTLIBICONV=
8174  fi
8175
8176
8177
8178
8179
8180
8181    use_additional=yes
8182
8183  acl_save_prefix="$prefix"
8184  prefix="$acl_final_prefix"
8185  acl_save_exec_prefix="$exec_prefix"
8186  exec_prefix="$acl_final_exec_prefix"
8187
8188    eval additional_includedir=\"$includedir\"
8189    eval additional_libdir=\"$libdir\"
8190
8191  exec_prefix="$acl_save_exec_prefix"
8192  prefix="$acl_save_prefix"
8193
8194
8195# Check whether --with-libintl-prefix was given.
8196if test "${with_libintl_prefix+set}" = set; then :
8197  withval=$with_libintl_prefix;
8198    if test "X$withval" = "Xno"; then
8199      use_additional=no
8200    else
8201      if test "X$withval" = "X"; then
8202
8203  acl_save_prefix="$prefix"
8204  prefix="$acl_final_prefix"
8205  acl_save_exec_prefix="$exec_prefix"
8206  exec_prefix="$acl_final_exec_prefix"
8207
8208          eval additional_includedir=\"$includedir\"
8209          eval additional_libdir=\"$libdir\"
8210
8211  exec_prefix="$acl_save_exec_prefix"
8212  prefix="$acl_save_prefix"
8213
8214      else
8215        additional_includedir="$withval/include"
8216        additional_libdir="$withval/lib"
8217      fi
8218    fi
8219
8220fi
8221
8222
8223# Check whether --with-libintl-type was given.
8224if test "${with_libintl_type+set}" = set; then :
8225  withval=$with_libintl_type;  with_libintl_type=$withval
8226else
8227   with_libintl_type=auto
8228fi
8229
8230  lib_type=`eval echo \$with_libintl_type`
8231
8232      LIBINTL=
8233  LTLIBINTL=
8234  INCINTL=
8235  rpathdirs=
8236  ltrpathdirs=
8237  names_already_handled=
8238  names_next_round='intl '
8239  while test -n "$names_next_round"; do
8240    names_this_round="$names_next_round"
8241    names_next_round=
8242    for name in $names_this_round; do
8243      already_handled=
8244      for n in $names_already_handled; do
8245        if test "$n" = "$name"; then
8246          already_handled=yes
8247          break
8248        fi
8249      done
8250      if test -z "$already_handled"; then
8251        names_already_handled="$names_already_handled $name"
8252                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8253        eval value=\"\$HAVE_LIB$uppername\"
8254        if test -n "$value"; then
8255          if test "$value" = yes; then
8256            eval value=\"\$LIB$uppername\"
8257            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8258            eval value=\"\$LTLIB$uppername\"
8259            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8260          else
8261                                    :
8262          fi
8263        else
8264                              found_dir=
8265          found_la=
8266          found_so=
8267          found_a=
8268          if test $use_additional = yes; then
8269            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8270              found_dir="$additional_libdir"
8271              found_so="$additional_libdir/lib$name.$shlibext"
8272              if test -f "$additional_libdir/lib$name.la"; then
8273                found_la="$additional_libdir/lib$name.la"
8274              fi
8275            elif test x$lib_type != xshared; then
8276              if test -f "$additional_libdir/lib$name.$libext"; then
8277                found_dir="$additional_libdir"
8278                found_a="$additional_libdir/lib$name.$libext"
8279                if test -f "$additional_libdir/lib$name.la"; then
8280                  found_la="$additional_libdir/lib$name.la"
8281                fi
8282              fi
8283            fi
8284          fi
8285          if test "X$found_dir" = "X"; then
8286            for x in $LDFLAGS $LTLIBINTL; do
8287
8288  acl_save_prefix="$prefix"
8289  prefix="$acl_final_prefix"
8290  acl_save_exec_prefix="$exec_prefix"
8291  exec_prefix="$acl_final_exec_prefix"
8292  eval x=\"$x\"
8293  exec_prefix="$acl_save_exec_prefix"
8294  prefix="$acl_save_prefix"
8295
8296              case "$x" in
8297                -L*)
8298                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8299                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8300                    found_dir="$dir"
8301                    found_so="$dir/lib$name.$shlibext"
8302                    if test -f "$dir/lib$name.la"; then
8303                      found_la="$dir/lib$name.la"
8304                    fi
8305                  elif test x$lib_type != xshared; then
8306                    if test -f "$dir/lib$name.$libext"; then
8307                      found_dir="$dir"
8308                      found_a="$dir/lib$name.$libext"
8309                      if test -f "$dir/lib$name.la"; then
8310                        found_la="$dir/lib$name.la"
8311                      fi
8312                    fi
8313                  fi
8314                  ;;
8315              esac
8316              if test "X$found_dir" != "X"; then
8317                break
8318              fi
8319            done
8320          fi
8321          if test "X$found_dir" != "X"; then
8322                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8323            if test "X$found_so" != "X"; then
8324                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8325                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8326              else
8327                                                                                haveit=
8328                for x in $ltrpathdirs; do
8329                  if test "X$x" = "X$found_dir"; then
8330                    haveit=yes
8331                    break
8332                  fi
8333                done
8334                if test -z "$haveit"; then
8335                  ltrpathdirs="$ltrpathdirs $found_dir"
8336                fi
8337                                if test "$hardcode_direct" = yes; then
8338                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8339                else
8340                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8341                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8342                                                            haveit=
8343                    for x in $rpathdirs; do
8344                      if test "X$x" = "X$found_dir"; then
8345                        haveit=yes
8346                        break
8347                      fi
8348                    done
8349                    if test -z "$haveit"; then
8350                      rpathdirs="$rpathdirs $found_dir"
8351                    fi
8352                  else
8353                                                                                haveit=
8354                    for x in $LDFLAGS $LIBINTL; do
8355
8356  acl_save_prefix="$prefix"
8357  prefix="$acl_final_prefix"
8358  acl_save_exec_prefix="$exec_prefix"
8359  exec_prefix="$acl_final_exec_prefix"
8360  eval x=\"$x\"
8361  exec_prefix="$acl_save_exec_prefix"
8362  prefix="$acl_save_prefix"
8363
8364                      if test "X$x" = "X-L$found_dir"; then
8365                        haveit=yes
8366                        break
8367                      fi
8368                    done
8369                    if test -z "$haveit"; then
8370                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8371                    fi
8372                    if test "$hardcode_minus_L" != no; then
8373                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8374                    else
8375                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8376                    fi
8377                  fi
8378                fi
8379              fi
8380            else
8381              if test "X$found_a" != "X"; then
8382                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8383              else
8384                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8385              fi
8386            fi
8387                        additional_includedir=
8388            case "$found_dir" in
8389              */lib | */lib/)
8390                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8391                additional_includedir="$basedir/include"
8392                ;;
8393            esac
8394            if test "X$additional_includedir" != "X"; then
8395                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8396                haveit=
8397                if test "X$additional_includedir" = "X/usr/local/include"; then
8398                  if test -n "$GCC"; then
8399                    case $host_os in
8400                      linux*) haveit=yes;;
8401                    esac
8402                  fi
8403                fi
8404                if test -z "$haveit"; then
8405                  for x in $CPPFLAGS $INCINTL; do
8406
8407  acl_save_prefix="$prefix"
8408  prefix="$acl_final_prefix"
8409  acl_save_exec_prefix="$exec_prefix"
8410  exec_prefix="$acl_final_exec_prefix"
8411  eval x=\"$x\"
8412  exec_prefix="$acl_save_exec_prefix"
8413  prefix="$acl_save_prefix"
8414
8415                    if test "X$x" = "X-I$additional_includedir"; then
8416                      haveit=yes
8417                      break
8418                    fi
8419                  done
8420                  if test -z "$haveit"; then
8421                    if test -d "$additional_includedir"; then
8422                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8423                    fi
8424                  fi
8425                fi
8426              fi
8427            fi
8428                        if test -n "$found_la"; then
8429                                                        save_libdir="$libdir"
8430              case "$found_la" in
8431                */* | *\\*) . "$found_la" ;;
8432                *) . "./$found_la" ;;
8433              esac
8434              libdir="$save_libdir"
8435                            for dep in $dependency_libs; do
8436                case "$dep" in
8437                  -L*)
8438                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8439                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8440                      haveit=
8441                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8442                        if test -n "$GCC"; then
8443                          case $host_os in
8444                            linux*) haveit=yes;;
8445                          esac
8446                        fi
8447                      fi
8448                      if test -z "$haveit"; then
8449                        haveit=
8450                        for x in $LDFLAGS $LIBINTL; do
8451
8452  acl_save_prefix="$prefix"
8453  prefix="$acl_final_prefix"
8454  acl_save_exec_prefix="$exec_prefix"
8455  exec_prefix="$acl_final_exec_prefix"
8456  eval x=\"$x\"
8457  exec_prefix="$acl_save_exec_prefix"
8458  prefix="$acl_save_prefix"
8459
8460                          if test "X$x" = "X-L$additional_libdir"; then
8461                            haveit=yes
8462                            break
8463                          fi
8464                        done
8465                        if test -z "$haveit"; then
8466                          if test -d "$additional_libdir"; then
8467                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8468                          fi
8469                        fi
8470                        haveit=
8471                        for x in $LDFLAGS $LTLIBINTL; do
8472
8473  acl_save_prefix="$prefix"
8474  prefix="$acl_final_prefix"
8475  acl_save_exec_prefix="$exec_prefix"
8476  exec_prefix="$acl_final_exec_prefix"
8477  eval x=\"$x\"
8478  exec_prefix="$acl_save_exec_prefix"
8479  prefix="$acl_save_prefix"
8480
8481                          if test "X$x" = "X-L$additional_libdir"; then
8482                            haveit=yes
8483                            break
8484                          fi
8485                        done
8486                        if test -z "$haveit"; then
8487                          if test -d "$additional_libdir"; then
8488                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8489                          fi
8490                        fi
8491                      fi
8492                    fi
8493                    ;;
8494                  -R*)
8495                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8496                    if test "$enable_rpath" != no; then
8497                                                                  haveit=
8498                      for x in $rpathdirs; do
8499                        if test "X$x" = "X$dir"; then
8500                          haveit=yes
8501                          break
8502                        fi
8503                      done
8504                      if test -z "$haveit"; then
8505                        rpathdirs="$rpathdirs $dir"
8506                      fi
8507                                                                  haveit=
8508                      for x in $ltrpathdirs; do
8509                        if test "X$x" = "X$dir"; then
8510                          haveit=yes
8511                          break
8512                        fi
8513                      done
8514                      if test -z "$haveit"; then
8515                        ltrpathdirs="$ltrpathdirs $dir"
8516                      fi
8517                    fi
8518                    ;;
8519                  -l*)
8520                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8521                    ;;
8522                  *.la)
8523                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8524                    ;;
8525                  *)
8526                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8527                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8528                    ;;
8529                esac
8530              done
8531            fi
8532          else
8533                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8534              LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8535              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8536            else
8537              LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8538              LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8539            fi
8540          fi
8541        fi
8542      fi
8543    done
8544  done
8545  if test "X$rpathdirs" != "X"; then
8546    if test -n "$hardcode_libdir_separator"; then
8547                        alldirs=
8548      for found_dir in $rpathdirs; do
8549        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8550      done
8551            acl_save_libdir="$libdir"
8552      libdir="$alldirs"
8553      eval flag=\"$hardcode_libdir_flag_spec\"
8554      libdir="$acl_save_libdir"
8555      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8556    else
8557            for found_dir in $rpathdirs; do
8558        acl_save_libdir="$libdir"
8559        libdir="$found_dir"
8560        eval flag=\"$hardcode_libdir_flag_spec\"
8561        libdir="$acl_save_libdir"
8562        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8563      done
8564    fi
8565  fi
8566  if test "X$ltrpathdirs" != "X"; then
8567            for found_dir in $ltrpathdirs; do
8568      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8569    done
8570  fi
8571
8572          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8573$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8574if eval \${$gt_func_gnugettext_libintl+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  gt_save_CPPFLAGS="$CPPFLAGS"
8578            CPPFLAGS="$CPPFLAGS $INCINTL"
8579            gt_save_LIBS="$LIBS"
8580            LIBS="$LIBS $LIBINTL"
8581                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583
8584#include <libintl.h>
8585#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8586extern int _nl_msg_cat_cntr;
8587extern
8588#ifdef __cplusplus
8589"C"
8590#endif
8591const char *_nl_expand_alias (const char *);
8592#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8593#else
8594#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8595#endif
8596$gt_revision_test_code
8597
8598int
8599main ()
8600{
8601
8602bindtextdomain ("", "");
8603return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8604
8605  ;
8606  return 0;
8607}
8608_ACEOF
8609if ac_fn_c_try_link "$LINENO"; then :
8610  eval "$gt_func_gnugettext_libintl=yes"
8611else
8612  eval "$gt_func_gnugettext_libintl=no"
8613fi
8614rm -f core conftest.err conftest.$ac_objext \
8615    conftest$ac_exeext conftest.$ac_ext
8616                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8617              LIBS="$LIBS $LIBICONV"
8618              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620
8621#include <libintl.h>
8622#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8623extern int _nl_msg_cat_cntr;
8624extern
8625#ifdef __cplusplus
8626"C"
8627#endif
8628const char *_nl_expand_alias (const char *);
8629#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8630#else
8631#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8632#endif
8633$gt_revision_test_code
8634
8635int
8636main ()
8637{
8638
8639bindtextdomain ("", "");
8640return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8641
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_link "$LINENO"; then :
8647  LIBINTL="$LIBINTL $LIBICONV"
8648                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8649                 eval "$gt_func_gnugettext_libintl=yes"
8650
8651fi
8652rm -f core conftest.err conftest.$ac_objext \
8653    conftest$ac_exeext conftest.$ac_ext
8654            fi
8655            CPPFLAGS="$gt_save_CPPFLAGS"
8656            LIBS="$gt_save_LIBS"
8657fi
8658eval ac_res=\$$gt_func_gnugettext_libintl
8659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8660$as_echo "$ac_res" >&6; }
8661        fi
8662
8663                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8664           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8665                && test "$PACKAGE" != gettext-runtime \
8666                && test "$PACKAGE" != gettext-tools; }; then
8667          gt_use_preinstalled_gnugettext=yes
8668        else
8669                    LIBINTL=
8670          LTLIBINTL=
8671          INCINTL=
8672        fi
8673
8674
8675
8676    if test -n "$INTL_MACOSX_LIBS"; then
8677      if test "$gt_use_preinstalled_gnugettext" = "yes" \
8678         || test "$nls_cv_use_gnu_gettext" = "yes"; then
8679                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8680        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8681      fi
8682    fi
8683
8684    if test "$gt_use_preinstalled_gnugettext" = "yes" \
8685       || test "$nls_cv_use_gnu_gettext" = "yes"; then
8686
8687$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8688
8689    else
8690      USE_NLS=no
8691    fi
8692  fi
8693
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8695$as_echo_n "checking whether to use NLS... " >&6; }
8696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8697$as_echo "$USE_NLS" >&6; }
8698  if test "$USE_NLS" = "yes"; then
8699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8700$as_echo_n "checking where the gettext function comes from... " >&6; }
8701    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8702      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8703        gt_source="external libintl"
8704      else
8705        gt_source="libc"
8706      fi
8707    else
8708      gt_source="included intl directory"
8709    fi
8710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8711$as_echo "$gt_source" >&6; }
8712  fi
8713
8714  if test "$USE_NLS" = "yes"; then
8715
8716    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8717      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8718        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8719$as_echo_n "checking how to link with libintl... " >&6; }
8720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8721$as_echo "$LIBINTL" >&6; }
8722
8723  for element in $INCINTL; do
8724    haveit=
8725    for x in $CPPFLAGS; do
8726
8727  acl_save_prefix="$prefix"
8728  prefix="$acl_final_prefix"
8729  acl_save_exec_prefix="$exec_prefix"
8730  exec_prefix="$acl_final_exec_prefix"
8731  eval x=\"$x\"
8732  exec_prefix="$acl_save_exec_prefix"
8733  prefix="$acl_save_prefix"
8734
8735      if test "X$x" = "X$element"; then
8736        haveit=yes
8737        break
8738      fi
8739    done
8740    if test -z "$haveit"; then
8741      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8742    fi
8743  done
8744
8745      fi
8746
8747
8748$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8749
8750
8751$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8752
8753    fi
8754
8755        POSUB=po
8756  fi
8757
8758
8759
8760    INTLLIBS="$LIBINTL"
8761
8762
8763
8764
8765
8766
8767fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8780$as_echo_n "checking whether NLS is requested... " >&6; }
8781if test x"$USE_NLS" != xyes; then
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
8784else
8785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8786$as_echo "yes" >&6; }
8787
8788$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8789
8790
8791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8792$as_echo_n "checking for catalogs to be installed... " >&6; }
8793  # Look for .po and .gmo files in the source directory.
8794  CATALOGS=
8795  XLINGUAS=
8796  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8797    # If there aren't any .gmo files the shell will give us the
8798    # literal string "../path/to/srcdir/po/*.gmo" which has to be
8799    # weeded out.
8800    case "$cat" in *\**)
8801      continue;;
8802    esac
8803    # The quadruple backslash is collapsed to a double backslash
8804    # by the backticks, then collapsed again by the double quotes,
8805    # leaving us with one backslash in the sed expression (right
8806    # before the dot that mustn't act as a wildcard).
8807    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8808    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8809    # The user is allowed to set LINGUAS to a list of languages to
8810    # install catalogs for.  If it's empty that means "all of them."
8811    if test "x$LINGUAS" = x; then
8812      CATALOGS="$CATALOGS $cat"
8813      XLINGUAS="$XLINGUAS $lang"
8814    else
8815      case "$LINGUAS" in *$lang*)
8816        CATALOGS="$CATALOGS $cat"
8817        XLINGUAS="$XLINGUAS $lang"
8818        ;;
8819      esac
8820    fi
8821  done
8822  LINGUAS="$XLINGUAS"
8823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8824$as_echo "$LINGUAS" >&6; }
8825
8826
8827    DATADIRNAME=share
8828
8829  INSTOBJEXT=.mo
8830
8831  GENCAT=gencat
8832
8833  CATOBJEXT=.gmo
8834
8835fi
8836
8837
8838
8839
8840# Prepare PATH_SEPARATOR.
8841# The user is always right.
8842if test "${PATH_SEPARATOR+set}" != set; then
8843  echo "#! /bin/sh" >conf$$.sh
8844  echo  "exit 0"   >>conf$$.sh
8845  chmod +x conf$$.sh
8846  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8847    PATH_SEPARATOR=';'
8848  else
8849    PATH_SEPARATOR=:
8850  fi
8851  rm -f conf$$.sh
8852fi
8853
8854# Find out how to test for executable files. Don't use a zero-byte file,
8855# as systems may use methods other than mode bits to determine executability.
8856cat >conf$$.file <<_ASEOF
8857#! /bin/sh
8858exit 0
8859_ASEOF
8860chmod +x conf$$.file
8861if test -x conf$$.file >/dev/null 2>&1; then
8862  ac_executable_p="test -x"
8863else
8864  ac_executable_p="test -f"
8865fi
8866rm -f conf$$.file
8867
8868# Extract the first word of "msgfmt", so it can be a program name with args.
8869set dummy msgfmt; ac_word=$2
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871$as_echo_n "checking for $ac_word... " >&6; }
8872if ${ac_cv_path_MSGFMT+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  case "$MSGFMT" in
8876  [\\/]* | ?:[\\/]*)
8877    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8878    ;;
8879  *)
8880    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8881    for ac_dir in $PATH; do
8882      IFS="$ac_save_IFS"
8883      test -z "$ac_dir" && ac_dir=.
8884      for ac_exec_ext in '' $ac_executable_extensions; do
8885        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8886          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8887     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8888            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8889            break 2
8890          fi
8891        fi
8892      done
8893    done
8894    IFS="$ac_save_IFS"
8895  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8896    ;;
8897esac
8898fi
8899MSGFMT="$ac_cv_path_MSGFMT"
8900if test "$MSGFMT" != ":"; then
8901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8902$as_echo "$MSGFMT" >&6; }
8903else
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906fi
8907
8908  # Extract the first word of "gmsgfmt", so it can be a program name with args.
8909set dummy gmsgfmt; ac_word=$2
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911$as_echo_n "checking for $ac_word... " >&6; }
8912if ${ac_cv_path_GMSGFMT+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  case $GMSGFMT in
8916  [\\/]* | ?:[\\/]*)
8917  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8918  ;;
8919  *)
8920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923  IFS=$as_save_IFS
8924  test -z "$as_dir" && as_dir=.
8925    for ac_exec_ext in '' $ac_executable_extensions; do
8926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929    break 2
8930  fi
8931done
8932  done
8933IFS=$as_save_IFS
8934
8935  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8936  ;;
8937esac
8938fi
8939GMSGFMT=$ac_cv_path_GMSGFMT
8940if test -n "$GMSGFMT"; then
8941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8942$as_echo "$GMSGFMT" >&6; }
8943else
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948
8949
8950
8951# Prepare PATH_SEPARATOR.
8952# The user is always right.
8953if test "${PATH_SEPARATOR+set}" != set; then
8954  echo "#! /bin/sh" >conf$$.sh
8955  echo  "exit 0"   >>conf$$.sh
8956  chmod +x conf$$.sh
8957  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8958    PATH_SEPARATOR=';'
8959  else
8960    PATH_SEPARATOR=:
8961  fi
8962  rm -f conf$$.sh
8963fi
8964
8965# Find out how to test for executable files. Don't use a zero-byte file,
8966# as systems may use methods other than mode bits to determine executability.
8967cat >conf$$.file <<_ASEOF
8968#! /bin/sh
8969exit 0
8970_ASEOF
8971chmod +x conf$$.file
8972if test -x conf$$.file >/dev/null 2>&1; then
8973  ac_executable_p="test -x"
8974else
8975  ac_executable_p="test -f"
8976fi
8977rm -f conf$$.file
8978
8979# Extract the first word of "xgettext", so it can be a program name with args.
8980set dummy xgettext; ac_word=$2
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982$as_echo_n "checking for $ac_word... " >&6; }
8983if ${ac_cv_path_XGETTEXT+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  case "$XGETTEXT" in
8987  [\\/]* | ?:[\\/]*)
8988    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8989    ;;
8990  *)
8991    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8992    for ac_dir in $PATH; do
8993      IFS="$ac_save_IFS"
8994      test -z "$ac_dir" && ac_dir=.
8995      for ac_exec_ext in '' $ac_executable_extensions; do
8996        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8997          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8998     (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
8999            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9000            break 2
9001          fi
9002        fi
9003      done
9004    done
9005    IFS="$ac_save_IFS"
9006  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9007    ;;
9008esac
9009fi
9010XGETTEXT="$ac_cv_path_XGETTEXT"
9011if test "$XGETTEXT" != ":"; then
9012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9013$as_echo "$XGETTEXT" >&6; }
9014else
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016$as_echo "no" >&6; }
9017fi
9018
9019    rm -f messages.po
9020
9021
9022# Prepare PATH_SEPARATOR.
9023# The user is always right.
9024if test "${PATH_SEPARATOR+set}" != set; then
9025  echo "#! /bin/sh" >conf$$.sh
9026  echo  "exit 0"   >>conf$$.sh
9027  chmod +x conf$$.sh
9028  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9029    PATH_SEPARATOR=';'
9030  else
9031    PATH_SEPARATOR=:
9032  fi
9033  rm -f conf$$.sh
9034fi
9035
9036# Find out how to test for executable files. Don't use a zero-byte file,
9037# as systems may use methods other than mode bits to determine executability.
9038cat >conf$$.file <<_ASEOF
9039#! /bin/sh
9040exit 0
9041_ASEOF
9042chmod +x conf$$.file
9043if test -x conf$$.file >/dev/null 2>&1; then
9044  ac_executable_p="test -x"
9045else
9046  ac_executable_p="test -f"
9047fi
9048rm -f conf$$.file
9049
9050# Extract the first word of "msgmerge", so it can be a program name with args.
9051set dummy msgmerge; ac_word=$2
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053$as_echo_n "checking for $ac_word... " >&6; }
9054if ${ac_cv_path_MSGMERGE+:} false; then :
9055  $as_echo_n "(cached) " >&6
9056else
9057  case "$MSGMERGE" in
9058  [\\/]* | ?:[\\/]*)
9059    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9060    ;;
9061  *)
9062    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9063    for ac_dir in $PATH; do
9064      IFS="$ac_save_IFS"
9065      test -z "$ac_dir" && ac_dir=.
9066      for ac_exec_ext in '' $ac_executable_extensions; do
9067        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9068          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9069            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9070            break 2
9071          fi
9072        fi
9073      done
9074    done
9075    IFS="$ac_save_IFS"
9076  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9077    ;;
9078esac
9079fi
9080MSGMERGE="$ac_cv_path_MSGMERGE"
9081if test "$MSGMERGE" != ":"; then
9082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9083$as_echo "$MSGMERGE" >&6; }
9084else
9085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086$as_echo "no" >&6; }
9087fi
9088
9089
9090      if test "$GMSGFMT" != ":"; then
9091            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9092       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9093      : ;
9094    else
9095      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9097$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9098      GMSGFMT=":"
9099    fi
9100  fi
9101
9102      if test "$XGETTEXT" != ":"; then
9103            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9104       (if $XGETTEXT --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
9105      : ;
9106    else
9107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9108$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9109      XGETTEXT=":"
9110    fi
9111        rm -f messages.po
9112  fi
9113
9114  ac_config_commands="$ac_config_commands default-2"
9115
9116
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9119$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9120if ${ac_cv_c_bigendian+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  ac_cv_c_bigendian=unknown
9124    # See if we're dealing with a universal compiler.
9125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127#ifndef __APPLE_CC__
9128	       not a universal capable compiler
9129	     #endif
9130	     typedef int dummy;
9131
9132_ACEOF
9133if ac_fn_c_try_compile "$LINENO"; then :
9134
9135	# Check for potential -arch flags.  It is not universal unless
9136	# there are at least two -arch flags with different values.
9137	ac_arch=
9138	ac_prev=
9139	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9140	 if test -n "$ac_prev"; then
9141	   case $ac_word in
9142	     i?86 | x86_64 | ppc | ppc64)
9143	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9144		 ac_arch=$ac_word
9145	       else
9146		 ac_cv_c_bigendian=universal
9147		 break
9148	       fi
9149	       ;;
9150	   esac
9151	   ac_prev=
9152	 elif test "x$ac_word" = "x-arch"; then
9153	   ac_prev=arch
9154	 fi
9155       done
9156fi
9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158    if test $ac_cv_c_bigendian = unknown; then
9159      # See if sys/param.h defines the BYTE_ORDER macro.
9160      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162#include <sys/types.h>
9163	     #include <sys/param.h>
9164
9165int
9166main ()
9167{
9168#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9169		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9170		     && LITTLE_ENDIAN)
9171	      bogus endian macros
9172	     #endif
9173
9174  ;
9175  return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_compile "$LINENO"; then :
9179  # It does; now see whether it defined to BIG_ENDIAN or not.
9180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h.  */
9182#include <sys/types.h>
9183		#include <sys/param.h>
9184
9185int
9186main ()
9187{
9188#if BYTE_ORDER != BIG_ENDIAN
9189		 not big endian
9190		#endif
9191
9192  ;
9193  return 0;
9194}
9195_ACEOF
9196if ac_fn_c_try_compile "$LINENO"; then :
9197  ac_cv_c_bigendian=yes
9198else
9199  ac_cv_c_bigendian=no
9200fi
9201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202fi
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204    fi
9205    if test $ac_cv_c_bigendian = unknown; then
9206      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208/* end confdefs.h.  */
9209#include <limits.h>
9210
9211int
9212main ()
9213{
9214#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9215	      bogus endian macros
9216	     #endif
9217
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"; then :
9223  # It does; now see whether it defined to _BIG_ENDIAN or not.
9224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h.  */
9226#include <limits.h>
9227
9228int
9229main ()
9230{
9231#ifndef _BIG_ENDIAN
9232		 not big endian
9233		#endif
9234
9235  ;
9236  return 0;
9237}
9238_ACEOF
9239if ac_fn_c_try_compile "$LINENO"; then :
9240  ac_cv_c_bigendian=yes
9241else
9242  ac_cv_c_bigendian=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245fi
9246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247    fi
9248    if test $ac_cv_c_bigendian = unknown; then
9249      # Compile a test program.
9250      if test "$cross_compiling" = yes; then :
9251  # Try to guess by grepping values from an object file.
9252	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254short int ascii_mm[] =
9255		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9256		short int ascii_ii[] =
9257		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9258		int use_ascii (int i) {
9259		  return ascii_mm[i] + ascii_ii[i];
9260		}
9261		short int ebcdic_ii[] =
9262		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9263		short int ebcdic_mm[] =
9264		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9265		int use_ebcdic (int i) {
9266		  return ebcdic_mm[i] + ebcdic_ii[i];
9267		}
9268		extern int foo;
9269
9270int
9271main ()
9272{
9273return use_ascii (foo) == use_ebcdic (foo);
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_compile "$LINENO"; then :
9279  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9280	      ac_cv_c_bigendian=yes
9281	    fi
9282	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9283	      if test "$ac_cv_c_bigendian" = unknown; then
9284		ac_cv_c_bigendian=no
9285	      else
9286		# finding both strings is unlikely to happen, but who knows?
9287		ac_cv_c_bigendian=unknown
9288	      fi
9289	    fi
9290fi
9291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292else
9293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h.  */
9295$ac_includes_default
9296int
9297main ()
9298{
9299
9300	     /* Are we little or big endian?  From Harbison&Steele.  */
9301	     union
9302	     {
9303	       long int l;
9304	       char c[sizeof (long int)];
9305	     } u;
9306	     u.l = 1;
9307	     return u.c[sizeof (long int) - 1] == 1;
9308
9309  ;
9310  return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_run "$LINENO"; then :
9314  ac_cv_c_bigendian=no
9315else
9316  ac_cv_c_bigendian=yes
9317fi
9318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9319  conftest.$ac_objext conftest.beam conftest.$ac_ext
9320fi
9321
9322    fi
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9325$as_echo "$ac_cv_c_bigendian" >&6; }
9326 case $ac_cv_c_bigendian in #(
9327   yes)
9328     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9329;; #(
9330   no)
9331      ;; #(
9332   universal)
9333
9334$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9335
9336     ;; #(
9337   *)
9338     as_fn_error $? "unknown endianness
9339 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9340 esac
9341
9342
9343
9344
9345 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9346  NATIVE_LINKER_TRUE=
9347  NATIVE_LINKER_FALSE='#'
9348else
9349  NATIVE_LINKER_TRUE='#'
9350  NATIVE_LINKER_FALSE=
9351fi
9352
9353 if test "$GCC" = yes; then
9354  GCC_TRUE=
9355  GCC_FALSE='#'
9356else
9357  GCC_TRUE='#'
9358  GCC_FALSE=
9359fi
9360
9361
9362 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9363  NATIVE_OR_CROSS_LINKER_TRUE=
9364  NATIVE_OR_CROSS_LINKER_FALSE='#'
9365else
9366  NATIVE_OR_CROSS_LINKER_TRUE='#'
9367  NATIVE_OR_CROSS_LINKER_FALSE=
9368fi
9369
9370
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9372$as_echo_n "checking whether static linking works... " >&6; }
9373if ${gold_cv_lib_static+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  LDFLAGS_hold=$LDFLAGS
9377LDFLAGS="$LDFLAGS -static"
9378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h.  */
9380
9381void f() { }
9382int
9383main ()
9384{
9385
9386  ;
9387  return 0;
9388}
9389_ACEOF
9390if ac_fn_c_try_link "$LINENO"; then :
9391  gold_cv_lib_static=yes
9392else
9393  gold_cv_lib_static=no
9394fi
9395rm -f core conftest.err conftest.$ac_objext \
9396    conftest$ac_exeext conftest.$ac_ext
9397LDFLAGS=$LDFLAGS_hold
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9400$as_echo "$gold_cv_lib_static" >&6; }
9401 if test "$gold_cv_lib_static" = "yes"; then
9402  HAVE_STATIC_TRUE=
9403  HAVE_STATIC_FALSE='#'
9404else
9405  HAVE_STATIC_TRUE='#'
9406  HAVE_STATIC_FALSE=
9407fi
9408
9409
9410 if
9411  case $target_cpu in
9412    powerpc*) false;;
9413    x86_64) false;;
9414    sparc64) false;;
9415    s390x) false;;
9416    *) true;;
9417  esac; then
9418  FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
9419  FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
9420else
9421  FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
9422  FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
9423fi
9424
9425
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9427$as_echo_n "checking for gcc >= 4.1... " >&6; }
9428if ${gold_cv_prog_gcc41+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433
9434#if !defined __GNUC__
9435error
9436#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9437error
9438#endif
9439
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"; then :
9442  gold_cv_prog_gcc41=yes
9443else
9444  gold_cv_prog_gcc41=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9449$as_echo "$gold_cv_prog_gcc41" >&6; }
9450
9451save_CFLAGS="$CFLAGS"
9452CFLAGS="$CFLAGS -mcmodel=medium"
9453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456_ACEOF
9457if ac_fn_c_try_compile "$LINENO"; then :
9458  have_mcmodel_medium=yes
9459else
9460  have_mcmodel_medium=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463CFLAGS="$save_CFLAGS"
9464 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9465  MCMODEL_MEDIUM_TRUE=
9466  MCMODEL_MEDIUM_FALSE='#'
9467else
9468  MCMODEL_MEDIUM_TRUE='#'
9469  MCMODEL_MEDIUM_FALSE=
9470fi
9471
9472
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9474$as_echo_n "checking for gcc >= 9... " >&6; }
9475if ${gold_cv_prog_gcc9+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480
9481#if !defined __GNUC__ || __GNUC__ < 9
9482error
9483#endif
9484
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"; then :
9487  gold_cv_prog_gcc9=yes
9488else
9489  gold_cv_prog_gcc9=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9494$as_echo "$gold_cv_prog_gcc9" >&6; }
9495 if test "$gold_cv_prog_gcc9" = "yes"; then
9496  GCC9_TRUE=
9497  GCC9_FALSE='#'
9498else
9499  GCC9_TRUE='#'
9500  GCC9_FALSE=
9501fi
9502
9503
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9505$as_echo_n "checking for -fcf-protection... " >&6; }
9506if ${gold_cv_cflags_cf_protection+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511
9512#if !defined __x86_64__ || !defined __CET__
9513error
9514#endif
9515
9516_ACEOF
9517if ac_fn_c_try_compile "$LINENO"; then :
9518  gold_cv_cflags_cf_protection=yes
9519else
9520  gold_cv_cflags_cf_protection=no
9521fi
9522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9525$as_echo "$gold_cv_cflags_cf_protection" >&6; }
9526 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9527  CFLAGS_CF_PROTECTION_TRUE=
9528  CFLAGS_CF_PROTECTION_FALSE='#'
9529else
9530  CFLAGS_CF_PROTECTION_TRUE='#'
9531  CFLAGS_CF_PROTECTION_FALSE=
9532fi
9533
9534
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9536$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9537if ${gold_cv_merge_constants+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540
9541save_CFLAGS="$CFLAGS"
9542CFLAGS="$CFLAGS -fmerge-constants"
9543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h.  */
9545const char *s = "foo";
9546_ACEOF
9547if ac_fn_c_try_compile "$LINENO"; then :
9548  gold_cv_merge_constants=yes
9549else
9550  gold_cv_merge_constants=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553CFLAGS="$save_CFLAGS"
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9556$as_echo "$gold_cv_merge_constants" >&6; }
9557
9558if test "$gold_cv_merge_constants" = yes; then :
9559  MERGE_CONSTANTS_FLAG=-fmerge-constants
9560else
9561  MERGE_CONSTANTS_FLAG=
9562fi
9563
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9565$as_echo_n "checking for thread support... " >&6; }
9566if ${gold_cv_c_thread+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571__thread int i = 1;
9572_ACEOF
9573if ac_fn_c_try_compile "$LINENO"; then :
9574  gold_cv_c_thread=yes
9575else
9576  gold_cv_c_thread=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579fi
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9581$as_echo "$gold_cv_c_thread" >&6; }
9582
9583 if test "$gold_cv_c_thread" = "yes"; then
9584  TLS_TRUE=
9585  TLS_FALSE='#'
9586else
9587  TLS_TRUE='#'
9588  TLS_FALSE=
9589fi
9590
9591
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9593$as_echo_n "checking for glibc >= 2.4... " >&6; }
9594if ${gold_cv_lib_glibc24+:} false; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599
9600#include <features.h>
9601#if !defined __GLIBC__
9602error
9603#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9604error
9605#endif
9606
9607_ACEOF
9608if ac_fn_c_try_compile "$LINENO"; then :
9609  gold_cv_lib_glibc24=yes
9610else
9611  gold_cv_lib_glibc24=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9616$as_echo "$gold_cv_lib_glibc24" >&6; }
9617
9618 if test "$gold_cv_lib_glibc24" = "yes"; then
9619  STATIC_TLS_TRUE=
9620  STATIC_TLS_FALSE='#'
9621else
9622  STATIC_TLS_TRUE='#'
9623  STATIC_TLS_FALSE=
9624fi
9625
9626
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9628$as_echo_n "checking for omp support... " >&6; }
9629if ${gold_cv_c_threadprivate+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  save_CFLAGS="$CFLAGS"
9633CFLAGS="$CFLAGS -fopenmp"
9634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h.  */
9636
9637#include <omp.h>
9638int i;
9639#pragma omp threadprivate (i)
9640
9641_ACEOF
9642if ac_fn_c_try_compile "$LINENO"; then :
9643  gold_cv_c_threadprivate=yes
9644else
9645  gold_cv_c_threadprivate=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648CFLAGS="$save_CFLAGS"
9649fi
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9651$as_echo "$gold_cv_c_threadprivate" >&6; }
9652if test "$gold_cv_c_threadprivate" = "yes"; then
9653
9654$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9655
9656fi
9657 if test "$gold_cv_c_threadprivate" = "yes"; then
9658  OMP_SUPPORT_TRUE=
9659  OMP_SUPPORT_FALSE='#'
9660else
9661  OMP_SUPPORT_TRUE='#'
9662  OMP_SUPPORT_FALSE=
9663fi
9664
9665
9666save_CFLAGS="$CFLAGS"
9667CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h.  */
9670
9671__thread int i;
9672void foo (void)
9673{
9674  i = 10;
9675}
9676
9677_ACEOF
9678if ac_fn_c_try_compile "$LINENO"; then :
9679  have_tls_gnu2=yes
9680else
9681  have_tls_gnu2=no
9682fi
9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684CFLAGS="$save_CFLAGS"
9685 if test "$have_tls_gnu2" = "yes"; then
9686  TLS_GNU2_DIALECT_TRUE=
9687  TLS_GNU2_DIALECT_FALSE='#'
9688else
9689  TLS_GNU2_DIALECT_TRUE='#'
9690  TLS_GNU2_DIALECT_FALSE=
9691fi
9692
9693
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9695$as_echo_n "checking for glibc >= 2.9... " >&6; }
9696if ${gold_cv_lib_glibc29+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h.  */
9701
9702#include <features.h>
9703#if !defined __GLIBC__
9704error
9705#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9706error
9707#endif
9708
9709_ACEOF
9710if ac_fn_c_try_compile "$LINENO"; then :
9711  gold_cv_lib_glibc29=yes
9712else
9713  gold_cv_lib_glibc29=no
9714fi
9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9718$as_echo "$gold_cv_lib_glibc29" >&6; }
9719
9720 if test "$gold_cv_lib_glibc29" = "yes"; then
9721  TLS_DESCRIPTORS_TRUE=
9722  TLS_DESCRIPTORS_FALSE='#'
9723else
9724  TLS_DESCRIPTORS_TRUE='#'
9725  TLS_DESCRIPTORS_FALSE=
9726fi
9727
9728
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9730$as_echo_n "checking for -frandom-seed support... " >&6; }
9731if ${gold_cv_c_random_seed+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  save_CFLAGS="$CFLAGS"
9735CFLAGS="$CFLAGS -frandom-seed=foo"
9736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"; then :
9741  gold_cv_c_random_seed=yes
9742else
9743  gold_cv_c_random_seed=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746CFLAGS="$save_CFLAGS"
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9749$as_echo "$gold_cv_c_random_seed" >&6; }
9750if test "$gold_cv_c_random_seed" = "yes"; then
9751  # In Makefile, '$@' will be expanded to be the name of the file
9752  # being built, providing a unique seed for each file.
9753  RANDOM_SEED_CFLAGS=-frandom-seed=\$@
9754fi
9755
9756
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9758$as_echo_n "checking for glibc ifunc support... " >&6; }
9759if ${gold_cv_lib_glibc_ifunc+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  save_LDFLAGS="$LDFLAGS"
9763LDFLAGS="$LDFLAGS -static"
9764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h.  */
9766
9767#include <features.h>
9768#if !defined __GLIBC__
9769error
9770#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9771error
9772#endif
9773void func (void) { }
9774void invoke (void);
9775__asm__(".type invoke, %gnu_indirect_function");
9776typedef void (*funcptr) (void);
9777funcptr dispatch (void) __asm__ ("invoke");
9778funcptr dispatch (void) { return &func; }
9779int
9780main ()
9781{
9782invoke();
9783  ;
9784  return 0;
9785}
9786
9787_ACEOF
9788if ac_fn_c_try_link "$LINENO"; then :
9789
9790if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
9791  gold_cv_lib_glibc_ifunc=both
9792else
9793  gold_cv_lib_glibc_ifunc=dyn
9794fi
9795else
9796  gold_cv_lib_glibc_ifunc=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext \
9799    conftest$ac_exeext conftest.$ac_ext
9800LDFLAGS="$save_LDFLAGS"
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9803$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9804
9805 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9806  IFUNC_TRUE=
9807  IFUNC_FALSE='#'
9808else
9809  IFUNC_TRUE='#'
9810  IFUNC_FALSE=
9811fi
9812
9813 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9814  IFUNC_STATIC_TRUE=
9815  IFUNC_STATIC_FALSE='#'
9816else
9817  IFUNC_STATIC_TRUE='#'
9818  IFUNC_STATIC_FALSE=
9819fi
9820
9821
9822
9823# Set the 'development' global.
9824. $srcdir/../bfd/development.sh
9825
9826# Set acp_cpp_for_build variable
9827ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9828
9829# Default set of GCC warnings to enable.
9830GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9832
9833# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836__GNUC__
9837_ACEOF
9838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9839  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9840
9841else
9842  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
9843fi
9844rm -f conftest*
9845
9846
9847# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850__GNUC__
9851_ACEOF
9852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9854
9855else
9856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858__clang__
9859_ACEOF
9860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861  $EGREP "^__clang__$" >/dev/null 2>&1; then :
9862  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9863fi
9864rm -f conftest*
9865
9866fi
9867rm -f conftest*
9868
9869
9870# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9871WARN_WRITE_STRINGS=""
9872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874__GNUC__
9875_ACEOF
9876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9877  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9878
9879else
9880  WARN_WRITE_STRINGS="-Wwrite-strings"
9881fi
9882rm -f conftest*
9883
9884
9885# Verify CC_FOR_BUILD to be compatible with warning flags
9886
9887# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h.  */
9890__GNUC__
9891_ACEOF
9892if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9893  $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9894
9895else
9896  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9897fi
9898rm -f conftest*
9899
9900
9901# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904__GNUC__
9905_ACEOF
9906if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9907  $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9908
9909else
9910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h.  */
9912__clang__
9913_ACEOF
9914if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9915  $EGREP "^__clang__$" >/dev/null 2>&1; then :
9916  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9917fi
9918rm -f conftest*
9919
9920fi
9921rm -f conftest*
9922
9923
9924# Check whether --enable-werror was given.
9925if test "${enable_werror+set}" = set; then :
9926  enableval=$enable_werror; case "${enableval}" in
9927     yes | y) ERROR_ON_WARNING="yes" ;;
9928     no | n)  ERROR_ON_WARNING="no" ;;
9929     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9930   esac
9931fi
9932
9933
9934# Disable -Wformat by default when using gcc on mingw
9935case "${host}" in
9936  *-*-mingw32*)
9937    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9938      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
9939      GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9940    fi
9941    ;;
9942  *) ;;
9943esac
9944
9945# Enable -Werror by default when using gcc.  Turn it off for releases.
9946if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9947    ERROR_ON_WARNING=yes
9948fi
9949
9950NO_WERROR=
9951if test "${ERROR_ON_WARNING}" = yes ; then
9952    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9953    GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9954    NO_WERROR="-Wno-error"
9955fi
9956
9957if test "${GCC}" = yes ; then
9958  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9959  WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
9960fi
9961
9962# Check whether --enable-build-warnings was given.
9963if test "${enable_build_warnings+set}" = set; then :
9964  enableval=$enable_build_warnings; case "${enableval}" in
9965  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9966        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9967  no)	if test "${GCC}" = yes ; then
9968	  WARN_CFLAGS="-w"
9969      WARN_CFLAGS_FOR_BUILD="-w"
9970	fi;;
9971  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9972        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
9973        WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9974  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9975        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
9976        WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9977  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
9978        WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9979esac
9980fi
9981
9982
9983if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9984  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9985fi
9986
9987
9988
9989
9990
9991
9992
9993WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9994
9995
9996
9997# Check whether --with-gold-ldflags was given.
9998if test "${with_gold_ldflags+set}" = set; then :
9999  withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
10000   GOLD_LDFLAGS=
10001 else
10002   GOLD_LDFLAGS=$withval
10003 fi
10004else
10005  GOLD_LDFLAGS=
10006fi
10007
10008
10009
10010
10011# Check whether --with-gold-ldadd was given.
10012if test "${with_gold_ldadd+set}" = set; then :
10013  withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10014   GOLD_LDADD=
10015 else
10016   GOLD_LDADD=$withval
10017 fi
10018else
10019  GOLD_LDADD=
10020fi
10021
10022
10023
10024LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10025
10026
10027for ac_header in sys/mman.h
10028do :
10029  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10030if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10031  cat >>confdefs.h <<_ACEOF
10032#define HAVE_SYS_MMAN_H 1
10033_ACEOF
10034
10035fi
10036
10037done
10038
10039for ac_func in chsize mmap link
10040do :
10041  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10042ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10043if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10044  cat >>confdefs.h <<_ACEOF
10045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046_ACEOF
10047
10048fi
10049done
10050
10051ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
10052if test "x$ac_cv_func_pread" = xyes; then :
10053  $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10054
10055else
10056  case " $LIBOBJS " in
10057  *" pread.$ac_objext "* ) ;;
10058  *) LIBOBJS="$LIBOBJS pread.$ac_objext"
10059 ;;
10060esac
10061
10062fi
10063
10064ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10065if test "x$ac_cv_func_ftruncate" = xyes; then :
10066  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10067
10068else
10069  case " $LIBOBJS " in
10070  *" ftruncate.$ac_objext "* ) ;;
10071  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
10072 ;;
10073esac
10074
10075fi
10076
10077ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
10078if test "x$ac_cv_func_ffsll" = xyes; then :
10079  $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10080
10081else
10082  case " $LIBOBJS " in
10083  *" ffsll.$ac_objext "* ) ;;
10084  *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
10085 ;;
10086esac
10087
10088fi
10089
10090
10091
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10093$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10094if ${gold_cv_lib_mremap_maymove+:} false; then :
10095  $as_echo_n "(cached) " >&6
10096else
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099
10100
10101#include <sys/mman.h>
10102void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10103
10104int
10105main ()
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113  gold_cv_lib_mremap_maymove=yes
10114else
10115  gold_cv_lib_mremap_maymove=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext \
10118    conftest$ac_exeext conftest.$ac_ext
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10121$as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10122if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10123
10124$as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10125
10126else
10127  case " $LIBOBJS " in
10128  *" mremap.$ac_objext "* ) ;;
10129  *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
10130 ;;
10131esac
10132
10133fi
10134
10135# Link in zlib/zstd if we can.  This allows us to write compressed sections.
10136
10137  # Use the system's zlib library.
10138  zlibdir="-L\$(top_builddir)/../zlib"
10139  zlibinc="-I\$(top_srcdir)/../zlib"
10140
10141# Check whether --with-system-zlib was given.
10142if test "${with_system_zlib+set}" = set; then :
10143  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
10144    zlibdir=
10145    zlibinc=
10146  fi
10147
10148fi
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10161	if test -n "$ac_tool_prefix"; then
10162  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10163set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165$as_echo_n "checking for $ac_word... " >&6; }
10166if ${ac_cv_path_PKG_CONFIG+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  case $PKG_CONFIG in
10170  [\\/]* | ?:[\\/]*)
10171  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10172  ;;
10173  *)
10174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177  IFS=$as_save_IFS
10178  test -z "$as_dir" && as_dir=.
10179    for ac_exec_ext in '' $ac_executable_extensions; do
10180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183    break 2
10184  fi
10185done
10186  done
10187IFS=$as_save_IFS
10188
10189  ;;
10190esac
10191fi
10192PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10193if test -n "$PKG_CONFIG"; then
10194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10195$as_echo "$PKG_CONFIG" >&6; }
10196else
10197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198$as_echo "no" >&6; }
10199fi
10200
10201
10202fi
10203if test -z "$ac_cv_path_PKG_CONFIG"; then
10204  ac_pt_PKG_CONFIG=$PKG_CONFIG
10205  # Extract the first word of "pkg-config", so it can be a program name with args.
10206set dummy pkg-config; ac_word=$2
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208$as_echo_n "checking for $ac_word... " >&6; }
10209if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10210  $as_echo_n "(cached) " >&6
10211else
10212  case $ac_pt_PKG_CONFIG in
10213  [\\/]* | ?:[\\/]*)
10214  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10215  ;;
10216  *)
10217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220  IFS=$as_save_IFS
10221  test -z "$as_dir" && as_dir=.
10222    for ac_exec_ext in '' $ac_executable_extensions; do
10223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226    break 2
10227  fi
10228done
10229  done
10230IFS=$as_save_IFS
10231
10232  ;;
10233esac
10234fi
10235ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10236if test -n "$ac_pt_PKG_CONFIG"; then
10237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10238$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10239else
10240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241$as_echo "no" >&6; }
10242fi
10243
10244  if test "x$ac_pt_PKG_CONFIG" = x; then
10245    PKG_CONFIG=""
10246  else
10247    case $cross_compiling:$ac_tool_warned in
10248yes:)
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10251ac_tool_warned=yes ;;
10252esac
10253    PKG_CONFIG=$ac_pt_PKG_CONFIG
10254  fi
10255else
10256  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10257fi
10258
10259fi
10260if test -n "$PKG_CONFIG"; then
10261	_pkg_min_version=0.9.0
10262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10263$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10264	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266$as_echo "yes" >&6; }
10267	else
10268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270		PKG_CONFIG=""
10271	fi
10272fi
10273
10274
10275# Check whether --with-zstd was given.
10276if test "${with_zstd+set}" = set; then :
10277  withval=$with_zstd;
10278else
10279  with_zstd=auto
10280fi
10281
10282
10283if test "$with_zstd" != no; then :
10284
10285pkg_failed=no
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10287$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10288
10289if test -n "$ZSTD_CFLAGS"; then
10290    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
10291 elif test -n "$PKG_CONFIG"; then
10292    if test -n "$PKG_CONFIG" && \
10293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10294  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10295  ac_status=$?
10296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297  test $ac_status = 0; }; then
10298  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10299		      test "x$?" != "x0" && pkg_failed=yes
10300else
10301  pkg_failed=yes
10302fi
10303 else
10304    pkg_failed=untried
10305fi
10306if test -n "$ZSTD_LIBS"; then
10307    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
10308 elif test -n "$PKG_CONFIG"; then
10309    if test -n "$PKG_CONFIG" && \
10310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10311  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10312  ac_status=$?
10313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314  test $ac_status = 0; }; then
10315  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10316		      test "x$?" != "x0" && pkg_failed=yes
10317else
10318  pkg_failed=yes
10319fi
10320 else
10321    pkg_failed=untried
10322fi
10323
10324if test $pkg_failed = no; then
10325  pkg_save_LDFLAGS="$LDFLAGS"
10326  LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329
10330int
10331main ()
10332{
10333
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_link "$LINENO"; then :
10339
10340else
10341  pkg_failed=yes
10342fi
10343rm -f core conftest.err conftest.$ac_objext \
10344    conftest$ac_exeext conftest.$ac_ext
10345  LDFLAGS=$pkg_save_LDFLAGS
10346fi
10347
10348
10349
10350if test $pkg_failed = yes; then
10351        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
10353
10354if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10355        _pkg_short_errors_supported=yes
10356else
10357        _pkg_short_errors_supported=no
10358fi
10359        if test $_pkg_short_errors_supported = yes; then
10360	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10361        else
10362	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10363        fi
10364	# Put the nasty error message in config.log where it belongs
10365	echo "$ZSTD_PKG_ERRORS" >&5
10366
10367
10368    if test "$with_zstd" = yes; then
10369      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10370    fi
10371
10372elif test $pkg_failed = untried; then
10373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374$as_echo "no" >&6; }
10375
10376    if test "$with_zstd" = yes; then
10377      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10378    fi
10379
10380else
10381	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
10382	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
10383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384$as_echo "yes" >&6; }
10385
10386
10387$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10388
10389
10390fi
10391
10392fi
10393
10394 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10395  HAVE_ZSTD_TRUE=
10396  HAVE_ZSTD_FALSE='#'
10397else
10398  HAVE_ZSTD_TRUE='#'
10399  HAVE_ZSTD_FALSE=
10400fi
10401
10402
10403# Check whether --enable-threads was given.
10404if test "${enable_threads+set}" = set; then :
10405  enableval=$enable_threads; case "${enableval}" in
10406  yes | "") threads=yes ;;
10407  no) threads=no ;;
10408  auto) threads=auto ;;
10409  *) threads=yes ;;
10410 esac
10411else
10412  threads=auto
10413fi
10414
10415
10416if test "$threads" = "yes"; then
10417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10418$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10419if ${ac_cv_path_SED+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10423     for ac_i in 1 2 3 4 5 6 7; do
10424       ac_script="$ac_script$as_nl$ac_script"
10425     done
10426     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10427     { ac_script=; unset ac_script;}
10428     if test -z "$SED"; then
10429  ac_path_SED_found=false
10430  # Loop through the user's path and test for each of PROGNAME-LIST
10431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432for as_dir in $PATH
10433do
10434  IFS=$as_save_IFS
10435  test -z "$as_dir" && as_dir=.
10436    for ac_prog in sed gsed; do
10437    for ac_exec_ext in '' $ac_executable_extensions; do
10438      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10439      as_fn_executable_p "$ac_path_SED" || continue
10440# Check for GNU ac_path_SED and select it if it is found.
10441  # Check for GNU $ac_path_SED
10442case `"$ac_path_SED" --version 2>&1` in
10443*GNU*)
10444  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10445*)
10446  ac_count=0
10447  $as_echo_n 0123456789 >"conftest.in"
10448  while :
10449  do
10450    cat "conftest.in" "conftest.in" >"conftest.tmp"
10451    mv "conftest.tmp" "conftest.in"
10452    cp "conftest.in" "conftest.nl"
10453    $as_echo '' >> "conftest.nl"
10454    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10456    as_fn_arith $ac_count + 1 && ac_count=$as_val
10457    if test $ac_count -gt ${ac_path_SED_max-0}; then
10458      # Best one so far, save it but keep looking for a better one
10459      ac_cv_path_SED="$ac_path_SED"
10460      ac_path_SED_max=$ac_count
10461    fi
10462    # 10*(2^10) chars as input seems more than enough
10463    test $ac_count -gt 10 && break
10464  done
10465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10466esac
10467
10468      $ac_path_SED_found && break 3
10469    done
10470  done
10471  done
10472IFS=$as_save_IFS
10473  if test -z "$ac_cv_path_SED"; then
10474    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10475  fi
10476else
10477  ac_cv_path_SED=$SED
10478fi
10479
10480fi
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10482$as_echo "$ac_cv_path_SED" >&6; }
10483 SED="$ac_cv_path_SED"
10484  rm -f conftest.sed
10485
10486
10487
10488
10489
10490ac_ext=c
10491ac_cpp='$CPP $CPPFLAGS'
10492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494ac_compiler_gnu=$ac_cv_c_compiler_gnu
10495
10496ax_pthread_ok=no
10497
10498# We used to check for pthread.h first, but this fails if pthread.h
10499# requires special compiler flags (e.g. on Tru64 or Sequent).
10500# It gets checked for in the link test anyway.
10501
10502# First of all, check if the user has set any of the PTHREAD_LIBS,
10503# etcetera environment variables, and if threads linking works using
10504# them:
10505if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10506        ax_pthread_save_CC="$CC"
10507        ax_pthread_save_CFLAGS="$CFLAGS"
10508        ax_pthread_save_LIBS="$LIBS"
10509        if test "x$PTHREAD_CC" != "x"; then :
10510  CC="$PTHREAD_CC"
10511fi
10512        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10513        LIBS="$PTHREAD_LIBS $LIBS"
10514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10515$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10516        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518
10519/* Override any GCC internal prototype to avoid an error.
10520   Use char because int might match the return type of a GCC
10521   builtin and then its argument prototype would still apply.  */
10522#ifdef __cplusplus
10523extern "C"
10524#endif
10525char pthread_join ();
10526int
10527main ()
10528{
10529return pthread_join ();
10530  ;
10531  return 0;
10532}
10533_ACEOF
10534if ac_fn_c_try_link "$LINENO"; then :
10535  ax_pthread_ok=yes
10536fi
10537rm -f core conftest.err conftest.$ac_objext \
10538    conftest$ac_exeext conftest.$ac_ext
10539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10540$as_echo "$ax_pthread_ok" >&6; }
10541        if test "x$ax_pthread_ok" = "xno"; then
10542                PTHREAD_LIBS=""
10543                PTHREAD_CFLAGS=""
10544        fi
10545        CC="$ax_pthread_save_CC"
10546        CFLAGS="$ax_pthread_save_CFLAGS"
10547        LIBS="$ax_pthread_save_LIBS"
10548fi
10549
10550# We must check for the threads library under a number of different
10551# names; the ordering is very important because some systems
10552# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10553# libraries is broken (non-POSIX).
10554
10555# Create a list of thread flags to try.  Items starting with a "-" are
10556# C compiler flags, and other items are library names, except for "none"
10557# which indicates that we try without any flags at all, and "pthread-config"
10558# which is a program returning the flags for the Pth emulation library.
10559
10560ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10561
10562# The ordering *is* (sometimes) important.  Some notes on the
10563# individual items follow:
10564
10565# pthreads: AIX (must check this before -lpthread)
10566# none: in case threads are in libc; should be tried before -Kthread and
10567#       other compiler flags to prevent continual compiler warnings
10568# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10569# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10570#           (Note: HP C rejects this with "bad form for `-t' option")
10571# -pthreads: Solaris/gcc (Note: HP C also rejects)
10572# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10573#      doesn't hurt to check since this sometimes defines pthreads and
10574#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
10575#      is present but should not be used directly; and before -mthreads,
10576#      because the compiler interprets this as "-mt" + "-hreads")
10577# -mthreads: Mingw32/gcc, Lynx/gcc
10578# pthread: Linux, etcetera
10579# --thread-safe: KAI C++
10580# pthread-config: use pthread-config program (for GNU Pth library)
10581
10582case $host_os in
10583
10584        freebsd*)
10585
10586        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10587        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10588
10589        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10590        ;;
10591
10592        hpux*)
10593
10594        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10595        # multi-threading and also sets -lpthread."
10596
10597        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10598        ;;
10599
10600        openedition*)
10601
10602        # IBM z/OS requires a feature-test macro to be defined in order to
10603        # enable POSIX threads at all, so give the user a hint if this is
10604        # not set. (We don't define these ourselves, as they can affect
10605        # other portions of the system API in unpredictable ways.)
10606
10607        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609
10610#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10611             AX_PTHREAD_ZOS_MISSING
10612#            endif
10613
10614_ACEOF
10615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10616  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10617  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10618$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10619fi
10620rm -f conftest*
10621
10622        ;;
10623
10624        solaris*)
10625
10626        # On Solaris (at least, for some versions), libc contains stubbed
10627        # (non-functional) versions of the pthreads routines, so link-based
10628        # tests will erroneously succeed. (N.B.: The stubs are missing
10629        # pthread_cleanup_push, or rather a function called by this macro,
10630        # so we could check for that, but who knows whether they'll stub
10631        # that too in a future libc.)  So we'll check first for the
10632        # standard Solaris way of linking pthreads (-mt -lpthread).
10633
10634        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10635        ;;
10636esac
10637
10638# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10639
10640if test "x$GCC" = "xyes"; then :
10641  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10642fi
10643
10644# The presence of a feature test macro requesting re-entrant function
10645# definitions is, on some systems, a strong hint that pthreads support is
10646# correctly enabled
10647
10648case $host_os in
10649        darwin* | hpux* | linux* | osf* | solaris*)
10650        ax_pthread_check_macro="_REENTRANT"
10651        ;;
10652
10653        aix*)
10654        ax_pthread_check_macro="_THREAD_SAFE"
10655        ;;
10656
10657        *)
10658        ax_pthread_check_macro="--"
10659        ;;
10660esac
10661if test "x$ax_pthread_check_macro" = "x--"; then :
10662  ax_pthread_check_cond=0
10663else
10664  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10665fi
10666
10667# Are we compiling with Clang?
10668
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10670$as_echo_n "checking whether $CC is Clang... " >&6; }
10671if ${ax_cv_PTHREAD_CLANG+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  ax_cv_PTHREAD_CLANG=no
10675     # Note that Autoconf sets GCC=yes for Clang as well as GCC
10676     if test "x$GCC" = "xyes"; then
10677        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h.  */
10679/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10680#            if defined(__clang__) && defined(__llvm__)
10681             AX_PTHREAD_CC_IS_CLANG
10682#            endif
10683
10684_ACEOF
10685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10686  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10687  ax_cv_PTHREAD_CLANG=yes
10688fi
10689rm -f conftest*
10690
10691     fi
10692
10693fi
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10695$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10696ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10697
10698ax_pthread_clang_warning=no
10699
10700# Clang needs special handling, because older versions handle the -pthread
10701# option in a rather... idiosyncratic way
10702
10703if test "x$ax_pthread_clang" = "xyes"; then
10704
10705        # Clang takes -pthread; it has never supported any other flag
10706
10707        # (Note 1: This will need to be revisited if a system that Clang
10708        # supports has POSIX threads in a separate library.  This tends not
10709        # to be the way of modern systems, but it's conceivable.)
10710
10711        # (Note 2: On some systems, notably Darwin, -pthread is not needed
10712        # to get POSIX threads support; the API is always present and
10713        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
10714        # -pthread does define _REENTRANT, and while the Darwin headers
10715        # ignore this macro, third-party headers might not.)
10716
10717        PTHREAD_CFLAGS="-pthread"
10718        PTHREAD_LIBS=
10719
10720        ax_pthread_ok=yes
10721
10722        # However, older versions of Clang make a point of warning the user
10723        # that, in an invocation where only linking and no compilation is
10724        # taking place, the -pthread option has no effect ("argument unused
10725        # during compilation").  They expect -pthread to be passed in only
10726        # when source code is being compiled.
10727        #
10728        # Problem is, this is at odds with the way Automake and most other
10729        # C build frameworks function, which is that the same flags used in
10730        # compilation (CFLAGS) are also used in linking.  Many systems
10731        # supported by AX_PTHREAD require exactly this for POSIX threads
10732        # support, and in fact it is often not straightforward to specify a
10733        # flag that is used only in the compilation phase and not in
10734        # linking.  Such a scenario is extremely rare in practice.
10735        #
10736        # Even though use of the -pthread flag in linking would only print
10737        # a warning, this can be a nuisance for well-run software projects
10738        # that build with -Werror.  So if the active version of Clang has
10739        # this misfeature, we search for an option to squash it.
10740
10741        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10742$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10743if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10744  $as_echo_n "(cached) " >&6
10745else
10746  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10747             # Create an alternate version of $ac_link that compiles and
10748             # links in two steps (.c -> .o, .o -> exe) instead of one
10749             # (.c -> exe), because the warning occurs only in the second
10750             # step
10751             ax_pthread_save_ac_link="$ac_link"
10752             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10753             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10754             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10755             ax_pthread_save_CFLAGS="$CFLAGS"
10756             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10757                if test "x$ax_pthread_try" = "xunknown"; then :
10758  break
10759fi
10760                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10761                ac_link="$ax_pthread_save_ac_link"
10762                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763/* end confdefs.h.  */
10764int main(void){return 0;}
10765_ACEOF
10766if ac_fn_c_try_link "$LINENO"; then :
10767  ac_link="$ax_pthread_2step_ac_link"
10768                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769/* end confdefs.h.  */
10770int main(void){return 0;}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773  break
10774fi
10775rm -f core conftest.err conftest.$ac_objext \
10776    conftest$ac_exeext conftest.$ac_ext
10777
10778fi
10779rm -f core conftest.err conftest.$ac_objext \
10780    conftest$ac_exeext conftest.$ac_ext
10781             done
10782             ac_link="$ax_pthread_save_ac_link"
10783             CFLAGS="$ax_pthread_save_CFLAGS"
10784             if test "x$ax_pthread_try" = "x"; then :
10785  ax_pthread_try=no
10786fi
10787             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10788
10789fi
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10791$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10792
10793        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10794                no | unknown) ;;
10795                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10796        esac
10797
10798fi # $ax_pthread_clang = yes
10799
10800if test "x$ax_pthread_ok" = "xno"; then
10801for ax_pthread_try_flag in $ax_pthread_flags; do
10802
10803        case $ax_pthread_try_flag in
10804                none)
10805                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10806$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10807                ;;
10808
10809                -mt,pthread)
10810                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10811$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10812                PTHREAD_CFLAGS="-mt"
10813                PTHREAD_LIBS="-lpthread"
10814                ;;
10815
10816                -*)
10817                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10818$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10819                PTHREAD_CFLAGS="$ax_pthread_try_flag"
10820                ;;
10821
10822                pthread-config)
10823                # Extract the first word of "pthread-config", so it can be a program name with args.
10824set dummy pthread-config; ac_word=$2
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826$as_echo_n "checking for $ac_word... " >&6; }
10827if ${ac_cv_prog_ax_pthread_config+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  if test -n "$ax_pthread_config"; then
10831  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10832else
10833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834for as_dir in $PATH
10835do
10836  IFS=$as_save_IFS
10837  test -z "$as_dir" && as_dir=.
10838    for ac_exec_ext in '' $ac_executable_extensions; do
10839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840    ac_cv_prog_ax_pthread_config="yes"
10841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842    break 2
10843  fi
10844done
10845  done
10846IFS=$as_save_IFS
10847
10848  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10849fi
10850fi
10851ax_pthread_config=$ac_cv_prog_ax_pthread_config
10852if test -n "$ax_pthread_config"; then
10853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10854$as_echo "$ax_pthread_config" >&6; }
10855else
10856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857$as_echo "no" >&6; }
10858fi
10859
10860
10861                if test "x$ax_pthread_config" = "xno"; then :
10862  continue
10863fi
10864                PTHREAD_CFLAGS="`pthread-config --cflags`"
10865                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10866                ;;
10867
10868                *)
10869                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10870$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10871                PTHREAD_LIBS="-l$ax_pthread_try_flag"
10872                ;;
10873        esac
10874
10875        ax_pthread_save_CFLAGS="$CFLAGS"
10876        ax_pthread_save_LIBS="$LIBS"
10877        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10878        LIBS="$PTHREAD_LIBS $LIBS"
10879
10880        # Check for various functions.  We must include pthread.h,
10881        # since some functions may be macros.  (On the Sequent, we
10882        # need a special flag -Kthread to make this header compile.)
10883        # We check for pthread_join because it is in -lpthread on IRIX
10884        # while pthread_create is in libc.  We check for pthread_attr_init
10885        # due to DEC craziness with -lpthreads.  We check for
10886        # pthread_cleanup_push because it is one of the few pthread
10887        # functions on Solaris that doesn't have a non-functional libc stub.
10888        # We try pthread_create on general principles.
10889
10890        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h.  */
10892#include <pthread.h>
10893#                       if $ax_pthread_check_cond
10894#                        error "$ax_pthread_check_macro must be defined"
10895#                       endif
10896                        static void routine(void *a) { a = 0; }
10897                        static void *start_routine(void *a) { return a; }
10898int
10899main ()
10900{
10901pthread_t th; pthread_attr_t attr;
10902                        pthread_create(&th, 0, start_routine, 0);
10903                        pthread_join(th, 0);
10904                        pthread_attr_init(&attr);
10905                        pthread_cleanup_push(routine, 0);
10906                        pthread_cleanup_pop(0) /* ; */
10907  ;
10908  return 0;
10909}
10910_ACEOF
10911if ac_fn_c_try_link "$LINENO"; then :
10912  ax_pthread_ok=yes
10913fi
10914rm -f core conftest.err conftest.$ac_objext \
10915    conftest$ac_exeext conftest.$ac_ext
10916
10917        CFLAGS="$ax_pthread_save_CFLAGS"
10918        LIBS="$ax_pthread_save_LIBS"
10919
10920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10921$as_echo "$ax_pthread_ok" >&6; }
10922        if test "x$ax_pthread_ok" = "xyes"; then :
10923  break
10924fi
10925
10926        PTHREAD_LIBS=""
10927        PTHREAD_CFLAGS=""
10928done
10929fi
10930
10931# Various other checks:
10932if test "x$ax_pthread_ok" = "xyes"; then
10933        ax_pthread_save_CFLAGS="$CFLAGS"
10934        ax_pthread_save_LIBS="$LIBS"
10935        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10936        LIBS="$PTHREAD_LIBS $LIBS"
10937
10938        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10939        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10940$as_echo_n "checking for joinable pthread attribute... " >&6; }
10941if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10942  $as_echo_n "(cached) " >&6
10943else
10944  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10945             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10946                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h.  */
10948#include <pthread.h>
10949int
10950main ()
10951{
10952int attr = $ax_pthread_attr; return attr /* ; */
10953  ;
10954  return 0;
10955}
10956_ACEOF
10957if ac_fn_c_try_link "$LINENO"; then :
10958  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10959fi
10960rm -f core conftest.err conftest.$ac_objext \
10961    conftest$ac_exeext conftest.$ac_ext
10962             done
10963
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10966$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10967        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10968               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10969               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10970
10971cat >>confdefs.h <<_ACEOF
10972#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10973_ACEOF
10974
10975               ax_pthread_joinable_attr_defined=yes
10976
10977fi
10978
10979        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10980$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10981if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10982  $as_echo_n "(cached) " >&6
10983else
10984  ax_cv_PTHREAD_SPECIAL_FLAGS=no
10985             case $host_os in
10986             solaris*)
10987             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10988             ;;
10989             esac
10990
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10993$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10994        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10995               test "x$ax_pthread_special_flags_added" != "xyes"; then :
10996  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10997               ax_pthread_special_flags_added=yes
10998fi
10999
11000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11001$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11002if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007#include <pthread.h>
11008int
11009main ()
11010{
11011int i = PTHREAD_PRIO_INHERIT;
11012  ;
11013  return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017  ax_cv_PTHREAD_PRIO_INHERIT=yes
11018else
11019  ax_cv_PTHREAD_PRIO_INHERIT=no
11020fi
11021rm -f core conftest.err conftest.$ac_objext \
11022    conftest$ac_exeext conftest.$ac_ext
11023
11024fi
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11026$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11027        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11028               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11029
11030$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11031
11032               ax_pthread_prio_inherit_defined=yes
11033
11034fi
11035
11036        CFLAGS="$ax_pthread_save_CFLAGS"
11037        LIBS="$ax_pthread_save_LIBS"
11038
11039        # More AIX lossage: compile with *_r variant
11040        if test "x$GCC" != "xyes"; then
11041            case $host_os in
11042                aix*)
11043                case "x/$CC" in #(
11044  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11045    #handle absolute path differently from PATH based program lookup
11046                     case "x$CC" in #(
11047  x/*) :
11048    if as_fn_executable_p ${CC}_r; then :
11049  PTHREAD_CC="${CC}_r"
11050fi ;; #(
11051  *) :
11052    for ac_prog in ${CC}_r
11053do
11054  # Extract the first word of "$ac_prog", so it can be a program name with args.
11055set dummy $ac_prog; ac_word=$2
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057$as_echo_n "checking for $ac_word... " >&6; }
11058if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11059  $as_echo_n "(cached) " >&6
11060else
11061  if test -n "$PTHREAD_CC"; then
11062  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11063else
11064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067  IFS=$as_save_IFS
11068  test -z "$as_dir" && as_dir=.
11069    for ac_exec_ext in '' $ac_executable_extensions; do
11070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071    ac_cv_prog_PTHREAD_CC="$ac_prog"
11072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073    break 2
11074  fi
11075done
11076  done
11077IFS=$as_save_IFS
11078
11079fi
11080fi
11081PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11082if test -n "$PTHREAD_CC"; then
11083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11084$as_echo "$PTHREAD_CC" >&6; }
11085else
11086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087$as_echo "no" >&6; }
11088fi
11089
11090
11091  test -n "$PTHREAD_CC" && break
11092done
11093test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11094 ;;
11095esac ;; #(
11096  *) :
11097     ;;
11098esac
11099                ;;
11100            esac
11101        fi
11102fi
11103
11104test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11105
11106
11107
11108
11109
11110# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11111if test "x$ax_pthread_ok" = "xyes"; then
11112        threads=yes
11113        :
11114else
11115        ax_pthread_ok=no
11116        as_fn_error $? "pthread not found" "$LINENO" 5
11117fi
11118ac_ext=c
11119ac_cpp='$CPP $CPPFLAGS'
11120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122ac_compiler_gnu=$ac_cv_c_compiler_gnu
11123
11124
11125elif test "$threads" = "auto"; then
11126
11127
11128
11129
11130ac_ext=c
11131ac_cpp='$CPP $CPPFLAGS'
11132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134ac_compiler_gnu=$ac_cv_c_compiler_gnu
11135
11136ax_pthread_ok=no
11137
11138# We used to check for pthread.h first, but this fails if pthread.h
11139# requires special compiler flags (e.g. on Tru64 or Sequent).
11140# It gets checked for in the link test anyway.
11141
11142# First of all, check if the user has set any of the PTHREAD_LIBS,
11143# etcetera environment variables, and if threads linking works using
11144# them:
11145if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11146        ax_pthread_save_CC="$CC"
11147        ax_pthread_save_CFLAGS="$CFLAGS"
11148        ax_pthread_save_LIBS="$LIBS"
11149        if test "x$PTHREAD_CC" != "x"; then :
11150  CC="$PTHREAD_CC"
11151fi
11152        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11153        LIBS="$PTHREAD_LIBS $LIBS"
11154        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11155$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11156        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h.  */
11158
11159/* Override any GCC internal prototype to avoid an error.
11160   Use char because int might match the return type of a GCC
11161   builtin and then its argument prototype would still apply.  */
11162#ifdef __cplusplus
11163extern "C"
11164#endif
11165char pthread_join ();
11166int
11167main ()
11168{
11169return pthread_join ();
11170  ;
11171  return 0;
11172}
11173_ACEOF
11174if ac_fn_c_try_link "$LINENO"; then :
11175  ax_pthread_ok=yes
11176fi
11177rm -f core conftest.err conftest.$ac_objext \
11178    conftest$ac_exeext conftest.$ac_ext
11179        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11180$as_echo "$ax_pthread_ok" >&6; }
11181        if test "x$ax_pthread_ok" = "xno"; then
11182                PTHREAD_LIBS=""
11183                PTHREAD_CFLAGS=""
11184        fi
11185        CC="$ax_pthread_save_CC"
11186        CFLAGS="$ax_pthread_save_CFLAGS"
11187        LIBS="$ax_pthread_save_LIBS"
11188fi
11189
11190# We must check for the threads library under a number of different
11191# names; the ordering is very important because some systems
11192# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11193# libraries is broken (non-POSIX).
11194
11195# Create a list of thread flags to try.  Items starting with a "-" are
11196# C compiler flags, and other items are library names, except for "none"
11197# which indicates that we try without any flags at all, and "pthread-config"
11198# which is a program returning the flags for the Pth emulation library.
11199
11200ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11201
11202# The ordering *is* (sometimes) important.  Some notes on the
11203# individual items follow:
11204
11205# pthreads: AIX (must check this before -lpthread)
11206# none: in case threads are in libc; should be tried before -Kthread and
11207#       other compiler flags to prevent continual compiler warnings
11208# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11209# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11210#           (Note: HP C rejects this with "bad form for `-t' option")
11211# -pthreads: Solaris/gcc (Note: HP C also rejects)
11212# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11213#      doesn't hurt to check since this sometimes defines pthreads and
11214#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
11215#      is present but should not be used directly; and before -mthreads,
11216#      because the compiler interprets this as "-mt" + "-hreads")
11217# -mthreads: Mingw32/gcc, Lynx/gcc
11218# pthread: Linux, etcetera
11219# --thread-safe: KAI C++
11220# pthread-config: use pthread-config program (for GNU Pth library)
11221
11222case $host_os in
11223
11224        freebsd*)
11225
11226        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11227        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11228
11229        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
11230        ;;
11231
11232        hpux*)
11233
11234        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11235        # multi-threading and also sets -lpthread."
11236
11237        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
11238        ;;
11239
11240        openedition*)
11241
11242        # IBM z/OS requires a feature-test macro to be defined in order to
11243        # enable POSIX threads at all, so give the user a hint if this is
11244        # not set. (We don't define these ourselves, as they can affect
11245        # other portions of the system API in unpredictable ways.)
11246
11247        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h.  */
11249
11250#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11251             AX_PTHREAD_ZOS_MISSING
11252#            endif
11253
11254_ACEOF
11255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11256  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
11257  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11258$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11259fi
11260rm -f conftest*
11261
11262        ;;
11263
11264        solaris*)
11265
11266        # On Solaris (at least, for some versions), libc contains stubbed
11267        # (non-functional) versions of the pthreads routines, so link-based
11268        # tests will erroneously succeed. (N.B.: The stubs are missing
11269        # pthread_cleanup_push, or rather a function called by this macro,
11270        # so we could check for that, but who knows whether they'll stub
11271        # that too in a future libc.)  So we'll check first for the
11272        # standard Solaris way of linking pthreads (-mt -lpthread).
11273
11274        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
11275        ;;
11276esac
11277
11278# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11279
11280if test "x$GCC" = "xyes"; then :
11281  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
11282fi
11283
11284# The presence of a feature test macro requesting re-entrant function
11285# definitions is, on some systems, a strong hint that pthreads support is
11286# correctly enabled
11287
11288case $host_os in
11289        darwin* | hpux* | linux* | osf* | solaris*)
11290        ax_pthread_check_macro="_REENTRANT"
11291        ;;
11292
11293        aix*)
11294        ax_pthread_check_macro="_THREAD_SAFE"
11295        ;;
11296
11297        *)
11298        ax_pthread_check_macro="--"
11299        ;;
11300esac
11301if test "x$ax_pthread_check_macro" = "x--"; then :
11302  ax_pthread_check_cond=0
11303else
11304  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
11305fi
11306
11307# Are we compiling with Clang?
11308
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11310$as_echo_n "checking whether $CC is Clang... " >&6; }
11311if ${ax_cv_PTHREAD_CLANG+:} false; then :
11312  $as_echo_n "(cached) " >&6
11313else
11314  ax_cv_PTHREAD_CLANG=no
11315     # Note that Autoconf sets GCC=yes for Clang as well as GCC
11316     if test "x$GCC" = "xyes"; then
11317        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h.  */
11319/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11320#            if defined(__clang__) && defined(__llvm__)
11321             AX_PTHREAD_CC_IS_CLANG
11322#            endif
11323
11324_ACEOF
11325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
11327  ax_cv_PTHREAD_CLANG=yes
11328fi
11329rm -f conftest*
11330
11331     fi
11332
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11335$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11336ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
11337
11338ax_pthread_clang_warning=no
11339
11340# Clang needs special handling, because older versions handle the -pthread
11341# option in a rather... idiosyncratic way
11342
11343if test "x$ax_pthread_clang" = "xyes"; then
11344
11345        # Clang takes -pthread; it has never supported any other flag
11346
11347        # (Note 1: This will need to be revisited if a system that Clang
11348        # supports has POSIX threads in a separate library.  This tends not
11349        # to be the way of modern systems, but it's conceivable.)
11350
11351        # (Note 2: On some systems, notably Darwin, -pthread is not needed
11352        # to get POSIX threads support; the API is always present and
11353        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
11354        # -pthread does define _REENTRANT, and while the Darwin headers
11355        # ignore this macro, third-party headers might not.)
11356
11357        PTHREAD_CFLAGS="-pthread"
11358        PTHREAD_LIBS=
11359
11360        ax_pthread_ok=yes
11361
11362        # However, older versions of Clang make a point of warning the user
11363        # that, in an invocation where only linking and no compilation is
11364        # taking place, the -pthread option has no effect ("argument unused
11365        # during compilation").  They expect -pthread to be passed in only
11366        # when source code is being compiled.
11367        #
11368        # Problem is, this is at odds with the way Automake and most other
11369        # C build frameworks function, which is that the same flags used in
11370        # compilation (CFLAGS) are also used in linking.  Many systems
11371        # supported by AX_PTHREAD require exactly this for POSIX threads
11372        # support, and in fact it is often not straightforward to specify a
11373        # flag that is used only in the compilation phase and not in
11374        # linking.  Such a scenario is extremely rare in practice.
11375        #
11376        # Even though use of the -pthread flag in linking would only print
11377        # a warning, this can be a nuisance for well-run software projects
11378        # that build with -Werror.  So if the active version of Clang has
11379        # this misfeature, we search for an option to squash it.
11380
11381        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11382$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11383if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
11384  $as_echo_n "(cached) " >&6
11385else
11386  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
11387             # Create an alternate version of $ac_link that compiles and
11388             # links in two steps (.c -> .o, .o -> exe) instead of one
11389             # (.c -> exe), because the warning occurs only in the second
11390             # step
11391             ax_pthread_save_ac_link="$ac_link"
11392             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11393             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11394             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11395             ax_pthread_save_CFLAGS="$CFLAGS"
11396             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
11397                if test "x$ax_pthread_try" = "xunknown"; then :
11398  break
11399fi
11400                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11401                ac_link="$ax_pthread_save_ac_link"
11402                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h.  */
11404int main(void){return 0;}
11405_ACEOF
11406if ac_fn_c_try_link "$LINENO"; then :
11407  ac_link="$ax_pthread_2step_ac_link"
11408                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410int main(void){return 0;}
11411_ACEOF
11412if ac_fn_c_try_link "$LINENO"; then :
11413  break
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416    conftest$ac_exeext conftest.$ac_ext
11417
11418fi
11419rm -f core conftest.err conftest.$ac_objext \
11420    conftest$ac_exeext conftest.$ac_ext
11421             done
11422             ac_link="$ax_pthread_save_ac_link"
11423             CFLAGS="$ax_pthread_save_CFLAGS"
11424             if test "x$ax_pthread_try" = "x"; then :
11425  ax_pthread_try=no
11426fi
11427             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
11428
11429fi
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11431$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11432
11433        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11434                no | unknown) ;;
11435                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11436        esac
11437
11438fi # $ax_pthread_clang = yes
11439
11440if test "x$ax_pthread_ok" = "xno"; then
11441for ax_pthread_try_flag in $ax_pthread_flags; do
11442
11443        case $ax_pthread_try_flag in
11444                none)
11445                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11446$as_echo_n "checking whether pthreads work without any flags... " >&6; }
11447                ;;
11448
11449                -mt,pthread)
11450                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11451$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11452                PTHREAD_CFLAGS="-mt"
11453                PTHREAD_LIBS="-lpthread"
11454                ;;
11455
11456                -*)
11457                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11458$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11459                PTHREAD_CFLAGS="$ax_pthread_try_flag"
11460                ;;
11461
11462                pthread-config)
11463                # Extract the first word of "pthread-config", so it can be a program name with args.
11464set dummy pthread-config; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if ${ac_cv_prog_ax_pthread_config+:} false; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  if test -n "$ax_pthread_config"; then
11471  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11472else
11473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476  IFS=$as_save_IFS
11477  test -z "$as_dir" && as_dir=.
11478    for ac_exec_ext in '' $ac_executable_extensions; do
11479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480    ac_cv_prog_ax_pthread_config="yes"
11481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482    break 2
11483  fi
11484done
11485  done
11486IFS=$as_save_IFS
11487
11488  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11489fi
11490fi
11491ax_pthread_config=$ac_cv_prog_ax_pthread_config
11492if test -n "$ax_pthread_config"; then
11493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11494$as_echo "$ax_pthread_config" >&6; }
11495else
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
11500
11501                if test "x$ax_pthread_config" = "xno"; then :
11502  continue
11503fi
11504                PTHREAD_CFLAGS="`pthread-config --cflags`"
11505                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11506                ;;
11507
11508                *)
11509                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11510$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11511                PTHREAD_LIBS="-l$ax_pthread_try_flag"
11512                ;;
11513        esac
11514
11515        ax_pthread_save_CFLAGS="$CFLAGS"
11516        ax_pthread_save_LIBS="$LIBS"
11517        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11518        LIBS="$PTHREAD_LIBS $LIBS"
11519
11520        # Check for various functions.  We must include pthread.h,
11521        # since some functions may be macros.  (On the Sequent, we
11522        # need a special flag -Kthread to make this header compile.)
11523        # We check for pthread_join because it is in -lpthread on IRIX
11524        # while pthread_create is in libc.  We check for pthread_attr_init
11525        # due to DEC craziness with -lpthreads.  We check for
11526        # pthread_cleanup_push because it is one of the few pthread
11527        # functions on Solaris that doesn't have a non-functional libc stub.
11528        # We try pthread_create on general principles.
11529
11530        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531/* end confdefs.h.  */
11532#include <pthread.h>
11533#                       if $ax_pthread_check_cond
11534#                        error "$ax_pthread_check_macro must be defined"
11535#                       endif
11536                        static void routine(void *a) { a = 0; }
11537                        static void *start_routine(void *a) { return a; }
11538int
11539main ()
11540{
11541pthread_t th; pthread_attr_t attr;
11542                        pthread_create(&th, 0, start_routine, 0);
11543                        pthread_join(th, 0);
11544                        pthread_attr_init(&attr);
11545                        pthread_cleanup_push(routine, 0);
11546                        pthread_cleanup_pop(0) /* ; */
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_link "$LINENO"; then :
11552  ax_pthread_ok=yes
11553fi
11554rm -f core conftest.err conftest.$ac_objext \
11555    conftest$ac_exeext conftest.$ac_ext
11556
11557        CFLAGS="$ax_pthread_save_CFLAGS"
11558        LIBS="$ax_pthread_save_LIBS"
11559
11560        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11561$as_echo "$ax_pthread_ok" >&6; }
11562        if test "x$ax_pthread_ok" = "xyes"; then :
11563  break
11564fi
11565
11566        PTHREAD_LIBS=""
11567        PTHREAD_CFLAGS=""
11568done
11569fi
11570
11571# Various other checks:
11572if test "x$ax_pthread_ok" = "xyes"; then
11573        ax_pthread_save_CFLAGS="$CFLAGS"
11574        ax_pthread_save_LIBS="$LIBS"
11575        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11576        LIBS="$PTHREAD_LIBS $LIBS"
11577
11578        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11579        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11580$as_echo_n "checking for joinable pthread attribute... " >&6; }
11581if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
11582  $as_echo_n "(cached) " >&6
11583else
11584  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11585             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11586                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587/* end confdefs.h.  */
11588#include <pthread.h>
11589int
11590main ()
11591{
11592int attr = $ax_pthread_attr; return attr /* ; */
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_link "$LINENO"; then :
11598  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11599fi
11600rm -f core conftest.err conftest.$ac_objext \
11601    conftest$ac_exeext conftest.$ac_ext
11602             done
11603
11604fi
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11606$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11607        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11608               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11609               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11610
11611cat >>confdefs.h <<_ACEOF
11612#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11613_ACEOF
11614
11615               ax_pthread_joinable_attr_defined=yes
11616
11617fi
11618
11619        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11620$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11621if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  ax_cv_PTHREAD_SPECIAL_FLAGS=no
11625             case $host_os in
11626             solaris*)
11627             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11628             ;;
11629             esac
11630
11631fi
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11633$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11634        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11635               test "x$ax_pthread_special_flags_added" != "xyes"; then :
11636  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11637               ax_pthread_special_flags_added=yes
11638fi
11639
11640        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11641$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11642if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h.  */
11647#include <pthread.h>
11648int
11649main ()
11650{
11651int i = PTHREAD_PRIO_INHERIT;
11652  ;
11653  return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_link "$LINENO"; then :
11657  ax_cv_PTHREAD_PRIO_INHERIT=yes
11658else
11659  ax_cv_PTHREAD_PRIO_INHERIT=no
11660fi
11661rm -f core conftest.err conftest.$ac_objext \
11662    conftest$ac_exeext conftest.$ac_ext
11663
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11666$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11667        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11668               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11669
11670$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11671
11672               ax_pthread_prio_inherit_defined=yes
11673
11674fi
11675
11676        CFLAGS="$ax_pthread_save_CFLAGS"
11677        LIBS="$ax_pthread_save_LIBS"
11678
11679        # More AIX lossage: compile with *_r variant
11680        if test "x$GCC" != "xyes"; then
11681            case $host_os in
11682                aix*)
11683                case "x/$CC" in #(
11684  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11685    #handle absolute path differently from PATH based program lookup
11686                     case "x$CC" in #(
11687  x/*) :
11688    if as_fn_executable_p ${CC}_r; then :
11689  PTHREAD_CC="${CC}_r"
11690fi ;; #(
11691  *) :
11692    for ac_prog in ${CC}_r
11693do
11694  # Extract the first word of "$ac_prog", so it can be a program name with args.
11695set dummy $ac_prog; ac_word=$2
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
11698if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11699  $as_echo_n "(cached) " >&6
11700else
11701  if test -n "$PTHREAD_CC"; then
11702  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707  IFS=$as_save_IFS
11708  test -z "$as_dir" && as_dir=.
11709    for ac_exec_ext in '' $ac_executable_extensions; do
11710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711    ac_cv_prog_PTHREAD_CC="$ac_prog"
11712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713    break 2
11714  fi
11715done
11716  done
11717IFS=$as_save_IFS
11718
11719fi
11720fi
11721PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11722if test -n "$PTHREAD_CC"; then
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11724$as_echo "$PTHREAD_CC" >&6; }
11725else
11726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727$as_echo "no" >&6; }
11728fi
11729
11730
11731  test -n "$PTHREAD_CC" && break
11732done
11733test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11734 ;;
11735esac ;; #(
11736  *) :
11737     ;;
11738esac
11739                ;;
11740            esac
11741        fi
11742fi
11743
11744test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11745
11746
11747
11748
11749
11750# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11751if test "x$ax_pthread_ok" = "xyes"; then
11752        threads=yes
11753        :
11754else
11755        ax_pthread_ok=no
11756        threads=no
11757fi
11758ac_ext=c
11759ac_cpp='$CPP $CPPFLAGS'
11760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764
11765fi
11766
11767if test "$threads" = "yes"; then
11768
11769$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11770
11771fi
11772 if test "$threads" = "yes"; then
11773  THREADS_TRUE=
11774  THREADS_FALSE='#'
11775else
11776  THREADS_TRUE='#'
11777  THREADS_FALSE=
11778fi
11779
11780
11781# Used to validate --package-metadata= input. Disabled by default.
11782# Check whether --enable-jansson was given.
11783if test "${enable_jansson+set}" = set; then :
11784  enableval=$enable_jansson; enable_jansson=$enableval
11785else
11786  enable_jansson="no"
11787fi
11788
11789
11790if test "x$enable_jansson" != "xno"; then
11791
11792
11793
11794
11795
11796
11797
11798if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11799	if test -n "$ac_tool_prefix"; then
11800  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11801set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
11804if ${ac_cv_path_PKG_CONFIG+:} false; then :
11805  $as_echo_n "(cached) " >&6
11806else
11807  case $PKG_CONFIG in
11808  [\\/]* | ?:[\\/]*)
11809  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11810  ;;
11811  *)
11812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $PATH
11814do
11815  IFS=$as_save_IFS
11816  test -z "$as_dir" && as_dir=.
11817    for ac_exec_ext in '' $ac_executable_extensions; do
11818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821    break 2
11822  fi
11823done
11824  done
11825IFS=$as_save_IFS
11826
11827  ;;
11828esac
11829fi
11830PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11831if test -n "$PKG_CONFIG"; then
11832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11833$as_echo "$PKG_CONFIG" >&6; }
11834else
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
11837fi
11838
11839
11840fi
11841if test -z "$ac_cv_path_PKG_CONFIG"; then
11842  ac_pt_PKG_CONFIG=$PKG_CONFIG
11843  # Extract the first word of "pkg-config", so it can be a program name with args.
11844set dummy pkg-config; ac_word=$2
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
11847if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850  case $ac_pt_PKG_CONFIG in
11851  [\\/]* | ?:[\\/]*)
11852  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11853  ;;
11854  *)
11855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858  IFS=$as_save_IFS
11859  test -z "$as_dir" && as_dir=.
11860    for ac_exec_ext in '' $ac_executable_extensions; do
11861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11862    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864    break 2
11865  fi
11866done
11867  done
11868IFS=$as_save_IFS
11869
11870  ;;
11871esac
11872fi
11873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11874if test -n "$ac_pt_PKG_CONFIG"; then
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11876$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11877else
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
11880fi
11881
11882  if test "x$ac_pt_PKG_CONFIG" = x; then
11883    PKG_CONFIG=""
11884  else
11885    case $cross_compiling:$ac_tool_warned in
11886yes:)
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11889ac_tool_warned=yes ;;
11890esac
11891    PKG_CONFIG=$ac_pt_PKG_CONFIG
11892  fi
11893else
11894  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11895fi
11896
11897fi
11898if test -n "$PKG_CONFIG"; then
11899	_pkg_min_version=0.9.0
11900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11901$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11902	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904$as_echo "yes" >&6; }
11905	else
11906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
11908		PKG_CONFIG=""
11909	fi
11910fi
11911  if test -n "$PKG_CONFIG"; then :
11912
11913
11914pkg_failed=no
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11916$as_echo_n "checking for jansson... " >&6; }
11917
11918if test -n "$JANSSON_CFLAGS"; then
11919    pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
11920 elif test -n "$PKG_CONFIG"; then
11921    if test -n "$PKG_CONFIG" && \
11922    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11923  ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11924  ac_status=$?
11925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926  test $ac_status = 0; }; then
11927  pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11928		      test "x$?" != "x0" && pkg_failed=yes
11929else
11930  pkg_failed=yes
11931fi
11932 else
11933    pkg_failed=untried
11934fi
11935if test -n "$JANSSON_LIBS"; then
11936    pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
11937 elif test -n "$PKG_CONFIG"; then
11938    if test -n "$PKG_CONFIG" && \
11939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11940  ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11941  ac_status=$?
11942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943  test $ac_status = 0; }; then
11944  pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11945		      test "x$?" != "x0" && pkg_failed=yes
11946else
11947  pkg_failed=yes
11948fi
11949 else
11950    pkg_failed=untried
11951fi
11952
11953if test $pkg_failed = no; then
11954  pkg_save_LDFLAGS="$LDFLAGS"
11955  LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958
11959int
11960main ()
11961{
11962
11963  ;
11964  return 0;
11965}
11966_ACEOF
11967if ac_fn_c_try_link "$LINENO"; then :
11968
11969else
11970  pkg_failed=yes
11971fi
11972rm -f core conftest.err conftest.$ac_objext \
11973    conftest$ac_exeext conftest.$ac_ext
11974  LDFLAGS=$pkg_save_LDFLAGS
11975fi
11976
11977
11978
11979if test $pkg_failed = yes; then
11980        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982
11983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11984        _pkg_short_errors_supported=yes
11985else
11986        _pkg_short_errors_supported=no
11987fi
11988        if test $_pkg_short_errors_supported = yes; then
11989	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11990        else
11991	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11992        fi
11993	# Put the nasty error message in config.log where it belongs
11994	echo "$JANSSON_PKG_ERRORS" >&5
11995
11996
11997	  as_fn_error $? "Cannot find jansson library" "$LINENO" 5
11998
11999elif test $pkg_failed = untried; then
12000        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
12002
12003	  as_fn_error $? "Cannot find jansson library" "$LINENO" 5
12004
12005else
12006	JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
12007	JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
12008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009$as_echo "yes" >&6; }
12010
12011
12012$as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12013
12014
12015
12016
12017fi
12018
12019else
12020
12021      as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
12022
12023fi
12024fi
12025
12026ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12027if test "x$ac_cv_have_decl_basename" = xyes; then :
12028  ac_have_decl=1
12029else
12030  ac_have_decl=0
12031fi
12032
12033cat >>confdefs.h <<_ACEOF
12034#define HAVE_DECL_BASENAME $ac_have_decl
12035_ACEOF
12036ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12037if test "x$ac_cv_have_decl_ffs" = xyes; then :
12038  ac_have_decl=1
12039else
12040  ac_have_decl=0
12041fi
12042
12043cat >>confdefs.h <<_ACEOF
12044#define HAVE_DECL_FFS $ac_have_decl
12045_ACEOF
12046ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12047if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12048  ac_have_decl=1
12049else
12050  ac_have_decl=0
12051fi
12052
12053cat >>confdefs.h <<_ACEOF
12054#define HAVE_DECL_ASPRINTF $ac_have_decl
12055_ACEOF
12056ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12057if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12058  ac_have_decl=1
12059else
12060  ac_have_decl=0
12061fi
12062
12063cat >>confdefs.h <<_ACEOF
12064#define HAVE_DECL_VASPRINTF $ac_have_decl
12065_ACEOF
12066ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12067if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12068  ac_have_decl=1
12069else
12070  ac_have_decl=0
12071fi
12072
12073cat >>confdefs.h <<_ACEOF
12074#define HAVE_DECL_SNPRINTF $ac_have_decl
12075_ACEOF
12076ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12077if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12078  ac_have_decl=1
12079else
12080  ac_have_decl=0
12081fi
12082
12083cat >>confdefs.h <<_ACEOF
12084#define HAVE_DECL_VSNPRINTF $ac_have_decl
12085_ACEOF
12086ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12087if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12088  ac_have_decl=1
12089else
12090  ac_have_decl=0
12091fi
12092
12093cat >>confdefs.h <<_ACEOF
12094#define HAVE_DECL_STRVERSCMP $ac_have_decl
12095_ACEOF
12096
12097
12098save_CFLAGS="$CFLAGS"
12099CFLAGS="$CFLAGS -Werror -gpubnames"
12100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h.  */
12102int i;
12103_ACEOF
12104if ac_fn_c_try_compile "$LINENO"; then :
12105  have_pubnames=yes
12106else
12107  have_pubnames=no
12108fi
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110CFLAGS="$save_CFLAGS"
12111 if test "$have_pubnames" = "yes"; then
12112  HAVE_PUBNAMES_TRUE=
12113  HAVE_PUBNAMES_FALSE='#'
12114else
12115  HAVE_PUBNAMES_TRUE='#'
12116  HAVE_PUBNAMES_FALSE=
12117fi
12118
12119
12120save_CFLAGS="$CFLAGS"
12121CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h.  */
12124int i;
12125_ACEOF
12126if ac_fn_c_try_compile "$LINENO"; then :
12127  have_no_use_linker_plugin=yes
12128else
12129  have_no_use_linker_plugin=no
12130fi
12131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132CFLAGS="$save_CFLAGS"
12133 if test "$have_no_use_linker_plugin" = "yes"; then
12134  HAVE_NO_USE_LINKER_PLUGIN_TRUE=
12135  HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
12136else
12137  HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
12138  HAVE_NO_USE_LINKER_PLUGIN_FALSE=
12139fi
12140
12141
12142ac_ext=cpp
12143ac_cpp='$CXXCPP $CPPFLAGS'
12144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12147
12148
12149
12150ac_ext=cpp
12151ac_cpp='$CXXCPP $CPPFLAGS'
12152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12156$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12157if test -z "$CXXCPP"; then
12158  if ${ac_cv_prog_CXXCPP+:} false; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161      # Double quotes because CXXCPP needs to be expanded
12162    for CXXCPP in "$CXX -E" "/lib/cpp"
12163    do
12164      ac_preproc_ok=false
12165for ac_cxx_preproc_warn_flag in '' yes
12166do
12167  # Use a header file that comes with gcc, so configuring glibc
12168  # with a fresh cross-compiler works.
12169  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170  # <limits.h> exists even on freestanding compilers.
12171  # On the NeXT, cc -E runs the code through the compiler's parser,
12172  # not just through cpp. "Syntax error" is here to catch this case.
12173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h.  */
12175#ifdef __STDC__
12176# include <limits.h>
12177#else
12178# include <assert.h>
12179#endif
12180		     Syntax error
12181_ACEOF
12182if ac_fn_cxx_try_cpp "$LINENO"; then :
12183
12184else
12185  # Broken: fails on valid input.
12186continue
12187fi
12188rm -f conftest.err conftest.i conftest.$ac_ext
12189
12190  # OK, works on sane cases.  Now check whether nonexistent headers
12191  # can be detected and how.
12192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h.  */
12194#include <ac_nonexistent.h>
12195_ACEOF
12196if ac_fn_cxx_try_cpp "$LINENO"; then :
12197  # Broken: success on invalid input.
12198continue
12199else
12200  # Passes both tests.
12201ac_preproc_ok=:
12202break
12203fi
12204rm -f conftest.err conftest.i conftest.$ac_ext
12205
12206done
12207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12208rm -f conftest.i conftest.err conftest.$ac_ext
12209if $ac_preproc_ok; then :
12210  break
12211fi
12212
12213    done
12214    ac_cv_prog_CXXCPP=$CXXCPP
12215
12216fi
12217  CXXCPP=$ac_cv_prog_CXXCPP
12218else
12219  ac_cv_prog_CXXCPP=$CXXCPP
12220fi
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12222$as_echo "$CXXCPP" >&6; }
12223ac_preproc_ok=false
12224for ac_cxx_preproc_warn_flag in '' yes
12225do
12226  # Use a header file that comes with gcc, so configuring glibc
12227  # with a fresh cross-compiler works.
12228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229  # <limits.h> exists even on freestanding compilers.
12230  # On the NeXT, cc -E runs the code through the compiler's parser,
12231  # not just through cpp. "Syntax error" is here to catch this case.
12232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233/* end confdefs.h.  */
12234#ifdef __STDC__
12235# include <limits.h>
12236#else
12237# include <assert.h>
12238#endif
12239		     Syntax error
12240_ACEOF
12241if ac_fn_cxx_try_cpp "$LINENO"; then :
12242
12243else
12244  # Broken: fails on valid input.
12245continue
12246fi
12247rm -f conftest.err conftest.i conftest.$ac_ext
12248
12249  # OK, works on sane cases.  Now check whether nonexistent headers
12250  # can be detected and how.
12251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252/* end confdefs.h.  */
12253#include <ac_nonexistent.h>
12254_ACEOF
12255if ac_fn_cxx_try_cpp "$LINENO"; then :
12256  # Broken: success on invalid input.
12257continue
12258else
12259  # Passes both tests.
12260ac_preproc_ok=:
12261break
12262fi
12263rm -f conftest.err conftest.i conftest.$ac_ext
12264
12265done
12266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12267rm -f conftest.i conftest.err conftest.$ac_ext
12268if $ac_preproc_ok; then :
12269
12270else
12271  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12273as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12274See \`config.log' for more details" "$LINENO" 5; }
12275fi
12276
12277ac_ext=cpp
12278ac_cpp='$CXXCPP $CPPFLAGS'
12279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12282
12283
12284for ac_header in unordered_set unordered_map
12285do :
12286  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12289  cat >>confdefs.h <<_ACEOF
12290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291_ACEOF
12292
12293fi
12294
12295done
12296
12297for ac_header in tr1/unordered_set tr1/unordered_map
12298do :
12299  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12302  cat >>confdefs.h <<_ACEOF
12303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304_ACEOF
12305
12306fi
12307
12308done
12309
12310for ac_header in ext/hash_map ext/hash_set
12311do :
12312  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12313ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12315  cat >>confdefs.h <<_ACEOF
12316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317_ACEOF
12318
12319fi
12320
12321done
12322
12323for ac_header in byteswap.h
12324do :
12325  ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12326if test "x$ac_cv_header_byteswap_h" = xyes; then :
12327  cat >>confdefs.h <<_ACEOF
12328#define HAVE_BYTESWAP_H 1
12329_ACEOF
12330
12331fi
12332
12333done
12334
12335
12336ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12337"
12338if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
12339  ac_have_decl=1
12340else
12341  ac_have_decl=0
12342fi
12343
12344cat >>confdefs.h <<_ACEOF
12345#define HAVE_DECL_BSWAP_16 $ac_have_decl
12346_ACEOF
12347ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12348"
12349if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
12350  ac_have_decl=1
12351else
12352  ac_have_decl=0
12353fi
12354
12355cat >>confdefs.h <<_ACEOF
12356#define HAVE_DECL_BSWAP_32 $ac_have_decl
12357_ACEOF
12358ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12359"
12360if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
12361  ac_have_decl=1
12362else
12363  ac_have_decl=0
12364fi
12365
12366cat >>confdefs.h <<_ACEOF
12367#define HAVE_DECL_BSWAP_64 $ac_have_decl
12368_ACEOF
12369
12370
12371for ac_header in windows.h
12372do :
12373  ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12374if test "x$ac_cv_header_windows_h" = xyes; then :
12375  cat >>confdefs.h <<_ACEOF
12376#define HAVE_WINDOWS_H 1
12377_ACEOF
12378
12379fi
12380
12381done
12382
12383for ac_header in dlfcn.h
12384do :
12385  ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12386if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12387  cat >>confdefs.h <<_ACEOF
12388#define HAVE_DLFCN_H 1
12389_ACEOF
12390
12391fi
12392
12393done
12394
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12396$as_echo_n "checking for library containing dlopen... " >&6; }
12397if ${ac_cv_search_dlopen+:} false; then :
12398  $as_echo_n "(cached) " >&6
12399else
12400  ac_func_search_save_LIBS=$LIBS
12401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404/* Override any GCC internal prototype to avoid an error.
12405   Use char because int might match the return type of a GCC
12406   builtin and then its argument prototype would still apply.  */
12407#ifdef __cplusplus
12408extern "C"
12409#endif
12410char dlopen ();
12411int
12412main ()
12413{
12414return dlopen ();
12415  ;
12416  return 0;
12417}
12418_ACEOF
12419for ac_lib in '' dl dld; do
12420  if test -z "$ac_lib"; then
12421    ac_res="none required"
12422  else
12423    ac_res=-l$ac_lib
12424    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12425  fi
12426  if ac_fn_cxx_try_link "$LINENO"; then :
12427  ac_cv_search_dlopen=$ac_res
12428fi
12429rm -f core conftest.err conftest.$ac_objext \
12430    conftest$ac_exeext
12431  if ${ac_cv_search_dlopen+:} false; then :
12432  break
12433fi
12434done
12435if ${ac_cv_search_dlopen+:} false; then :
12436
12437else
12438  ac_cv_search_dlopen=no
12439fi
12440rm conftest.$ac_ext
12441LIBS=$ac_func_search_save_LIBS
12442fi
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12444$as_echo "$ac_cv_search_dlopen" >&6; }
12445ac_res=$ac_cv_search_dlopen
12446if test "$ac_res" != no; then :
12447  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12448
12449fi
12450
12451case "$ac_cv_search_dlopen" in
12452  no*) DLOPEN_LIBS="";;
12453  *)   DLOPEN_LIBS="$ac_cv_search_dlopen";;
12454esac
12455
12456
12457for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
12458do :
12459  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12460ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12461if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12462  cat >>confdefs.h <<_ACEOF
12463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12464_ACEOF
12465
12466fi
12467done
12468
12469ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12470if test "x$ac_cv_have_decl_basename" = xyes; then :
12471  ac_have_decl=1
12472else
12473  ac_have_decl=0
12474fi
12475
12476cat >>confdefs.h <<_ACEOF
12477#define HAVE_DECL_BASENAME $ac_have_decl
12478_ACEOF
12479ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12480if test "x$ac_cv_have_decl_ffs" = xyes; then :
12481  ac_have_decl=1
12482else
12483  ac_have_decl=0
12484fi
12485
12486cat >>confdefs.h <<_ACEOF
12487#define HAVE_DECL_FFS $ac_have_decl
12488_ACEOF
12489ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12490if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12491  ac_have_decl=1
12492else
12493  ac_have_decl=0
12494fi
12495
12496cat >>confdefs.h <<_ACEOF
12497#define HAVE_DECL_ASPRINTF $ac_have_decl
12498_ACEOF
12499ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12500if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12501  ac_have_decl=1
12502else
12503  ac_have_decl=0
12504fi
12505
12506cat >>confdefs.h <<_ACEOF
12507#define HAVE_DECL_VASPRINTF $ac_have_decl
12508_ACEOF
12509ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12510if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12511  ac_have_decl=1
12512else
12513  ac_have_decl=0
12514fi
12515
12516cat >>confdefs.h <<_ACEOF
12517#define HAVE_DECL_SNPRINTF $ac_have_decl
12518_ACEOF
12519ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12520if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12521  ac_have_decl=1
12522else
12523  ac_have_decl=0
12524fi
12525
12526cat >>confdefs.h <<_ACEOF
12527#define HAVE_DECL_VSNPRINTF $ac_have_decl
12528_ACEOF
12529ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12530if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12531  ac_have_decl=1
12532else
12533  ac_have_decl=0
12534fi
12535
12536cat >>confdefs.h <<_ACEOF
12537#define HAVE_DECL_STRVERSCMP $ac_have_decl
12538_ACEOF
12539ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12540if test "x$ac_cv_have_decl_strndup" = xyes; then :
12541  ac_have_decl=1
12542else
12543  ac_have_decl=0
12544fi
12545
12546cat >>confdefs.h <<_ACEOF
12547#define HAVE_DECL_STRNDUP $ac_have_decl
12548_ACEOF
12549ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12550if test "x$ac_cv_have_decl_memmem" = xyes; then :
12551  ac_have_decl=1
12552else
12553  ac_have_decl=0
12554fi
12555
12556cat >>confdefs.h <<_ACEOF
12557#define HAVE_DECL_MEMMEM $ac_have_decl
12558_ACEOF
12559
12560
12561# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12562# at link time with some versions of GCC.
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12564$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12565if ${gold_cv_unordered_map_rehash+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571#include <tr1/unordered_map>
12572void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12573
12574int
12575main ()
12576{
12577
12578  ;
12579  return 0;
12580}
12581_ACEOF
12582if ac_fn_cxx_try_link "$LINENO"; then :
12583  gold_cv_unordered_map_rehash=yes
12584else
12585  gold_cv_unordered_map_rehash=no
12586fi
12587rm -f core conftest.err conftest.$ac_objext \
12588    conftest$ac_exeext conftest.$ac_ext
12589fi
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12591$as_echo "$gold_cv_unordered_map_rehash" >&6; }
12592if test "$gold_cv_unordered_map_rehash" = "yes"; then
12593
12594$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12595
12596fi
12597
12598# Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12599# So we need to check for it.
12600  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
12601  ac_ext=cpp
12602ac_cpp='$CXXCPP $CPPFLAGS'
12603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12606  ac_success=no
12607
12608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12609$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12610if ${ax_cv_cxx_compile_cxx11+:} false; then :
12611  $as_echo_n "(cached) " >&6
12612else
12613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615
12616
12617// If the compiler admits that it is not ready for C++11, why torture it?
12618// Hopefully, this will speed up the test.
12619
12620#ifndef __cplusplus
12621
12622#error "This is not a C++ compiler"
12623
12624#elif __cplusplus < 201103L
12625
12626#error "This is not a C++11 compiler"
12627
12628#else
12629
12630namespace cxx11
12631{
12632
12633  namespace test_static_assert
12634  {
12635
12636    template <typename T>
12637    struct check
12638    {
12639      static_assert(sizeof(int) <= sizeof(T), "not big enough");
12640    };
12641
12642  }
12643
12644  namespace test_final_override
12645  {
12646
12647    struct Base
12648    {
12649      virtual ~Base() {}
12650      virtual void f() {}
12651    };
12652
12653    struct Derived : public Base
12654    {
12655      virtual ~Derived() override {}
12656      virtual void f() override {}
12657    };
12658
12659  }
12660
12661  namespace test_double_right_angle_brackets
12662  {
12663
12664    template < typename T >
12665    struct check {};
12666
12667    typedef check<void> single_type;
12668    typedef check<check<void>> double_type;
12669    typedef check<check<check<void>>> triple_type;
12670    typedef check<check<check<check<void>>>> quadruple_type;
12671
12672  }
12673
12674  namespace test_decltype
12675  {
12676
12677    int
12678    f()
12679    {
12680      int a = 1;
12681      decltype(a) b = 2;
12682      return a + b;
12683    }
12684
12685  }
12686
12687  namespace test_type_deduction
12688  {
12689
12690    template < typename T1, typename T2 >
12691    struct is_same
12692    {
12693      static const bool value = false;
12694    };
12695
12696    template < typename T >
12697    struct is_same<T, T>
12698    {
12699      static const bool value = true;
12700    };
12701
12702    template < typename T1, typename T2 >
12703    auto
12704    add(T1 a1, T2 a2) -> decltype(a1 + a2)
12705    {
12706      return a1 + a2;
12707    }
12708
12709    int
12710    test(const int c, volatile int v)
12711    {
12712      static_assert(is_same<int, decltype(0)>::value == true, "");
12713      static_assert(is_same<int, decltype(c)>::value == false, "");
12714      static_assert(is_same<int, decltype(v)>::value == false, "");
12715      auto ac = c;
12716      auto av = v;
12717      auto sumi = ac + av + 'x';
12718      auto sumf = ac + av + 1.0;
12719      static_assert(is_same<int, decltype(ac)>::value == true, "");
12720      static_assert(is_same<int, decltype(av)>::value == true, "");
12721      static_assert(is_same<int, decltype(sumi)>::value == true, "");
12722      static_assert(is_same<int, decltype(sumf)>::value == false, "");
12723      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12724      return (sumf > 0.0) ? sumi : add(c, v);
12725    }
12726
12727  }
12728
12729  namespace test_noexcept
12730  {
12731
12732    int f() { return 0; }
12733    int g() noexcept { return 0; }
12734
12735    static_assert(noexcept(f()) == false, "");
12736    static_assert(noexcept(g()) == true, "");
12737
12738  }
12739
12740  namespace test_constexpr
12741  {
12742
12743    template < typename CharT >
12744    unsigned long constexpr
12745    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12746    {
12747      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12748    }
12749
12750    template < typename CharT >
12751    unsigned long constexpr
12752    strlen_c(const CharT *const s) noexcept
12753    {
12754      return strlen_c_r(s, 0UL);
12755    }
12756
12757    static_assert(strlen_c("") == 0UL, "");
12758    static_assert(strlen_c("1") == 1UL, "");
12759    static_assert(strlen_c("example") == 7UL, "");
12760    static_assert(strlen_c("another\0example") == 7UL, "");
12761
12762  }
12763
12764  namespace test_rvalue_references
12765  {
12766
12767    template < int N >
12768    struct answer
12769    {
12770      static constexpr int value = N;
12771    };
12772
12773    answer<1> f(int&)       { return answer<1>(); }
12774    answer<2> f(const int&) { return answer<2>(); }
12775    answer<3> f(int&&)      { return answer<3>(); }
12776
12777    void
12778    test()
12779    {
12780      int i = 0;
12781      const int c = 0;
12782      static_assert(decltype(f(i))::value == 1, "");
12783      static_assert(decltype(f(c))::value == 2, "");
12784      static_assert(decltype(f(0))::value == 3, "");
12785    }
12786
12787  }
12788
12789  namespace test_uniform_initialization
12790  {
12791
12792    struct test
12793    {
12794      static const int zero {};
12795      static const int one {1};
12796    };
12797
12798    static_assert(test::zero == 0, "");
12799    static_assert(test::one == 1, "");
12800
12801  }
12802
12803  namespace test_lambdas
12804  {
12805
12806    void
12807    test1()
12808    {
12809      auto lambda1 = [](){};
12810      auto lambda2 = lambda1;
12811      lambda1();
12812      lambda2();
12813    }
12814
12815    int
12816    test2()
12817    {
12818      auto a = [](int i, int j){ return i + j; }(1, 2);
12819      auto b = []() -> int { return '0'; }();
12820      auto c = [=](){ return a + b; }();
12821      auto d = [&](){ return c; }();
12822      auto e = [a, &b](int x) mutable {
12823        const auto identity = [](int y){ return y; };
12824        for (auto i = 0; i < a; ++i)
12825          a += b--;
12826        return x + identity(a + b);
12827      }(0);
12828      return a + b + c + d + e;
12829    }
12830
12831    int
12832    test3()
12833    {
12834      const auto nullary = [](){ return 0; };
12835      const auto unary = [](int x){ return x; };
12836      using nullary_t = decltype(nullary);
12837      using unary_t = decltype(unary);
12838      const auto higher1st = [](nullary_t f){ return f(); };
12839      const auto higher2nd = [unary](nullary_t f1){
12840        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12841      };
12842      return higher1st(nullary) + higher2nd(nullary)(unary);
12843    }
12844
12845  }
12846
12847  namespace test_variadic_templates
12848  {
12849
12850    template <int...>
12851    struct sum;
12852
12853    template <int N0, int... N1toN>
12854    struct sum<N0, N1toN...>
12855    {
12856      static constexpr auto value = N0 + sum<N1toN...>::value;
12857    };
12858
12859    template <>
12860    struct sum<>
12861    {
12862      static constexpr auto value = 0;
12863    };
12864
12865    static_assert(sum<>::value == 0, "");
12866    static_assert(sum<1>::value == 1, "");
12867    static_assert(sum<23>::value == 23, "");
12868    static_assert(sum<1, 2>::value == 3, "");
12869    static_assert(sum<5, 5, 11>::value == 21, "");
12870    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12871
12872  }
12873
12874  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12875  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12876  // because of this.
12877  namespace test_template_alias_sfinae
12878  {
12879
12880    struct foo {};
12881
12882    template<typename T>
12883    using member = typename T::member_type;
12884
12885    template<typename T>
12886    void func(...) {}
12887
12888    template<typename T>
12889    void func(member<T>*) {}
12890
12891    void test();
12892
12893    void test() { func<foo>(0); }
12894
12895  }
12896
12897}  // namespace cxx11
12898
12899#endif  // __cplusplus >= 201103L
12900
12901
12902
12903_ACEOF
12904if ac_fn_cxx_try_compile "$LINENO"; then :
12905  ax_cv_cxx_compile_cxx11=yes
12906else
12907  ax_cv_cxx_compile_cxx11=no
12908fi
12909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12910fi
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12912$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12913    if test x$ax_cv_cxx_compile_cxx11 = xyes; then
12914      ac_success=yes
12915    fi
12916
12917    if test x$ac_success = xno; then
12918    for alternative in ${ax_cxx_compile_alternatives}; do
12919      switch="-std=gnu++${alternative}"
12920      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12922$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12923if eval \${$cachevar+:} false; then :
12924  $as_echo_n "(cached) " >&6
12925else
12926  ac_save_CXX="$CXX"
12927         CXX="$CXX $switch"
12928         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930
12931
12932// If the compiler admits that it is not ready for C++11, why torture it?
12933// Hopefully, this will speed up the test.
12934
12935#ifndef __cplusplus
12936
12937#error "This is not a C++ compiler"
12938
12939#elif __cplusplus < 201103L
12940
12941#error "This is not a C++11 compiler"
12942
12943#else
12944
12945namespace cxx11
12946{
12947
12948  namespace test_static_assert
12949  {
12950
12951    template <typename T>
12952    struct check
12953    {
12954      static_assert(sizeof(int) <= sizeof(T), "not big enough");
12955    };
12956
12957  }
12958
12959  namespace test_final_override
12960  {
12961
12962    struct Base
12963    {
12964      virtual ~Base() {}
12965      virtual void f() {}
12966    };
12967
12968    struct Derived : public Base
12969    {
12970      virtual ~Derived() override {}
12971      virtual void f() override {}
12972    };
12973
12974  }
12975
12976  namespace test_double_right_angle_brackets
12977  {
12978
12979    template < typename T >
12980    struct check {};
12981
12982    typedef check<void> single_type;
12983    typedef check<check<void>> double_type;
12984    typedef check<check<check<void>>> triple_type;
12985    typedef check<check<check<check<void>>>> quadruple_type;
12986
12987  }
12988
12989  namespace test_decltype
12990  {
12991
12992    int
12993    f()
12994    {
12995      int a = 1;
12996      decltype(a) b = 2;
12997      return a + b;
12998    }
12999
13000  }
13001
13002  namespace test_type_deduction
13003  {
13004
13005    template < typename T1, typename T2 >
13006    struct is_same
13007    {
13008      static const bool value = false;
13009    };
13010
13011    template < typename T >
13012    struct is_same<T, T>
13013    {
13014      static const bool value = true;
13015    };
13016
13017    template < typename T1, typename T2 >
13018    auto
13019    add(T1 a1, T2 a2) -> decltype(a1 + a2)
13020    {
13021      return a1 + a2;
13022    }
13023
13024    int
13025    test(const int c, volatile int v)
13026    {
13027      static_assert(is_same<int, decltype(0)>::value == true, "");
13028      static_assert(is_same<int, decltype(c)>::value == false, "");
13029      static_assert(is_same<int, decltype(v)>::value == false, "");
13030      auto ac = c;
13031      auto av = v;
13032      auto sumi = ac + av + 'x';
13033      auto sumf = ac + av + 1.0;
13034      static_assert(is_same<int, decltype(ac)>::value == true, "");
13035      static_assert(is_same<int, decltype(av)>::value == true, "");
13036      static_assert(is_same<int, decltype(sumi)>::value == true, "");
13037      static_assert(is_same<int, decltype(sumf)>::value == false, "");
13038      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13039      return (sumf > 0.0) ? sumi : add(c, v);
13040    }
13041
13042  }
13043
13044  namespace test_noexcept
13045  {
13046
13047    int f() { return 0; }
13048    int g() noexcept { return 0; }
13049
13050    static_assert(noexcept(f()) == false, "");
13051    static_assert(noexcept(g()) == true, "");
13052
13053  }
13054
13055  namespace test_constexpr
13056  {
13057
13058    template < typename CharT >
13059    unsigned long constexpr
13060    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13061    {
13062      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13063    }
13064
13065    template < typename CharT >
13066    unsigned long constexpr
13067    strlen_c(const CharT *const s) noexcept
13068    {
13069      return strlen_c_r(s, 0UL);
13070    }
13071
13072    static_assert(strlen_c("") == 0UL, "");
13073    static_assert(strlen_c("1") == 1UL, "");
13074    static_assert(strlen_c("example") == 7UL, "");
13075    static_assert(strlen_c("another\0example") == 7UL, "");
13076
13077  }
13078
13079  namespace test_rvalue_references
13080  {
13081
13082    template < int N >
13083    struct answer
13084    {
13085      static constexpr int value = N;
13086    };
13087
13088    answer<1> f(int&)       { return answer<1>(); }
13089    answer<2> f(const int&) { return answer<2>(); }
13090    answer<3> f(int&&)      { return answer<3>(); }
13091
13092    void
13093    test()
13094    {
13095      int i = 0;
13096      const int c = 0;
13097      static_assert(decltype(f(i))::value == 1, "");
13098      static_assert(decltype(f(c))::value == 2, "");
13099      static_assert(decltype(f(0))::value == 3, "");
13100    }
13101
13102  }
13103
13104  namespace test_uniform_initialization
13105  {
13106
13107    struct test
13108    {
13109      static const int zero {};
13110      static const int one {1};
13111    };
13112
13113    static_assert(test::zero == 0, "");
13114    static_assert(test::one == 1, "");
13115
13116  }
13117
13118  namespace test_lambdas
13119  {
13120
13121    void
13122    test1()
13123    {
13124      auto lambda1 = [](){};
13125      auto lambda2 = lambda1;
13126      lambda1();
13127      lambda2();
13128    }
13129
13130    int
13131    test2()
13132    {
13133      auto a = [](int i, int j){ return i + j; }(1, 2);
13134      auto b = []() -> int { return '0'; }();
13135      auto c = [=](){ return a + b; }();
13136      auto d = [&](){ return c; }();
13137      auto e = [a, &b](int x) mutable {
13138        const auto identity = [](int y){ return y; };
13139        for (auto i = 0; i < a; ++i)
13140          a += b--;
13141        return x + identity(a + b);
13142      }(0);
13143      return a + b + c + d + e;
13144    }
13145
13146    int
13147    test3()
13148    {
13149      const auto nullary = [](){ return 0; };
13150      const auto unary = [](int x){ return x; };
13151      using nullary_t = decltype(nullary);
13152      using unary_t = decltype(unary);
13153      const auto higher1st = [](nullary_t f){ return f(); };
13154      const auto higher2nd = [unary](nullary_t f1){
13155        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13156      };
13157      return higher1st(nullary) + higher2nd(nullary)(unary);
13158    }
13159
13160  }
13161
13162  namespace test_variadic_templates
13163  {
13164
13165    template <int...>
13166    struct sum;
13167
13168    template <int N0, int... N1toN>
13169    struct sum<N0, N1toN...>
13170    {
13171      static constexpr auto value = N0 + sum<N1toN...>::value;
13172    };
13173
13174    template <>
13175    struct sum<>
13176    {
13177      static constexpr auto value = 0;
13178    };
13179
13180    static_assert(sum<>::value == 0, "");
13181    static_assert(sum<1>::value == 1, "");
13182    static_assert(sum<23>::value == 23, "");
13183    static_assert(sum<1, 2>::value == 3, "");
13184    static_assert(sum<5, 5, 11>::value == 21, "");
13185    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13186
13187  }
13188
13189  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13190  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13191  // because of this.
13192  namespace test_template_alias_sfinae
13193  {
13194
13195    struct foo {};
13196
13197    template<typename T>
13198    using member = typename T::member_type;
13199
13200    template<typename T>
13201    void func(...) {}
13202
13203    template<typename T>
13204    void func(member<T>*) {}
13205
13206    void test();
13207
13208    void test() { func<foo>(0); }
13209
13210  }
13211
13212}  // namespace cxx11
13213
13214#endif  // __cplusplus >= 201103L
13215
13216
13217
13218_ACEOF
13219if ac_fn_cxx_try_compile "$LINENO"; then :
13220  eval $cachevar=yes
13221else
13222  eval $cachevar=no
13223fi
13224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225         CXX="$ac_save_CXX"
13226fi
13227eval ac_res=\$$cachevar
13228	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13229$as_echo "$ac_res" >&6; }
13230      if eval test x\$$cachevar = xyes; then
13231        CXX="$CXX $switch"
13232        if test -n "$CXXCPP" ; then
13233          CXXCPP="$CXXCPP $switch"
13234        fi
13235        ac_success=yes
13236        break
13237      fi
13238    done
13239  fi
13240
13241    if test x$ac_success = xno; then
13242                for alternative in ${ax_cxx_compile_alternatives}; do
13243      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13244        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
13245        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
13246$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
13247if eval \${$cachevar+:} false; then :
13248  $as_echo_n "(cached) " >&6
13249else
13250  ac_save_CXX="$CXX"
13251           CXX="$CXX $switch"
13252           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h.  */
13254
13255
13256// If the compiler admits that it is not ready for C++11, why torture it?
13257// Hopefully, this will speed up the test.
13258
13259#ifndef __cplusplus
13260
13261#error "This is not a C++ compiler"
13262
13263#elif __cplusplus < 201103L
13264
13265#error "This is not a C++11 compiler"
13266
13267#else
13268
13269namespace cxx11
13270{
13271
13272  namespace test_static_assert
13273  {
13274
13275    template <typename T>
13276    struct check
13277    {
13278      static_assert(sizeof(int) <= sizeof(T), "not big enough");
13279    };
13280
13281  }
13282
13283  namespace test_final_override
13284  {
13285
13286    struct Base
13287    {
13288      virtual ~Base() {}
13289      virtual void f() {}
13290    };
13291
13292    struct Derived : public Base
13293    {
13294      virtual ~Derived() override {}
13295      virtual void f() override {}
13296    };
13297
13298  }
13299
13300  namespace test_double_right_angle_brackets
13301  {
13302
13303    template < typename T >
13304    struct check {};
13305
13306    typedef check<void> single_type;
13307    typedef check<check<void>> double_type;
13308    typedef check<check<check<void>>> triple_type;
13309    typedef check<check<check<check<void>>>> quadruple_type;
13310
13311  }
13312
13313  namespace test_decltype
13314  {
13315
13316    int
13317    f()
13318    {
13319      int a = 1;
13320      decltype(a) b = 2;
13321      return a + b;
13322    }
13323
13324  }
13325
13326  namespace test_type_deduction
13327  {
13328
13329    template < typename T1, typename T2 >
13330    struct is_same
13331    {
13332      static const bool value = false;
13333    };
13334
13335    template < typename T >
13336    struct is_same<T, T>
13337    {
13338      static const bool value = true;
13339    };
13340
13341    template < typename T1, typename T2 >
13342    auto
13343    add(T1 a1, T2 a2) -> decltype(a1 + a2)
13344    {
13345      return a1 + a2;
13346    }
13347
13348    int
13349    test(const int c, volatile int v)
13350    {
13351      static_assert(is_same<int, decltype(0)>::value == true, "");
13352      static_assert(is_same<int, decltype(c)>::value == false, "");
13353      static_assert(is_same<int, decltype(v)>::value == false, "");
13354      auto ac = c;
13355      auto av = v;
13356      auto sumi = ac + av + 'x';
13357      auto sumf = ac + av + 1.0;
13358      static_assert(is_same<int, decltype(ac)>::value == true, "");
13359      static_assert(is_same<int, decltype(av)>::value == true, "");
13360      static_assert(is_same<int, decltype(sumi)>::value == true, "");
13361      static_assert(is_same<int, decltype(sumf)>::value == false, "");
13362      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13363      return (sumf > 0.0) ? sumi : add(c, v);
13364    }
13365
13366  }
13367
13368  namespace test_noexcept
13369  {
13370
13371    int f() { return 0; }
13372    int g() noexcept { return 0; }
13373
13374    static_assert(noexcept(f()) == false, "");
13375    static_assert(noexcept(g()) == true, "");
13376
13377  }
13378
13379  namespace test_constexpr
13380  {
13381
13382    template < typename CharT >
13383    unsigned long constexpr
13384    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13385    {
13386      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13387    }
13388
13389    template < typename CharT >
13390    unsigned long constexpr
13391    strlen_c(const CharT *const s) noexcept
13392    {
13393      return strlen_c_r(s, 0UL);
13394    }
13395
13396    static_assert(strlen_c("") == 0UL, "");
13397    static_assert(strlen_c("1") == 1UL, "");
13398    static_assert(strlen_c("example") == 7UL, "");
13399    static_assert(strlen_c("another\0example") == 7UL, "");
13400
13401  }
13402
13403  namespace test_rvalue_references
13404  {
13405
13406    template < int N >
13407    struct answer
13408    {
13409      static constexpr int value = N;
13410    };
13411
13412    answer<1> f(int&)       { return answer<1>(); }
13413    answer<2> f(const int&) { return answer<2>(); }
13414    answer<3> f(int&&)      { return answer<3>(); }
13415
13416    void
13417    test()
13418    {
13419      int i = 0;
13420      const int c = 0;
13421      static_assert(decltype(f(i))::value == 1, "");
13422      static_assert(decltype(f(c))::value == 2, "");
13423      static_assert(decltype(f(0))::value == 3, "");
13424    }
13425
13426  }
13427
13428  namespace test_uniform_initialization
13429  {
13430
13431    struct test
13432    {
13433      static const int zero {};
13434      static const int one {1};
13435    };
13436
13437    static_assert(test::zero == 0, "");
13438    static_assert(test::one == 1, "");
13439
13440  }
13441
13442  namespace test_lambdas
13443  {
13444
13445    void
13446    test1()
13447    {
13448      auto lambda1 = [](){};
13449      auto lambda2 = lambda1;
13450      lambda1();
13451      lambda2();
13452    }
13453
13454    int
13455    test2()
13456    {
13457      auto a = [](int i, int j){ return i + j; }(1, 2);
13458      auto b = []() -> int { return '0'; }();
13459      auto c = [=](){ return a + b; }();
13460      auto d = [&](){ return c; }();
13461      auto e = [a, &b](int x) mutable {
13462        const auto identity = [](int y){ return y; };
13463        for (auto i = 0; i < a; ++i)
13464          a += b--;
13465        return x + identity(a + b);
13466      }(0);
13467      return a + b + c + d + e;
13468    }
13469
13470    int
13471    test3()
13472    {
13473      const auto nullary = [](){ return 0; };
13474      const auto unary = [](int x){ return x; };
13475      using nullary_t = decltype(nullary);
13476      using unary_t = decltype(unary);
13477      const auto higher1st = [](nullary_t f){ return f(); };
13478      const auto higher2nd = [unary](nullary_t f1){
13479        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13480      };
13481      return higher1st(nullary) + higher2nd(nullary)(unary);
13482    }
13483
13484  }
13485
13486  namespace test_variadic_templates
13487  {
13488
13489    template <int...>
13490    struct sum;
13491
13492    template <int N0, int... N1toN>
13493    struct sum<N0, N1toN...>
13494    {
13495      static constexpr auto value = N0 + sum<N1toN...>::value;
13496    };
13497
13498    template <>
13499    struct sum<>
13500    {
13501      static constexpr auto value = 0;
13502    };
13503
13504    static_assert(sum<>::value == 0, "");
13505    static_assert(sum<1>::value == 1, "");
13506    static_assert(sum<23>::value == 23, "");
13507    static_assert(sum<1, 2>::value == 3, "");
13508    static_assert(sum<5, 5, 11>::value == 21, "");
13509    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13510
13511  }
13512
13513  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13514  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13515  // because of this.
13516  namespace test_template_alias_sfinae
13517  {
13518
13519    struct foo {};
13520
13521    template<typename T>
13522    using member = typename T::member_type;
13523
13524    template<typename T>
13525    void func(...) {}
13526
13527    template<typename T>
13528    void func(member<T>*) {}
13529
13530    void test();
13531
13532    void test() { func<foo>(0); }
13533
13534  }
13535
13536}  // namespace cxx11
13537
13538#endif  // __cplusplus >= 201103L
13539
13540
13541
13542_ACEOF
13543if ac_fn_cxx_try_compile "$LINENO"; then :
13544  eval $cachevar=yes
13545else
13546  eval $cachevar=no
13547fi
13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549           CXX="$ac_save_CXX"
13550fi
13551eval ac_res=\$$cachevar
13552	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13553$as_echo "$ac_res" >&6; }
13554        if eval test x\$$cachevar = xyes; then
13555          CXX="$CXX $switch"
13556          if test -n "$CXXCPP" ; then
13557            CXXCPP="$CXXCPP $switch"
13558          fi
13559          ac_success=yes
13560          break
13561        fi
13562      done
13563      if test x$ac_success = xyes; then
13564        break
13565      fi
13566    done
13567  fi
13568
13569  ac_ext=cpp
13570ac_cpp='$CXXCPP $CPPFLAGS'
13571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13574
13575  if test x$ax_cxx_compile_cxx11_required = xtrue; then
13576    if test x$ac_success = xno; then
13577      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
13578    fi
13579  fi
13580  if test x$ac_success = xno; then
13581    HAVE_CXX11=0
13582    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
13583$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
13584  else
13585    HAVE_CXX11=1
13586
13587$as_echo "#define HAVE_CXX11 1" >>confdefs.h
13588
13589  fi
13590
13591
13592
13593# Use of tr1/unordered_map with off_t as a key is not supported on GCC
13594# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13596$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13597if ${gold_cv_hash_off_t+:} false; then :
13598  $as_echo_n "(cached) " >&6
13599else
13600  CXXFLAGS_hold=$CXXFLAGS
13601CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
13602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604
13605#include <sys/types.h>
13606#include <tr1/unordered_map>
13607std::tr1::hash<off_t> h;
13608
13609_ACEOF
13610if ac_fn_cxx_try_compile "$LINENO"; then :
13611  gold_cv_hash_off_t=yes
13612else
13613  gold_cv_hash_off_t=no
13614fi
13615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616CXXFLAGS=$CXXFLAGS_hold
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13619$as_echo "$gold_cv_hash_off_t" >&6; }
13620if test "$gold_cv_hash_off_t" = "yes"; then
13621
13622$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13623
13624fi
13625
13626# gcc 4.3.0 doesn't recognize the printf attribute on a template
13627# function.  Check for that.  This is gcc bug 35546.  This test can
13628# probably be removed after the bug has been fixed for a while.
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13630$as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13631if ${gold_cv_template_attribute+:} false; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636
13637template<typename T> extern void foo(const char*, ...)
13638  __attribute__ ((__format__ (__printf__, 1, 2)));
13639template<typename T> void foo(const char* format, ...) {}
13640void bar() { foo<int>("%s\n", "foo"); }
13641
13642_ACEOF
13643if ac_fn_cxx_try_compile "$LINENO"; then :
13644  gold_cv_template_attribute=yes
13645else
13646  gold_cv_template_attribute=no
13647fi
13648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13651$as_echo "$gold_cv_template_attribute" >&6; }
13652if test "$gold_cv_template_attribute" = "yes"; then
13653
13654$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13655
13656fi
13657
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13659$as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13660if ${gold_cv_stat_st_mtim+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664/* end confdefs.h.  */
13665
13666#include <sys/stat.h>
13667long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13668
13669int
13670main ()
13671{
13672
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677if ac_fn_cxx_try_compile "$LINENO"; then :
13678  gold_cv_stat_st_mtim=yes
13679else
13680  gold_cv_stat_st_mtim=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13685$as_echo "$gold_cv_stat_st_mtim" >&6; }
13686if test "$gold_cv_stat_st_mtim" = "yes"; then
13687
13688$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13689
13690fi
13691
13692ac_ext=c
13693ac_cpp='$CPP $CPPFLAGS'
13694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697
13698
13699for ac_header in locale.h
13700do :
13701  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13702if test "x$ac_cv_header_locale_h" = xyes; then :
13703  cat >>confdefs.h <<_ACEOF
13704#define HAVE_LOCALE_H 1
13705_ACEOF
13706
13707fi
13708
13709done
13710
13711for ac_func in setlocale
13712do :
13713  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13714if test "x$ac_cv_func_setlocale" = xyes; then :
13715  cat >>confdefs.h <<_ACEOF
13716#define HAVE_SETLOCALE 1
13717_ACEOF
13718
13719fi
13720done
13721
13722
13723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13724$as_echo_n "checking for LC_MESSAGES... " >&6; }
13725if ${am_cv_val_LC_MESSAGES+:} false; then :
13726  $as_echo_n "(cached) " >&6
13727else
13728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h.  */
13730#include <locale.h>
13731int
13732main ()
13733{
13734return LC_MESSAGES
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739if ac_fn_c_try_link "$LINENO"; then :
13740  am_cv_val_LC_MESSAGES=yes
13741else
13742  am_cv_val_LC_MESSAGES=no
13743fi
13744rm -f core conftest.err conftest.$ac_objext \
13745    conftest$ac_exeext conftest.$ac_ext
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13748$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13749  if test $am_cv_val_LC_MESSAGES = yes; then
13750
13751$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13752
13753  fi
13754
13755
13756
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13758$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13759    # Check whether --enable-maintainer-mode was given.
13760if test "${enable_maintainer_mode+set}" = set; then :
13761  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13762else
13763  USE_MAINTAINER_MODE=no
13764fi
13765
13766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13767$as_echo "$USE_MAINTAINER_MODE" >&6; }
13768   if test $USE_MAINTAINER_MODE = yes; then
13769  MAINTAINER_MODE_TRUE=
13770  MAINTAINER_MODE_FALSE='#'
13771else
13772  MAINTAINER_MODE_TRUE='#'
13773  MAINTAINER_MODE_FALSE=
13774fi
13775
13776  MAINT=$MAINTAINER_MODE_TRUE
13777
13778
13779
13780ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13781
13782cat >confcache <<\_ACEOF
13783# This file is a shell script that caches the results of configure
13784# tests run on this system so they can be shared between configure
13785# scripts and configure runs, see configure's option --config-cache.
13786# It is not useful on other systems.  If it contains results you don't
13787# want to keep, you may remove or edit it.
13788#
13789# config.status only pays attention to the cache file if you give it
13790# the --recheck option to rerun configure.
13791#
13792# `ac_cv_env_foo' variables (set or unset) will be overridden when
13793# loading this file, other *unset* `ac_cv_foo' will be assigned the
13794# following values.
13795
13796_ACEOF
13797
13798# The following way of writing the cache mishandles newlines in values,
13799# but we know of no workaround that is simple, portable, and efficient.
13800# So, we kill variables containing newlines.
13801# Ultrix sh set writes to stderr and can't be redirected directly,
13802# and sets the high bit in the cache file unless we assign to the vars.
13803(
13804  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13805    eval ac_val=\$$ac_var
13806    case $ac_val in #(
13807    *${as_nl}*)
13808      case $ac_var in #(
13809      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13810$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13811      esac
13812      case $ac_var in #(
13813      _ | IFS | as_nl) ;; #(
13814      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13815      *) { eval $ac_var=; unset $ac_var;} ;;
13816      esac ;;
13817    esac
13818  done
13819
13820  (set) 2>&1 |
13821    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13822    *${as_nl}ac_space=\ *)
13823      # `set' does not quote correctly, so add quotes: double-quote
13824      # substitution turns \\\\ into \\, and sed turns \\ into \.
13825      sed -n \
13826	"s/'/'\\\\''/g;
13827	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13828      ;; #(
13829    *)
13830      # `set' quotes correctly as required by POSIX, so do not add quotes.
13831      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13832      ;;
13833    esac |
13834    sort
13835) |
13836  sed '
13837     /^ac_cv_env_/b end
13838     t clear
13839     :clear
13840     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13841     t end
13842     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13843     :end' >>confcache
13844if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13845  if test -w "$cache_file"; then
13846    if test "x$cache_file" != "x/dev/null"; then
13847      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13848$as_echo "$as_me: updating cache $cache_file" >&6;}
13849      if test ! -f "$cache_file" || test -h "$cache_file"; then
13850	cat confcache >"$cache_file"
13851      else
13852        case $cache_file in #(
13853        */* | ?:*)
13854	  mv -f confcache "$cache_file"$$ &&
13855	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13856        *)
13857	  mv -f confcache "$cache_file" ;;
13858	esac
13859      fi
13860    fi
13861  else
13862    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13863$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13864  fi
13865fi
13866rm -f confcache
13867
13868test "x$prefix" = xNONE && prefix=$ac_default_prefix
13869# Let make expand exec_prefix.
13870test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13871
13872DEFS=-DHAVE_CONFIG_H
13873
13874ac_libobjs=
13875ac_ltlibobjs=
13876for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13877  # 1. Remove the extension, and $U if already installed.
13878  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13879  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13880  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13881  #    will be set to the directory where LIBOBJS objects are built.
13882  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13883  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13884done
13885LIBOBJS=$ac_libobjs
13886
13887LTLIBOBJS=$ac_ltlibobjs
13888
13889
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13891$as_echo_n "checking that generated files are newer than configure... " >&6; }
13892   if test -n "$am_sleep_pid"; then
13893     # Hide warnings about reused PIDs.
13894     wait $am_sleep_pid 2>/dev/null
13895   fi
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13897$as_echo "done" >&6; }
13898 if test -n "$EXEEXT"; then
13899  am__EXEEXT_TRUE=
13900  am__EXEEXT_FALSE='#'
13901else
13902  am__EXEEXT_TRUE='#'
13903  am__EXEEXT_FALSE=
13904fi
13905
13906if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13907  as_fn_error $? "conditional \"AMDEP\" was never defined.
13908Usually this means the macro was only invoked conditionally." "$LINENO" 5
13909fi
13910if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13911  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13912Usually this means the macro was only invoked conditionally." "$LINENO" 5
13913fi
13914if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13915  as_fn_error $? "conditional \"PLUGINS\" was never defined.
13916Usually this means the macro was only invoked conditionally." "$LINENO" 5
13917fi
13918if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13919  as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13920Usually this means the macro was only invoked conditionally." "$LINENO" 5
13921fi
13922if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13923  as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
13924Usually this means the macro was only invoked conditionally." "$LINENO" 5
13925fi
13926if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13927  as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
13928Usually this means the macro was only invoked conditionally." "$LINENO" 5
13929fi
13930if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13931  as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13932Usually this means the macro was only invoked conditionally." "$LINENO" 5
13933fi
13934if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13935  as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13936Usually this means the macro was only invoked conditionally." "$LINENO" 5
13937fi
13938if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13939  as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
13940Usually this means the macro was only invoked conditionally." "$LINENO" 5
13941fi
13942if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13943  as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13944Usually this means the macro was only invoked conditionally." "$LINENO" 5
13945fi
13946if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13947  as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
13948Usually this means the macro was only invoked conditionally." "$LINENO" 5
13949fi
13950if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13951  as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13952Usually this means the macro was only invoked conditionally." "$LINENO" 5
13953fi
13954if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13955  as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13956Usually this means the macro was only invoked conditionally." "$LINENO" 5
13957fi
13958if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13959  as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13960Usually this means the macro was only invoked conditionally." "$LINENO" 5
13961fi
13962if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13963  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13964Usually this means the macro was only invoked conditionally." "$LINENO" 5
13965fi
13966if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13967  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13968Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969fi
13970
13971if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13972  as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
13973Usually this means the macro was only invoked conditionally." "$LINENO" 5
13974fi
13975if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13976  as_fn_error $? "conditional \"GCC\" was never defined.
13977Usually this means the macro was only invoked conditionally." "$LINENO" 5
13978fi
13979if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13980  as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13981Usually this means the macro was only invoked conditionally." "$LINENO" 5
13982fi
13983if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13984  as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
13985Usually this means the macro was only invoked conditionally." "$LINENO" 5
13986fi
13987if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13988  as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13989Usually this means the macro was only invoked conditionally." "$LINENO" 5
13990fi
13991if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13992  as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
13993Usually this means the macro was only invoked conditionally." "$LINENO" 5
13994fi
13995if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
13996  as_fn_error $? "conditional \"GCC9\" was never defined.
13997Usually this means the macro was only invoked conditionally." "$LINENO" 5
13998fi
13999if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
14000  as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
14001Usually this means the macro was only invoked conditionally." "$LINENO" 5
14002fi
14003if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14004  as_fn_error $? "conditional \"TLS\" was never defined.
14005Usually this means the macro was only invoked conditionally." "$LINENO" 5
14006fi
14007if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14008  as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
14009Usually this means the macro was only invoked conditionally." "$LINENO" 5
14010fi
14011if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14012  as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
14013Usually this means the macro was only invoked conditionally." "$LINENO" 5
14014fi
14015if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14016  as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
14017Usually this means the macro was only invoked conditionally." "$LINENO" 5
14018fi
14019if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14020  as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
14021Usually this means the macro was only invoked conditionally." "$LINENO" 5
14022fi
14023if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14024  as_fn_error $? "conditional \"IFUNC\" was never defined.
14025Usually this means the macro was only invoked conditionally." "$LINENO" 5
14026fi
14027if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14028  as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
14029Usually this means the macro was only invoked conditionally." "$LINENO" 5
14030fi
14031if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14032  as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14033Usually this means the macro was only invoked conditionally." "$LINENO" 5
14034fi
14035if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14036  as_fn_error $? "conditional \"THREADS\" was never defined.
14037Usually this means the macro was only invoked conditionally." "$LINENO" 5
14038fi
14039if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14040  as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
14041Usually this means the macro was only invoked conditionally." "$LINENO" 5
14042fi
14043if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14044  as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14045Usually this means the macro was only invoked conditionally." "$LINENO" 5
14046fi
14047if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14048  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14049Usually this means the macro was only invoked conditionally." "$LINENO" 5
14050fi
14051
14052: "${CONFIG_STATUS=./config.status}"
14053ac_write_fail=0
14054ac_clean_files_save=$ac_clean_files
14055ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14057$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14058as_write_fail=0
14059cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14060#! $SHELL
14061# Generated by $as_me.
14062# Run this file to recreate the current configuration.
14063# Compiler output produced by configure, useful for debugging
14064# configure, is in config.log if it exists.
14065
14066debug=false
14067ac_cs_recheck=false
14068ac_cs_silent=false
14069
14070SHELL=\${CONFIG_SHELL-$SHELL}
14071export SHELL
14072_ASEOF
14073cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14074## -------------------- ##
14075## M4sh Initialization. ##
14076## -------------------- ##
14077
14078# Be more Bourne compatible
14079DUALCASE=1; export DUALCASE # for MKS sh
14080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14081  emulate sh
14082  NULLCMD=:
14083  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14084  # is contrary to our usage.  Disable this feature.
14085  alias -g '${1+"$@"}'='"$@"'
14086  setopt NO_GLOB_SUBST
14087else
14088  case `(set -o) 2>/dev/null` in #(
14089  *posix*) :
14090    set -o posix ;; #(
14091  *) :
14092     ;;
14093esac
14094fi
14095
14096
14097as_nl='
14098'
14099export as_nl
14100# Printing a long string crashes Solaris 7 /usr/bin/printf.
14101as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14102as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14103as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14104# Prefer a ksh shell builtin over an external printf program on Solaris,
14105# but without wasting forks for bash or zsh.
14106if test -z "$BASH_VERSION$ZSH_VERSION" \
14107    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14108  as_echo='print -r --'
14109  as_echo_n='print -rn --'
14110elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14111  as_echo='printf %s\n'
14112  as_echo_n='printf %s'
14113else
14114  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14115    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14116    as_echo_n='/usr/ucb/echo -n'
14117  else
14118    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14119    as_echo_n_body='eval
14120      arg=$1;
14121      case $arg in #(
14122      *"$as_nl"*)
14123	expr "X$arg" : "X\\(.*\\)$as_nl";
14124	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14125      esac;
14126      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14127    '
14128    export as_echo_n_body
14129    as_echo_n='sh -c $as_echo_n_body as_echo'
14130  fi
14131  export as_echo_body
14132  as_echo='sh -c $as_echo_body as_echo'
14133fi
14134
14135# The user is always right.
14136if test "${PATH_SEPARATOR+set}" != set; then
14137  PATH_SEPARATOR=:
14138  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14139    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14140      PATH_SEPARATOR=';'
14141  }
14142fi
14143
14144
14145# IFS
14146# We need space, tab and new line, in precisely that order.  Quoting is
14147# there to prevent editors from complaining about space-tab.
14148# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14149# splitting by setting IFS to empty value.)
14150IFS=" ""	$as_nl"
14151
14152# Find who we are.  Look in the path if we contain no directory separator.
14153as_myself=
14154case $0 in #((
14155  *[\\/]* ) as_myself=$0 ;;
14156  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157for as_dir in $PATH
14158do
14159  IFS=$as_save_IFS
14160  test -z "$as_dir" && as_dir=.
14161    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14162  done
14163IFS=$as_save_IFS
14164
14165     ;;
14166esac
14167# We did not find ourselves, most probably we were run as `sh COMMAND'
14168# in which case we are not to be found in the path.
14169if test "x$as_myself" = x; then
14170  as_myself=$0
14171fi
14172if test ! -f "$as_myself"; then
14173  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14174  exit 1
14175fi
14176
14177# Unset variables that we do not need and which cause bugs (e.g. in
14178# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14179# suppresses any "Segmentation fault" message there.  '((' could
14180# trigger a bug in pdksh 5.2.14.
14181for as_var in BASH_ENV ENV MAIL MAILPATH
14182do eval test x\${$as_var+set} = xset \
14183  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14184done
14185PS1='$ '
14186PS2='> '
14187PS4='+ '
14188
14189# NLS nuisances.
14190LC_ALL=C
14191export LC_ALL
14192LANGUAGE=C
14193export LANGUAGE
14194
14195# CDPATH.
14196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14197
14198
14199# as_fn_error STATUS ERROR [LINENO LOG_FD]
14200# ----------------------------------------
14201# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14202# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14203# script with STATUS, using 1 if that was 0.
14204as_fn_error ()
14205{
14206  as_status=$1; test $as_status -eq 0 && as_status=1
14207  if test "$4"; then
14208    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14209    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14210  fi
14211  $as_echo "$as_me: error: $2" >&2
14212  as_fn_exit $as_status
14213} # as_fn_error
14214
14215
14216# as_fn_set_status STATUS
14217# -----------------------
14218# Set $? to STATUS, without forking.
14219as_fn_set_status ()
14220{
14221  return $1
14222} # as_fn_set_status
14223
14224# as_fn_exit STATUS
14225# -----------------
14226# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14227as_fn_exit ()
14228{
14229  set +e
14230  as_fn_set_status $1
14231  exit $1
14232} # as_fn_exit
14233
14234# as_fn_unset VAR
14235# ---------------
14236# Portably unset VAR.
14237as_fn_unset ()
14238{
14239  { eval $1=; unset $1;}
14240}
14241as_unset=as_fn_unset
14242# as_fn_append VAR VALUE
14243# ----------------------
14244# Append the text in VALUE to the end of the definition contained in VAR. Take
14245# advantage of any shell optimizations that allow amortized linear growth over
14246# repeated appends, instead of the typical quadratic growth present in naive
14247# implementations.
14248if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14249  eval 'as_fn_append ()
14250  {
14251    eval $1+=\$2
14252  }'
14253else
14254  as_fn_append ()
14255  {
14256    eval $1=\$$1\$2
14257  }
14258fi # as_fn_append
14259
14260# as_fn_arith ARG...
14261# ------------------
14262# Perform arithmetic evaluation on the ARGs, and store the result in the
14263# global $as_val. Take advantage of shells that can avoid forks. The arguments
14264# must be portable across $(()) and expr.
14265if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14266  eval 'as_fn_arith ()
14267  {
14268    as_val=$(( $* ))
14269  }'
14270else
14271  as_fn_arith ()
14272  {
14273    as_val=`expr "$@" || test $? -eq 1`
14274  }
14275fi # as_fn_arith
14276
14277
14278if expr a : '\(a\)' >/dev/null 2>&1 &&
14279   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14280  as_expr=expr
14281else
14282  as_expr=false
14283fi
14284
14285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14286  as_basename=basename
14287else
14288  as_basename=false
14289fi
14290
14291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14292  as_dirname=dirname
14293else
14294  as_dirname=false
14295fi
14296
14297as_me=`$as_basename -- "$0" ||
14298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14299	 X"$0" : 'X\(//\)$' \| \
14300	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14301$as_echo X/"$0" |
14302    sed '/^.*\/\([^/][^/]*\)\/*$/{
14303	    s//\1/
14304	    q
14305	  }
14306	  /^X\/\(\/\/\)$/{
14307	    s//\1/
14308	    q
14309	  }
14310	  /^X\/\(\/\).*/{
14311	    s//\1/
14312	    q
14313	  }
14314	  s/.*/./; q'`
14315
14316# Avoid depending upon Character Ranges.
14317as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14319as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14320as_cr_digits='0123456789'
14321as_cr_alnum=$as_cr_Letters$as_cr_digits
14322
14323ECHO_C= ECHO_N= ECHO_T=
14324case `echo -n x` in #(((((
14325-n*)
14326  case `echo 'xy\c'` in
14327  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14328  xy)  ECHO_C='\c';;
14329  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14330       ECHO_T='	';;
14331  esac;;
14332*)
14333  ECHO_N='-n';;
14334esac
14335
14336rm -f conf$$ conf$$.exe conf$$.file
14337if test -d conf$$.dir; then
14338  rm -f conf$$.dir/conf$$.file
14339else
14340  rm -f conf$$.dir
14341  mkdir conf$$.dir 2>/dev/null
14342fi
14343if (echo >conf$$.file) 2>/dev/null; then
14344  if ln -s conf$$.file conf$$ 2>/dev/null; then
14345    as_ln_s='ln -s'
14346    # ... but there are two gotchas:
14347    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14348    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14349    # In both cases, we have to default to `cp -pR'.
14350    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14351      as_ln_s='cp -pR'
14352  elif ln conf$$.file conf$$ 2>/dev/null; then
14353    as_ln_s=ln
14354  else
14355    as_ln_s='cp -pR'
14356  fi
14357else
14358  as_ln_s='cp -pR'
14359fi
14360rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14361rmdir conf$$.dir 2>/dev/null
14362
14363
14364# as_fn_mkdir_p
14365# -------------
14366# Create "$as_dir" as a directory, including parents if necessary.
14367as_fn_mkdir_p ()
14368{
14369
14370  case $as_dir in #(
14371  -*) as_dir=./$as_dir;;
14372  esac
14373  test -d "$as_dir" || eval $as_mkdir_p || {
14374    as_dirs=
14375    while :; do
14376      case $as_dir in #(
14377      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14378      *) as_qdir=$as_dir;;
14379      esac
14380      as_dirs="'$as_qdir' $as_dirs"
14381      as_dir=`$as_dirname -- "$as_dir" ||
14382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383	 X"$as_dir" : 'X\(//\)[^/]' \| \
14384	 X"$as_dir" : 'X\(//\)$' \| \
14385	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14386$as_echo X"$as_dir" |
14387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14388	    s//\1/
14389	    q
14390	  }
14391	  /^X\(\/\/\)[^/].*/{
14392	    s//\1/
14393	    q
14394	  }
14395	  /^X\(\/\/\)$/{
14396	    s//\1/
14397	    q
14398	  }
14399	  /^X\(\/\).*/{
14400	    s//\1/
14401	    q
14402	  }
14403	  s/.*/./; q'`
14404      test -d "$as_dir" && break
14405    done
14406    test -z "$as_dirs" || eval "mkdir $as_dirs"
14407  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14408
14409
14410} # as_fn_mkdir_p
14411if mkdir -p . 2>/dev/null; then
14412  as_mkdir_p='mkdir -p "$as_dir"'
14413else
14414  test -d ./-p && rmdir ./-p
14415  as_mkdir_p=false
14416fi
14417
14418
14419# as_fn_executable_p FILE
14420# -----------------------
14421# Test if FILE is an executable regular file.
14422as_fn_executable_p ()
14423{
14424  test -f "$1" && test -x "$1"
14425} # as_fn_executable_p
14426as_test_x='test -x'
14427as_executable_p=as_fn_executable_p
14428
14429# Sed expression to map a string onto a valid CPP name.
14430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14431
14432# Sed expression to map a string onto a valid variable name.
14433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14434
14435
14436exec 6>&1
14437## ----------------------------------- ##
14438## Main body of $CONFIG_STATUS script. ##
14439## ----------------------------------- ##
14440_ASEOF
14441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14442
14443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14444# Save the log message, to keep $0 and so on meaningful, and to
14445# report actual input values of CONFIG_FILES etc. instead of their
14446# values after options handling.
14447ac_log="
14448This file was extended by gold $as_me 0.1, which was
14449generated by GNU Autoconf 2.69.  Invocation command line was
14450
14451  CONFIG_FILES    = $CONFIG_FILES
14452  CONFIG_HEADERS  = $CONFIG_HEADERS
14453  CONFIG_LINKS    = $CONFIG_LINKS
14454  CONFIG_COMMANDS = $CONFIG_COMMANDS
14455  $ $0 $@
14456
14457on `(hostname || uname -n) 2>/dev/null | sed 1q`
14458"
14459
14460_ACEOF
14461
14462case $ac_config_files in *"
14463"*) set x $ac_config_files; shift; ac_config_files=$*;;
14464esac
14465
14466case $ac_config_headers in *"
14467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14468esac
14469
14470
14471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472# Files that config.status was made for.
14473config_files="$ac_config_files"
14474config_headers="$ac_config_headers"
14475config_commands="$ac_config_commands"
14476
14477_ACEOF
14478
14479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480ac_cs_usage="\
14481\`$as_me' instantiates files and other configuration actions
14482from templates according to the current configuration.  Unless the files
14483and actions are specified as TAGs, all are instantiated by default.
14484
14485Usage: $0 [OPTION]... [TAG]...
14486
14487  -h, --help       print this help, then exit
14488  -V, --version    print version number and configuration settings, then exit
14489      --config     print configuration, then exit
14490  -q, --quiet, --silent
14491                   do not print progress messages
14492  -d, --debug      don't remove temporary files
14493      --recheck    update $as_me by reconfiguring in the same conditions
14494      --file=FILE[:TEMPLATE]
14495                   instantiate the configuration file FILE
14496      --header=FILE[:TEMPLATE]
14497                   instantiate the configuration header FILE
14498
14499Configuration files:
14500$config_files
14501
14502Configuration headers:
14503$config_headers
14504
14505Configuration commands:
14506$config_commands
14507
14508Report bugs to the package provider."
14509
14510_ACEOF
14511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14513ac_cs_version="\\
14514gold config.status 0.1
14515configured by $0, generated by GNU Autoconf 2.69,
14516  with options \\"\$ac_cs_config\\"
14517
14518Copyright (C) 2012 Free Software Foundation, Inc.
14519This config.status script is free software; the Free Software Foundation
14520gives unlimited permission to copy, distribute and modify it."
14521
14522ac_pwd='$ac_pwd'
14523srcdir='$srcdir'
14524INSTALL='$INSTALL'
14525MKDIR_P='$MKDIR_P'
14526AWK='$AWK'
14527test -n "\$AWK" || AWK=awk
14528_ACEOF
14529
14530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531# The default lists apply if the user does not specify any file.
14532ac_need_defaults=:
14533while test $# != 0
14534do
14535  case $1 in
14536  --*=?*)
14537    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14538    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14539    ac_shift=:
14540    ;;
14541  --*=)
14542    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14543    ac_optarg=
14544    ac_shift=:
14545    ;;
14546  *)
14547    ac_option=$1
14548    ac_optarg=$2
14549    ac_shift=shift
14550    ;;
14551  esac
14552
14553  case $ac_option in
14554  # Handling of the options.
14555  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14556    ac_cs_recheck=: ;;
14557  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14558    $as_echo "$ac_cs_version"; exit ;;
14559  --config | --confi | --conf | --con | --co | --c )
14560    $as_echo "$ac_cs_config"; exit ;;
14561  --debug | --debu | --deb | --de | --d | -d )
14562    debug=: ;;
14563  --file | --fil | --fi | --f )
14564    $ac_shift
14565    case $ac_optarg in
14566    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14567    '') as_fn_error $? "missing file argument" ;;
14568    esac
14569    as_fn_append CONFIG_FILES " '$ac_optarg'"
14570    ac_need_defaults=false;;
14571  --header | --heade | --head | --hea )
14572    $ac_shift
14573    case $ac_optarg in
14574    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14575    esac
14576    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14577    ac_need_defaults=false;;
14578  --he | --h)
14579    # Conflict between --help and --header
14580    as_fn_error $? "ambiguous option: \`$1'
14581Try \`$0 --help' for more information.";;
14582  --help | --hel | -h )
14583    $as_echo "$ac_cs_usage"; exit ;;
14584  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14585  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14586    ac_cs_silent=: ;;
14587
14588  # This is an error.
14589  -*) as_fn_error $? "unrecognized option: \`$1'
14590Try \`$0 --help' for more information." ;;
14591
14592  *) as_fn_append ac_config_targets " $1"
14593     ac_need_defaults=false ;;
14594
14595  esac
14596  shift
14597done
14598
14599ac_configure_extra_args=
14600
14601if $ac_cs_silent; then
14602  exec 6>/dev/null
14603  ac_configure_extra_args="$ac_configure_extra_args --silent"
14604fi
14605
14606_ACEOF
14607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14608if \$ac_cs_recheck; then
14609  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14610  shift
14611  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14612  CONFIG_SHELL='$SHELL'
14613  export CONFIG_SHELL
14614  exec "\$@"
14615fi
14616
14617_ACEOF
14618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14619exec 5>>config.log
14620{
14621  echo
14622  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14623## Running $as_me. ##
14624_ASBOX
14625  $as_echo "$ac_log"
14626} >&5
14627
14628_ACEOF
14629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630#
14631# INIT-COMMANDS
14632#
14633AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14634# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14635    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14636    # from automake.
14637    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14638    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14639    LINGUAS="${LINGUAS-%UNSET%}"
14640
14641# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14642    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14643    # from automake.
14644    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14645    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14646    LINGUAS="${LINGUAS-%UNSET%}"
14647
14648
14649_ACEOF
14650
14651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14652
14653# Handling of arguments.
14654for ac_config_target in $ac_config_targets
14655do
14656  case $ac_config_target in
14657    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14658    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14659    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14660    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14661    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14662    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14663    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14664
14665  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14666  esac
14667done
14668
14669
14670# If the user did not use the arguments to specify the items to instantiate,
14671# then the envvar interface is used.  Set only those that are not.
14672# We use the long form for the default assignment because of an extremely
14673# bizarre bug on SunOS 4.1.3.
14674if $ac_need_defaults; then
14675  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14676  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14677  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14678fi
14679
14680# Have a temporary directory for convenience.  Make it in the build tree
14681# simply because there is no reason against having it here, and in addition,
14682# creating and moving files from /tmp can sometimes cause problems.
14683# Hook for its removal unless debugging.
14684# Note that there is a small window in which the directory will not be cleaned:
14685# after its creation but before its name has been assigned to `$tmp'.
14686$debug ||
14687{
14688  tmp= ac_tmp=
14689  trap 'exit_status=$?
14690  : "${ac_tmp:=$tmp}"
14691  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14692' 0
14693  trap 'as_fn_exit 1' 1 2 13 15
14694}
14695# Create a (secure) tmp directory for tmp files.
14696
14697{
14698  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14699  test -d "$tmp"
14700}  ||
14701{
14702  tmp=./conf$$-$RANDOM
14703  (umask 077 && mkdir "$tmp")
14704} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14705ac_tmp=$tmp
14706
14707# Set up the scripts for CONFIG_FILES section.
14708# No need to generate them if there are no CONFIG_FILES.
14709# This happens for instance with `./config.status config.h'.
14710if test -n "$CONFIG_FILES"; then
14711
14712
14713ac_cr=`echo X | tr X '\015'`
14714# On cygwin, bash can eat \r inside `` if the user requested igncr.
14715# But we know of no other shell where ac_cr would be empty at this
14716# point, so we can use a bashism as a fallback.
14717if test "x$ac_cr" = x; then
14718  eval ac_cr=\$\'\\r\'
14719fi
14720ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14721if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14722  ac_cs_awk_cr='\\r'
14723else
14724  ac_cs_awk_cr=$ac_cr
14725fi
14726
14727echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14728_ACEOF
14729
14730
14731{
14732  echo "cat >conf$$subs.awk <<_ACEOF" &&
14733  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14734  echo "_ACEOF"
14735} >conf$$subs.sh ||
14736  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14737ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14738ac_delim='%!_!# '
14739for ac_last_try in false false false false false :; do
14740  . ./conf$$subs.sh ||
14741    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14742
14743  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14744  if test $ac_delim_n = $ac_delim_num; then
14745    break
14746  elif $ac_last_try; then
14747    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14748  else
14749    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14750  fi
14751done
14752rm -f conf$$subs.sh
14753
14754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14755cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14756_ACEOF
14757sed -n '
14758h
14759s/^/S["/; s/!.*/"]=/
14760p
14761g
14762s/^[^!]*!//
14763:repl
14764t repl
14765s/'"$ac_delim"'$//
14766t delim
14767:nl
14768h
14769s/\(.\{148\}\)..*/\1/
14770t more1
14771s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14772p
14773n
14774b repl
14775:more1
14776s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14777p
14778g
14779s/.\{148\}//
14780t nl
14781:delim
14782h
14783s/\(.\{148\}\)..*/\1/
14784t more2
14785s/["\\]/\\&/g; s/^/"/; s/$/"/
14786p
14787b
14788:more2
14789s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14790p
14791g
14792s/.\{148\}//
14793t delim
14794' <conf$$subs.awk | sed '
14795/^[^""]/{
14796  N
14797  s/\n//
14798}
14799' >>$CONFIG_STATUS || ac_write_fail=1
14800rm -f conf$$subs.awk
14801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14802_ACAWK
14803cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14804  for (key in S) S_is_set[key] = 1
14805  FS = ""
14806
14807}
14808{
14809  line = $ 0
14810  nfields = split(line, field, "@")
14811  substed = 0
14812  len = length(field[1])
14813  for (i = 2; i < nfields; i++) {
14814    key = field[i]
14815    keylen = length(key)
14816    if (S_is_set[key]) {
14817      value = S[key]
14818      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14819      len += length(value) + length(field[++i])
14820      substed = 1
14821    } else
14822      len += 1 + keylen
14823  }
14824
14825  print line
14826}
14827
14828_ACAWK
14829_ACEOF
14830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14831if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14832  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14833else
14834  cat
14835fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14836  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14837_ACEOF
14838
14839# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14840# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14841# trailing colons and then remove the whole line if VPATH becomes empty
14842# (actually we leave an empty line to preserve line numbers).
14843if test "x$srcdir" = x.; then
14844  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14845h
14846s///
14847s/^/:/
14848s/[	 ]*$/:/
14849s/:\$(srcdir):/:/g
14850s/:\${srcdir}:/:/g
14851s/:@srcdir@:/:/g
14852s/^:*//
14853s/:*$//
14854x
14855s/\(=[	 ]*\).*/\1/
14856G
14857s/\n//
14858s/^[^=]*=[	 ]*$//
14859}'
14860fi
14861
14862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863fi # test -n "$CONFIG_FILES"
14864
14865# Set up the scripts for CONFIG_HEADERS section.
14866# No need to generate them if there are no CONFIG_HEADERS.
14867# This happens for instance with `./config.status Makefile'.
14868if test -n "$CONFIG_HEADERS"; then
14869cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14870BEGIN {
14871_ACEOF
14872
14873# Transform confdefs.h into an awk script `defines.awk', embedded as
14874# here-document in config.status, that substitutes the proper values into
14875# config.h.in to produce config.h.
14876
14877# Create a delimiter string that does not exist in confdefs.h, to ease
14878# handling of long lines.
14879ac_delim='%!_!# '
14880for ac_last_try in false false :; do
14881  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14882  if test -z "$ac_tt"; then
14883    break
14884  elif $ac_last_try; then
14885    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14886  else
14887    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14888  fi
14889done
14890
14891# For the awk script, D is an array of macro values keyed by name,
14892# likewise P contains macro parameters if any.  Preserve backslash
14893# newline sequences.
14894
14895ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14896sed -n '
14897s/.\{148\}/&'"$ac_delim"'/g
14898t rset
14899:rset
14900s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14901t def
14902d
14903:def
14904s/\\$//
14905t bsnl
14906s/["\\]/\\&/g
14907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14908D["\1"]=" \3"/p
14909s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14910d
14911:bsnl
14912s/["\\]/\\&/g
14913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14914D["\1"]=" \3\\\\\\n"\\/p
14915t cont
14916s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14917t cont
14918d
14919:cont
14920n
14921s/.\{148\}/&'"$ac_delim"'/g
14922t clear
14923:clear
14924s/\\$//
14925t bsnlc
14926s/["\\]/\\&/g; s/^/"/; s/$/"/p
14927d
14928:bsnlc
14929s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14930b cont
14931' <confdefs.h | sed '
14932s/'"$ac_delim"'/"\\\
14933"/g' >>$CONFIG_STATUS || ac_write_fail=1
14934
14935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936  for (key in D) D_is_set[key] = 1
14937  FS = ""
14938}
14939/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14940  line = \$ 0
14941  split(line, arg, " ")
14942  if (arg[1] == "#") {
14943    defundef = arg[2]
14944    mac1 = arg[3]
14945  } else {
14946    defundef = substr(arg[1], 2)
14947    mac1 = arg[2]
14948  }
14949  split(mac1, mac2, "(") #)
14950  macro = mac2[1]
14951  prefix = substr(line, 1, index(line, defundef) - 1)
14952  if (D_is_set[macro]) {
14953    # Preserve the white space surrounding the "#".
14954    print prefix "define", macro P[macro] D[macro]
14955    next
14956  } else {
14957    # Replace #undef with comments.  This is necessary, for example,
14958    # in the case of _POSIX_SOURCE, which is predefined and required
14959    # on some systems where configure will not decide to define it.
14960    if (defundef == "undef") {
14961      print "/*", prefix defundef, macro, "*/"
14962      next
14963    }
14964  }
14965}
14966{ print }
14967_ACAWK
14968_ACEOF
14969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14971fi # test -n "$CONFIG_HEADERS"
14972
14973
14974eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14975shift
14976for ac_tag
14977do
14978  case $ac_tag in
14979  :[FHLC]) ac_mode=$ac_tag; continue;;
14980  esac
14981  case $ac_mode$ac_tag in
14982  :[FHL]*:*);;
14983  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14984  :[FH]-) ac_tag=-:-;;
14985  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14986  esac
14987  ac_save_IFS=$IFS
14988  IFS=:
14989  set x $ac_tag
14990  IFS=$ac_save_IFS
14991  shift
14992  ac_file=$1
14993  shift
14994
14995  case $ac_mode in
14996  :L) ac_source=$1;;
14997  :[FH])
14998    ac_file_inputs=
14999    for ac_f
15000    do
15001      case $ac_f in
15002      -) ac_f="$ac_tmp/stdin";;
15003      *) # Look for the file first in the build tree, then in the source tree
15004	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15005	 # because $ac_f cannot contain `:'.
15006	 test -f "$ac_f" ||
15007	   case $ac_f in
15008	   [\\/$]*) false;;
15009	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15010	   esac ||
15011	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15012      esac
15013      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15014      as_fn_append ac_file_inputs " '$ac_f'"
15015    done
15016
15017    # Let's still pretend it is `configure' which instantiates (i.e., don't
15018    # use $as_me), people would be surprised to read:
15019    #    /* config.h.  Generated by config.status.  */
15020    configure_input='Generated from '`
15021	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15022	`' by configure.'
15023    if test x"$ac_file" != x-; then
15024      configure_input="$ac_file.  $configure_input"
15025      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15026$as_echo "$as_me: creating $ac_file" >&6;}
15027    fi
15028    # Neutralize special characters interpreted by sed in replacement strings.
15029    case $configure_input in #(
15030    *\&* | *\|* | *\\* )
15031       ac_sed_conf_input=`$as_echo "$configure_input" |
15032       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15033    *) ac_sed_conf_input=$configure_input;;
15034    esac
15035
15036    case $ac_tag in
15037    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15038      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15039    esac
15040    ;;
15041  esac
15042
15043  ac_dir=`$as_dirname -- "$ac_file" ||
15044$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045	 X"$ac_file" : 'X\(//\)[^/]' \| \
15046	 X"$ac_file" : 'X\(//\)$' \| \
15047	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15048$as_echo X"$ac_file" |
15049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050	    s//\1/
15051	    q
15052	  }
15053	  /^X\(\/\/\)[^/].*/{
15054	    s//\1/
15055	    q
15056	  }
15057	  /^X\(\/\/\)$/{
15058	    s//\1/
15059	    q
15060	  }
15061	  /^X\(\/\).*/{
15062	    s//\1/
15063	    q
15064	  }
15065	  s/.*/./; q'`
15066  as_dir="$ac_dir"; as_fn_mkdir_p
15067  ac_builddir=.
15068
15069case "$ac_dir" in
15070.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15071*)
15072  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15073  # A ".." for each directory in $ac_dir_suffix.
15074  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15075  case $ac_top_builddir_sub in
15076  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15077  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15078  esac ;;
15079esac
15080ac_abs_top_builddir=$ac_pwd
15081ac_abs_builddir=$ac_pwd$ac_dir_suffix
15082# for backward compatibility:
15083ac_top_builddir=$ac_top_build_prefix
15084
15085case $srcdir in
15086  .)  # We are building in place.
15087    ac_srcdir=.
15088    ac_top_srcdir=$ac_top_builddir_sub
15089    ac_abs_top_srcdir=$ac_pwd ;;
15090  [\\/]* | ?:[\\/]* )  # Absolute name.
15091    ac_srcdir=$srcdir$ac_dir_suffix;
15092    ac_top_srcdir=$srcdir
15093    ac_abs_top_srcdir=$srcdir ;;
15094  *) # Relative name.
15095    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15096    ac_top_srcdir=$ac_top_build_prefix$srcdir
15097    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15098esac
15099ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15100
15101
15102  case $ac_mode in
15103  :F)
15104  #
15105  # CONFIG_FILE
15106  #
15107
15108  case $INSTALL in
15109  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15110  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15111  esac
15112  ac_MKDIR_P=$MKDIR_P
15113  case $MKDIR_P in
15114  [\\/$]* | ?:[\\/]* ) ;;
15115  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15116  esac
15117_ACEOF
15118
15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120# If the template does not know about datarootdir, expand it.
15121# FIXME: This hack should be removed a few years after 2.60.
15122ac_datarootdir_hack=; ac_datarootdir_seen=
15123ac_sed_dataroot='
15124/datarootdir/ {
15125  p
15126  q
15127}
15128/@datadir@/p
15129/@docdir@/p
15130/@infodir@/p
15131/@localedir@/p
15132/@mandir@/p'
15133case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15134*datarootdir*) ac_datarootdir_seen=yes;;
15135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15137$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15138_ACEOF
15139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140  ac_datarootdir_hack='
15141  s&@datadir@&$datadir&g
15142  s&@docdir@&$docdir&g
15143  s&@infodir@&$infodir&g
15144  s&@localedir@&$localedir&g
15145  s&@mandir@&$mandir&g
15146  s&\\\${datarootdir}&$datarootdir&g' ;;
15147esac
15148_ACEOF
15149
15150# Neutralize VPATH when `$srcdir' = `.'.
15151# Shell code in configure.ac might set extrasub.
15152# FIXME: do we really want to maintain this feature?
15153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154ac_sed_extra="$ac_vpsub
15155$extrasub
15156_ACEOF
15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15158:t
15159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15160s|@configure_input@|$ac_sed_conf_input|;t t
15161s&@top_builddir@&$ac_top_builddir_sub&;t t
15162s&@top_build_prefix@&$ac_top_build_prefix&;t t
15163s&@srcdir@&$ac_srcdir&;t t
15164s&@abs_srcdir@&$ac_abs_srcdir&;t t
15165s&@top_srcdir@&$ac_top_srcdir&;t t
15166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15167s&@builddir@&$ac_builddir&;t t
15168s&@abs_builddir@&$ac_abs_builddir&;t t
15169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15170s&@INSTALL@&$ac_INSTALL&;t t
15171s&@MKDIR_P@&$ac_MKDIR_P&;t t
15172$ac_datarootdir_hack
15173"
15174eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15175  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15176
15177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15178  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15179  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15180      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15181  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15182which seems to be undefined.  Please make sure it is defined" >&5
15183$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15184which seems to be undefined.  Please make sure it is defined" >&2;}
15185
15186  rm -f "$ac_tmp/stdin"
15187  case $ac_file in
15188  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15189  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15190  esac \
15191  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15192 ;;
15193  :H)
15194  #
15195  # CONFIG_HEADER
15196  #
15197  if test x"$ac_file" != x-; then
15198    {
15199      $as_echo "/* $configure_input  */" \
15200      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15201    } >"$ac_tmp/config.h" \
15202      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15203    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15204      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15205$as_echo "$as_me: $ac_file is unchanged" >&6;}
15206    else
15207      rm -f "$ac_file"
15208      mv "$ac_tmp/config.h" "$ac_file" \
15209	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210    fi
15211  else
15212    $as_echo "/* $configure_input  */" \
15213      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15214      || as_fn_error $? "could not create -" "$LINENO" 5
15215  fi
15216# Compute "$ac_file"'s index in $config_headers.
15217_am_arg="$ac_file"
15218_am_stamp_count=1
15219for _am_header in $config_headers :; do
15220  case $_am_header in
15221    $_am_arg | $_am_arg:* )
15222      break ;;
15223    * )
15224      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15225  esac
15226done
15227echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15228$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15230	 X"$_am_arg" : 'X\(//\)$' \| \
15231	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15232$as_echo X"$_am_arg" |
15233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15234	    s//\1/
15235	    q
15236	  }
15237	  /^X\(\/\/\)[^/].*/{
15238	    s//\1/
15239	    q
15240	  }
15241	  /^X\(\/\/\)$/{
15242	    s//\1/
15243	    q
15244	  }
15245	  /^X\(\/\).*/{
15246	    s//\1/
15247	    q
15248	  }
15249	  s/.*/./; q'`/stamp-h$_am_stamp_count
15250 ;;
15251
15252  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15253$as_echo "$as_me: executing $ac_file commands" >&6;}
15254 ;;
15255  esac
15256
15257
15258  case $ac_file$ac_mode in
15259    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15260  # Older Autoconf quotes --file arguments for eval, but not when files
15261  # are listed without --file.  Let's play safe and only enable the eval
15262  # if we detect the quoting.
15263  case $CONFIG_FILES in
15264  *\'*) eval set x "$CONFIG_FILES" ;;
15265  *)   set x $CONFIG_FILES ;;
15266  esac
15267  shift
15268  for mf
15269  do
15270    # Strip MF so we end up with the name of the file.
15271    mf=`echo "$mf" | sed -e 's/:.*$//'`
15272    # Check whether this is an Automake generated Makefile or not.
15273    # We used to match only the files named 'Makefile.in', but
15274    # some people rename them; so instead we look at the file content.
15275    # Grep'ing the first line is not enough: some people post-process
15276    # each Makefile.in and add a new line on top of each file to say so.
15277    # Grep'ing the whole file is not good either: AIX grep has a line
15278    # limit of 2048, but all sed's we know have understand at least 4000.
15279    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15280      dirpart=`$as_dirname -- "$mf" ||
15281$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282	 X"$mf" : 'X\(//\)[^/]' \| \
15283	 X"$mf" : 'X\(//\)$' \| \
15284	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15285$as_echo X"$mf" |
15286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15287	    s//\1/
15288	    q
15289	  }
15290	  /^X\(\/\/\)[^/].*/{
15291	    s//\1/
15292	    q
15293	  }
15294	  /^X\(\/\/\)$/{
15295	    s//\1/
15296	    q
15297	  }
15298	  /^X\(\/\).*/{
15299	    s//\1/
15300	    q
15301	  }
15302	  s/.*/./; q'`
15303    else
15304      continue
15305    fi
15306    # Extract the definition of DEPDIR, am__include, and am__quote
15307    # from the Makefile without running 'make'.
15308    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15309    test -z "$DEPDIR" && continue
15310    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15311    test -z "$am__include" && continue
15312    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15313    # Find all dependency output files, they are included files with
15314    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15315    # simplest approach to changing $(DEPDIR) to its actual value in the
15316    # expansion.
15317    for file in `sed -n "
15318      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15319	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15320      # Make sure the directory exists.
15321      test -f "$dirpart/$file" && continue
15322      fdir=`$as_dirname -- "$file" ||
15323$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15324	 X"$file" : 'X\(//\)[^/]' \| \
15325	 X"$file" : 'X\(//\)$' \| \
15326	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15327$as_echo X"$file" |
15328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15329	    s//\1/
15330	    q
15331	  }
15332	  /^X\(\/\/\)[^/].*/{
15333	    s//\1/
15334	    q
15335	  }
15336	  /^X\(\/\/\)$/{
15337	    s//\1/
15338	    q
15339	  }
15340	  /^X\(\/\).*/{
15341	    s//\1/
15342	    q
15343	  }
15344	  s/.*/./; q'`
15345      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15346      # echo "creating $dirpart/$file"
15347      echo '# dummy' > "$dirpart/$file"
15348    done
15349  done
15350}
15351 ;;
15352    "default-1":C)
15353    for ac_file in $CONFIG_FILES; do
15354      # Support "outfile[:infile[:infile...]]"
15355      case "$ac_file" in
15356        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15357      esac
15358      # PO directories have a Makefile.in generated from Makefile.in.in.
15359      case "$ac_file" in */Makefile.in)
15360        # Adjust a relative srcdir.
15361        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15362        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15363        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15364        # In autoconf-2.13 it is called $ac_given_srcdir.
15365        # In autoconf-2.50 it is called $srcdir.
15366        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15367        case "$ac_given_srcdir" in
15368          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15369          /*) top_srcdir="$ac_given_srcdir" ;;
15370          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15371        esac
15372        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15373          rm -f "$ac_dir/POTFILES"
15374          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15375          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15376          POMAKEFILEDEPS="POTFILES.in"
15377          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15378          # on $ac_dir but don't depend on user-specified configuration
15379          # parameters.
15380          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15381            # The LINGUAS file contains the set of available languages.
15382            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15383              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15384            fi
15385            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15386            # Hide the ALL_LINGUAS assigment from automake.
15387            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15388            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15389          else
15390            # The set of available languages was given in configure.ac.
15391            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15392          fi
15393          case "$ac_given_srcdir" in
15394            .) srcdirpre= ;;
15395            *) srcdirpre='$(srcdir)/' ;;
15396          esac
15397          POFILES=
15398          GMOFILES=
15399          UPDATEPOFILES=
15400          DUMMYPOFILES=
15401          for lang in $ALL_LINGUAS; do
15402            POFILES="$POFILES $srcdirpre$lang.po"
15403            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15404            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15405            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15406          done
15407          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15408          # environment variable.
15409          INST_LINGUAS=
15410          if test -n "$ALL_LINGUAS"; then
15411            for presentlang in $ALL_LINGUAS; do
15412              useit=no
15413              if test "%UNSET%" != "$LINGUAS"; then
15414                desiredlanguages="$LINGUAS"
15415              else
15416                desiredlanguages="$ALL_LINGUAS"
15417              fi
15418              for desiredlang in $desiredlanguages; do
15419                # Use the presentlang catalog if desiredlang is
15420                #   a. equal to presentlang, or
15421                #   b. a variant of presentlang (because in this case,
15422                #      presentlang can be used as a fallback for messages
15423                #      which are not translated in the desiredlang catalog).
15424                case "$desiredlang" in
15425                  "$presentlang"*) useit=yes;;
15426                esac
15427              done
15428              if test $useit = yes; then
15429                INST_LINGUAS="$INST_LINGUAS $presentlang"
15430              fi
15431            done
15432          fi
15433          CATALOGS=
15434          if test -n "$INST_LINGUAS"; then
15435            for lang in $INST_LINGUAS; do
15436              CATALOGS="$CATALOGS $lang.gmo"
15437            done
15438          fi
15439          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15440          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15441          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15442            if test -f "$f"; then
15443              case "$f" in
15444                *.orig | *.bak | *~) ;;
15445                *) cat "$f" >> "$ac_dir/Makefile" ;;
15446              esac
15447            fi
15448          done
15449        fi
15450        ;;
15451      esac
15452    done ;;
15453    "default-2":C)
15454    for ac_file in $CONFIG_FILES; do
15455      # Support "outfile[:infile[:infile...]]"
15456      case "$ac_file" in
15457        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15458      esac
15459      # PO directories have a Makefile.in generated from Makefile.in.in.
15460      case "$ac_file" in */Makefile.in)
15461        # Adjust a relative srcdir.
15462        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15463        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15464        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15465        # In autoconf-2.13 it is called $ac_given_srcdir.
15466        # In autoconf-2.50 it is called $srcdir.
15467        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15468        case "$ac_given_srcdir" in
15469          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15470          /*) top_srcdir="$ac_given_srcdir" ;;
15471          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15472        esac
15473        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15474          rm -f "$ac_dir/POTFILES"
15475          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15476          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15477          POMAKEFILEDEPS="POTFILES.in"
15478          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15479          # on $ac_dir but don't depend on user-specified configuration
15480          # parameters.
15481          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15482            # The LINGUAS file contains the set of available languages.
15483            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15484              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15485            fi
15486            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15487            # Hide the ALL_LINGUAS assigment from automake.
15488            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15489            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15490          else
15491            # The set of available languages was given in configure.ac.
15492            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15493          fi
15494          case "$ac_given_srcdir" in
15495            .) srcdirpre= ;;
15496            *) srcdirpre='$(srcdir)/' ;;
15497          esac
15498          POFILES=
15499          GMOFILES=
15500          UPDATEPOFILES=
15501          DUMMYPOFILES=
15502          for lang in $ALL_LINGUAS; do
15503            POFILES="$POFILES $srcdirpre$lang.po"
15504            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15505            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15506            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15507          done
15508          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15509          # environment variable.
15510          INST_LINGUAS=
15511          if test -n "$ALL_LINGUAS"; then
15512            for presentlang in $ALL_LINGUAS; do
15513              useit=no
15514              if test "%UNSET%" != "$LINGUAS"; then
15515                desiredlanguages="$LINGUAS"
15516              else
15517                desiredlanguages="$ALL_LINGUAS"
15518              fi
15519              for desiredlang in $desiredlanguages; do
15520                # Use the presentlang catalog if desiredlang is
15521                #   a. equal to presentlang, or
15522                #   b. a variant of presentlang (because in this case,
15523                #      presentlang can be used as a fallback for messages
15524                #      which are not translated in the desiredlang catalog).
15525                case "$desiredlang" in
15526                  "$presentlang"*) useit=yes;;
15527                esac
15528              done
15529              if test $useit = yes; then
15530                INST_LINGUAS="$INST_LINGUAS $presentlang"
15531              fi
15532            done
15533          fi
15534          CATALOGS=
15535          if test -n "$INST_LINGUAS"; then
15536            for lang in $INST_LINGUAS; do
15537              CATALOGS="$CATALOGS $lang.gmo"
15538            done
15539          fi
15540          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15541          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15542          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15543            if test -f "$f"; then
15544              case "$f" in
15545                *.orig | *.bak | *~) ;;
15546                *) cat "$f" >> "$ac_dir/Makefile" ;;
15547              esac
15548            fi
15549          done
15550        fi
15551        ;;
15552      esac
15553    done ;;
15554
15555  esac
15556done # for ac_tag
15557
15558
15559as_fn_exit 0
15560_ACEOF
15561ac_clean_files=$ac_clean_files_save
15562
15563test $ac_write_fail = 0 ||
15564  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15565
15566
15567# configure is writing to config.log, and then calls config.status.
15568# config.status does its own redirection, appending to config.log.
15569# Unfortunately, on DOS this fails, as config.log is still kept open
15570# by configure, so config.status won't be able to write to it; its
15571# output is simply discarded.  So we exec the FD to /dev/null,
15572# effectively closing config.log, so it can be properly (re)opened and
15573# appended to by config.status.  When coming back to configure, we
15574# need to make the FD available again.
15575if test "$no_create" != yes; then
15576  ac_cs_success=:
15577  ac_config_status_args=
15578  test "$silent" = yes &&
15579    ac_config_status_args="$ac_config_status_args --quiet"
15580  exec 5>/dev/null
15581  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15582  exec 5>>config.log
15583  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15584  # would make configure fail if this is the last instruction.
15585  $ac_cs_success || as_fn_exit 1
15586fi
15587if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15589$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15590fi
15591
15592