1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="config/config.h.in"
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
622ac_header_list=
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
625CC_RANLIB
626CC_AR
627PDFOPT
628STRIP
629RANLIB
630AR
631NSIS
632MAKENSIS
633MAKENSIS_PLAIN
634MAKENSIS_TOOL
635XZFILES
636MANPAGES
637XZ
638XMLTO
639ASCIIDOC
640NROFF
641MKDIR_P
642INSTALL_DATA
643INSTALL_SCRIPT
644INSTALL_PROGRAM
645SET_MAKE
646LN_S
647LIBEXT
648EGREP
649GREP
650CPP
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658host_os
659host_vendor
660host_cpu
661host
662build_os
663build_vendor
664build_cpu
665build
666ac_prefix_program
667target_alias
668host_alias
669build_alias
670LIBS
671ECHO_T
672ECHO_N
673ECHO_C
674DEFS
675mandir
676localedir
677libdir
678psdir
679pdfdir
680dvidir
681htmldir
682infodir
683docdir
684oldincludedir
685includedir
686localstatedir
687sharedstatedir
688sysconfdir
689datadir
690datarootdir
691libexecdir
692sbindir
693bindir
694program_transform_name
695prefix
696exec_prefix
697PACKAGE_URL
698PACKAGE_BUGREPORT
699PACKAGE_STRING
700PACKAGE_VERSION
701PACKAGE_TARNAME
702PACKAGE_NAME
703PATH_SEPARATOR
704SHELL'
705ac_subst_files=''
706ac_user_opts='
707enable_option_checking
708enable_largefile
709enable_optimization
710enable_gdb
711enable_profiling
712enable_panic_abort
713with_nsis
714enable_pdf_compression
715enable_sections
716enable_lto
717enable_sanitizer
718enable_pedantic
719enable_werror
720enable_suggestions
721enable_ccache
722'
723      ac_precious_vars='build_alias
724host_alias
725target_alias
726CC
727CFLAGS
728LDFLAGS
729LIBS
730CPPFLAGS
731CPP'
732
733
734# Initialize some variables set by options.
735ac_init_help=
736ac_init_version=false
737ac_unrecognized_opts=
738ac_unrecognized_sep=
739# The variables have the same names as the options, with
740# dashes changed to underlines.
741cache_file=/dev/null
742exec_prefix=NONE
743no_create=
744no_recursion=
745prefix=NONE
746program_prefix=NONE
747program_suffix=NONE
748program_transform_name=s,x,x,
749silent=
750site=
751srcdir=
752verbose=
753x_includes=NONE
754x_libraries=NONE
755
756# Installation directory options.
757# These are left unexpanded so users can "make install exec_prefix=/foo"
758# and all the variables that are supposed to be based on exec_prefix
759# by default will actually change.
760# Use braces instead of parens because sh, perl, etc. also accept them.
761# (The list follows the same order as the GNU Coding Standards.)
762bindir='${exec_prefix}/bin'
763sbindir='${exec_prefix}/sbin'
764libexecdir='${exec_prefix}/libexec'
765datarootdir='${prefix}/share'
766datadir='${datarootdir}'
767sysconfdir='${prefix}/etc'
768sharedstatedir='${prefix}/com'
769localstatedir='${prefix}/var'
770includedir='${prefix}/include'
771oldincludedir='/usr/include'
772docdir='${datarootdir}/doc/${PACKAGE}'
773infodir='${datarootdir}/info'
774htmldir='${docdir}'
775dvidir='${docdir}'
776pdfdir='${docdir}'
777psdir='${docdir}'
778libdir='${exec_prefix}/lib'
779localedir='${datarootdir}/locale'
780mandir='${datarootdir}/man'
781
782ac_prev=
783ac_dashdash=
784for ac_option
785do
786  # If the previous option needs an argument, assign it.
787  if test -n "$ac_prev"; then
788    eval $ac_prev=\$ac_option
789    ac_prev=
790    continue
791  fi
792
793  case $ac_option in
794  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795  *=)   ac_optarg= ;;
796  *)    ac_optarg=yes ;;
797  esac
798
799  # Accept the important Cygnus configure options, so we can diagnose typos.
800
801  case $ac_dashdash$ac_option in
802  --)
803    ac_dashdash=yes ;;
804
805  -bindir | --bindir | --bindi | --bind | --bin | --bi)
806    ac_prev=bindir ;;
807  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808    bindir=$ac_optarg ;;
809
810  -build | --build | --buil | --bui | --bu)
811    ac_prev=build_alias ;;
812  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813    build_alias=$ac_optarg ;;
814
815  -cache-file | --cache-file | --cache-fil | --cache-fi \
816  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817    ac_prev=cache_file ;;
818  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820    cache_file=$ac_optarg ;;
821
822  --config-cache | -C)
823    cache_file=config.cache ;;
824
825  -datadir | --datadir | --datadi | --datad)
826    ac_prev=datadir ;;
827  -datadir=* | --datadir=* | --datadi=* | --datad=*)
828    datadir=$ac_optarg ;;
829
830  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831  | --dataroo | --dataro | --datar)
832    ac_prev=datarootdir ;;
833  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835    datarootdir=$ac_optarg ;;
836
837  -disable-* | --disable-*)
838    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839    # Reject names that are not valid shell variable names.
840    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841      as_fn_error $? "invalid feature name: $ac_useropt"
842    ac_useropt_orig=$ac_useropt
843    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844    case $ac_user_opts in
845      *"
846"enable_$ac_useropt"
847"*) ;;
848      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
849	 ac_unrecognized_sep=', ';;
850    esac
851    eval enable_$ac_useropt=no ;;
852
853  -docdir | --docdir | --docdi | --doc | --do)
854    ac_prev=docdir ;;
855  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856    docdir=$ac_optarg ;;
857
858  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859    ac_prev=dvidir ;;
860  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861    dvidir=$ac_optarg ;;
862
863  -enable-* | --enable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error $? "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=\$ac_optarg ;;
878
879  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881  | --exec | --exe | --ex)
882    ac_prev=exec_prefix ;;
883  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885  | --exec=* | --exe=* | --ex=*)
886    exec_prefix=$ac_optarg ;;
887
888  -gas | --gas | --ga | --g)
889    # Obsolete; use --with-gas.
890    with_gas=yes ;;
891
892  -help | --help | --hel | --he | -h)
893    ac_init_help=long ;;
894  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895    ac_init_help=recursive ;;
896  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897    ac_init_help=short ;;
898
899  -host | --host | --hos | --ho)
900    ac_prev=host_alias ;;
901  -host=* | --host=* | --hos=* | --ho=*)
902    host_alias=$ac_optarg ;;
903
904  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905    ac_prev=htmldir ;;
906  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907  | --ht=*)
908    htmldir=$ac_optarg ;;
909
910  -includedir | --includedir | --includedi | --included | --include \
911  | --includ | --inclu | --incl | --inc)
912    ac_prev=includedir ;;
913  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914  | --includ=* | --inclu=* | --incl=* | --inc=*)
915    includedir=$ac_optarg ;;
916
917  -infodir | --infodir | --infodi | --infod | --info | --inf)
918    ac_prev=infodir ;;
919  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920    infodir=$ac_optarg ;;
921
922  -libdir | --libdir | --libdi | --libd)
923    ac_prev=libdir ;;
924  -libdir=* | --libdir=* | --libdi=* | --libd=*)
925    libdir=$ac_optarg ;;
926
927  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928  | --libexe | --libex | --libe)
929    ac_prev=libexecdir ;;
930  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931  | --libexe=* | --libex=* | --libe=*)
932    libexecdir=$ac_optarg ;;
933
934  -localedir | --localedir | --localedi | --localed | --locale)
935    ac_prev=localedir ;;
936  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937    localedir=$ac_optarg ;;
938
939  -localstatedir | --localstatedir | --localstatedi | --localstated \
940  | --localstate | --localstat | --localsta | --localst | --locals)
941    ac_prev=localstatedir ;;
942  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944    localstatedir=$ac_optarg ;;
945
946  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947    ac_prev=mandir ;;
948  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949    mandir=$ac_optarg ;;
950
951  -nfp | --nfp | --nf)
952    # Obsolete; use --without-fp.
953    with_fp=no ;;
954
955  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956  | --no-cr | --no-c | -n)
957    no_create=yes ;;
958
959  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961    no_recursion=yes ;;
962
963  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965  | --oldin | --oldi | --old | --ol | --o)
966    ac_prev=oldincludedir ;;
967  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970    oldincludedir=$ac_optarg ;;
971
972  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973    ac_prev=prefix ;;
974  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975    prefix=$ac_optarg ;;
976
977  -program-prefix | --program-prefix | --program-prefi | --program-pref \
978  | --program-pre | --program-pr | --program-p)
979    ac_prev=program_prefix ;;
980  -program-prefix=* | --program-prefix=* | --program-prefi=* \
981  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982    program_prefix=$ac_optarg ;;
983
984  -program-suffix | --program-suffix | --program-suffi | --program-suff \
985  | --program-suf | --program-su | --program-s)
986    ac_prev=program_suffix ;;
987  -program-suffix=* | --program-suffix=* | --program-suffi=* \
988  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989    program_suffix=$ac_optarg ;;
990
991  -program-transform-name | --program-transform-name \
992  | --program-transform-nam | --program-transform-na \
993  | --program-transform-n | --program-transform- \
994  | --program-transform | --program-transfor \
995  | --program-transfo | --program-transf \
996  | --program-trans | --program-tran \
997  | --progr-tra | --program-tr | --program-t)
998    ac_prev=program_transform_name ;;
999  -program-transform-name=* | --program-transform-name=* \
1000  | --program-transform-nam=* | --program-transform-na=* \
1001  | --program-transform-n=* | --program-transform-=* \
1002  | --program-transform=* | --program-transfor=* \
1003  | --program-transfo=* | --program-transf=* \
1004  | --program-trans=* | --program-tran=* \
1005  | --progr-tra=* | --program-tr=* | --program-t=*)
1006    program_transform_name=$ac_optarg ;;
1007
1008  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009    ac_prev=pdfdir ;;
1010  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011    pdfdir=$ac_optarg ;;
1012
1013  -psdir | --psdir | --psdi | --psd | --ps)
1014    ac_prev=psdir ;;
1015  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016    psdir=$ac_optarg ;;
1017
1018  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019  | -silent | --silent | --silen | --sile | --sil)
1020    silent=yes ;;
1021
1022  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023    ac_prev=sbindir ;;
1024  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025  | --sbi=* | --sb=*)
1026    sbindir=$ac_optarg ;;
1027
1028  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030  | --sharedst | --shareds | --shared | --share | --shar \
1031  | --sha | --sh)
1032    ac_prev=sharedstatedir ;;
1033  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036  | --sha=* | --sh=*)
1037    sharedstatedir=$ac_optarg ;;
1038
1039  -site | --site | --sit)
1040    ac_prev=site ;;
1041  -site=* | --site=* | --sit=*)
1042    site=$ac_optarg ;;
1043
1044  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045    ac_prev=srcdir ;;
1046  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047    srcdir=$ac_optarg ;;
1048
1049  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050  | --syscon | --sysco | --sysc | --sys | --sy)
1051    ac_prev=sysconfdir ;;
1052  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054    sysconfdir=$ac_optarg ;;
1055
1056  -target | --target | --targe | --targ | --tar | --ta | --t)
1057    ac_prev=target_alias ;;
1058  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059    target_alias=$ac_optarg ;;
1060
1061  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062    verbose=yes ;;
1063
1064  -version | --version | --versio | --versi | --vers | -V)
1065    ac_init_version=: ;;
1066
1067  -with-* | --with-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      as_fn_error $? "invalid package name: $ac_useropt"
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"with_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval with_$ac_useropt=\$ac_optarg ;;
1082
1083  -without-* | --without-*)
1084    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085    # Reject names that are not valid shell variable names.
1086    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087      as_fn_error $? "invalid package name: $ac_useropt"
1088    ac_useropt_orig=$ac_useropt
1089    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090    case $ac_user_opts in
1091      *"
1092"with_$ac_useropt"
1093"*) ;;
1094      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1095	 ac_unrecognized_sep=', ';;
1096    esac
1097    eval with_$ac_useropt=no ;;
1098
1099  --x)
1100    # Obsolete; use --with-x.
1101    with_x=yes ;;
1102
1103  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104  | --x-incl | --x-inc | --x-in | --x-i)
1105    ac_prev=x_includes ;;
1106  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108    x_includes=$ac_optarg ;;
1109
1110  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112    ac_prev=x_libraries ;;
1113  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115    x_libraries=$ac_optarg ;;
1116
1117  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1118Try \`$0 --help' for more information"
1119    ;;
1120
1121  *=*)
1122    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123    # Reject names that are not valid shell variable names.
1124    case $ac_envvar in #(
1125      '' | [0-9]* | *[!_$as_cr_alnum]* )
1126      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1127    esac
1128    eval $ac_envvar=\$ac_optarg
1129    export $ac_envvar ;;
1130
1131  *)
1132    # FIXME: should be removed in autoconf 3.0.
1133    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1137    ;;
1138
1139  esac
1140done
1141
1142if test -n "$ac_prev"; then
1143  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144  as_fn_error $? "missing argument to $ac_option"
1145fi
1146
1147if test -n "$ac_unrecognized_opts"; then
1148  case $enable_option_checking in
1149    no) ;;
1150    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1151    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152  esac
1153fi
1154
1155# Check all directory arguments for consistency.
1156for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157		datadir sysconfdir sharedstatedir localstatedir includedir \
1158		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159		libdir localedir mandir
1160do
1161  eval ac_val=\$$ac_var
1162  # Remove trailing slashes.
1163  case $ac_val in
1164    */ )
1165      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166      eval $ac_var=\$ac_val;;
1167  esac
1168  # Be sure to have absolute directory names.
1169  case $ac_val in
1170    [\\/$]* | ?:[\\/]* )  continue;;
1171    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172  esac
1173  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1174done
1175
1176# There might be people who depend on the old broken behavior: `$host'
1177# used to hold the argument of --host etc.
1178# FIXME: To remove some day.
1179build=$build_alias
1180host=$host_alias
1181target=$target_alias
1182
1183# FIXME: To remove some day.
1184if test "x$host_alias" != x; then
1185  if test "x$build_alias" = x; then
1186    cross_compiling=maybe
1187  elif test "x$build_alias" != "x$host_alias"; then
1188    cross_compiling=yes
1189  fi
1190fi
1191
1192ac_tool_prefix=
1193test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194
1195test "$silent" = yes && exec 6>/dev/null
1196
1197
1198ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199ac_ls_di=`ls -di .` &&
1200ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201  as_fn_error $? "working directory cannot be determined"
1202test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203  as_fn_error $? "pwd does not report name of working directory"
1204
1205
1206# Find the source files, if location was not specified.
1207if test -z "$srcdir"; then
1208  ac_srcdir_defaulted=yes
1209  # Try the directory containing this script, then the parent directory.
1210  ac_confdir=`$as_dirname -- "$as_myself" ||
1211$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212	 X"$as_myself" : 'X\(//\)[^/]' \| \
1213	 X"$as_myself" : 'X\(//\)$' \| \
1214	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215$as_echo X"$as_myself" |
1216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217	    s//\1/
1218	    q
1219	  }
1220	  /^X\(\/\/\)[^/].*/{
1221	    s//\1/
1222	    q
1223	  }
1224	  /^X\(\/\/\)$/{
1225	    s//\1/
1226	    q
1227	  }
1228	  /^X\(\/\).*/{
1229	    s//\1/
1230	    q
1231	  }
1232	  s/.*/./; q'`
1233  srcdir=$ac_confdir
1234  if test ! -r "$srcdir/$ac_unique_file"; then
1235    srcdir=..
1236  fi
1237else
1238  ac_srcdir_defaulted=no
1239fi
1240if test ! -r "$srcdir/$ac_unique_file"; then
1241  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1243fi
1244ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245ac_abs_confdir=`(
1246	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1247	pwd)`
1248# When building in place, set srcdir=.
1249if test "$ac_abs_confdir" = "$ac_pwd"; then
1250  srcdir=.
1251fi
1252# Remove unnecessary trailing slashes from srcdir.
1253# Double slashes in file names in object file debugging info
1254# mess up M-x gdb in Emacs.
1255case $srcdir in
1256*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1257esac
1258for ac_var in $ac_precious_vars; do
1259  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260  eval ac_env_${ac_var}_value=\$${ac_var}
1261  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263done
1264
1265#
1266# Report the --help message.
1267#
1268if test "$ac_init_help" = "long"; then
1269  # Omit some internal or obsolete options to make the list less imposing.
1270  # This message is too long to be a string in the A/UX 3.1 sh.
1271  cat <<_ACEOF
1272\`configure' configures this package to adapt to many kinds of systems.
1273
1274Usage: $0 [OPTION]... [VAR=VALUE]...
1275
1276To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277VAR=VALUE.  See below for descriptions of some of the useful variables.
1278
1279Defaults for the options are specified in brackets.
1280
1281Configuration:
1282  -h, --help              display this help and exit
1283      --help=short        display options specific to this package
1284      --help=recursive    display the short help of all the included packages
1285  -V, --version           display version information and exit
1286  -q, --quiet, --silent   do not print \`checking ...' messages
1287      --cache-file=FILE   cache test results in FILE [disabled]
1288  -C, --config-cache      alias for \`--cache-file=config.cache'
1289  -n, --no-create         do not create output files
1290      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1291
1292Installation directories:
1293  --prefix=PREFIX         install architecture-independent files in PREFIX
1294                          [$ac_default_prefix]
1295  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1296                          [PREFIX]
1297
1298By default, \`make install' will install all the files in
1299\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1300an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301for instance \`--prefix=\$HOME'.
1302
1303For better control, use the options below.
1304
1305Fine tuning of the installation directories:
1306  --bindir=DIR            user executables [EPREFIX/bin]
1307  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1308  --libexecdir=DIR        program executables [EPREFIX/libexec]
1309  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1310  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1311  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1312  --libdir=DIR            object code libraries [EPREFIX/lib]
1313  --includedir=DIR        C header files [PREFIX/include]
1314  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1315  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1316  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1317  --infodir=DIR           info documentation [DATAROOTDIR/info]
1318  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1319  --mandir=DIR            man documentation [DATAROOTDIR/man]
1320  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1321  --htmldir=DIR           html documentation [DOCDIR]
1322  --dvidir=DIR            dvi documentation [DOCDIR]
1323  --pdfdir=DIR            pdf documentation [DOCDIR]
1324  --psdir=DIR             ps documentation [DOCDIR]
1325_ACEOF
1326
1327  cat <<\_ACEOF
1328
1329System types:
1330  --build=BUILD     configure for building on BUILD [guessed]
1331  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1332_ACEOF
1333fi
1334
1335if test -n "$ac_init_help"; then
1336
1337  cat <<\_ACEOF
1338
1339Optional Features:
1340  --disable-option-checking  ignore unrecognized --enable/--with options
1341  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1342  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1343  --disable-largefile     omit support for large files
1344  --disable-optimization  compile without optimization (-O0) to help debugging
1345  --enable-gdb            disable optimization and compile with extra debug
1346                          information for GDB debugger
1347  --enable-profiling      compile with profiling (-pg option)
1348  --enable-panic-abort    call abort() on panic to trap in the debugger
1349  --disable-pdf-compression
1350                          generate an uncompressed documentation PDF
1351  --disable-sections      do not try to compile with function/data section
1352                          support
1353  --enable-lto            compile with gcc-style link time optimization
1354  --enable-sanitizer      compile with sanitizers enabled
1355  --disable-pedantic      disable some extra paranoid compiler warnings
1356  --enable-werror         compile with -Werror to error out on any warning
1357  --enable-suggestions    compile with compiler suggestion warnings enabled
1358  --enable-ccache         compile with ccache
1359
1360Optional Packages:
1361  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1362  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1363  --with-nsis[=makensis]  build an install .exe using NSIS on Windows hosts
1364
1365Some influential environment variables:
1366  CC          C compiler command
1367  CFLAGS      C compiler flags
1368  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1369              nonstandard directory <lib dir>
1370  LIBS        libraries to pass to the linker, e.g. -l<library>
1371  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372              you have headers in a nonstandard directory <include dir>
1373  CPP         C preprocessor
1374
1375Use these variables to override the choices made by `configure' or to help
1376it to find libraries and programs with nonstandard names/locations.
1377
1378Report bugs to the package provider.
1379_ACEOF
1380ac_status=$?
1381fi
1382
1383if test "$ac_init_help" = "recursive"; then
1384  # If there are subdirs, report their specific --help.
1385  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1386    test -d "$ac_dir" ||
1387      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388      continue
1389    ac_builddir=.
1390
1391case "$ac_dir" in
1392.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393*)
1394  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1395  # A ".." for each directory in $ac_dir_suffix.
1396  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1397  case $ac_top_builddir_sub in
1398  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400  esac ;;
1401esac
1402ac_abs_top_builddir=$ac_pwd
1403ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404# for backward compatibility:
1405ac_top_builddir=$ac_top_build_prefix
1406
1407case $srcdir in
1408  .)  # We are building in place.
1409    ac_srcdir=.
1410    ac_top_srcdir=$ac_top_builddir_sub
1411    ac_abs_top_srcdir=$ac_pwd ;;
1412  [\\/]* | ?:[\\/]* )  # Absolute name.
1413    ac_srcdir=$srcdir$ac_dir_suffix;
1414    ac_top_srcdir=$srcdir
1415    ac_abs_top_srcdir=$srcdir ;;
1416  *) # Relative name.
1417    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418    ac_top_srcdir=$ac_top_build_prefix$srcdir
1419    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420esac
1421ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423    cd "$ac_dir" || { ac_status=$?; continue; }
1424    # Check for guested configure.
1425    if test -f "$ac_srcdir/configure.gnu"; then
1426      echo &&
1427      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428    elif test -f "$ac_srcdir/configure"; then
1429      echo &&
1430      $SHELL "$ac_srcdir/configure" --help=recursive
1431    else
1432      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433    fi || ac_status=$?
1434    cd "$ac_pwd" || { ac_status=$?; break; }
1435  done
1436fi
1437
1438test -n "$ac_init_help" && exit $ac_status
1439if $ac_init_version; then
1440  cat <<\_ACEOF
1441configure
1442generated by GNU Autoconf 2.69
1443
1444Copyright (C) 2012 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448  exit
1449fi
1450
1451## ------------------------ ##
1452## Autoconf initialization. ##
1453## ------------------------ ##
1454
1455# ac_fn_c_try_compile LINENO
1456# --------------------------
1457# Try to compile conftest.$ac_ext, and return whether this succeeded.
1458ac_fn_c_try_compile ()
1459{
1460  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461  rm -f conftest.$ac_objext
1462  if { { ac_try="$ac_compile"
1463case "(($ac_try" in
1464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465  *) ac_try_echo=$ac_try;;
1466esac
1467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468$as_echo "$ac_try_echo"; } >&5
1469  (eval "$ac_compile") 2>conftest.err
1470  ac_status=$?
1471  if test -s conftest.err; then
1472    grep -v '^ *+' conftest.err >conftest.er1
1473    cat conftest.er1 >&5
1474    mv -f conftest.er1 conftest.err
1475  fi
1476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477  test $ac_status = 0; } && {
1478	 test -z "$ac_c_werror_flag" ||
1479	 test ! -s conftest.err
1480       } && test -s conftest.$ac_objext; then :
1481  ac_retval=0
1482else
1483  $as_echo "$as_me: failed program was:" >&5
1484sed 's/^/| /' conftest.$ac_ext >&5
1485
1486	ac_retval=1
1487fi
1488  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1489  as_fn_set_status $ac_retval
1490
1491} # ac_fn_c_try_compile
1492
1493# ac_fn_c_try_cpp LINENO
1494# ----------------------
1495# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_cpp ()
1497{
1498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499  if { { ac_try="$ac_cpp conftest.$ac_ext"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } > conftest.i && {
1515	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       }; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523    ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_cpp
1529
1530# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1531# -------------------------------------------------------
1532# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1533# the include files in INCLUDES and setting the cache variable VAR
1534# accordingly.
1535ac_fn_c_check_header_mongrel ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  if eval \${$3+:} false; then :
1539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540$as_echo_n "checking for $2... " >&6; }
1541if eval \${$3+:} false; then :
1542  $as_echo_n "(cached) " >&6
1543fi
1544eval ac_res=\$$3
1545	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546$as_echo "$ac_res" >&6; }
1547else
1548  # Is the header compilable?
1549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1550$as_echo_n "checking $2 usability... " >&6; }
1551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552/* end confdefs.h.  */
1553$4
1554#include <$2>
1555_ACEOF
1556if ac_fn_c_try_compile "$LINENO"; then :
1557  ac_header_compiler=yes
1558else
1559  ac_header_compiler=no
1560fi
1561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1563$as_echo "$ac_header_compiler" >&6; }
1564
1565# Is the header present?
1566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1567$as_echo_n "checking $2 presence... " >&6; }
1568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569/* end confdefs.h.  */
1570#include <$2>
1571_ACEOF
1572if ac_fn_c_try_cpp "$LINENO"; then :
1573  ac_header_preproc=yes
1574else
1575  ac_header_preproc=no
1576fi
1577rm -f conftest.err conftest.i conftest.$ac_ext
1578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1579$as_echo "$ac_header_preproc" >&6; }
1580
1581# So?  What about this header?
1582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1583  yes:no: )
1584    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1585$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588    ;;
1589  no:yes:* )
1590    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1591$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1593$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1594    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1595$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1596    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1597$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1598    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1599$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600    ;;
1601esac
1602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if eval \${$3+:} false; then :
1605  $as_echo_n "(cached) " >&6
1606else
1607  eval "$3=\$ac_header_compiler"
1608fi
1609eval ac_res=\$$3
1610	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611$as_echo "$ac_res" >&6; }
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614
1615} # ac_fn_c_check_header_mongrel
1616
1617# ac_fn_c_try_run LINENO
1618# ----------------------
1619# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1620# that executables *can* be run.
1621ac_fn_c_try_run ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if { { ac_try="$ac_link"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_link") 2>&5
1632  ac_status=$?
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1635  { { case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_try") 2>&5
1642  ac_status=$?
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; }; }; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: program exited with status $ac_status" >&5
1648       $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651       ac_retval=$ac_status
1652fi
1653  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_run
1658
1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660# -------------------------------------------------------
1661# Tests whether HEADER exists and can be compiled using the include files in
1662# INCLUDES, setting the cache variable VAR accordingly.
1663ac_fn_c_check_header_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if eval \${$3+:} false; then :
1669  $as_echo_n "(cached) " >&6
1670else
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"; then :
1677  eval "$3=yes"
1678else
1679  eval "$3=no"
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682fi
1683eval ac_res=\$$3
1684	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685$as_echo "$ac_res" >&6; }
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_c_check_header_compile
1689
1690# ac_fn_c_try_link LINENO
1691# -----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_link ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  rm -f conftest.$ac_objext conftest$ac_exeext
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && {
1713	 test -z "$ac_c_werror_flag" ||
1714	 test ! -s conftest.err
1715       } && test -s conftest$ac_exeext && {
1716	 test "$cross_compiling" = yes ||
1717	 test -x conftest$ac_exeext
1718       }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724	ac_retval=1
1725fi
1726  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728  # interfere with the next link command; also delete a directory that is
1729  # left behind by Apple's compiler.  We do this before executing the actions.
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_link
1735
1736# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1737# -------------------------------------------
1738# Tests whether TYPE exists after having included INCLUDES, setting cache
1739# variable VAR accordingly.
1740ac_fn_c_check_type ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  eval "$3=no"
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752int
1753main ()
1754{
1755if (sizeof ($2))
1756	 return 0;
1757  ;
1758  return 0;
1759}
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764$4
1765int
1766main ()
1767{
1768if (sizeof (($2)))
1769	    return 0;
1770  ;
1771  return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775
1776else
1777  eval "$3=yes"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_type
1789
1790# ac_fn_c_check_func LINENO FUNC VAR
1791# ----------------------------------
1792# Tests whether FUNC exists, setting the cache variable VAR accordingly
1793ac_fn_c_check_func ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1805#define $2 innocuous_$2
1806
1807/* System header to define __stub macros and hopefully few prototypes,
1808    which can conflict with char $2 (); below.
1809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810    <limits.h> exists even on freestanding compilers.  */
1811
1812#ifdef __STDC__
1813# include <limits.h>
1814#else
1815# include <assert.h>
1816#endif
1817
1818#undef $2
1819
1820/* Override any GCC internal prototype to avoid an error.
1821   Use char because int might match the return type of a GCC
1822   builtin and then its argument prototype would still apply.  */
1823#ifdef __cplusplus
1824extern "C"
1825#endif
1826char $2 ();
1827/* The GNU C library defines this for functions which it implements
1828    to always fail with ENOSYS.  Some functions are actually named
1829    something starting with __ and the normal name is an alias.  */
1830#if defined __stub_$2 || defined __stub___$2
1831choke me
1832#endif
1833
1834int
1835main ()
1836{
1837return $2 ();
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_link "$LINENO"; then :
1843  eval "$3=yes"
1844else
1845  eval "$3=no"
1846fi
1847rm -f core conftest.err conftest.$ac_objext \
1848    conftest$ac_exeext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_func
1856
1857# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1858# ---------------------------------------------
1859# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1860# accordingly.
1861ac_fn_c_check_decl ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  as_decl_name=`echo $2|sed 's/ *(.*//'`
1865  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1867$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870else
1871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h.  */
1873$4
1874int
1875main ()
1876{
1877#ifndef $as_decl_name
1878#ifdef __cplusplus
1879  (void) $as_decl_use;
1880#else
1881  (void) $as_decl_name;
1882#endif
1883#endif
1884
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901} # ac_fn_c_check_decl
1902cat >config.log <<_ACEOF
1903This file contains any messages produced by compilers while
1904running configure, to aid debugging if configure makes a mistake.
1905
1906It was created by $as_me, which was
1907generated by GNU Autoconf 2.69.  Invocation command line was
1908
1909  $ $0 $@
1910
1911_ACEOF
1912exec 5>>config.log
1913{
1914cat <<_ASUNAME
1915## --------- ##
1916## Platform. ##
1917## --------- ##
1918
1919hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924
1925/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1927
1928/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1929/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1930/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1932/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1933/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1934/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1935
1936_ASUNAME
1937
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941  IFS=$as_save_IFS
1942  test -z "$as_dir" && as_dir=.
1943    $as_echo "PATH: $as_dir"
1944  done
1945IFS=$as_save_IFS
1946
1947} >&5
1948
1949cat >&5 <<_ACEOF
1950
1951
1952## ----------- ##
1953## Core tests. ##
1954## ----------- ##
1955
1956_ACEOF
1957
1958
1959# Keep a trace of the command line.
1960# Strip out --no-create and --no-recursion so they do not pile up.
1961# Strip out --silent because we don't want to record it for future runs.
1962# Also quote any args containing shell meta-characters.
1963# Make two passes to allow for proper duplicate-argument suppression.
1964ac_configure_args=
1965ac_configure_args0=
1966ac_configure_args1=
1967ac_must_keep_next=false
1968for ac_pass in 1 2
1969do
1970  for ac_arg
1971  do
1972    case $ac_arg in
1973    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975    | -silent | --silent | --silen | --sile | --sil)
1976      continue ;;
1977    *\'*)
1978      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979    esac
1980    case $ac_pass in
1981    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982    2)
1983      as_fn_append ac_configure_args1 " '$ac_arg'"
1984      if test $ac_must_keep_next = true; then
1985	ac_must_keep_next=false # Got value, back to normal.
1986      else
1987	case $ac_arg in
1988	  *=* | --config-cache | -C | -disable-* | --disable-* \
1989	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991	  | -with-* | --with-* | -without-* | --without-* | --x)
1992	    case "$ac_configure_args0 " in
1993	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994	    esac
1995	    ;;
1996	  -* ) ac_must_keep_next=true ;;
1997	esac
1998      fi
1999      as_fn_append ac_configure_args " '$ac_arg'"
2000      ;;
2001    esac
2002  done
2003done
2004{ ac_configure_args0=; unset ac_configure_args0;}
2005{ ac_configure_args1=; unset ac_configure_args1;}
2006
2007# When interrupted or exit'd, cleanup temporary files, and complete
2008# config.log.  We remove comments because anyway the quotes in there
2009# would cause problems or look ugly.
2010# WARNING: Use '\'' to represent an apostrophe within the trap.
2011# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012trap 'exit_status=$?
2013  # Save into config.log some information that might help in debugging.
2014  {
2015    echo
2016
2017    $as_echo "## ---------------- ##
2018## Cache variables. ##
2019## ---------------- ##"
2020    echo
2021    # The following way of writing the cache mishandles newlines in values,
2022(
2023  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024    eval ac_val=\$$ac_var
2025    case $ac_val in #(
2026    *${as_nl}*)
2027      case $ac_var in #(
2028      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030      esac
2031      case $ac_var in #(
2032      _ | IFS | as_nl) ;; #(
2033      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034      *) { eval $ac_var=; unset $ac_var;} ;;
2035      esac ;;
2036    esac
2037  done
2038  (set) 2>&1 |
2039    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040    *${as_nl}ac_space=\ *)
2041      sed -n \
2042	"s/'\''/'\''\\\\'\'''\''/g;
2043	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044      ;; #(
2045    *)
2046      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047      ;;
2048    esac |
2049    sort
2050)
2051    echo
2052
2053    $as_echo "## ----------------- ##
2054## Output variables. ##
2055## ----------------- ##"
2056    echo
2057    for ac_var in $ac_subst_vars
2058    do
2059      eval ac_val=\$$ac_var
2060      case $ac_val in
2061      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062      esac
2063      $as_echo "$ac_var='\''$ac_val'\''"
2064    done | sort
2065    echo
2066
2067    if test -n "$ac_subst_files"; then
2068      $as_echo "## ------------------- ##
2069## File substitutions. ##
2070## ------------------- ##"
2071      echo
2072      for ac_var in $ac_subst_files
2073      do
2074	eval ac_val=\$$ac_var
2075	case $ac_val in
2076	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077	esac
2078	$as_echo "$ac_var='\''$ac_val'\''"
2079      done | sort
2080      echo
2081    fi
2082
2083    if test -s confdefs.h; then
2084      $as_echo "## ----------- ##
2085## confdefs.h. ##
2086## ----------- ##"
2087      echo
2088      cat confdefs.h
2089      echo
2090    fi
2091    test "$ac_signal" != 0 &&
2092      $as_echo "$as_me: caught signal $ac_signal"
2093    $as_echo "$as_me: exit $exit_status"
2094  } >&5
2095  rm -f core *.core core.conftest.* &&
2096    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097    exit $exit_status
2098' 0
2099for ac_signal in 1 2 13 15; do
2100  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101done
2102ac_signal=0
2103
2104# confdefs.h avoids OS command line length limits that DEFS can exceed.
2105rm -f -r conftest* confdefs.h
2106
2107$as_echo "/* confdefs.h */" > confdefs.h
2108
2109# Predefined preprocessor variables.
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_NAME "$PACKAGE_NAME"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_VERSION "$PACKAGE_VERSION"
2121_ACEOF
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_STRING "$PACKAGE_STRING"
2125_ACEOF
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_URL "$PACKAGE_URL"
2133_ACEOF
2134
2135
2136# Let the site file select an alternate cache file if it wants to.
2137# Prefer an explicitly selected file to automatically selected ones.
2138ac_site_file1=NONE
2139ac_site_file2=NONE
2140if test -n "$CONFIG_SITE"; then
2141  # We do not want a PATH search for config.site.
2142  case $CONFIG_SITE in #((
2143    -*)  ac_site_file1=./$CONFIG_SITE;;
2144    */*) ac_site_file1=$CONFIG_SITE;;
2145    *)   ac_site_file1=./$CONFIG_SITE;;
2146  esac
2147elif test "x$prefix" != xNONE; then
2148  ac_site_file1=$prefix/share/config.site
2149  ac_site_file2=$prefix/etc/config.site
2150else
2151  ac_site_file1=$ac_default_prefix/share/config.site
2152  ac_site_file2=$ac_default_prefix/etc/config.site
2153fi
2154for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155do
2156  test "x$ac_site_file" = xNONE && continue
2157  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160    sed 's/^/| /' "$ac_site_file" >&5
2161    . "$ac_site_file" \
2162      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164as_fn_error $? "failed to load site script $ac_site_file
2165See \`config.log' for more details" "$LINENO" 5; }
2166  fi
2167done
2168
2169if test -r "$cache_file"; then
2170  # Some versions of bash will fail to source /dev/null (special files
2171  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174$as_echo "$as_me: loading cache $cache_file" >&6;}
2175    case $cache_file in
2176      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177      *)                      . "./$cache_file";;
2178    esac
2179  fi
2180else
2181  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182$as_echo "$as_me: creating cache $cache_file" >&6;}
2183  >$cache_file
2184fi
2185
2186as_fn_append ac_header_list " stdlib.h"
2187as_fn_append ac_header_list " unistd.h"
2188as_fn_append ac_header_list " sys/param.h"
2189# Check that the precious variables saved in the cache have kept the same
2190# value.
2191ac_cache_corrupted=false
2192for ac_var in $ac_precious_vars; do
2193  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194  eval ac_new_set=\$ac_env_${ac_var}_set
2195  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196  eval ac_new_val=\$ac_env_${ac_var}_value
2197  case $ac_old_set,$ac_new_set in
2198    set,)
2199      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201      ac_cache_corrupted=: ;;
2202    ,set)
2203      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205      ac_cache_corrupted=: ;;
2206    ,);;
2207    *)
2208      if test "x$ac_old_val" != "x$ac_new_val"; then
2209	# differences in whitespace do not lead to failure.
2210	ac_old_val_w=`echo x $ac_old_val`
2211	ac_new_val_w=`echo x $ac_new_val`
2212	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215	  ac_cache_corrupted=:
2216	else
2217	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219	  eval $ac_var=\$ac_old_val
2220	fi
2221	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2222$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2223	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2224$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2225      fi;;
2226  esac
2227  # Pass precious variables to config.status.
2228  if test "$ac_new_set" = set; then
2229    case $ac_new_val in
2230    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231    *) ac_arg=$ac_var=$ac_new_val ;;
2232    esac
2233    case " $ac_configure_args " in
2234      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2235      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236    esac
2237  fi
2238done
2239if $ac_cache_corrupted; then
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245fi
2246## -------------------- ##
2247## Main body of script. ##
2248## -------------------- ##
2249
2250ac_ext=c
2251ac_cpp='$CPP $CPPFLAGS'
2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257ac_config_headers="$ac_config_headers config/config.h"
2258
2259if test "x$prefix" = xNONE; then
2260  $as_echo_n "checking for prefix by " >&6
2261  # Extract the first word of "nasm", so it can be a program name with args.
2262set dummy nasm; ac_word=$2
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2264$as_echo_n "checking for $ac_word... " >&6; }
2265if ${ac_cv_path_ac_prefix_program+:} false; then :
2266  $as_echo_n "(cached) " >&6
2267else
2268  case $ac_prefix_program in
2269  [\\/]* | ?:[\\/]*)
2270  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2271  ;;
2272  *)
2273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278    for ac_exec_ext in '' $ac_executable_extensions; do
2279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282    break 2
2283  fi
2284done
2285  done
2286IFS=$as_save_IFS
2287
2288  ;;
2289esac
2290fi
2291ac_prefix_program=$ac_cv_path_ac_prefix_program
2292if test -n "$ac_prefix_program"; then
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2294$as_echo "$ac_prefix_program" >&6; }
2295else
2296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297$as_echo "no" >&6; }
2298fi
2299
2300
2301  if test -n "$ac_prefix_program"; then
2302    prefix=`$as_dirname -- "$ac_prefix_program" ||
2303$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2304	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2305	 X"$ac_prefix_program" : 'X\(//\)$' \| \
2306	 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2307$as_echo X"$ac_prefix_program" |
2308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2309	    s//\1/
2310	    q
2311	  }
2312	  /^X\(\/\/\)[^/].*/{
2313	    s//\1/
2314	    q
2315	  }
2316	  /^X\(\/\/\)$/{
2317	    s//\1/
2318	    q
2319	  }
2320	  /^X\(\/\).*/{
2321	    s//\1/
2322	    q
2323	  }
2324	  s/.*/./; q'`
2325    prefix=`$as_dirname -- "$prefix" ||
2326$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2327	 X"$prefix" : 'X\(//\)[^/]' \| \
2328	 X"$prefix" : 'X\(//\)$' \| \
2329	 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2330$as_echo X"$prefix" |
2331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2332	    s//\1/
2333	    q
2334	  }
2335	  /^X\(\/\/\)[^/].*/{
2336	    s//\1/
2337	    q
2338	  }
2339	  /^X\(\/\/\)$/{
2340	    s//\1/
2341	    q
2342	  }
2343	  /^X\(\/\).*/{
2344	    s//\1/
2345	    q
2346	  }
2347	  s/.*/./; q'`
2348  fi
2349fi
2350
2351ac_aux_dir=
2352for ac_dir in autoconf/helpers "$srcdir"/autoconf/helpers; do
2353  if test -f "$ac_dir/install-sh"; then
2354    ac_aux_dir=$ac_dir
2355    ac_install_sh="$ac_aux_dir/install-sh -c"
2356    break
2357  elif test -f "$ac_dir/install.sh"; then
2358    ac_aux_dir=$ac_dir
2359    ac_install_sh="$ac_aux_dir/install.sh -c"
2360    break
2361  elif test -f "$ac_dir/shtool"; then
2362    ac_aux_dir=$ac_dir
2363    ac_install_sh="$ac_aux_dir/shtool install -c"
2364    break
2365  fi
2366done
2367if test -z "$ac_aux_dir"; then
2368  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf/helpers \"$srcdir\"/autoconf/helpers" "$LINENO" 5
2369fi
2370
2371# These three variables are undocumented and unsupported,
2372# and are intended to be withdrawn in a future Autoconf release.
2373# They can cause serious problems if a builder's source tree is in a directory
2374# whose full name contains unusual characters.
2375ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2376ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2377ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2378
2379
2380
2381
2382
2383pa_init_cflags="$CFLAGS"
2384
2385WINELOADER=/dev/null
2386export WINELOADER
2387
2388# Make sure we can run config.sub.
2389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2390  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2391
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393$as_echo_n "checking build system type... " >&6; }
2394if ${ac_cv_build+:} false; then :
2395  $as_echo_n "(cached) " >&6
2396else
2397  ac_build_alias=$build_alias
2398test "x$ac_build_alias" = x &&
2399  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400test "x$ac_build_alias" = x &&
2401  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2402ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2404
2405fi
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407$as_echo "$ac_cv_build" >&6; }
2408case $ac_cv_build in
2409*-*-*) ;;
2410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2411esac
2412build=$ac_cv_build
2413ac_save_IFS=$IFS; IFS='-'
2414set x $ac_cv_build
2415shift
2416build_cpu=$1
2417build_vendor=$2
2418shift; shift
2419# Remember, the first character of IFS is used to create $*,
2420# except with old shells:
2421build_os=$*
2422IFS=$ac_save_IFS
2423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424
2425
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2427$as_echo_n "checking host system type... " >&6; }
2428if ${ac_cv_host+:} false; then :
2429  $as_echo_n "(cached) " >&6
2430else
2431  if test "x$host_alias" = x; then
2432  ac_cv_host=$ac_cv_build
2433else
2434  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2436fi
2437
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2440$as_echo "$ac_cv_host" >&6; }
2441case $ac_cv_host in
2442*-*-*) ;;
2443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2444esac
2445host=$ac_cv_host
2446ac_save_IFS=$IFS; IFS='-'
2447set x $ac_cv_host
2448shift
2449host_cpu=$1
2450host_vendor=$2
2451shift; shift
2452# Remember, the first character of IFS is used to create $*,
2453# except with old shells:
2454host_os=$*
2455IFS=$ac_save_IFS
2456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2457
2458
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465if test -n "$ac_tool_prefix"; then
2466  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2467set dummy ${ac_tool_prefix}gcc; ac_word=$2
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
2470if ${ac_cv_prog_CC+:} false; then :
2471  $as_echo_n "(cached) " >&6
2472else
2473  if test -n "$CC"; then
2474  ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481    for ac_exec_ext in '' $ac_executable_extensions; do
2482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485    break 2
2486  fi
2487done
2488  done
2489IFS=$as_save_IFS
2490
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
2497else
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503fi
2504if test -z "$ac_cv_prog_CC"; then
2505  ac_ct_CC=$CC
2506  # Extract the first word of "gcc", so it can be a program name with args.
2507set dummy gcc; ac_word=$2
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if ${ac_cv_prog_ac_ct_CC+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  if test -n "$ac_ct_CC"; then
2514  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521    for ac_exec_ext in '' $ac_executable_extensions; do
2522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523    ac_cv_prog_ac_ct_CC="gcc"
2524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528  done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534if test -n "$ac_ct_CC"; then
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2536$as_echo "$ac_ct_CC" >&6; }
2537else
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
2540fi
2541
2542  if test "x$ac_ct_CC" = x; then
2543    CC=""
2544  else
2545    case $cross_compiling:$ac_tool_warned in
2546yes:)
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549ac_tool_warned=yes ;;
2550esac
2551    CC=$ac_ct_CC
2552  fi
2553else
2554  CC="$ac_cv_prog_CC"
2555fi
2556
2557if test -z "$CC"; then
2558          if test -n "$ac_tool_prefix"; then
2559    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}cc; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_CC+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test -n "$CC"; then
2567  ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572  IFS=$as_save_IFS
2573  test -z "$as_dir" && as_dir=.
2574    for ac_exec_ext in '' $ac_executable_extensions; do
2575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576    ac_cv_prog_CC="${ac_tool_prefix}cc"
2577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589$as_echo "$CC" >&6; }
2590else
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
2593fi
2594
2595
2596  fi
2597fi
2598if test -z "$CC"; then
2599  # Extract the first word of "cc", so it can be a program name with args.
2600set dummy cc; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_CC+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$CC"; then
2607  ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609  ac_prog_rejected=no
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618       ac_prog_rejected=yes
2619       continue
2620     fi
2621    ac_cv_prog_CC="cc"
2622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623    break 2
2624  fi
2625done
2626  done
2627IFS=$as_save_IFS
2628
2629if test $ac_prog_rejected = yes; then
2630  # We found a bogon in the path, so make sure we never use it.
2631  set dummy $ac_cv_prog_CC
2632  shift
2633  if test $# != 0; then
2634    # We chose a different compiler from the bogus one.
2635    # However, it has the same basename, so the bogon will be chosen
2636    # first if we set CC to just the basename; use the full file name.
2637    shift
2638    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639  fi
2640fi
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646$as_echo "$CC" >&6; }
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652
2653fi
2654if test -z "$CC"; then
2655  if test -n "$ac_tool_prefix"; then
2656  for ac_prog in cl.exe
2657  do
2658    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if ${ac_cv_prog_CC+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  if test -n "$CC"; then
2666  ac_cv_prog_CC="$CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    for ac_exec_ext in '' $ac_executable_extensions; do
2674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677    break 2
2678  fi
2679done
2680  done
2681IFS=$as_save_IFS
2682
2683fi
2684fi
2685CC=$ac_cv_prog_CC
2686if test -n "$CC"; then
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688$as_echo "$CC" >&6; }
2689else
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692fi
2693
2694
2695    test -n "$CC" && break
2696  done
2697fi
2698if test -z "$CC"; then
2699  ac_ct_CC=$CC
2700  for ac_prog in cl.exe
2701do
2702  # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705$as_echo_n "checking for $ac_word... " >&6; }
2706if ${ac_cv_prog_ac_ct_CC+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  if test -n "$ac_ct_CC"; then
2710  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717    for ac_exec_ext in '' $ac_executable_extensions; do
2718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_ac_ct_CC="$ac_prog"
2720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724  done
2725IFS=$as_save_IFS
2726
2727fi
2728fi
2729ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730if test -n "$ac_ct_CC"; then
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2732$as_echo "$ac_ct_CC" >&6; }
2733else
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
2736fi
2737
2738
2739  test -n "$ac_ct_CC" && break
2740done
2741
2742  if test "x$ac_ct_CC" = x; then
2743    CC=""
2744  else
2745    case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751    CC=$ac_ct_CC
2752  fi
2753fi
2754
2755fi
2756
2757
2758test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760as_fn_error $? "no acceptable C compiler found in \$PATH
2761See \`config.log' for more details" "$LINENO" 5; }
2762
2763# Provide some information about the compiler.
2764$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2765set X $ac_compile
2766ac_compiler=$2
2767for ac_option in --version -v -V -qversion; do
2768  { { ac_try="$ac_compiler $ac_option >&5"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2776  ac_status=$?
2777  if test -s conftest.err; then
2778    sed '10a\
2779... rest of stderr output deleted ...
2780         10q' conftest.err >conftest.er1
2781    cat conftest.er1 >&5
2782  fi
2783  rm -f conftest.er1 conftest.err
2784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785  test $ac_status = 0; }
2786done
2787
2788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789/* end confdefs.h.  */
2790
2791int
2792main ()
2793{
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799ac_clean_files_save=$ac_clean_files
2800ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2801# Try to create an executable without -o first, disregard a.out.
2802# It will help us diagnose broken compilers, and finding out an intuition
2803# of exeext.
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2805$as_echo_n "checking whether the C compiler works... " >&6; }
2806ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807
2808# The possible output files:
2809ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2810
2811ac_rmfiles=
2812for ac_file in $ac_files
2813do
2814  case $ac_file in
2815    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2816    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817  esac
2818done
2819rm -f $ac_rmfiles
2820
2821if { { ac_try="$ac_link_default"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828  (eval "$ac_link_default") 2>&5
2829  ac_status=$?
2830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831  test $ac_status = 0; }; then :
2832  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
2837for ac_file in $ac_files ''
2838do
2839  test -f "$ac_file" || continue
2840  case $ac_file in
2841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2842	;;
2843    [ab].out )
2844	# We found the default executable, but exeext='' is most
2845	# certainly right.
2846	break;;
2847    *.* )
2848	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849	then :; else
2850	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851	fi
2852	# We set ac_cv_exeext here because the later test for it is not
2853	# safe: cross compilers may not add the suffix if given an `-o'
2854	# argument, so we may need to know it at that point already.
2855	# Even if this section looks crufty: it has the advantage of
2856	# actually working.
2857	break;;
2858    * )
2859	break;;
2860  esac
2861done
2862test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
2864else
2865  ac_file=''
2866fi
2867if test -z "$ac_file"; then :
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870$as_echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error 77 "C compiler cannot create executables
2876See \`config.log' for more details" "$LINENO" 5; }
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879$as_echo "yes" >&6; }
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2882$as_echo_n "checking for C compiler default output file name... " >&6; }
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2884$as_echo "$ac_file" >&6; }
2885ac_exeext=$ac_cv_exeext
2886
2887rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2888ac_clean_files=$ac_clean_files_save
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2890$as_echo_n "checking for suffix of executables... " >&6; }
2891if { { ac_try="$ac_link"
2892case "(($ac_try" in
2893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894  *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897$as_echo "$ac_try_echo"; } >&5
2898  (eval "$ac_link") 2>&5
2899  ac_status=$?
2900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901  test $ac_status = 0; }; then :
2902  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2903# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2904# work properly (i.e., refer to `conftest.exe'), while it won't with
2905# `rm'.
2906for ac_file in conftest.exe conftest conftest.*; do
2907  test -f "$ac_file" || continue
2908  case $ac_file in
2909    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911	  break;;
2912    * ) break;;
2913  esac
2914done
2915else
2916  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details" "$LINENO" 5; }
2920fi
2921rm -f conftest conftest$ac_cv_exeext
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2923$as_echo "$ac_cv_exeext" >&6; }
2924
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_exeext=$EXEEXT
2928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h.  */
2930#include <stdio.h>
2931int
2932main ()
2933{
2934FILE *f = fopen ("conftest.out", "w");
2935 return ferror (f) || fclose (f) != 0;
2936
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941ac_clean_files="$ac_clean_files conftest.out"
2942# Check that the compiler produces executables we can run.  If not, either
2943# the compiler is broken, or we cross compile.
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2945$as_echo_n "checking whether we are cross compiling... " >&6; }
2946if test "$cross_compiling" != yes; then
2947  { { ac_try="$ac_link"
2948case "(($ac_try" in
2949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950  *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954  (eval "$ac_link") 2>&5
2955  ac_status=$?
2956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957  test $ac_status = 0; }
2958  if { ac_try='./conftest$ac_cv_exeext'
2959  { { case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965  (eval "$ac_try") 2>&5
2966  ac_status=$?
2967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968  test $ac_status = 0; }; }; then
2969    cross_compiling=no
2970  else
2971    if test "$cross_compiling" = maybe; then
2972	cross_compiling=yes
2973    else
2974	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error $? "cannot run C compiled programs.
2977If you meant to cross compile, use \`--host'.
2978See \`config.log' for more details" "$LINENO" 5; }
2979    fi
2980  fi
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2983$as_echo "$cross_compiling" >&6; }
2984
2985rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2986ac_clean_files=$ac_clean_files_save
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2988$as_echo_n "checking for suffix of object files... " >&6; }
2989if ${ac_cv_objext+:} false; then :
2990  $as_echo_n "(cached) " >&6
2991else
2992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h.  */
2994
2995int
2996main ()
2997{
2998
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.o conftest.obj
3004if { { ac_try="$ac_compile"
3005case "(($ac_try" in
3006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007  *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011  (eval "$ac_compile") 2>&5
3012  ac_status=$?
3013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014  test $ac_status = 0; }; then :
3015  for ac_file in conftest.o conftest.obj conftest.*; do
3016  test -f "$ac_file" || continue;
3017  case $ac_file in
3018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3019    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020       break;;
3021  esac
3022done
3023else
3024  $as_echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029as_fn_error $? "cannot compute suffix of object files: cannot compile
3030See \`config.log' for more details" "$LINENO" 5; }
3031fi
3032rm -f conftest.$ac_cv_objext conftest.$ac_ext
3033fi
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3035$as_echo "$ac_cv_objext" >&6; }
3036OBJEXT=$ac_cv_objext
3037ac_objext=$OBJEXT
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3039$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3040if ${ac_cv_c_compiler_gnu+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h.  */
3045
3046int
3047main ()
3048{
3049#ifndef __GNUC__
3050       choke me
3051#endif
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057if ac_fn_c_try_compile "$LINENO"; then :
3058  ac_compiler_gnu=yes
3059else
3060  ac_compiler_gnu=no
3061fi
3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3067$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3068if test $ac_compiler_gnu = yes; then
3069  GCC=yes
3070else
3071  GCC=
3072fi
3073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3076$as_echo_n "checking whether $CC accepts -g... " >&6; }
3077if ${ac_cv_prog_cc_g+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  ac_save_c_werror_flag=$ac_c_werror_flag
3081   ac_c_werror_flag=yes
3082   ac_cv_prog_cc_g=no
3083   CFLAGS="-g"
3084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095if ac_fn_c_try_compile "$LINENO"; then :
3096  ac_cv_prog_cc_g=yes
3097else
3098  CFLAGS=""
3099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h.  */
3101
3102int
3103main ()
3104{
3105
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110if ac_fn_c_try_compile "$LINENO"; then :
3111
3112else
3113  ac_c_werror_flag=$ac_save_c_werror_flag
3114	 CFLAGS="-g"
3115	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116/* end confdefs.h.  */
3117
3118int
3119main ()
3120{
3121
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126if ac_fn_c_try_compile "$LINENO"; then :
3127  ac_cv_prog_cc_g=yes
3128fi
3129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130fi
3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132fi
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134   ac_c_werror_flag=$ac_save_c_werror_flag
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3137$as_echo "$ac_cv_prog_cc_g" >&6; }
3138if test "$ac_test_CFLAGS" = set; then
3139  CFLAGS=$ac_save_CFLAGS
3140elif test $ac_cv_prog_cc_g = yes; then
3141  if test "$GCC" = yes; then
3142    CFLAGS="-g -O2"
3143  else
3144    CFLAGS="-g"
3145  fi
3146else
3147  if test "$GCC" = yes; then
3148    CFLAGS="-O2"
3149  else
3150    CFLAGS=
3151  fi
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3154$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3155if ${ac_cv_prog_cc_c89+:} false; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  ac_cv_prog_cc_c89=no
3159ac_save_CC=$CC
3160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161/* end confdefs.h.  */
3162#include <stdarg.h>
3163#include <stdio.h>
3164struct stat;
3165/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3166struct buf { int x; };
3167FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168static char *e (p, i)
3169     char **p;
3170     int i;
3171{
3172  return p[i];
3173}
3174static char *f (char * (*g) (char **, int), char **p, ...)
3175{
3176  char *s;
3177  va_list v;
3178  va_start (v,p);
3179  s = g (p, va_arg (v,int));
3180  va_end (v);
3181  return s;
3182}
3183
3184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3185   function prototypes and stuff, but not '\xHH' hex character constants.
3186   These don't provoke an error unfortunately, instead are silently treated
3187   as 'x'.  The following induces an error, until -std is added to get
3188   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3189   array size at least.  It's necessary to write '\x00'==0 to get something
3190   that's true only with -std.  */
3191int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194   inside strings and character constants.  */
3195#define FOO(x) 'x'
3196int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
3198int test (int i, double x);
3199struct s1 {int (*f) (int a);};
3200struct s2 {int (*f) (double a);};
3201int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202int argc;
3203char **argv;
3204int
3205main ()
3206{
3207return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214do
3215  CC="$ac_save_CC $ac_arg"
3216  if ac_fn_c_try_compile "$LINENO"; then :
3217  ac_cv_prog_cc_c89=$ac_arg
3218fi
3219rm -f core conftest.err conftest.$ac_objext
3220  test "x$ac_cv_prog_cc_c89" != "xno" && break
3221done
3222rm -f conftest.$ac_ext
3223CC=$ac_save_CC
3224
3225fi
3226# AC_CACHE_VAL
3227case "x$ac_cv_prog_cc_c89" in
3228  x)
3229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3230$as_echo "none needed" >&6; } ;;
3231  xno)
3232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3233$as_echo "unsupported" >&6; } ;;
3234  *)
3235    CC="$CC $ac_cv_prog_cc_c89"
3236    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3237$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3238esac
3239if test "x$ac_cv_prog_cc_c89" != xno; then :
3240
3241fi
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3256$as_echo_n "checking how to run the C preprocessor... " >&6; }
3257# On Suns, sometimes $CPP names a directory.
3258if test -n "$CPP" && test -d "$CPP"; then
3259  CPP=
3260fi
3261if test -z "$CPP"; then
3262  if ${ac_cv_prog_CPP+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265      # Double quotes because CPP needs to be expanded
3266    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3267    do
3268      ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271  # Use a header file that comes with gcc, so configuring glibc
3272  # with a fresh cross-compiler works.
3273  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274  # <limits.h> exists even on freestanding compilers.
3275  # On the NeXT, cc -E runs the code through the compiler's parser,
3276  # not just through cpp. "Syntax error" is here to catch this case.
3277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h.  */
3279#ifdef __STDC__
3280# include <limits.h>
3281#else
3282# include <assert.h>
3283#endif
3284		     Syntax error
3285_ACEOF
3286if ac_fn_c_try_cpp "$LINENO"; then :
3287
3288else
3289  # Broken: fails on valid input.
3290continue
3291fi
3292rm -f conftest.err conftest.i conftest.$ac_ext
3293
3294  # OK, works on sane cases.  Now check whether nonexistent headers
3295  # can be detected and how.
3296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h.  */
3298#include <ac_nonexistent.h>
3299_ACEOF
3300if ac_fn_c_try_cpp "$LINENO"; then :
3301  # Broken: success on invalid input.
3302continue
3303else
3304  # Passes both tests.
3305ac_preproc_ok=:
3306break
3307fi
3308rm -f conftest.err conftest.i conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.i conftest.err conftest.$ac_ext
3313if $ac_preproc_ok; then :
3314  break
3315fi
3316
3317    done
3318    ac_cv_prog_CPP=$CPP
3319
3320fi
3321  CPP=$ac_cv_prog_CPP
3322else
3323  ac_cv_prog_CPP=$CPP
3324fi
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3326$as_echo "$CPP" >&6; }
3327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330  # Use a header file that comes with gcc, so configuring glibc
3331  # with a fresh cross-compiler works.
3332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333  # <limits.h> exists even on freestanding compilers.
3334  # On the NeXT, cc -E runs the code through the compiler's parser,
3335  # not just through cpp. "Syntax error" is here to catch this case.
3336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343		     Syntax error
3344_ACEOF
3345if ac_fn_c_try_cpp "$LINENO"; then :
3346
3347else
3348  # Broken: fails on valid input.
3349continue
3350fi
3351rm -f conftest.err conftest.i conftest.$ac_ext
3352
3353  # OK, works on sane cases.  Now check whether nonexistent headers
3354  # can be detected and how.
3355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357#include <ac_nonexistent.h>
3358_ACEOF
3359if ac_fn_c_try_cpp "$LINENO"; then :
3360  # Broken: success on invalid input.
3361continue
3362else
3363  # Passes both tests.
3364ac_preproc_ok=:
3365break
3366fi
3367rm -f conftest.err conftest.i conftest.$ac_ext
3368
3369done
3370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3371rm -f conftest.i conftest.err conftest.$ac_ext
3372if $ac_preproc_ok; then :
3373
3374else
3375  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3378See \`config.log' for more details" "$LINENO" 5; }
3379fi
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3390if ${ac_cv_path_GREP+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  if test -z "$GREP"; then
3394  ac_path_GREP_found=false
3395  # Loop through the user's path and test for each of PROGNAME-LIST
3396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_prog in grep ggrep; do
3402    for ac_exec_ext in '' $ac_executable_extensions; do
3403      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3404      as_fn_executable_p "$ac_path_GREP" || continue
3405# Check for GNU ac_path_GREP and select it if it is found.
3406  # Check for GNU $ac_path_GREP
3407case `"$ac_path_GREP" --version 2>&1` in
3408*GNU*)
3409  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3410*)
3411  ac_count=0
3412  $as_echo_n 0123456789 >"conftest.in"
3413  while :
3414  do
3415    cat "conftest.in" "conftest.in" >"conftest.tmp"
3416    mv "conftest.tmp" "conftest.in"
3417    cp "conftest.in" "conftest.nl"
3418    $as_echo 'GREP' >> "conftest.nl"
3419    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3421    as_fn_arith $ac_count + 1 && ac_count=$as_val
3422    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3423      # Best one so far, save it but keep looking for a better one
3424      ac_cv_path_GREP="$ac_path_GREP"
3425      ac_path_GREP_max=$ac_count
3426    fi
3427    # 10*(2^10) chars as input seems more than enough
3428    test $ac_count -gt 10 && break
3429  done
3430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3431esac
3432
3433      $ac_path_GREP_found && break 3
3434    done
3435  done
3436  done
3437IFS=$as_save_IFS
3438  if test -z "$ac_cv_path_GREP"; then
3439    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3440  fi
3441else
3442  ac_cv_path_GREP=$GREP
3443fi
3444
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3447$as_echo "$ac_cv_path_GREP" >&6; }
3448 GREP="$ac_cv_path_GREP"
3449
3450
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3452$as_echo_n "checking for egrep... " >&6; }
3453if ${ac_cv_path_EGREP+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3457   then ac_cv_path_EGREP="$GREP -E"
3458   else
3459     if test -z "$EGREP"; then
3460  ac_path_EGREP_found=false
3461  # Loop through the user's path and test for each of PROGNAME-LIST
3462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_prog in egrep; do
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3470      as_fn_executable_p "$ac_path_EGREP" || continue
3471# Check for GNU ac_path_EGREP and select it if it is found.
3472  # Check for GNU $ac_path_EGREP
3473case `"$ac_path_EGREP" --version 2>&1` in
3474*GNU*)
3475  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3476*)
3477  ac_count=0
3478  $as_echo_n 0123456789 >"conftest.in"
3479  while :
3480  do
3481    cat "conftest.in" "conftest.in" >"conftest.tmp"
3482    mv "conftest.tmp" "conftest.in"
3483    cp "conftest.in" "conftest.nl"
3484    $as_echo 'EGREP' >> "conftest.nl"
3485    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3487    as_fn_arith $ac_count + 1 && ac_count=$as_val
3488    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3489      # Best one so far, save it but keep looking for a better one
3490      ac_cv_path_EGREP="$ac_path_EGREP"
3491      ac_path_EGREP_max=$ac_count
3492    fi
3493    # 10*(2^10) chars as input seems more than enough
3494    test $ac_count -gt 10 && break
3495  done
3496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3497esac
3498
3499      $ac_path_EGREP_found && break 3
3500    done
3501  done
3502  done
3503IFS=$as_save_IFS
3504  if test -z "$ac_cv_path_EGREP"; then
3505    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3506  fi
3507else
3508  ac_cv_path_EGREP=$EGREP
3509fi
3510
3511   fi
3512fi
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3514$as_echo "$ac_cv_path_EGREP" >&6; }
3515 EGREP="$ac_cv_path_EGREP"
3516
3517
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3519$as_echo_n "checking for ANSI C header files... " >&6; }
3520if ${ac_cv_header_stdc+:} false; then :
3521  $as_echo_n "(cached) " >&6
3522else
3523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h.  */
3525#include <stdlib.h>
3526#include <stdarg.h>
3527#include <string.h>
3528#include <float.h>
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_cv_header_stdc=yes
3540else
3541  ac_cv_header_stdc=no
3542fi
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544
3545if test $ac_cv_header_stdc = yes; then
3546  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549#include <string.h>
3550
3551_ACEOF
3552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553  $EGREP "memchr" >/dev/null 2>&1; then :
3554
3555else
3556  ac_cv_header_stdc=no
3557fi
3558rm -f conftest*
3559
3560fi
3561
3562if test $ac_cv_header_stdc = yes; then
3563  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566#include <stdlib.h>
3567
3568_ACEOF
3569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570  $EGREP "free" >/dev/null 2>&1; then :
3571
3572else
3573  ac_cv_header_stdc=no
3574fi
3575rm -f conftest*
3576
3577fi
3578
3579if test $ac_cv_header_stdc = yes; then
3580  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581  if test "$cross_compiling" = yes; then :
3582  :
3583else
3584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586#include <ctype.h>
3587#include <stdlib.h>
3588#if ((' ' & 0x0FF) == 0x020)
3589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3591#else
3592# define ISLOWER(c) \
3593		   (('a' <= (c) && (c) <= 'i') \
3594		     || ('j' <= (c) && (c) <= 'r') \
3595		     || ('s' <= (c) && (c) <= 'z'))
3596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3597#endif
3598
3599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600int
3601main ()
3602{
3603  int i;
3604  for (i = 0; i < 256; i++)
3605    if (XOR (islower (i), ISLOWER (i))
3606	|| toupper (i) != TOUPPER (i))
3607      return 2;
3608  return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_run "$LINENO"; then :
3612
3613else
3614  ac_cv_header_stdc=no
3615fi
3616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3617  conftest.$ac_objext conftest.beam conftest.$ac_ext
3618fi
3619
3620fi
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3623$as_echo "$ac_cv_header_stdc" >&6; }
3624if test $ac_cv_header_stdc = yes; then
3625
3626$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3627
3628fi
3629
3630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3632		  inttypes.h stdint.h unistd.h
3633do :
3634  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3636"
3637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3638  cat >>confdefs.h <<_ACEOF
3639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3640_ACEOF
3641
3642fi
3643
3644done
3645
3646
3647
3648  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3649if test "x$ac_cv_header_minix_config_h" = xyes; then :
3650  MINIX=yes
3651else
3652  MINIX=
3653fi
3654
3655
3656  if test "$MINIX" = yes; then
3657
3658$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3659
3660
3661$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3662
3663
3664$as_echo "#define _MINIX 1" >>confdefs.h
3665
3666  fi
3667
3668
3669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3670$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3671if ${ac_cv_safe_to_define___extensions__+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677#         define __EXTENSIONS__ 1
3678          $ac_includes_default
3679int
3680main ()
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687if ac_fn_c_try_compile "$LINENO"; then :
3688  ac_cv_safe_to_define___extensions__=yes
3689else
3690  ac_cv_safe_to_define___extensions__=no
3691fi
3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3695$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3696  test $ac_cv_safe_to_define___extensions__ = yes &&
3697    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3698
3699  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3700
3701  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3702
3703  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3704
3705  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3706
3707
3708# Check whether --enable-largefile was given.
3709if test "${enable_largefile+set}" = set; then :
3710  enableval=$enable_largefile;
3711fi
3712
3713if test "$enable_largefile" != no; then
3714
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3716$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3717if ${ac_cv_sys_largefile_CC+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  ac_cv_sys_largefile_CC=no
3721     if test "$GCC" != yes; then
3722       ac_save_CC=$CC
3723       while :; do
3724	 # IRIX 6.2 and later do not support large files by default,
3725	 # so use the C compiler's -n32 option if that helps.
3726	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728#include <sys/types.h>
3729 /* Check that off_t can represent 2**63 - 1 correctly.
3730    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3731    since some C++ compilers masquerading as C compilers
3732    incorrectly reject 9223372036854775807.  */
3733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3734  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3735		       && LARGE_OFF_T % 2147483647 == 1)
3736		      ? 1 : -1];
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745	 if ac_fn_c_try_compile "$LINENO"; then :
3746  break
3747fi
3748rm -f core conftest.err conftest.$ac_objext
3749	 CC="$CC -n32"
3750	 if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_cv_sys_largefile_CC=' -n32'; break
3752fi
3753rm -f core conftest.err conftest.$ac_objext
3754	 break
3755       done
3756       CC=$ac_save_CC
3757       rm -f conftest.$ac_ext
3758    fi
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3761$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3762  if test "$ac_cv_sys_largefile_CC" != no; then
3763    CC=$CC$ac_cv_sys_largefile_CC
3764  fi
3765
3766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3767$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3768if ${ac_cv_sys_file_offset_bits+:} false; then :
3769  $as_echo_n "(cached) " >&6
3770else
3771  while :; do
3772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774#include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777    since some C++ compilers masquerading as C compilers
3778    incorrectly reject 9223372036854775807.  */
3779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781		       && LARGE_OFF_T % 2147483647 == 1)
3782		      ? 1 : -1];
3783int
3784main ()
3785{
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_cv_sys_file_offset_bits=no; break
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797#define _FILE_OFFSET_BITS 64
3798#include <sys/types.h>
3799 /* Check that off_t can represent 2**63 - 1 correctly.
3800    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3801    since some C++ compilers masquerading as C compilers
3802    incorrectly reject 9223372036854775807.  */
3803#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3804  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3805		       && LARGE_OFF_T % 2147483647 == 1)
3806		      ? 1 : -1];
3807int
3808main ()
3809{
3810
3811  ;
3812  return 0;
3813}
3814_ACEOF
3815if ac_fn_c_try_compile "$LINENO"; then :
3816  ac_cv_sys_file_offset_bits=64; break
3817fi
3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819  ac_cv_sys_file_offset_bits=unknown
3820  break
3821done
3822fi
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3824$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3825case $ac_cv_sys_file_offset_bits in #(
3826  no | unknown) ;;
3827  *)
3828cat >>confdefs.h <<_ACEOF
3829#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3830_ACEOF
3831;;
3832esac
3833rm -rf conftest*
3834  if test $ac_cv_sys_file_offset_bits = unknown; then
3835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3836$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3837if ${ac_cv_sys_large_files+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  while :; do
3841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843#include <sys/types.h>
3844 /* Check that off_t can represent 2**63 - 1 correctly.
3845    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3846    since some C++ compilers masquerading as C compilers
3847    incorrectly reject 9223372036854775807.  */
3848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3849  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3850		       && LARGE_OFF_T % 2147483647 == 1)
3851		      ? 1 : -1];
3852int
3853main ()
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861  ac_cv_sys_large_files=no; break
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h.  */
3866#define _LARGE_FILES 1
3867#include <sys/types.h>
3868 /* Check that off_t can represent 2**63 - 1 correctly.
3869    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3870    since some C++ compilers masquerading as C compilers
3871    incorrectly reject 9223372036854775807.  */
3872#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3873  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3874		       && LARGE_OFF_T % 2147483647 == 1)
3875		      ? 1 : -1];
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885  ac_cv_sys_large_files=1; break
3886fi
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888  ac_cv_sys_large_files=unknown
3889  break
3890done
3891fi
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3893$as_echo "$ac_cv_sys_large_files" >&6; }
3894case $ac_cv_sys_large_files in #(
3895  no | unknown) ;;
3896  *)
3897cat >>confdefs.h <<_ACEOF
3898#define _LARGE_FILES $ac_cv_sys_large_files
3899_ACEOF
3900;;
3901esac
3902rm -rf conftest*
3903  fi
3904
3905
3906fi
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913if test -n "$ac_tool_prefix"; then
3914  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}gcc; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if ${ac_cv_prog_CC+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if test -n "$CC"; then
3922  ac_cv_prog_CC="$CC" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936  done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
3945else
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_prog_CC"; then
3953  ac_ct_CC=$CC
3954  # Extract the first word of "gcc", so it can be a program name with args.
3955set dummy gcc; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_ac_ct_CC+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  if test -n "$ac_ct_CC"; then
3962  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967  IFS=$as_save_IFS
3968  test -z "$as_dir" && as_dir=.
3969    for ac_exec_ext in '' $ac_executable_extensions; do
3970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971    ac_cv_prog_ac_ct_CC="gcc"
3972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973    break 2
3974  fi
3975done
3976  done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982if test -n "$ac_ct_CC"; then
3983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3984$as_echo "$ac_ct_CC" >&6; }
3985else
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990  if test "x$ac_ct_CC" = x; then
3991    CC=""
3992  else
3993    case $cross_compiling:$ac_tool_warned in
3994yes:)
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999    CC=$ac_ct_CC
4000  fi
4001else
4002  CC="$ac_cv_prog_CC"
4003fi
4004
4005if test -z "$CC"; then
4006          if test -n "$ac_tool_prefix"; then
4007    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}cc; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if ${ac_cv_prog_CC+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -n "$CC"; then
4015  ac_cv_prog_CC="$CC" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024    ac_cv_prog_CC="${ac_tool_prefix}cc"
4025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029  done
4030IFS=$as_save_IFS
4031
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037$as_echo "$CC" >&6; }
4038else
4039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044  fi
4045fi
4046if test -z "$CC"; then
4047  # Extract the first word of "cc", so it can be a program name with args.
4048set dummy cc; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if ${ac_cv_prog_CC+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if test -n "$CC"; then
4055  ac_cv_prog_CC="$CC" # Let the user override the test.
4056else
4057  ac_prog_rejected=no
4058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061  IFS=$as_save_IFS
4062  test -z "$as_dir" && as_dir=.
4063    for ac_exec_ext in '' $ac_executable_extensions; do
4064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4066       ac_prog_rejected=yes
4067       continue
4068     fi
4069    ac_cv_prog_CC="cc"
4070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071    break 2
4072  fi
4073done
4074  done
4075IFS=$as_save_IFS
4076
4077if test $ac_prog_rejected = yes; then
4078  # We found a bogon in the path, so make sure we never use it.
4079  set dummy $ac_cv_prog_CC
4080  shift
4081  if test $# != 0; then
4082    # We chose a different compiler from the bogus one.
4083    # However, it has the same basename, so the bogon will be chosen
4084    # first if we set CC to just the basename; use the full file name.
4085    shift
4086    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4087  fi
4088fi
4089fi
4090fi
4091CC=$ac_cv_prog_CC
4092if test -n "$CC"; then
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4094$as_echo "$CC" >&6; }
4095else
4096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
4098fi
4099
4100
4101fi
4102if test -z "$CC"; then
4103  if test -n "$ac_tool_prefix"; then
4104  for ac_prog in cl.exe
4105  do
4106    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if ${ac_cv_prog_CC+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  if test -n "$CC"; then
4114  ac_cv_prog_CC="$CC" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119  IFS=$as_save_IFS
4120  test -z "$as_dir" && as_dir=.
4121    for ac_exec_ext in '' $ac_executable_extensions; do
4122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128  done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133CC=$ac_cv_prog_CC
4134if test -n "$CC"; then
4135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136$as_echo "$CC" >&6; }
4137else
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141
4142
4143    test -n "$CC" && break
4144  done
4145fi
4146if test -z "$CC"; then
4147  ac_ct_CC=$CC
4148  for ac_prog in cl.exe
4149do
4150  # Extract the first word of "$ac_prog", so it can be a program name with args.
4151set dummy $ac_prog; ac_word=$2
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153$as_echo_n "checking for $ac_word... " >&6; }
4154if ${ac_cv_prog_ac_ct_CC+:} false; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157  if test -n "$ac_ct_CC"; then
4158  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4159else
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_exec_ext in '' $ac_executable_extensions; do
4166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167    ac_cv_prog_ac_ct_CC="$ac_prog"
4168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169    break 2
4170  fi
4171done
4172  done
4173IFS=$as_save_IFS
4174
4175fi
4176fi
4177ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178if test -n "$ac_ct_CC"; then
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4180$as_echo "$ac_ct_CC" >&6; }
4181else
4182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
4184fi
4185
4186
4187  test -n "$ac_ct_CC" && break
4188done
4189
4190  if test "x$ac_ct_CC" = x; then
4191    CC=""
4192  else
4193    case $cross_compiling:$ac_tool_warned in
4194yes:)
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197ac_tool_warned=yes ;;
4198esac
4199    CC=$ac_ct_CC
4200  fi
4201fi
4202
4203fi
4204
4205
4206test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208as_fn_error $? "no acceptable C compiler found in \$PATH
4209See \`config.log' for more details" "$LINENO" 5; }
4210
4211# Provide some information about the compiler.
4212$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4213set X $ac_compile
4214ac_compiler=$2
4215for ac_option in --version -v -V -qversion; do
4216  { { ac_try="$ac_compiler $ac_option >&5"
4217case "(($ac_try" in
4218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219  *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222$as_echo "$ac_try_echo"; } >&5
4223  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224  ac_status=$?
4225  if test -s conftest.err; then
4226    sed '10a\
4227... rest of stderr output deleted ...
4228         10q' conftest.err >conftest.er1
4229    cat conftest.er1 >&5
4230  fi
4231  rm -f conftest.er1 conftest.err
4232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233  test $ac_status = 0; }
4234done
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4237$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4238if ${ac_cv_c_compiler_gnu+:} false; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243
4244int
4245main ()
4246{
4247#ifndef __GNUC__
4248       choke me
4249#endif
4250
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256  ac_compiler_gnu=yes
4257else
4258  ac_compiler_gnu=no
4259fi
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261ac_cv_c_compiler_gnu=$ac_compiler_gnu
4262
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4265$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4266if test $ac_compiler_gnu = yes; then
4267  GCC=yes
4268else
4269  GCC=
4270fi
4271ac_test_CFLAGS=${CFLAGS+set}
4272ac_save_CFLAGS=$CFLAGS
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4274$as_echo_n "checking whether $CC accepts -g... " >&6; }
4275if ${ac_cv_prog_cc_g+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  ac_save_c_werror_flag=$ac_c_werror_flag
4279   ac_c_werror_flag=yes
4280   ac_cv_prog_cc_g=no
4281   CFLAGS="-g"
4282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284
4285int
4286main ()
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293if ac_fn_c_try_compile "$LINENO"; then :
4294  ac_cv_prog_cc_g=yes
4295else
4296  CFLAGS=""
4297      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299
4300int
4301main ()
4302{
4303
4304  ;
4305  return 0;
4306}
4307_ACEOF
4308if ac_fn_c_try_compile "$LINENO"; then :
4309
4310else
4311  ac_c_werror_flag=$ac_save_c_werror_flag
4312	 CFLAGS="-g"
4313	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315
4316int
4317main ()
4318{
4319
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325  ac_cv_prog_cc_g=yes
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328fi
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332   ac_c_werror_flag=$ac_save_c_werror_flag
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4335$as_echo "$ac_cv_prog_cc_g" >&6; }
4336if test "$ac_test_CFLAGS" = set; then
4337  CFLAGS=$ac_save_CFLAGS
4338elif test $ac_cv_prog_cc_g = yes; then
4339  if test "$GCC" = yes; then
4340    CFLAGS="-g -O2"
4341  else
4342    CFLAGS="-g"
4343  fi
4344else
4345  if test "$GCC" = yes; then
4346    CFLAGS="-O2"
4347  else
4348    CFLAGS=
4349  fi
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4352$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4353if ${ac_cv_prog_cc_c89+:} false; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  ac_cv_prog_cc_c89=no
4357ac_save_CC=$CC
4358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360#include <stdarg.h>
4361#include <stdio.h>
4362struct stat;
4363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4364struct buf { int x; };
4365FILE * (*rcsopen) (struct buf *, struct stat *, int);
4366static char *e (p, i)
4367     char **p;
4368     int i;
4369{
4370  return p[i];
4371}
4372static char *f (char * (*g) (char **, int), char **p, ...)
4373{
4374  char *s;
4375  va_list v;
4376  va_start (v,p);
4377  s = g (p, va_arg (v,int));
4378  va_end (v);
4379  return s;
4380}
4381
4382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4383   function prototypes and stuff, but not '\xHH' hex character constants.
4384   These don't provoke an error unfortunately, instead are silently treated
4385   as 'x'.  The following induces an error, until -std is added to get
4386   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4387   array size at least.  It's necessary to write '\x00'==0 to get something
4388   that's true only with -std.  */
4389int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4390
4391/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4392   inside strings and character constants.  */
4393#define FOO(x) 'x'
4394int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4395
4396int test (int i, double x);
4397struct s1 {int (*f) (int a);};
4398struct s2 {int (*f) (double a);};
4399int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4400int argc;
4401char **argv;
4402int
4403main ()
4404{
4405return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4411	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4412do
4413  CC="$ac_save_CC $ac_arg"
4414  if ac_fn_c_try_compile "$LINENO"; then :
4415  ac_cv_prog_cc_c89=$ac_arg
4416fi
4417rm -f core conftest.err conftest.$ac_objext
4418  test "x$ac_cv_prog_cc_c89" != "xno" && break
4419done
4420rm -f conftest.$ac_ext
4421CC=$ac_save_CC
4422
4423fi
4424# AC_CACHE_VAL
4425case "x$ac_cv_prog_cc_c89" in
4426  x)
4427    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4428$as_echo "none needed" >&6; } ;;
4429  xno)
4430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431$as_echo "unsupported" >&6; } ;;
4432  *)
4433    CC="$CC $ac_cv_prog_cc_c89"
4434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4435$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4436esac
4437if test "x$ac_cv_prog_cc_c89" != xno; then :
4438
4439fi
4440
4441ac_ext=c
4442ac_cpp='$CPP $CPPFLAGS'
4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447   case $ac_cv_prog_cc_stdc in #(
4448  no) :
4449    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4450  *) :
4451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4452$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4453if ${ac_cv_prog_cc_c99+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  ac_cv_prog_cc_c99=no
4457ac_save_CC=$CC
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460#include <stdarg.h>
4461#include <stdbool.h>
4462#include <stdlib.h>
4463#include <wchar.h>
4464#include <stdio.h>
4465
4466// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4467#define debug(...) fprintf (stderr, __VA_ARGS__)
4468#define showlist(...) puts (#__VA_ARGS__)
4469#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4470static void
4471test_varargs_macros (void)
4472{
4473  int x = 1234;
4474  int y = 5678;
4475  debug ("Flag");
4476  debug ("X = %d\n", x);
4477  showlist (The first, second, and third items.);
4478  report (x>y, "x is %d but y is %d", x, y);
4479}
4480
4481// Check long long types.
4482#define BIG64 18446744073709551615ull
4483#define BIG32 4294967295ul
4484#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4485#if !BIG_OK
4486  your preprocessor is broken;
4487#endif
4488#if BIG_OK
4489#else
4490  your preprocessor is broken;
4491#endif
4492static long long int bignum = -9223372036854775807LL;
4493static unsigned long long int ubignum = BIG64;
4494
4495struct incomplete_array
4496{
4497  int datasize;
4498  double data[];
4499};
4500
4501struct named_init {
4502  int number;
4503  const wchar_t *name;
4504  double average;
4505};
4506
4507typedef const char *ccp;
4508
4509static inline int
4510test_restrict (ccp restrict text)
4511{
4512  // See if C++-style comments work.
4513  // Iterate through items via the restricted pointer.
4514  // Also check for declarations in for loops.
4515  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4516    continue;
4517  return 0;
4518}
4519
4520// Check varargs and va_copy.
4521static void
4522test_varargs (const char *format, ...)
4523{
4524  va_list args;
4525  va_start (args, format);
4526  va_list args_copy;
4527  va_copy (args_copy, args);
4528
4529  const char *str;
4530  int number;
4531  float fnumber;
4532
4533  while (*format)
4534    {
4535      switch (*format++)
4536	{
4537	case 's': // string
4538	  str = va_arg (args_copy, const char *);
4539	  break;
4540	case 'd': // int
4541	  number = va_arg (args_copy, int);
4542	  break;
4543	case 'f': // float
4544	  fnumber = va_arg (args_copy, double);
4545	  break;
4546	default:
4547	  break;
4548	}
4549    }
4550  va_end (args_copy);
4551  va_end (args);
4552}
4553
4554int
4555main ()
4556{
4557
4558  // Check bool.
4559  _Bool success = false;
4560
4561  // Check restrict.
4562  if (test_restrict ("String literal") == 0)
4563    success = true;
4564  char *restrict newvar = "Another string";
4565
4566  // Check varargs.
4567  test_varargs ("s, d' f .", "string", 65, 34.234);
4568  test_varargs_macros ();
4569
4570  // Check flexible array members.
4571  struct incomplete_array *ia =
4572    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4573  ia->datasize = 10;
4574  for (int i = 0; i < ia->datasize; ++i)
4575    ia->data[i] = i * 1.234;
4576
4577  // Check named initializers.
4578  struct named_init ni = {
4579    .number = 34,
4580    .name = L"Test wide string",
4581    .average = 543.34343,
4582  };
4583
4584  ni.number = 58;
4585
4586  int dynamic_array[ni.number];
4587  dynamic_array[ni.number - 1] = 543;
4588
4589  // work around unused variable warnings
4590  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4591	  || dynamic_array[ni.number - 1] != 543);
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4598do
4599  CC="$ac_save_CC $ac_arg"
4600  if ac_fn_c_try_compile "$LINENO"; then :
4601  ac_cv_prog_cc_c99=$ac_arg
4602fi
4603rm -f core conftest.err conftest.$ac_objext
4604  test "x$ac_cv_prog_cc_c99" != "xno" && break
4605done
4606rm -f conftest.$ac_ext
4607CC=$ac_save_CC
4608
4609fi
4610# AC_CACHE_VAL
4611case "x$ac_cv_prog_cc_c99" in
4612  x)
4613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4614$as_echo "none needed" >&6; } ;;
4615  xno)
4616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4617$as_echo "unsupported" >&6; } ;;
4618  *)
4619    CC="$CC $ac_cv_prog_cc_c99"
4620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4621$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4622esac
4623if test "x$ac_cv_prog_cc_c99" != xno; then :
4624  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4625else
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4628if ${ac_cv_prog_cc_c89+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  ac_cv_prog_cc_c89=no
4632ac_save_CC=$CC
4633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h.  */
4635#include <stdarg.h>
4636#include <stdio.h>
4637struct stat;
4638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4639struct buf { int x; };
4640FILE * (*rcsopen) (struct buf *, struct stat *, int);
4641static char *e (p, i)
4642     char **p;
4643     int i;
4644{
4645  return p[i];
4646}
4647static char *f (char * (*g) (char **, int), char **p, ...)
4648{
4649  char *s;
4650  va_list v;
4651  va_start (v,p);
4652  s = g (p, va_arg (v,int));
4653  va_end (v);
4654  return s;
4655}
4656
4657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4658   function prototypes and stuff, but not '\xHH' hex character constants.
4659   These don't provoke an error unfortunately, instead are silently treated
4660   as 'x'.  The following induces an error, until -std is added to get
4661   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4662   array size at least.  It's necessary to write '\x00'==0 to get something
4663   that's true only with -std.  */
4664int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4665
4666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4667   inside strings and character constants.  */
4668#define FOO(x) 'x'
4669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4670
4671int test (int i, double x);
4672struct s1 {int (*f) (int a);};
4673struct s2 {int (*f) (double a);};
4674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4675int argc;
4676char **argv;
4677int
4678main ()
4679{
4680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4681  ;
4682  return 0;
4683}
4684_ACEOF
4685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4686	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4687do
4688  CC="$ac_save_CC $ac_arg"
4689  if ac_fn_c_try_compile "$LINENO"; then :
4690  ac_cv_prog_cc_c89=$ac_arg
4691fi
4692rm -f core conftest.err conftest.$ac_objext
4693  test "x$ac_cv_prog_cc_c89" != "xno" && break
4694done
4695rm -f conftest.$ac_ext
4696CC=$ac_save_CC
4697
4698fi
4699# AC_CACHE_VAL
4700case "x$ac_cv_prog_cc_c89" in
4701  x)
4702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4703$as_echo "none needed" >&6; } ;;
4704  xno)
4705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4706$as_echo "unsupported" >&6; } ;;
4707  *)
4708    CC="$CC $ac_cv_prog_cc_c89"
4709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4711esac
4712if test "x$ac_cv_prog_cc_c89" != xno; then :
4713  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4714else
4715  ac_cv_prog_cc_stdc=no
4716fi
4717
4718fi
4719 ;;
4720esac
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4722$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4723  if ${ac_cv_prog_cc_stdc+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725fi
4726
4727  case $ac_cv_prog_cc_stdc in #(
4728  no) :
4729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4730$as_echo "unsupported" >&6; } ;; #(
4731  '') :
4732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4733$as_echo "none needed" >&6; } ;; #(
4734  *) :
4735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4736$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4737esac
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c17" >&5
4740$as_echo_n "checking if $CC accepts -std=c17... " >&6; }
4741 pa_add_flags__old_flags="$CFLAGS"
4742 CFLAGS="$CFLAGS -std=c17"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745$ac_includes_default
4746int
4747main ()
4748{
4749printf("Hello, World!\n");
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_link "$LINENO"; then :
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4756$as_echo "yes" >&6; }
4757  CFLAGS="$pa_add_flags__old_flags -std=c17"
4758
4759$as_echo "#define CFLAGS_STD_C17 1" >>confdefs.h
4760
4761
4762else
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764$as_echo "no" >&6; }
4765  CFLAGS="$pa_add_flags__old_flags"
4766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c11" >&5
4767$as_echo_n "checking if $CC accepts -std=c11... " >&6; }
4768 pa_add_flags__old_flags="$CFLAGS"
4769 CFLAGS="$CFLAGS -std=c11"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772$ac_includes_default
4773int
4774main ()
4775{
4776printf("Hello, World!\n");
4777  ;
4778  return 0;
4779}
4780_ACEOF
4781if ac_fn_c_try_link "$LINENO"; then :
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4783$as_echo "yes" >&6; }
4784  CFLAGS="$pa_add_flags__old_flags -std=c11"
4785
4786$as_echo "#define CFLAGS_STD_C11 1" >>confdefs.h
4787
4788
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792  CFLAGS="$pa_add_flags__old_flags"
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c99" >&5
4794$as_echo_n "checking if $CC accepts -std=c99... " >&6; }
4795 pa_add_flags__old_flags="$CFLAGS"
4796 CFLAGS="$CFLAGS -std=c99"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799$ac_includes_default
4800int
4801main ()
4802{
4803printf("Hello, World!\n");
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_link "$LINENO"; then :
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810$as_echo "yes" >&6; }
4811  CFLAGS="$pa_add_flags__old_flags -std=c99"
4812
4813$as_echo "#define CFLAGS_STD_C99 1" >>confdefs.h
4814
4815
4816else
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818$as_echo "no" >&6; }
4819  CFLAGS="$pa_add_flags__old_flags"
4820
4821fi
4822rm -f core conftest.err conftest.$ac_objext \
4823    conftest$ac_exeext conftest.$ac_ext
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826    conftest$ac_exeext conftest.$ac_ext
4827fi
4828rm -f core conftest.err conftest.$ac_objext \
4829    conftest$ac_exeext conftest.$ac_ext
4830
4831
4832
4833 # Check whether --enable-optimization was given.
4834if test "${enable_optimization+set}" = set; then :
4835  enableval=$enable_optimization; pa_arg_bool_enableval="$enableval"
4836else
4837  pa_arg_bool_enableval="yes"
4838fi
4839
4840
4841 if test x"$pa_arg_bool_enableval" != xno; then :
4842
4843else
4844  pa_no_optimize=true
4845fi
4846
4847
4848pa_no_optimize=false
4849
4850
4851
4852 # Check whether --enable-gdb was given.
4853if test "${enable_gdb+set}" = set; then :
4854  enableval=$enable_gdb; pa_arg_bool_enableval="$enableval"
4855else
4856  pa_arg_bool_enableval="no"
4857fi
4858
4859
4860 if test x"$pa_arg_bool_enableval" != xno; then :
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ggdb3" >&5
4862$as_echo_n "checking if $CC accepts -ggdb3... " >&6; }
4863 pa_add_flags__old_flags="$CFLAGS"
4864 CFLAGS="$CFLAGS -ggdb3"
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867$ac_includes_default
4868int
4869main ()
4870{
4871printf("Hello, World!\n");
4872  ;
4873  return 0;
4874}
4875_ACEOF
4876if ac_fn_c_try_link "$LINENO"; then :
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878$as_echo "yes" >&6; }
4879  CFLAGS="$pa_add_flags__old_flags -ggdb3"
4880
4881$as_echo "#define CFLAGS_GGDB3 1" >>confdefs.h
4882
4883
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
4887  CFLAGS="$pa_add_flags__old_flags"
4888
4889fi
4890rm -f core conftest.err conftest.$ac_objext \
4891    conftest$ac_exeext conftest.$ac_ext
4892  pa_no_optimize=true
4893fi
4894
4895
4896if $pa_no_optimize; then :
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O0" >&5
4898$as_echo_n "checking if $CC accepts -O0... " >&6; }
4899 pa_add_flags__old_flags="$CFLAGS"
4900 CFLAGS="$CFLAGS -O0"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903$ac_includes_default
4904int
4905main ()
4906{
4907printf("Hello, World!\n");
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_link "$LINENO"; then :
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4914$as_echo "yes" >&6; }
4915  CFLAGS="$pa_add_flags__old_flags -O0"
4916
4917$as_echo "#define CFLAGS_O0 1" >>confdefs.h
4918
4919
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923  CFLAGS="$pa_add_flags__old_flags"
4924
4925fi
4926rm -f core conftest.err conftest.$ac_objext \
4927    conftest$ac_exeext conftest.$ac_ext
4928       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
4929$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
4930 pa_add_flags__old_flags="$CFLAGS"
4931 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934$ac_includes_default
4935int
4936main ()
4937{
4938printf("Hello, World!\n");
4939  ;
4940  return 0;
4941}
4942_ACEOF
4943if ac_fn_c_try_link "$LINENO"; then :
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4945$as_echo "yes" >&6; }
4946  CFLAGS="$pa_add_flags__old_flags -fno-omit-frame-pointer"
4947
4948$as_echo "#define CFLAGS_FNO_OMIT_FRAME_POINTER 1" >>confdefs.h
4949
4950
4951else
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954  CFLAGS="$pa_add_flags__old_flags"
4955
4956fi
4957rm -f core conftest.err conftest.$ac_objext \
4958    conftest$ac_exeext conftest.$ac_ext
4959fi
4960
4961
4962
4963 # Check whether --enable-profiling was given.
4964if test "${enable_profiling+set}" = set; then :
4965  enableval=$enable_profiling; pa_arg_bool_enableval="$enableval"
4966else
4967  pa_arg_bool_enableval="no"
4968fi
4969
4970
4971 if test x"$pa_arg_bool_enableval" != xno; then :
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -pg" >&5
4973$as_echo_n "checking if $CC accepts -pg... " >&6; }
4974 pa_add_flags__old_flags="$CFLAGS"
4975 CFLAGS="$CFLAGS -pg"
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978$ac_includes_default
4979int
4980main ()
4981{
4982printf("Hello, World!\n");
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_link "$LINENO"; then :
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4989$as_echo "yes" >&6; }
4990  CFLAGS="$pa_add_flags__old_flags -pg"
4991
4992$as_echo "#define CFLAGS_PG 1" >>confdefs.h
4993
4994
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998  CFLAGS="$pa_add_flags__old_flags"
4999
5000fi
5001rm -f core conftest.err conftest.$ac_objext \
5002    conftest$ac_exeext conftest.$ac_ext
5003fi
5004
5005
5006
5007
5008 # Check whether --enable-panic-abort was given.
5009if test "${enable_panic_abort+set}" = set; then :
5010  enableval=$enable_panic_abort; pa_arg_bool_enableval="$enableval"
5011else
5012  pa_arg_bool_enableval="no"
5013fi
5014
5015
5016 if test x"$pa_arg_bool_enableval" != xno; then :
5017  $as_echo "#define ABORT_ON_PANIC 1" >>confdefs.h
5018
5019fi
5020
5021
5022
5023ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5024if test "x$ac_cv_type_size_t" = xyes; then :
5025
5026else
5027
5028cat >>confdefs.h <<_ACEOF
5029#define size_t unsigned int
5030_ACEOF
5031
5032fi
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5036if ${ac_cv_c_bigendian+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  ac_cv_c_bigendian=unknown
5040    # See if we're dealing with a universal compiler.
5041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043#ifndef __APPLE_CC__
5044	       not a universal capable compiler
5045	     #endif
5046	     typedef int dummy;
5047
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050
5051	# Check for potential -arch flags.  It is not universal unless
5052	# there are at least two -arch flags with different values.
5053	ac_arch=
5054	ac_prev=
5055	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5056	 if test -n "$ac_prev"; then
5057	   case $ac_word in
5058	     i?86 | x86_64 | ppc | ppc64)
5059	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5060		 ac_arch=$ac_word
5061	       else
5062		 ac_cv_c_bigendian=universal
5063		 break
5064	       fi
5065	       ;;
5066	   esac
5067	   ac_prev=
5068	 elif test "x$ac_word" = "x-arch"; then
5069	   ac_prev=arch
5070	 fi
5071       done
5072fi
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074    if test $ac_cv_c_bigendian = unknown; then
5075      # See if sys/param.h defines the BYTE_ORDER macro.
5076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078#include <sys/types.h>
5079	     #include <sys/param.h>
5080
5081int
5082main ()
5083{
5084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5085		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5086		     && LITTLE_ENDIAN)
5087	      bogus endian macros
5088	     #endif
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_compile "$LINENO"; then :
5095  # It does; now see whether it defined to BIG_ENDIAN or not.
5096	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098#include <sys/types.h>
5099		#include <sys/param.h>
5100
5101int
5102main ()
5103{
5104#if BYTE_ORDER != BIG_ENDIAN
5105		 not big endian
5106		#endif
5107
5108  ;
5109  return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"; then :
5113  ac_cv_c_bigendian=yes
5114else
5115  ac_cv_c_bigendian=no
5116fi
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120    fi
5121    if test $ac_cv_c_bigendian = unknown; then
5122      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h.  */
5125#include <limits.h>
5126
5127int
5128main ()
5129{
5130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5131	      bogus endian macros
5132	     #endif
5133
5134  ;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"; then :
5139  # It does; now see whether it defined to _BIG_ENDIAN or not.
5140	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142#include <limits.h>
5143
5144int
5145main ()
5146{
5147#ifndef _BIG_ENDIAN
5148		 not big endian
5149		#endif
5150
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_compile "$LINENO"; then :
5156  ac_cv_c_bigendian=yes
5157else
5158  ac_cv_c_bigendian=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163    fi
5164    if test $ac_cv_c_bigendian = unknown; then
5165      # Compile a test program.
5166      if test "$cross_compiling" = yes; then :
5167  # Try to guess by grepping values from an object file.
5168	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170short int ascii_mm[] =
5171		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5172		short int ascii_ii[] =
5173		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5174		int use_ascii (int i) {
5175		  return ascii_mm[i] + ascii_ii[i];
5176		}
5177		short int ebcdic_ii[] =
5178		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5179		short int ebcdic_mm[] =
5180		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5181		int use_ebcdic (int i) {
5182		  return ebcdic_mm[i] + ebcdic_ii[i];
5183		}
5184		extern int foo;
5185
5186int
5187main ()
5188{
5189return use_ascii (foo) == use_ebcdic (foo);
5190  ;
5191  return 0;
5192}
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"; then :
5195  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5196	      ac_cv_c_bigendian=yes
5197	    fi
5198	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5199	      if test "$ac_cv_c_bigendian" = unknown; then
5200		ac_cv_c_bigendian=no
5201	      else
5202		# finding both strings is unlikely to happen, but who knows?
5203		ac_cv_c_bigendian=unknown
5204	      fi
5205	    fi
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208else
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211$ac_includes_default
5212int
5213main ()
5214{
5215
5216	     /* Are we little or big endian?  From Harbison&Steele.  */
5217	     union
5218	     {
5219	       long int l;
5220	       char c[sizeof (long int)];
5221	     } u;
5222	     u.l = 1;
5223	     return u.c[sizeof (long int) - 1] == 1;
5224
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_run "$LINENO"; then :
5230  ac_cv_c_bigendian=no
5231else
5232  ac_cv_c_bigendian=yes
5233fi
5234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5235  conftest.$ac_objext conftest.beam conftest.$ac_ext
5236fi
5237
5238    fi
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5241$as_echo "$ac_cv_c_bigendian" >&6; }
5242 case $ac_cv_c_bigendian in #(
5243   yes)
5244     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5245;; #(
5246   no)
5247     $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
5248 ;; #(
5249   universal)
5250
5251$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5252
5253     ;; #(
5254   *)
5255     as_fn_error $? "unknown endianness
5256 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5257 esac
5258
5259
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
5263$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
5264 pa_add_flags__old_flags="$CFLAGS"
5265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268$ac_includes_default
5269int
5270main ()
5271{
5272printf("Hello, World!\n");
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277if ac_fn_c_try_link "$LINENO"; then :
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279$as_echo "yes" >&6; }
5280  CFLAGS="$pa_add_flags__old_flags -Werror=unknown-warning-option"
5281
5282$as_echo "#define CFLAGS_WERROR_UNKNOWN_WARNING_OPTION 1" >>confdefs.h
5283
5284
5285else
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288  CFLAGS="$pa_add_flags__old_flags"
5289
5290fi
5291rm -f core conftest.err conftest.$ac_objext \
5292    conftest$ac_exeext conftest.$ac_ext
5293
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fwrapv" >&5
5295$as_echo_n "checking if $CC accepts -fwrapv... " >&6; }
5296 pa_add_flags__old_flags="$CFLAGS"
5297 CFLAGS="$CFLAGS -fwrapv"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h.  */
5300$ac_includes_default
5301int
5302main ()
5303{
5304printf("Hello, World!\n");
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_link "$LINENO"; then :
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311$as_echo "yes" >&6; }
5312  CFLAGS="$pa_add_flags__old_flags -fwrapv"
5313
5314$as_echo "#define CFLAGS_FWRAPV 1" >>confdefs.h
5315
5316
5317else
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5320  CFLAGS="$pa_add_flags__old_flags"
5321
5322fi
5323rm -f core conftest.err conftest.$ac_objext \
5324    conftest$ac_exeext conftest.$ac_ext
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ftrivial-auto-var-init=zero" >&5
5327$as_echo_n "checking if $CC accepts -ftrivial-auto-var-init=zero... " >&6; }
5328 pa_add_flags__old_flags="$CFLAGS"
5329 CFLAGS="$CFLAGS -ftrivial-auto-var-init=zero"
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332$ac_includes_default
5333int
5334main ()
5335{
5336printf("Hello, World!\n");
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341if ac_fn_c_try_link "$LINENO"; then :
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343$as_echo "yes" >&6; }
5344  CFLAGS="$pa_add_flags__old_flags -ftrivial-auto-var-init=zero"
5345
5346$as_echo "#define CFLAGS_FTRIVIAL_AUTO_VAR_INIT_ZERO 1" >>confdefs.h
5347
5348
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5352  CFLAGS="$pa_add_flags__old_flags"
5353
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356    conftest$ac_exeext conftest.$ac_ext
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -U__STRICT_ANSI__" >&5
5359$as_echo_n "checking if $CC accepts -U__STRICT_ANSI__... " >&6; }
5360 pa_add_flags__old_flags="$CFLAGS"
5361 CFLAGS="$CFLAGS -U__STRICT_ANSI__"
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363/* end confdefs.h.  */
5364$ac_includes_default
5365int
5366main ()
5367{
5368printf("Hello, World!\n");
5369  ;
5370  return 0;
5371}
5372_ACEOF
5373if ac_fn_c_try_link "$LINENO"; then :
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375$as_echo "yes" >&6; }
5376  CFLAGS="$pa_add_flags__old_flags -U__STRICT_ANSI__"
5377
5378$as_echo "#define CFLAGS_U_STRICT_ANSI 1" >>confdefs.h
5379
5380
5381else
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384  CFLAGS="$pa_add_flags__old_flags"
5385
5386fi
5387rm -f core conftest.err conftest.$ac_objext \
5388    conftest$ac_exeext conftest.$ac_ext
5389
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-common" >&5
5391$as_echo_n "checking if $CC accepts -fno-common... " >&6; }
5392 pa_add_flags__old_flags="$CFLAGS"
5393 CFLAGS="$CFLAGS -fno-common"
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396$ac_includes_default
5397int
5398main ()
5399{
5400printf("Hello, World!\n");
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_link "$LINENO"; then :
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407$as_echo "yes" >&6; }
5408  CFLAGS="$pa_add_flags__old_flags -fno-common"
5409
5410$as_echo "#define CFLAGS_FNO_COMMON 1" >>confdefs.h
5411
5412
5413else
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
5416  CFLAGS="$pa_add_flags__old_flags"
5417
5418fi
5419rm -f core conftest.err conftest.$ac_objext \
5420    conftest$ac_exeext conftest.$ac_ext
5421
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of library files" >&5
5423$as_echo_n "checking for suffix of library files... " >&6; }
5424if test x"$LIBEXT" = x; then
5425  case "$OBJEXT" in
5426    obj)
5427      LIBEXT=lib
5428      ;;
5429    *)
5430      LIBEXT=a
5431      ;;
5432  esac
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXT" >&5
5435$as_echo "$LIBEXT" >&6; }
5436
5437
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5439$as_echo_n "checking whether ln -s works... " >&6; }
5440LN_S=$as_ln_s
5441if test "$LN_S" = "ln -s"; then
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5443$as_echo "yes" >&6; }
5444else
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5446$as_echo "no, using $LN_S" >&6; }
5447fi
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5450$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5451set x ${MAKE-make}
5452ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5453if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  cat >conftest.make <<\_ACEOF
5457SHELL = /bin/sh
5458all:
5459	@echo '@@@%%%=$(MAKE)=@@@%%%'
5460_ACEOF
5461# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5462case `${MAKE-make} -f conftest.make 2>/dev/null` in
5463  *@@@%%%=?*=@@@%%%*)
5464    eval ac_cv_prog_make_${ac_make}_set=yes;;
5465  *)
5466    eval ac_cv_prog_make_${ac_make}_set=no;;
5467esac
5468rm -f conftest.make
5469fi
5470if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472$as_echo "yes" >&6; }
5473  SET_MAKE=
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477  SET_MAKE="MAKE=${MAKE-make}"
5478fi
5479
5480# Find a good install program.  We prefer a C program (faster),
5481# so one script is as good as another.  But avoid the broken or
5482# incompatible versions:
5483# SysV /etc/install, /usr/sbin/install
5484# SunOS /usr/etc/install
5485# IRIX /sbin/install
5486# AIX /bin/install
5487# AmigaOS /C/install, which installs bootblocks on floppy discs
5488# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5489# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5490# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5491# OS/2's system install, which has a completely different semantic
5492# ./install, which can be erroneously created by make from ./install.sh.
5493# Reject install programs that cannot install multiple files.
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5495$as_echo_n "checking for a BSD-compatible install... " >&6; }
5496if test -z "$INSTALL"; then
5497if ${ac_cv_path_install+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503  IFS=$as_save_IFS
5504  test -z "$as_dir" && as_dir=.
5505    # Account for people who put trailing slashes in PATH elements.
5506case $as_dir/ in #((
5507  ./ | .// | /[cC]/* | \
5508  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5509  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5510  /usr/ucb/* ) ;;
5511  *)
5512    # OSF1 and SCO ODT 3.0 have their own names for install.
5513    # Don't use installbsd from OSF since it installs stuff as root
5514    # by default.
5515    for ac_prog in ginstall scoinst install; do
5516      for ac_exec_ext in '' $ac_executable_extensions; do
5517	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5518	  if test $ac_prog = install &&
5519	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5520	    # AIX install.  It has an incompatible calling convention.
5521	    :
5522	  elif test $ac_prog = install &&
5523	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5524	    # program-specific install script used by HP pwplus--don't use.
5525	    :
5526	  else
5527	    rm -rf conftest.one conftest.two conftest.dir
5528	    echo one > conftest.one
5529	    echo two > conftest.two
5530	    mkdir conftest.dir
5531	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5532	      test -s conftest.one && test -s conftest.two &&
5533	      test -s conftest.dir/conftest.one &&
5534	      test -s conftest.dir/conftest.two
5535	    then
5536	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5537	      break 3
5538	    fi
5539	  fi
5540	fi
5541      done
5542    done
5543    ;;
5544esac
5545
5546  done
5547IFS=$as_save_IFS
5548
5549rm -rf conftest.one conftest.two conftest.dir
5550
5551fi
5552  if test "${ac_cv_path_install+set}" = set; then
5553    INSTALL=$ac_cv_path_install
5554  else
5555    # As a last resort, use the slow shell script.  Don't cache a
5556    # value for INSTALL within a source directory, because that will
5557    # break other packages using the cache if that directory is
5558    # removed, or if the value is a relative name.
5559    INSTALL=$ac_install_sh
5560  fi
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5563$as_echo "$INSTALL" >&6; }
5564
5565# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5566# It thinks the first close brace ends the variable substitution.
5567test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5568
5569test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5570
5571test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5572
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5574$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5575if test -z "$MKDIR_P"; then
5576  if ${ac_cv_path_mkdir+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5581do
5582  IFS=$as_save_IFS
5583  test -z "$as_dir" && as_dir=.
5584    for ac_prog in mkdir gmkdir; do
5585	 for ac_exec_ext in '' $ac_executable_extensions; do
5586	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5587	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5588	     'mkdir (GNU coreutils) '* | \
5589	     'mkdir (coreutils) '* | \
5590	     'mkdir (fileutils) '4.1*)
5591	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5592	       break 3;;
5593	   esac
5594	 done
5595       done
5596  done
5597IFS=$as_save_IFS
5598
5599fi
5600
5601  test -d ./--version && rmdir ./--version
5602  if test "${ac_cv_path_mkdir+set}" = set; then
5603    MKDIR_P="$ac_cv_path_mkdir -p"
5604  else
5605    # As a last resort, use the slow shell script.  Don't cache a
5606    # value for MKDIR_P within a source directory, because that will
5607    # break other packages using the cache if that directory is
5608    # removed, or if the value is a relative name.
5609    MKDIR_P="$ac_install_sh -d"
5610  fi
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5613$as_echo "$MKDIR_P" >&6; }
5614
5615
5616for ac_prog in nroff
5617do
5618  # Extract the first word of "$ac_prog", so it can be a program name with args.
5619set dummy $ac_prog; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
5622if ${ac_cv_prog_NROFF+:} false; then :
5623  $as_echo_n "(cached) " >&6
5624else
5625  if test -n "$NROFF"; then
5626  ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631  IFS=$as_save_IFS
5632  test -z "$as_dir" && as_dir=.
5633    for ac_exec_ext in '' $ac_executable_extensions; do
5634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635    ac_cv_prog_NROFF="$ac_prog"
5636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637    break 2
5638  fi
5639done
5640  done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645NROFF=$ac_cv_prog_NROFF
5646if test -n "$NROFF"; then
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5648$as_echo "$NROFF" >&6; }
5649else
5650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652fi
5653
5654
5655  test -n "$NROFF" && break
5656done
5657test -n "$NROFF" || NROFF="false"
5658
5659for ac_prog in asciidoc
5660do
5661  # Extract the first word of "$ac_prog", so it can be a program name with args.
5662set dummy $ac_prog; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_ASCIIDOC+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  if test -n "$ASCIIDOC"; then
5669  ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678    ac_cv_prog_ASCIIDOC="$ac_prog"
5679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688ASCIIDOC=$ac_cv_prog_ASCIIDOC
5689if test -n "$ASCIIDOC"; then
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5691$as_echo "$ASCIIDOC" >&6; }
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697
5698  test -n "$ASCIIDOC" && break
5699done
5700test -n "$ASCIIDOC" || ASCIIDOC="false"
5701
5702for ac_prog in xmlto
5703do
5704  # Extract the first word of "$ac_prog", so it can be a program name with args.
5705set dummy $ac_prog; ac_word=$2
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707$as_echo_n "checking for $ac_word... " >&6; }
5708if ${ac_cv_prog_XMLTO+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  if test -n "$XMLTO"; then
5712  ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717  IFS=$as_save_IFS
5718  test -z "$as_dir" && as_dir=.
5719    for ac_exec_ext in '' $ac_executable_extensions; do
5720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721    ac_cv_prog_XMLTO="$ac_prog"
5722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723    break 2
5724  fi
5725done
5726  done
5727IFS=$as_save_IFS
5728
5729fi
5730fi
5731XMLTO=$ac_cv_prog_XMLTO
5732if test -n "$XMLTO"; then
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5734$as_echo "$XMLTO" >&6; }
5735else
5736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737$as_echo "no" >&6; }
5738fi
5739
5740
5741  test -n "$XMLTO" && break
5742done
5743test -n "$XMLTO" || XMLTO="false"
5744
5745for ac_prog in xz
5746do
5747  # Extract the first word of "$ac_prog", so it can be a program name with args.
5748set dummy $ac_prog; ac_word=$2
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750$as_echo_n "checking for $ac_word... " >&6; }
5751if ${ac_cv_prog_XZ+:} false; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  if test -n "$XZ"; then
5755  ac_cv_prog_XZ="$XZ" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760  IFS=$as_save_IFS
5761  test -z "$as_dir" && as_dir=.
5762    for ac_exec_ext in '' $ac_executable_extensions; do
5763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764    ac_cv_prog_XZ="$ac_prog"
5765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766    break 2
5767  fi
5768done
5769  done
5770IFS=$as_save_IFS
5771
5772fi
5773fi
5774XZ=$ac_cv_prog_XZ
5775if test -n "$XZ"; then
5776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
5777$as_echo "$XZ" >&6; }
5778else
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780$as_echo "no" >&6; }
5781fi
5782
5783
5784  test -n "$XZ" && break
5785done
5786test -n "$XZ" || XZ="false"
5787
5788
5789MANPAGES=manpages
5790if test x$ASCIIDOC = xfalse; then :
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No asciidoc package found, cannot build man pages" >&5
5792$as_echo "$as_me: WARNING: No asciidoc package found, cannot build man pages" >&2;}
5793   MANPAGES=''
5794
5795fi
5796if test x"$XMLTO" = xfalse; then :
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No xmlto package found, cannot build man pages" >&5
5798$as_echo "$as_me: WARNING: No xmlto package found, cannot build man pages" >&2;}
5799   MANPAGES=''
5800
5801fi
5802
5803
5804if test x"$XZ" = xfalse; then :
5805
5806else
5807  XZFILES=xzfiles
5808fi
5809
5810
5811
5812# Check whether --with-nsis was given.
5813if test "${with_nsis+set}" = set; then :
5814  withval=$with_nsis;
5815else
5816  with_nsis=yes
5817fi
5818
5819if test x"$MAKENSIS" = x; then :
5820
5821else
5822  if test x"$with_nsis" = xno; then :
5823
5824             with_nsis="$MAKENSIS"
5825fi
5826fi
5827
5828MAKENSIS=false
5829
5830case $host in #(
5831  *-win* | *-mingw*) :
5832    if test x"$with_nsis" = xno; then :
5833
5834else
5835  NSIS=nsis
5836	  if test x"$with_nsis" = xyes; then :
5837  if test -n "$ac_tool_prefix"; then
5838  # Extract the first word of "${ac_tool_prefix}makensis", so it can be a program name with args.
5839set dummy ${ac_tool_prefix}makensis; 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_MAKENSIS_TOOL+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  if test -n "$MAKENSIS_TOOL"; then
5846  ac_cv_prog_MAKENSIS_TOOL="$MAKENSIS_TOOL" # 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_MAKENSIS_TOOL="${ac_tool_prefix}makensis"
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
5865MAKENSIS_TOOL=$ac_cv_prog_MAKENSIS_TOOL
5866if test -n "$MAKENSIS_TOOL"; then
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS_TOOL" >&5
5868$as_echo "$MAKENSIS_TOOL" >&6; }
5869else
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875fi
5876if test -z "$ac_cv_prog_MAKENSIS_TOOL"; then
5877  ac_ct_MAKENSIS_TOOL=$MAKENSIS_TOOL
5878  # Extract the first word of "makensis", so it can be a program name with args.
5879set dummy makensis; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
5882if ${ac_cv_prog_ac_ct_MAKENSIS_TOOL+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885  if test -n "$ac_ct_MAKENSIS_TOOL"; then
5886  ac_cv_prog_ac_ct_MAKENSIS_TOOL="$ac_ct_MAKENSIS_TOOL" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893    for ac_exec_ext in '' $ac_executable_extensions; do
5894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895    ac_cv_prog_ac_ct_MAKENSIS_TOOL="makensis"
5896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897    break 2
5898  fi
5899done
5900  done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905ac_ct_MAKENSIS_TOOL=$ac_cv_prog_ac_ct_MAKENSIS_TOOL
5906if test -n "$ac_ct_MAKENSIS_TOOL"; then
5907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MAKENSIS_TOOL" >&5
5908$as_echo "$ac_ct_MAKENSIS_TOOL" >&6; }
5909else
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914  if test "x$ac_ct_MAKENSIS_TOOL" = x; then
5915    MAKENSIS_TOOL="false"
5916  else
5917    case $cross_compiling:$ac_tool_warned in
5918yes:)
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921ac_tool_warned=yes ;;
5922esac
5923    MAKENSIS_TOOL=$ac_ct_MAKENSIS_TOOL
5924  fi
5925else
5926  MAKENSIS_TOOL="$ac_cv_prog_MAKENSIS_TOOL"
5927fi
5928
5929	   MAKENSIS="$MAKENSIS_TOOL"
5930	   if test x"$MAKENSIS" = xfalse; then :
5931  for ac_prog in makensis
5932do
5933  # Extract the first word of "$ac_prog", so it can be a program name with args.
5934set dummy $ac_prog; ac_word=$2
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if ${ac_cv_prog_MAKENSIS_PLAIN+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  if test -n "$MAKENSIS_PLAIN"; then
5941  ac_cv_prog_MAKENSIS_PLAIN="$MAKENSIS_PLAIN" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  test -z "$as_dir" && as_dir=.
5948    for ac_exec_ext in '' $ac_executable_extensions; do
5949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950    ac_cv_prog_MAKENSIS_PLAIN="$ac_prog"
5951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952    break 2
5953  fi
5954done
5955  done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960MAKENSIS_PLAIN=$ac_cv_prog_MAKENSIS_PLAIN
5961if test -n "$MAKENSIS_PLAIN"; then
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS_PLAIN" >&5
5963$as_echo "$MAKENSIS_PLAIN" >&6; }
5964else
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969
5970  test -n "$MAKENSIS_PLAIN" && break
5971done
5972test -n "$MAKENSIS_PLAIN" || MAKENSIS_PLAIN="false"
5973
5974	         MAKENSIS="$MAKENSIS_PLAIN"
5975fi
5976	   if test x"$MAKENSIS" = xfalse; then :
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no makensis found, cannot build installer" >&5
5978$as_echo "$as_me: WARNING: no makensis found, cannot build installer" >&2;}
5979	          NSIS=''
5980fi
5981else
5982  MAKENSIS="$with_nsis"
5983fi
5984fi ;; #(
5985  *) :
5986     ;;
5987esac
5988
5989
5990
5991if test -n "$ac_tool_prefix"; then
5992  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5993set dummy ${ac_tool_prefix}ar; ac_word=$2
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
5996if ${ac_cv_prog_AR+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  if test -n "$AR"; then
6000  ac_cv_prog_AR="$AR" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005  IFS=$as_save_IFS
6006  test -z "$as_dir" && as_dir=.
6007    for ac_exec_ext in '' $ac_executable_extensions; do
6008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009    ac_cv_prog_AR="${ac_tool_prefix}ar"
6010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011    break 2
6012  fi
6013done
6014  done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019AR=$ac_cv_prog_AR
6020if test -n "$AR"; then
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6022$as_echo "$AR" >&6; }
6023else
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025$as_echo "no" >&6; }
6026fi
6027
6028
6029fi
6030if test -z "$ac_cv_prog_AR"; then
6031  ac_ct_AR=$AR
6032  # Extract the first word of "ar", so it can be a program name with args.
6033set dummy ar; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if ${ac_cv_prog_ac_ct_AR+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$ac_ct_AR"; then
6040  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_prog_ac_ct_AR="ar"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059ac_ct_AR=$ac_cv_prog_ac_ct_AR
6060if test -n "$ac_ct_AR"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6062$as_echo "$ac_ct_AR" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068  if test "x$ac_ct_AR" = x; then
6069    AR=""
6070  else
6071    case $cross_compiling:$ac_tool_warned in
6072yes:)
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075ac_tool_warned=yes ;;
6076esac
6077    AR=$ac_ct_AR
6078  fi
6079else
6080  AR="$ac_cv_prog_AR"
6081fi
6082
6083if test -n "$ac_tool_prefix"; then
6084  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_RANLIB+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$RANLIB"; then
6092  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111RANLIB=$ac_cv_prog_RANLIB
6112if test -n "$RANLIB"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6114$as_echo "$RANLIB" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121fi
6122if test -z "$ac_cv_prog_RANLIB"; then
6123  ac_ct_RANLIB=$RANLIB
6124  # Extract the first word of "ranlib", so it can be a program name with args.
6125set dummy ranlib; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$ac_ct_RANLIB"; then
6132  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141    ac_cv_prog_ac_ct_RANLIB="ranlib"
6142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146  done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6152if test -n "$ac_ct_RANLIB"; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6154$as_echo "$ac_ct_RANLIB" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160  if test "x$ac_ct_RANLIB" = x; then
6161    RANLIB=":"
6162  else
6163    case $cross_compiling:$ac_tool_warned in
6164yes:)
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6167ac_tool_warned=yes ;;
6168esac
6169    RANLIB=$ac_ct_RANLIB
6170  fi
6171else
6172  RANLIB="$ac_cv_prog_RANLIB"
6173fi
6174
6175if test -n "$ac_tool_prefix"; then
6176  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6177set dummy ${ac_tool_prefix}strip; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if ${ac_cv_prog_STRIP+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$STRIP"; then
6184  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203STRIP=$ac_cv_prog_STRIP
6204if test -n "$STRIP"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6206$as_echo "$STRIP" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212
6213fi
6214if test -z "$ac_cv_prog_STRIP"; then
6215  ac_ct_STRIP=$STRIP
6216  # Extract the first word of "strip", so it can be a program name with args.
6217set dummy strip; ac_word=$2
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219$as_echo_n "checking for $ac_word... " >&6; }
6220if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  if test -n "$ac_ct_STRIP"; then
6224  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231    for ac_exec_ext in '' $ac_executable_extensions; do
6232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_ac_ct_STRIP="strip"
6234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238  done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
6243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6244if test -n "$ac_ct_STRIP"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6246$as_echo "$ac_ct_STRIP" >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249$as_echo "no" >&6; }
6250fi
6251
6252  if test "x$ac_ct_STRIP" = x; then
6253    STRIP=""
6254  else
6255    case $cross_compiling:$ac_tool_warned in
6256yes:)
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259ac_tool_warned=yes ;;
6260esac
6261    STRIP=$ac_ct_STRIP
6262  fi
6263else
6264  STRIP="$ac_cv_prog_STRIP"
6265fi
6266
6267
6268
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6270$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6271if ${ac_cv_c_const+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276
6277int
6278main ()
6279{
6280
6281#ifndef __cplusplus
6282  /* Ultrix mips cc rejects this sort of thing.  */
6283  typedef int charset[2];
6284  const charset cs = { 0, 0 };
6285  /* SunOS 4.1.1 cc rejects this.  */
6286  char const *const *pcpcc;
6287  char **ppc;
6288  /* NEC SVR4.0.2 mips cc rejects this.  */
6289  struct point {int x, y;};
6290  static struct point const zero = {0,0};
6291  /* AIX XL C 1.02.0.0 rejects this.
6292     It does not let you subtract one const X* pointer from another in
6293     an arm of an if-expression whose if-part is not a constant
6294     expression */
6295  const char *g = "string";
6296  pcpcc = &g + (g ? g-g : 0);
6297  /* HPUX 7.0 cc rejects these. */
6298  ++pcpcc;
6299  ppc = (char**) pcpcc;
6300  pcpcc = (char const *const *) ppc;
6301  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6302    char tx;
6303    char *t = &tx;
6304    char const *s = 0 ? (char *) 0 : (char const *) 0;
6305
6306    *t++ = 0;
6307    if (s) return 0;
6308  }
6309  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6310    int x[] = {25, 17};
6311    const int *foo = &x[0];
6312    ++foo;
6313  }
6314  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6315    typedef const int *iptr;
6316    iptr p = 0;
6317    ++p;
6318  }
6319  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6320       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6321    struct s { int j; const int *ap[3]; } bx;
6322    struct s *b = &bx; b->j = 5;
6323  }
6324  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6325    const int foo = 10;
6326    if (!foo) return 0;
6327  }
6328  return !cs[0] && !zero.x;
6329#endif
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"; then :
6336  ac_cv_c_const=yes
6337else
6338  ac_cv_c_const=no
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6343$as_echo "$ac_cv_c_const" >&6; }
6344if test $ac_cv_c_const = no; then
6345
6346$as_echo "#define const /**/" >>confdefs.h
6347
6348fi
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6351$as_echo_n "checking for inline... " >&6; }
6352if ${ac_cv_c_inline+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  ac_cv_c_inline=no
6356for ac_kw in inline __inline__ __inline; do
6357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h.  */
6359#ifndef __cplusplus
6360typedef int foo_t;
6361static $ac_kw foo_t static_foo () {return 0; }
6362$ac_kw foo_t foo () {return 0; }
6363#endif
6364
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then :
6367  ac_cv_c_inline=$ac_kw
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370  test "$ac_cv_c_inline" != no && break
6371done
6372
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6375$as_echo "$ac_cv_c_inline" >&6; }
6376
6377case $ac_cv_c_inline in
6378  inline | yes) ;;
6379  *)
6380    case $ac_cv_c_inline in
6381      no) ac_val=;;
6382      *) ac_val=$ac_cv_c_inline;;
6383    esac
6384    cat >>confdefs.h <<_ACEOF
6385#ifndef __cplusplus
6386#define inline $ac_val
6387#endif
6388_ACEOF
6389    ;;
6390esac
6391
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6393$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6394if ${ac_cv_c_restrict+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  ac_cv_c_restrict=no
6398   # The order here caters to the fact that C++ does not require restrict.
6399   for ac_kw in __restrict __restrict__ _Restrict restrict; do
6400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h.  */
6402typedef int * int_ptr;
6403	int foo (int_ptr $ac_kw ip) {
6404	return ip[0];
6405       }
6406int
6407main ()
6408{
6409int s[1];
6410	int * $ac_kw t = s;
6411	t[0] = 0;
6412	return foo(t)
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"; then :
6418  ac_cv_c_restrict=$ac_kw
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421     test "$ac_cv_c_restrict" != no && break
6422   done
6423
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6426$as_echo "$ac_cv_c_restrict" >&6; }
6427
6428 case $ac_cv_c_restrict in
6429   restrict) ;;
6430   no) $as_echo "#define restrict /**/" >>confdefs.h
6431 ;;
6432   *)  cat >>confdefs.h <<_ACEOF
6433#define restrict $ac_cv_c_restrict
6434_ACEOF
6435 ;;
6436 esac
6437
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6440$as_echo_n "checking for ANSI C header files... " >&6; }
6441if ${ac_cv_header_stdc+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446#include <stdlib.h>
6447#include <stdarg.h>
6448#include <string.h>
6449#include <float.h>
6450
6451int
6452main ()
6453{
6454
6455  ;
6456  return 0;
6457}
6458_ACEOF
6459if ac_fn_c_try_compile "$LINENO"; then :
6460  ac_cv_header_stdc=yes
6461else
6462  ac_cv_header_stdc=no
6463fi
6464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465
6466if test $ac_cv_header_stdc = yes; then
6467  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470#include <string.h>
6471
6472_ACEOF
6473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6474  $EGREP "memchr" >/dev/null 2>&1; then :
6475
6476else
6477  ac_cv_header_stdc=no
6478fi
6479rm -f conftest*
6480
6481fi
6482
6483if test $ac_cv_header_stdc = yes; then
6484  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487#include <stdlib.h>
6488
6489_ACEOF
6490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491  $EGREP "free" >/dev/null 2>&1; then :
6492
6493else
6494  ac_cv_header_stdc=no
6495fi
6496rm -f conftest*
6497
6498fi
6499
6500if test $ac_cv_header_stdc = yes; then
6501  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6502  if test "$cross_compiling" = yes; then :
6503  :
6504else
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507#include <ctype.h>
6508#include <stdlib.h>
6509#if ((' ' & 0x0FF) == 0x020)
6510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6512#else
6513# define ISLOWER(c) \
6514		   (('a' <= (c) && (c) <= 'i') \
6515		     || ('j' <= (c) && (c) <= 'r') \
6516		     || ('s' <= (c) && (c) <= 'z'))
6517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6518#endif
6519
6520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6521int
6522main ()
6523{
6524  int i;
6525  for (i = 0; i < 256; i++)
6526    if (XOR (islower (i), ISLOWER (i))
6527	|| toupper (i) != TOUPPER (i))
6528      return 2;
6529  return 0;
6530}
6531_ACEOF
6532if ac_fn_c_try_run "$LINENO"; then :
6533
6534else
6535  ac_cv_header_stdc=no
6536fi
6537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6538  conftest.$ac_objext conftest.beam conftest.$ac_ext
6539fi
6540
6541fi
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6544$as_echo "$ac_cv_header_stdc" >&6; }
6545if test $ac_cv_header_stdc = yes; then
6546
6547$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6548
6549fi
6550
6551for ac_header in string.h
6552do :
6553  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6554if test "x$ac_cv_header_string_h" = xyes; then :
6555  cat >>confdefs.h <<_ACEOF
6556#define HAVE_STRING_H 1
6557_ACEOF
6558 ac_includes_default="$ac_includes_default
6559#include <string.h>"
6560
6561fi
6562
6563done
6564
6565
6566for ac_header in stdarg.h
6567do :
6568  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6569if test "x$ac_cv_header_stdarg_h" = xyes; then :
6570  cat >>confdefs.h <<_ACEOF
6571#define HAVE_STDARG_H 1
6572_ACEOF
6573 ac_includes_default="$ac_includes_default
6574#include <stdarg.h>"
6575
6576fi
6577
6578done
6579
6580
6581for ac_header in inttypes.h
6582do :
6583  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6584if test "x$ac_cv_header_inttypes_h" = xyes; then :
6585  cat >>confdefs.h <<_ACEOF
6586#define HAVE_INTTYPES_H 1
6587_ACEOF
6588
6589fi
6590
6591done
6592
6593for ac_header in strings.h
6594do :
6595  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
6596if test "x$ac_cv_header_strings_h" = xyes; then :
6597  cat >>confdefs.h <<_ACEOF
6598#define HAVE_STRINGS_H 1
6599_ACEOF
6600
6601fi
6602
6603done
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6606$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6607if ${ac_cv_header_stdbool_h+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612
6613             #include <stdbool.h>
6614             #ifndef bool
6615              "error: bool is not defined"
6616             #endif
6617             #ifndef false
6618              "error: false is not defined"
6619             #endif
6620             #if false
6621              "error: false is not 0"
6622             #endif
6623             #ifndef true
6624              "error: true is not defined"
6625             #endif
6626             #if true != 1
6627              "error: true is not 1"
6628             #endif
6629             #ifndef __bool_true_false_are_defined
6630              "error: __bool_true_false_are_defined is not defined"
6631             #endif
6632
6633             struct s { _Bool s: 1; _Bool t; } s;
6634
6635             char a[true == 1 ? 1 : -1];
6636             char b[false == 0 ? 1 : -1];
6637             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6638             char d[(bool) 0.5 == true ? 1 : -1];
6639             /* See body of main program for 'e'.  */
6640             char f[(_Bool) 0.0 == false ? 1 : -1];
6641             char g[true];
6642             char h[sizeof (_Bool)];
6643             char i[sizeof s.t];
6644             enum { j = false, k = true, l = false * true, m = true * 256 };
6645             /* The following fails for
6646                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6647             _Bool n[m];
6648             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6649             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6650             /* Catch a bug in an HP-UX C compiler.  See
6651                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6652                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6653              */
6654             _Bool q = true;
6655             _Bool *pq = &q;
6656
6657int
6658main ()
6659{
6660
6661             bool e = &s;
6662             *pq |= q;
6663             *pq |= ! q;
6664             /* Refer to every declared value, to avoid compiler optimizations.  */
6665             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6666                     + !m + !n + !o + !p + !q + !pq);
6667
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672if ac_fn_c_try_compile "$LINENO"; then :
6673  ac_cv_header_stdbool_h=yes
6674else
6675  ac_cv_header_stdbool_h=no
6676fi
6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6680$as_echo "$ac_cv_header_stdbool_h" >&6; }
6681   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6682if test "x$ac_cv_type__Bool" = xyes; then :
6683
6684cat >>confdefs.h <<_ACEOF
6685#define HAVE__BOOL 1
6686_ACEOF
6687
6688
6689fi
6690
6691
6692if test $ac_cv_header_stdbool_h = yes; then
6693
6694$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6695
6696fi
6697
6698for ac_header in stdnoreturn.h
6699do :
6700  ac_fn_c_check_header_mongrel "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
6701if test "x$ac_cv_header_stdnoreturn_h" = xyes; then :
6702  cat >>confdefs.h <<_ACEOF
6703#define HAVE_STDNORETURN_H 1
6704_ACEOF
6705
6706fi
6707
6708done
6709
6710for ac_header in io.h
6711do :
6712  ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
6713if test "x$ac_cv_header_io_h" = xyes; then :
6714  cat >>confdefs.h <<_ACEOF
6715#define HAVE_IO_H 1
6716_ACEOF
6717
6718fi
6719
6720done
6721
6722for ac_header in fcntl.h
6723do :
6724  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6725if test "x$ac_cv_header_fcntl_h" = xyes; then :
6726  cat >>confdefs.h <<_ACEOF
6727#define HAVE_FCNTL_H 1
6728_ACEOF
6729
6730fi
6731
6732done
6733
6734for ac_header in unistd.h
6735do :
6736  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6737if test "x$ac_cv_header_unistd_h" = xyes; then :
6738  cat >>confdefs.h <<_ACEOF
6739#define HAVE_UNISTD_H 1
6740_ACEOF
6741
6742fi
6743
6744done
6745
6746for ac_header in sys/mman.h
6747do :
6748  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6749if test "x$ac_cv_header_sys_mman_h" = xyes; then :
6750  cat >>confdefs.h <<_ACEOF
6751#define HAVE_SYS_MMAN_H 1
6752_ACEOF
6753
6754fi
6755
6756done
6757
6758for ac_header in sys/types.h
6759do :
6760  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
6761if test "x$ac_cv_header_sys_types_h" = xyes; then :
6762  cat >>confdefs.h <<_ACEOF
6763#define HAVE_SYS_TYPES_H 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770for ac_header in sys/stat.h
6771do :
6772  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
6773if test "x$ac_cv_header_sys_stat_h" = xyes; then :
6774  cat >>confdefs.h <<_ACEOF
6775#define HAVE_SYS_STAT_H 1
6776_ACEOF
6777
6778fi
6779
6780done
6781
6782for ac_header in sys/resource.h
6783do :
6784  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
6785if test "x$ac_cv_header_sys_resource_h" = xyes; then :
6786  cat >>confdefs.h <<_ACEOF
6787#define HAVE_SYS_RESOURCE_H 1
6788_ACEOF
6789
6790fi
6791
6792done
6793
6794
6795for ac_func in strcasecmp stricmp
6796do :
6797  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6798ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6799if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6800  cat >>confdefs.h <<_ACEOF
6801#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6802_ACEOF
6803
6804fi
6805done
6806
6807for ac_func in strncasecmp strnicmp
6808do :
6809  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6811if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6812  cat >>confdefs.h <<_ACEOF
6813#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6814_ACEOF
6815
6816fi
6817done
6818
6819for ac_func in strsep
6820do :
6821  ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6822if test "x$ac_cv_func_strsep" = xyes; then :
6823  cat >>confdefs.h <<_ACEOF
6824#define HAVE_STRSEP 1
6825_ACEOF
6826
6827fi
6828done
6829
6830for ac_func in strnlen
6831do :
6832  ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
6833if test "x$ac_cv_func_strnlen" = xyes; then :
6834  cat >>confdefs.h <<_ACEOF
6835#define HAVE_STRNLEN 1
6836_ACEOF
6837
6838fi
6839done
6840
6841for ac_func in strrchrnul
6842do :
6843  ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
6844if test "x$ac_cv_func_strrchrnul" = xyes; then :
6845  cat >>confdefs.h <<_ACEOF
6846#define HAVE_STRRCHRNUL 1
6847_ACEOF
6848
6849fi
6850done
6851
6852for ac_func in iscntrl
6853do :
6854  ac_fn_c_check_func "$LINENO" "iscntrl" "ac_cv_func_iscntrl"
6855if test "x$ac_cv_func_iscntrl" = xyes; then :
6856  cat >>confdefs.h <<_ACEOF
6857#define HAVE_ISCNTRL 1
6858_ACEOF
6859
6860fi
6861done
6862
6863for ac_func in isascii
6864do :
6865  ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
6866if test "x$ac_cv_func_isascii" = xyes; then :
6867  cat >>confdefs.h <<_ACEOF
6868#define HAVE_ISASCII 1
6869_ACEOF
6870
6871fi
6872done
6873
6874for ac_func in mempcpy
6875do :
6876  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
6877if test "x$ac_cv_func_mempcpy" = xyes; then :
6878  cat >>confdefs.h <<_ACEOF
6879#define HAVE_MEMPCPY 1
6880_ACEOF
6881
6882fi
6883done
6884
6885
6886for ac_func in getuid
6887do :
6888  ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
6889if test "x$ac_cv_func_getuid" = xyes; then :
6890  cat >>confdefs.h <<_ACEOF
6891#define HAVE_GETUID 1
6892_ACEOF
6893
6894fi
6895done
6896
6897for ac_func in getgid
6898do :
6899  ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
6900if test "x$ac_cv_func_getgid" = xyes; then :
6901  cat >>confdefs.h <<_ACEOF
6902#define HAVE_GETGID 1
6903_ACEOF
6904
6905fi
6906done
6907
6908for ac_func in getrlimit
6909do :
6910  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
6911if test "x$ac_cv_func_getrlimit" = xyes; then :
6912  cat >>confdefs.h <<_ACEOF
6913#define HAVE_GETRLIMIT 1
6914_ACEOF
6915
6916fi
6917done
6918
6919
6920for ac_func in realpath
6921do :
6922  ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6923if test "x$ac_cv_func_realpath" = xyes; then :
6924  cat >>confdefs.h <<_ACEOF
6925#define HAVE_REALPATH 1
6926_ACEOF
6927
6928fi
6929done
6930
6931for ac_func in canonicalize_file_name
6932do :
6933  ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
6934if test "x$ac_cv_func_canonicalize_file_name" = xyes; then :
6935  cat >>confdefs.h <<_ACEOF
6936#define HAVE_CANONICALIZE_FILE_NAME 1
6937_ACEOF
6938
6939fi
6940done
6941
6942for ac_func in _fullpath
6943do :
6944  ac_fn_c_check_func "$LINENO" "_fullpath" "ac_cv_func__fullpath"
6945if test "x$ac_cv_func__fullpath" = xyes; then :
6946  cat >>confdefs.h <<_ACEOF
6947#define HAVE__FULLPATH 1
6948_ACEOF
6949
6950fi
6951done
6952
6953for ac_func in pathconf
6954do :
6955  ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
6956if test "x$ac_cv_func_pathconf" = xyes; then :
6957  cat >>confdefs.h <<_ACEOF
6958#define HAVE_PATHCONF 1
6959_ACEOF
6960
6961fi
6962done
6963
6964
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6966$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6967if ${ac_cv_sys_largefile_source+:} false; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970  while :; do
6971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973#include <sys/types.h> /* for off_t */
6974     #include <stdio.h>
6975int
6976main ()
6977{
6978int (*fp) (FILE *, off_t, int) = fseeko;
6979     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985  ac_cv_sys_largefile_source=no; break
6986fi
6987rm -f core conftest.err conftest.$ac_objext \
6988    conftest$ac_exeext conftest.$ac_ext
6989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991#define _LARGEFILE_SOURCE 1
6992#include <sys/types.h> /* for off_t */
6993     #include <stdio.h>
6994int
6995main ()
6996{
6997int (*fp) (FILE *, off_t, int) = fseeko;
6998     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003if ac_fn_c_try_link "$LINENO"; then :
7004  ac_cv_sys_largefile_source=1; break
7005fi
7006rm -f core conftest.err conftest.$ac_objext \
7007    conftest$ac_exeext conftest.$ac_ext
7008  ac_cv_sys_largefile_source=unknown
7009  break
7010done
7011fi
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7013$as_echo "$ac_cv_sys_largefile_source" >&6; }
7014case $ac_cv_sys_largefile_source in #(
7015  no | unknown) ;;
7016  *)
7017cat >>confdefs.h <<_ACEOF
7018#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7019_ACEOF
7020;;
7021esac
7022rm -rf conftest*
7023
7024# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7025# in glibc 2.1.3, but that breaks too many other things.
7026# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7027if test $ac_cv_sys_largefile_source != unknown; then
7028
7029$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7030
7031fi
7032
7033for ac_func in _fseeki64
7034do :
7035  ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
7036if test "x$ac_cv_func__fseeki64" = xyes; then :
7037  cat >>confdefs.h <<_ACEOF
7038#define HAVE__FSEEKI64 1
7039_ACEOF
7040
7041fi
7042done
7043
7044for ac_func in ftruncate _chsize _chsize_s
7045do :
7046  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7047ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7048if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7049  cat >>confdefs.h <<_ACEOF
7050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7051_ACEOF
7052
7053fi
7054done
7055
7056for ac_func in fileno _fileno
7057do :
7058  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7060if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7061  cat >>confdefs.h <<_ACEOF
7062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7063_ACEOF
7064
7065fi
7066done
7067
7068
7069
7070
7071
7072  for ac_header in $ac_header_list
7073do :
7074  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7075ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7076"
7077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7078  cat >>confdefs.h <<_ACEOF
7079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080_ACEOF
7081
7082fi
7083
7084done
7085
7086
7087
7088
7089
7090
7091
7092
7093for ac_func in getpagesize
7094do :
7095  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7096if test "x$ac_cv_func_getpagesize" = xyes; then :
7097  cat >>confdefs.h <<_ACEOF
7098#define HAVE_GETPAGESIZE 1
7099_ACEOF
7100
7101fi
7102done
7103
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7105$as_echo_n "checking for working mmap... " >&6; }
7106if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  if test "$cross_compiling" = yes; then :
7110  ac_cv_func_mmap_fixed_mapped=no
7111else
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114$ac_includes_default
7115/* malloc might have been renamed as rpl_malloc. */
7116#undef malloc
7117
7118/* Thanks to Mike Haertel and Jim Avera for this test.
7119   Here is a matrix of mmap possibilities:
7120	mmap private not fixed
7121	mmap private fixed at somewhere currently unmapped
7122	mmap private fixed at somewhere already mapped
7123	mmap shared not fixed
7124	mmap shared fixed at somewhere currently unmapped
7125	mmap shared fixed at somewhere already mapped
7126   For private mappings, we should verify that changes cannot be read()
7127   back from the file, nor mmap's back from the file at a different
7128   address.  (There have been systems where private was not correctly
7129   implemented like the infamous i386 svr4.0, and systems where the
7130   VM page cache was not coherent with the file system buffer cache
7131   like early versions of FreeBSD and possibly contemporary NetBSD.)
7132   For shared mappings, we should conversely verify that changes get
7133   propagated back to all the places they're supposed to be.
7134
7135   Grep wants private fixed already mapped.
7136   The main things grep needs to know about mmap are:
7137   * does it exist and is it safe to write into the mmap'd area
7138   * how to use it (BSD variants)  */
7139
7140#include <fcntl.h>
7141#include <sys/mman.h>
7142
7143#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7144char *malloc ();
7145#endif
7146
7147/* This mess was copied from the GNU getpagesize.h.  */
7148#ifndef HAVE_GETPAGESIZE
7149# ifdef _SC_PAGESIZE
7150#  define getpagesize() sysconf(_SC_PAGESIZE)
7151# else /* no _SC_PAGESIZE */
7152#  ifdef HAVE_SYS_PARAM_H
7153#   include <sys/param.h>
7154#   ifdef EXEC_PAGESIZE
7155#    define getpagesize() EXEC_PAGESIZE
7156#   else /* no EXEC_PAGESIZE */
7157#    ifdef NBPG
7158#     define getpagesize() NBPG * CLSIZE
7159#     ifndef CLSIZE
7160#      define CLSIZE 1
7161#     endif /* no CLSIZE */
7162#    else /* no NBPG */
7163#     ifdef NBPC
7164#      define getpagesize() NBPC
7165#     else /* no NBPC */
7166#      ifdef PAGESIZE
7167#       define getpagesize() PAGESIZE
7168#      endif /* PAGESIZE */
7169#     endif /* no NBPC */
7170#    endif /* no NBPG */
7171#   endif /* no EXEC_PAGESIZE */
7172#  else /* no HAVE_SYS_PARAM_H */
7173#   define getpagesize() 8192	/* punt totally */
7174#  endif /* no HAVE_SYS_PARAM_H */
7175# endif /* no _SC_PAGESIZE */
7176
7177#endif /* no HAVE_GETPAGESIZE */
7178
7179int
7180main ()
7181{
7182  char *data, *data2, *data3;
7183  const char *cdata2;
7184  int i, pagesize;
7185  int fd, fd2;
7186
7187  pagesize = getpagesize ();
7188
7189  /* First, make a file with some known garbage in it. */
7190  data = (char *) malloc (pagesize);
7191  if (!data)
7192    return 1;
7193  for (i = 0; i < pagesize; ++i)
7194    *(data + i) = rand ();
7195  umask (0);
7196  fd = creat ("conftest.mmap", 0600);
7197  if (fd < 0)
7198    return 2;
7199  if (write (fd, data, pagesize) != pagesize)
7200    return 3;
7201  close (fd);
7202
7203  /* Next, check that the tail of a page is zero-filled.  File must have
7204     non-zero length, otherwise we risk SIGBUS for entire page.  */
7205  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7206  if (fd2 < 0)
7207    return 4;
7208  cdata2 = "";
7209  if (write (fd2, cdata2, 1) != 1)
7210    return 5;
7211  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7212  if (data2 == MAP_FAILED)
7213    return 6;
7214  for (i = 0; i < pagesize; ++i)
7215    if (*(data2 + i))
7216      return 7;
7217  close (fd2);
7218  if (munmap (data2, pagesize))
7219    return 8;
7220
7221  /* Next, try to mmap the file at a fixed address which already has
7222     something else allocated at it.  If we can, also make sure that
7223     we see the same garbage.  */
7224  fd = open ("conftest.mmap", O_RDWR);
7225  if (fd < 0)
7226    return 9;
7227  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7228		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
7229    return 10;
7230  for (i = 0; i < pagesize; ++i)
7231    if (*(data + i) != *(data2 + i))
7232      return 11;
7233
7234  /* Finally, make sure that changes to the mapped area do not
7235     percolate back to the file as seen by read().  (This is a bug on
7236     some variants of i386 svr4.0.)  */
7237  for (i = 0; i < pagesize; ++i)
7238    *(data2 + i) = *(data2 + i) + 1;
7239  data3 = (char *) malloc (pagesize);
7240  if (!data3)
7241    return 12;
7242  if (read (fd, data3, pagesize) != pagesize)
7243    return 13;
7244  for (i = 0; i < pagesize; ++i)
7245    if (*(data + i) != *(data3 + i))
7246      return 14;
7247  close (fd);
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_run "$LINENO"; then :
7252  ac_cv_func_mmap_fixed_mapped=yes
7253else
7254  ac_cv_func_mmap_fixed_mapped=no
7255fi
7256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7257  conftest.$ac_objext conftest.beam conftest.$ac_ext
7258fi
7259
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7262$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7263if test $ac_cv_func_mmap_fixed_mapped = yes; then
7264
7265$as_echo "#define HAVE_MMAP 1" >>confdefs.h
7266
7267fi
7268rm -f conftest.mmap conftest.txt
7269
7270for ac_func in getpagesize
7271do :
7272  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7273if test "x$ac_cv_func_getpagesize" = xyes; then :
7274  cat >>confdefs.h <<_ACEOF
7275#define HAVE_GETPAGESIZE 1
7276_ACEOF
7277
7278fi
7279done
7280
7281for ac_func in sysconf
7282do :
7283  ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
7284if test "x$ac_cv_func_sysconf" = xyes; then :
7285  cat >>confdefs.h <<_ACEOF
7286#define HAVE_SYSCONF 1
7287_ACEOF
7288
7289fi
7290done
7291
7292
7293for ac_func in access _access faccessat
7294do :
7295  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7297if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7298  cat >>confdefs.h <<_ACEOF
7299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7300_ACEOF
7301
7302fi
7303done
7304
7305
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7307$as_echo_n "checking for __builtin_expect... " >&6; }
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310
7311$ac_includes_default
7312int main(void) {
7313    (void)__builtin_expect(1,1);
7314    return 0;
7315}
7316
7317_ACEOF
7318if ac_fn_c_try_link "$LINENO"; then :
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320$as_echo "yes" >&6; }
7321
7322$as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
7323
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328rm -f core conftest.err conftest.$ac_objext \
7329    conftest$ac_exeext conftest.$ac_ext
7330
7331
7332for ac_header in intrin.h
7333do :
7334  ac_fn_c_check_header_mongrel "$LINENO" "intrin.h" "ac_cv_header_intrin_h" "$ac_includes_default"
7335if test "x$ac_cv_header_intrin_h" = xyes; then :
7336  cat >>confdefs.h <<_ACEOF
7337#define HAVE_INTRIN_H 1
7338_ACEOF
7339 ac_includes_default="$ac_includes_default
7340#include <intrin.h>"
7341
7342fi
7343
7344done
7345
7346
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
7348$as_echo_n "checking for __builtin_clz... " >&6; }
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351
7352$ac_includes_default
7353int main(void) {
7354    (void)__builtin_clz(0U);
7355    return 0;
7356}
7357
7358_ACEOF
7359if ac_fn_c_try_link "$LINENO"; then :
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361$as_echo "yes" >&6; }
7362
7363$as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
7364
7365else
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369rm -f core conftest.err conftest.$ac_objext \
7370    conftest$ac_exeext conftest.$ac_ext
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
7373$as_echo_n "checking for __builtin_clzl... " >&6; }
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376
7377$ac_includes_default
7378int main(void) {
7379    (void)__builtin_clzl(0UL);
7380    return 0;
7381}
7382
7383_ACEOF
7384if ac_fn_c_try_link "$LINENO"; then :
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7386$as_echo "yes" >&6; }
7387
7388$as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h
7389
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394rm -f core conftest.err conftest.$ac_objext \
7395    conftest$ac_exeext conftest.$ac_ext
7396
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
7398$as_echo_n "checking for __builtin_clzll... " >&6; }
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401
7402$ac_includes_default
7403int main(void) {
7404    (void)__builtin_clzll(0ULL);
7405    return 0;
7406}
7407
7408_ACEOF
7409if ac_fn_c_try_link "$LINENO"; then :
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7411$as_echo "yes" >&6; }
7412
7413$as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
7414
7415else
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420    conftest$ac_exeext conftest.$ac_ext
7421
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse" >&5
7423$as_echo_n "checking for _BitScanReverse... " >&6; }
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426
7427$ac_includes_default
7428int main(void) {
7429    (void)_BitScanReverse(0);
7430    return 0;
7431}
7432
7433_ACEOF
7434if ac_fn_c_try_link "$LINENO"; then :
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436$as_echo "yes" >&6; }
7437
7438$as_echo "#define HAVE__BITSCANREVERSE 1" >>confdefs.h
7439
7440else
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse64" >&5
7448$as_echo_n "checking for _BitScanReverse64... " >&6; }
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451
7452$ac_includes_default
7453int main(void) {
7454    (void)_BitScanReverse64(0);
7455    return 0;
7456}
7457
7458_ACEOF
7459if ac_fn_c_try_link "$LINENO"; then :
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7461$as_echo "yes" >&6; }
7462
7463$as_echo "#define HAVE__BITSCANREVERSE64 1" >>confdefs.h
7464
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469rm -f core conftest.err conftest.$ac_objext \
7470    conftest$ac_exeext conftest.$ac_ext
7471
7472
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sprintf" >&5
7474$as_echo_n "checking for sprintf... " >&6; }
7475if ${pa_cv_func_snprintf+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  pa_cv_func_snprintf=no
7479  for pa_try_func_snprintf in snprintf _snprintf
7480  do
7481  if test $pa_cv_func_snprintf = no; then :
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484
7485$ac_includes_default
7486const char *snprintf_test(int x);
7487const char *snprintf_test(int x)
7488{
7489    static char buf[256];
7490    size_t sz;
7491    sz = $pa_try_func_snprintf(buf, sizeof buf, "Hello = %d", x);
7492    return (sz < sizeof buf) ? buf : NULL;
7493}
7494
7495int main(void) {
7496    puts(snprintf_test(33));
7497    return 0;
7498}
7499
7500_ACEOF
7501if ac_fn_c_try_link "$LINENO"; then :
7502  pa_cv_func_snprintf=$pa_try_func_snprintf
7503fi
7504rm -f core conftest.err conftest.$ac_objext \
7505    conftest$ac_exeext conftest.$ac_ext
7506fi
7507 done
7508
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_snprintf" >&5
7511$as_echo "$pa_cv_func_snprintf" >&6; }
7512 if test $pa_cv_func_snprintf = no; then :
7513
7514else
7515
7516$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7517
7518	 if test $pa_cv_func_snprintf = snprintf; then :
7519
7520else
7521
7522cat >>confdefs.h <<_ACEOF
7523#define snprintf $pa_cv_func_snprintf
7524_ACEOF
7525
7526fi
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf" >&5
7529$as_echo_n "checking for vsnprintf... " >&6; }
7530if ${pa_cv_func_vsnprintf+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  pa_cv_func_vsnprintf=no
7534  for pa_try_func_vsnprintf in vsnprintf _vsnprintf
7535  do
7536  if test $pa_cv_func_vsnprintf = no; then :
7537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539
7540$ac_includes_default
7541const char *vsnprintf_test(const char *fmt, va_list va);
7542const char *vsnprintf_test(const char *fmt, va_list va)
7543{
7544    static char buf[256];
7545    size_t sz;
7546    sz = $pa_try_func_vsnprintf(buf, sizeof buf, fmt, va);
7547    return (sz < sizeof buf) ? buf : NULL;
7548}
7549
7550const char *vsnprintf_caller(const char *fmt, ...);
7551const char *vsnprintf_caller(const char *fmt, ...)
7552{
7553    const char *what;
7554    va_list va;
7555    va_start(va, fmt);
7556    what = vsnprintf_test(fmt, va);
7557    va_end(va);
7558    return what;
7559}
7560
7561int main(void) {
7562    puts(vsnprintf_caller("Hello = %d", 33));
7563    return 0;
7564}
7565
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"; then :
7568  pa_cv_func_vsnprintf=$pa_try_func_vsnprintf
7569fi
7570rm -f core conftest.err conftest.$ac_objext \
7571    conftest$ac_exeext conftest.$ac_ext
7572fi
7573 done
7574
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pa_cv_func_vsnprintf" >&5
7577$as_echo "$pa_cv_func_vsnprintf" >&6; }
7578 if test $pa_cv_func_vsnprintf = no; then :
7579
7580else
7581
7582$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7583
7584	 if test $pa_cv_func_vsnprintf = vsnprintf; then :
7585
7586else
7587
7588cat >>confdefs.h <<_ACEOF
7589#define vsnprintf $pa_cv_func_vsnprintf
7590_ACEOF
7591
7592fi
7593fi
7594for ac_func in strlcpy
7595do :
7596  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
7597if test "x$ac_cv_func_strlcpy" = xyes; then :
7598  cat >>confdefs.h <<_ACEOF
7599#define HAVE_STRLCPY 1
7600_ACEOF
7601
7602fi
7603done
7604
7605for ac_func in strrchrnul
7606do :
7607  ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
7608if test "x$ac_cv_func_strrchrnul" = xyes; then :
7609  cat >>confdefs.h <<_ACEOF
7610#define HAVE_STRRCHRNUL 1
7611_ACEOF
7612
7613fi
7614done
7615
7616
7617ac_fn_c_check_type "$LINENO" "struct _stati64" "ac_cv_type_struct__stati64" "$ac_includes_default"
7618if test "x$ac_cv_type_struct__stati64" = xyes; then :
7619
7620cat >>confdefs.h <<_ACEOF
7621#define HAVE_STRUCT__STATI64 1
7622_ACEOF
7623
7624
7625fi
7626
7627ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
7628if test "x$ac_cv_type_struct_stat" = xyes; then :
7629
7630cat >>confdefs.h <<_ACEOF
7631#define HAVE_STRUCT_STAT 1
7632_ACEOF
7633
7634
7635fi
7636
7637for ac_func in stat _stati64
7638do :
7639  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7642  cat >>confdefs.h <<_ACEOF
7643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7644_ACEOF
7645
7646fi
7647done
7648
7649for ac_func in fstat _fstati64
7650do :
7651  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7652ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7653if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7654  cat >>confdefs.h <<_ACEOF
7655#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7656_ACEOF
7657
7658fi
7659done
7660
7661for ac_func in S_ISREG
7662do :
7663  ac_fn_c_check_func "$LINENO" "S_ISREG" "ac_cv_func_S_ISREG"
7664if test "x$ac_cv_func_S_ISREG" = xyes; then :
7665  cat >>confdefs.h <<_ACEOF
7666#define HAVE_S_ISREG 1
7667_ACEOF
7668
7669fi
7670done
7671
7672
7673ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
7674if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
7675  ac_have_decl=1
7676else
7677  ac_have_decl=0
7678fi
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HAVE_DECL_STRCASECMP $ac_have_decl
7682_ACEOF
7683
7684ac_fn_c_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$ac_includes_default"
7685if test "x$ac_cv_have_decl_stricmp" = xyes; then :
7686  ac_have_decl=1
7687else
7688  ac_have_decl=0
7689fi
7690
7691cat >>confdefs.h <<_ACEOF
7692#define HAVE_DECL_STRICMP $ac_have_decl
7693_ACEOF
7694
7695ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
7696if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
7697  ac_have_decl=1
7698else
7699  ac_have_decl=0
7700fi
7701
7702cat >>confdefs.h <<_ACEOF
7703#define HAVE_DECL_STRNCASECMP $ac_have_decl
7704_ACEOF
7705
7706ac_fn_c_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$ac_includes_default"
7707if test "x$ac_cv_have_decl_strnicmp" = xyes; then :
7708  ac_have_decl=1
7709else
7710  ac_have_decl=0
7711fi
7712
7713cat >>confdefs.h <<_ACEOF
7714#define HAVE_DECL_STRNICMP $ac_have_decl
7715_ACEOF
7716
7717ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
7718if test "x$ac_cv_have_decl_strsep" = xyes; then :
7719  ac_have_decl=1
7720else
7721  ac_have_decl=0
7722fi
7723
7724cat >>confdefs.h <<_ACEOF
7725#define HAVE_DECL_STRSEP $ac_have_decl
7726_ACEOF
7727
7728ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
7729if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
7730  ac_have_decl=1
7731else
7732  ac_have_decl=0
7733fi
7734
7735cat >>confdefs.h <<_ACEOF
7736#define HAVE_DECL_STRLCPY $ac_have_decl
7737_ACEOF
7738
7739ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
7740if test "x$ac_cv_have_decl_strnlen" = xyes; then :
7741  ac_have_decl=1
7742else
7743  ac_have_decl=0
7744fi
7745
7746cat >>confdefs.h <<_ACEOF
7747#define HAVE_DECL_STRNLEN $ac_have_decl
7748_ACEOF
7749
7750ac_fn_c_check_decl "$LINENO" "strrchrnul" "ac_cv_have_decl_strrchrnul" "$ac_includes_default"
7751if test "x$ac_cv_have_decl_strrchrnul" = xyes; then :
7752  ac_have_decl=1
7753else
7754  ac_have_decl=0
7755fi
7756
7757cat >>confdefs.h <<_ACEOF
7758#define HAVE_DECL_STRRCHRNUL $ac_have_decl
7759_ACEOF
7760
7761
7762
7763  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7764if test "x$ac_cv_type_uintptr_t" = xyes; then :
7765
7766$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7767
7768else
7769  for ac_type in 'unsigned int' 'unsigned long int' \
7770	'unsigned long long int'; do
7771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773$ac_includes_default
7774int
7775main ()
7776{
7777static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7778test_array [0] = 0;
7779return test_array [0];
7780
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_compile "$LINENO"; then :
7786
7787cat >>confdefs.h <<_ACEOF
7788#define uintptr_t $ac_type
7789_ACEOF
7790
7791	  ac_type=
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794       test -z "$ac_type" && break
7795     done
7796fi
7797
7798
7799
7800
7801
7802 # Check whether --enable-pdf-compression was given.
7803if test "${enable_pdf_compression+set}" = set; then :
7804  enableval=$enable_pdf_compression; pa_arg_bool_enableval="$enableval"
7805else
7806  pa_arg_bool_enableval="yes"
7807fi
7808
7809
7810 if test x"$pa_arg_bool_enableval" != xno; then :
7811
7812else
7813  PDFOPT='-nocompress'
7814fi
7815
7816
7817
7818for ac_header in endian.h
7819do :
7820  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
7821if test "x$ac_cv_header_endian_h" = xyes; then :
7822  cat >>confdefs.h <<_ACEOF
7823#define HAVE_ENDIAN_H 1
7824_ACEOF
7825 ac_includes_default="$ac_includes_default
7826#include <endian.h>"
7827
7828fi
7829
7830done
7831
7832for ac_header in sys/endian.h
7833do :
7834  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
7835if test "x$ac_cv_header_sys_endian_h" = xyes; then :
7836  cat >>confdefs.h <<_ACEOF
7837#define HAVE_SYS_ENDIAN_H 1
7838_ACEOF
7839 ac_includes_default="$ac_includes_default
7840#include <sys/endian.h>"
7841
7842fi
7843
7844done
7845
7846for ac_header in machine/endian.h
7847do :
7848  ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
7849if test "x$ac_cv_header_machine_endian_h" = xyes; then :
7850  cat >>confdefs.h <<_ACEOF
7851#define HAVE_MACHINE_ENDIAN_H 1
7852_ACEOF
7853 ac_includes_default="$ac_includes_default
7854#include <machine/endian.h>"
7855
7856fi
7857
7858done
7859
7860
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le16" >&5
7862$as_echo_n "checking for cpu_to_le16... " >&6; }
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h.  */
7865
7866$ac_includes_default
7867int main(void) {
7868    (void)cpu_to_le16(0);
7869    return 0;
7870}
7871
7872_ACEOF
7873if ac_fn_c_try_link "$LINENO"; then :
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875$as_echo "yes" >&6; }
7876
7877$as_echo "#define HAVE_CPU_TO_LE16 1" >>confdefs.h
7878
7879else
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884    conftest$ac_exeext conftest.$ac_ext
7885
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le32" >&5
7887$as_echo_n "checking for cpu_to_le32... " >&6; }
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890
7891$ac_includes_default
7892int main(void) {
7893    (void)cpu_to_le32(0);
7894    return 0;
7895}
7896
7897_ACEOF
7898if ac_fn_c_try_link "$LINENO"; then :
7899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900$as_echo "yes" >&6; }
7901
7902$as_echo "#define HAVE_CPU_TO_LE32 1" >>confdefs.h
7903
7904else
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
7907fi
7908rm -f core conftest.err conftest.$ac_objext \
7909    conftest$ac_exeext conftest.$ac_ext
7910
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le64" >&5
7912$as_echo_n "checking for cpu_to_le64... " >&6; }
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915
7916$ac_includes_default
7917int main(void) {
7918    (void)cpu_to_le64(0);
7919    return 0;
7920}
7921
7922_ACEOF
7923if ac_fn_c_try_link "$LINENO"; then :
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925$as_echo "yes" >&6; }
7926
7927$as_echo "#define HAVE_CPU_TO_LE64 1" >>confdefs.h
7928
7929else
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933rm -f core conftest.err conftest.$ac_objext \
7934    conftest$ac_exeext conftest.$ac_ext
7935
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le16" >&5
7937$as_echo_n "checking for __cpu_to_le16... " >&6; }
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940
7941$ac_includes_default
7942int main(void) {
7943    (void)__cpu_to_le16(0);
7944    return 0;
7945}
7946
7947_ACEOF
7948if ac_fn_c_try_link "$LINENO"; then :
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950$as_echo "yes" >&6; }
7951
7952$as_echo "#define HAVE___CPU_TO_LE16 1" >>confdefs.h
7953
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958rm -f core conftest.err conftest.$ac_objext \
7959    conftest$ac_exeext conftest.$ac_ext
7960
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le32" >&5
7962$as_echo_n "checking for __cpu_to_le32... " >&6; }
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965
7966$ac_includes_default
7967int main(void) {
7968    (void)__cpu_to_le32(0);
7969    return 0;
7970}
7971
7972_ACEOF
7973if ac_fn_c_try_link "$LINENO"; then :
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7975$as_echo "yes" >&6; }
7976
7977$as_echo "#define HAVE___CPU_TO_LE32 1" >>confdefs.h
7978
7979else
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983rm -f core conftest.err conftest.$ac_objext \
7984    conftest$ac_exeext conftest.$ac_ext
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le64" >&5
7987$as_echo_n "checking for __cpu_to_le64... " >&6; }
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990
7991$ac_includes_default
7992int main(void) {
7993    (void)__cpu_to_le64(0);
7994    return 0;
7995}
7996
7997_ACEOF
7998if ac_fn_c_try_link "$LINENO"; then :
7999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8000$as_echo "yes" >&6; }
8001
8002$as_echo "#define HAVE___CPU_TO_LE64 1" >>confdefs.h
8003
8004else
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008rm -f core conftest.err conftest.$ac_objext \
8009    conftest$ac_exeext conftest.$ac_ext
8010
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole16" >&5
8012$as_echo_n "checking for htole16... " >&6; }
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015
8016$ac_includes_default
8017int main(void) {
8018    (void)htole16(0);
8019    return 0;
8020}
8021
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"; then :
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025$as_echo "yes" >&6; }
8026
8027$as_echo "#define HAVE_HTOLE16 1" >>confdefs.h
8028
8029else
8030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033rm -f core conftest.err conftest.$ac_objext \
8034    conftest$ac_exeext conftest.$ac_ext
8035
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole32" >&5
8037$as_echo_n "checking for htole32... " >&6; }
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h.  */
8040
8041$ac_includes_default
8042int main(void) {
8043    (void)htole32(0);
8044    return 0;
8045}
8046
8047_ACEOF
8048if ac_fn_c_try_link "$LINENO"; then :
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8050$as_echo "yes" >&6; }
8051
8052$as_echo "#define HAVE_HTOLE32 1" >>confdefs.h
8053
8054else
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057fi
8058rm -f core conftest.err conftest.$ac_objext \
8059    conftest$ac_exeext conftest.$ac_ext
8060
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole64" >&5
8062$as_echo_n "checking for htole64... " >&6; }
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h.  */
8065
8066$ac_includes_default
8067int main(void) {
8068    (void)htole64(0);
8069    return 0;
8070}
8071
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8075$as_echo "yes" >&6; }
8076
8077$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8078
8079else
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083rm -f core conftest.err conftest.$ac_objext \
8084    conftest$ac_exeext conftest.$ac_ext
8085
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_16" >&5
8087$as_echo_n "checking for __bswap_16... " >&6; }
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h.  */
8090
8091$ac_includes_default
8092int main(void) {
8093    (void)__bswap_16(0);
8094    return 0;
8095}
8096
8097_ACEOF
8098if ac_fn_c_try_link "$LINENO"; then :
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100$as_echo "yes" >&6; }
8101
8102$as_echo "#define HAVE___BSWAP_16 1" >>confdefs.h
8103
8104else
8105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106$as_echo "no" >&6; }
8107fi
8108rm -f core conftest.err conftest.$ac_objext \
8109    conftest$ac_exeext conftest.$ac_ext
8110
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_32" >&5
8112$as_echo_n "checking for __bswap_32... " >&6; }
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115
8116$ac_includes_default
8117int main(void) {
8118    (void)__bswap_32(0);
8119    return 0;
8120}
8121
8122_ACEOF
8123if ac_fn_c_try_link "$LINENO"; then :
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125$as_echo "yes" >&6; }
8126
8127$as_echo "#define HAVE___BSWAP_32 1" >>confdefs.h
8128
8129else
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134    conftest$ac_exeext conftest.$ac_ext
8135
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_64" >&5
8137$as_echo_n "checking for __bswap_64... " >&6; }
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140
8141$ac_includes_default
8142int main(void) {
8143    (void)__bswap_64(0);
8144    return 0;
8145}
8146
8147_ACEOF
8148if ac_fn_c_try_link "$LINENO"; then :
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8150$as_echo "yes" >&6; }
8151
8152$as_echo "#define HAVE___BSWAP_64 1" >>confdefs.h
8153
8154else
8155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157fi
8158rm -f core conftest.err conftest.$ac_objext \
8159    conftest$ac_exeext conftest.$ac_ext
8160
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
8162$as_echo_n "checking for __builtin_bswap16... " >&6; }
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165
8166$ac_includes_default
8167int main(void) {
8168    (void)__builtin_bswap16(0);
8169    return 0;
8170}
8171
8172_ACEOF
8173if ac_fn_c_try_link "$LINENO"; then :
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8175$as_echo "yes" >&6; }
8176
8177$as_echo "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
8178
8179else
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183rm -f core conftest.err conftest.$ac_objext \
8184    conftest$ac_exeext conftest.$ac_ext
8185
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
8187$as_echo_n "checking for __builtin_bswap32... " >&6; }
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190
8191$ac_includes_default
8192int main(void) {
8193    (void)__builtin_bswap32(0);
8194    return 0;
8195}
8196
8197_ACEOF
8198if ac_fn_c_try_link "$LINENO"; then :
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8200$as_echo "yes" >&6; }
8201
8202$as_echo "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
8203
8204else
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208rm -f core conftest.err conftest.$ac_objext \
8209    conftest$ac_exeext conftest.$ac_ext
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
8212$as_echo_n "checking for __builtin_bswap64... " >&6; }
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215
8216$ac_includes_default
8217int main(void) {
8218    (void)__builtin_bswap64(0);
8219    return 0;
8220}
8221
8222_ACEOF
8223if ac_fn_c_try_link "$LINENO"; then :
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225$as_echo "yes" >&6; }
8226
8227$as_echo "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
8228
8229else
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233rm -f core conftest.err conftest.$ac_objext \
8234    conftest$ac_exeext conftest.$ac_ext
8235
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ushort" >&5
8237$as_echo_n "checking for _byteswap_ushort... " >&6; }
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h.  */
8240
8241$ac_includes_default
8242int main(void) {
8243    (void)_byteswap_ushort(0);
8244    return 0;
8245}
8246
8247_ACEOF
8248if ac_fn_c_try_link "$LINENO"; then :
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250$as_echo "yes" >&6; }
8251
8252$as_echo "#define HAVE__BYTESWAP_USHORT 1" >>confdefs.h
8253
8254else
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
8258rm -f core conftest.err conftest.$ac_objext \
8259    conftest$ac_exeext conftest.$ac_ext
8260
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
8262$as_echo_n "checking for _byteswap_ulong... " >&6; }
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h.  */
8265
8266$ac_includes_default
8267int main(void) {
8268    (void)_byteswap_ulong(0);
8269    return 0;
8270}
8271
8272_ACEOF
8273if ac_fn_c_try_link "$LINENO"; then :
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8275$as_echo "yes" >&6; }
8276
8277$as_echo "#define HAVE__BYTESWAP_ULONG 1" >>confdefs.h
8278
8279else
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283rm -f core conftest.err conftest.$ac_objext \
8284    conftest$ac_exeext conftest.$ac_ext
8285
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
8287$as_echo_n "checking for _byteswap_uint64... " >&6; }
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290
8291$ac_includes_default
8292int main(void) {
8293    (void)_byteswap_uint64(0);
8294    return 0;
8295}
8296
8297_ACEOF
8298if ac_fn_c_try_link "$LINENO"; then :
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300$as_echo "yes" >&6; }
8301
8302$as_echo "#define HAVE__BYTESWAP_UINT64 1" >>confdefs.h
8303
8304else
8305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306$as_echo "no" >&6; }
8307fi
8308rm -f core conftest.err conftest.$ac_objext \
8309    conftest$ac_exeext conftest.$ac_ext
8310
8311
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
8313$as_echo_n "checking for __builtin_constant_p... " >&6; }
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316
8317$ac_includes_default
8318int main(void) {
8319    (void)__builtin_constant_p(0);
8320    return 0;
8321}
8322
8323_ACEOF
8324if ac_fn_c_try_link "$LINENO"; then :
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8326$as_echo "yes" >&6; }
8327
8328$as_echo "#define HAVE___BUILTIN_CONSTANT_P 1" >>confdefs.h
8329
8330else
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
8333fi
8334rm -f core conftest.err conftest.$ac_objext \
8335    conftest$ac_exeext conftest.$ac_ext
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr" >&5
8338$as_echo_n "checking for __builtin_choose_expr... " >&6; }
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340/* end confdefs.h.  */
8341
8342$ac_includes_default
8343int main(void) {
8344    (void)__builtin_choose_expr(0,1,2);
8345    return 0;
8346}
8347
8348_ACEOF
8349if ac_fn_c_try_link "$LINENO"; then :
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8351$as_echo "yes" >&6; }
8352
8353$as_echo "#define HAVE___BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
8354
8355else
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
8358fi
8359rm -f core conftest.err conftest.$ac_objext \
8360    conftest$ac_exeext conftest.$ac_ext
8361
8362
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=attributes" >&5
8364$as_echo_n "checking if $CC accepts -Werror=attributes... " >&6; }
8365 pa_add_flags__old_flags="$CFLAGS"
8366 CFLAGS="$CFLAGS -Werror=attributes"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h.  */
8369$ac_includes_default
8370int
8371main ()
8372{
8373printf("Hello, World!\n");
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_link "$LINENO"; then :
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380$as_echo "yes" >&6; }
8381  CFLAGS="$pa_add_flags__old_flags -Werror=attributes"
8382
8383$as_echo "#define CFLAGS_WERROR_ATTRIBUTES 1" >>confdefs.h
8384
8385
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389  CFLAGS="$pa_add_flags__old_flags"
8390
8391fi
8392rm -f core conftest.err conftest.$ac_objext \
8393    conftest$ac_exeext conftest.$ac_ext
8394
8395
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the noreturn function attribute" >&5
8399$as_echo_n "checking if $CC supports the noreturn function attribute... " >&6; }
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402
8403$ac_includes_default
8404extern void *  __attribute__((noreturn))
8405  bar(int);
8406void * foo(void);
8407void * foo(void)
8408{
8409	return
8410		bar(1);
8411}
8412
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416$as_echo "yes" >&6; }
8417
8418$as_echo "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
8419
8420else
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425
8426
8427
8428
8429
8430
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the noreturn function attribute on pointers" >&5
8432$as_echo_n "checking if $CC supports the noreturn function attribute on pointers... " >&6; }
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435
8436$ac_includes_default
8437extern void *  __attribute__((noreturn))
8438  (*bar1)(int);
8439void * foo1(void);
8440void * foo1(void)
8441{
8442	return
8443		bar1(1);
8444}
8445
8446typedef void *  __attribute__((noreturn))
8447  (*bar_t)(int);
8448extern bar_t bar2;
8449void * foo2(void);
8450void * foo2(void)
8451{
8452	return
8453		bar2(1);
8454}
8455
8456_ACEOF
8457if ac_fn_c_try_compile "$LINENO"; then :
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8459$as_echo "yes" >&6; }
8460
8461$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_NORETURN 1" >>confdefs.h
8462
8463else
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468
8469
8470
8471
8472
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the returns_nonnull function attribute" >&5
8475$as_echo_n "checking if $CC supports the returns_nonnull function attribute... " >&6; }
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478
8479$ac_includes_default
8480extern void *  __attribute__((returns_nonnull))
8481  bar(int);
8482void * foo(void);
8483void * foo(void)
8484{
8485	return
8486		bar(1);
8487}
8488
8489_ACEOF
8490if ac_fn_c_try_compile "$LINENO"; then :
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8492$as_echo "yes" >&6; }
8493
8494$as_echo "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
8495
8496else
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
8499fi
8500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501
8502
8503
8504
8505
8506
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the returns_nonnull function attribute on pointers" >&5
8508$as_echo_n "checking if $CC supports the returns_nonnull function attribute on pointers... " >&6; }
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511
8512$ac_includes_default
8513extern void *  __attribute__((returns_nonnull))
8514  (*bar1)(int);
8515void * foo1(void);
8516void * foo1(void)
8517{
8518	return
8519		bar1(1);
8520}
8521
8522typedef void *  __attribute__((returns_nonnull))
8523  (*bar_t)(int);
8524extern bar_t bar2;
8525void * foo2(void);
8526void * foo2(void)
8527{
8528	return
8529		bar2(1);
8530}
8531
8532_ACEOF
8533if ac_fn_c_try_compile "$LINENO"; then :
8534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535$as_echo "yes" >&6; }
8536
8537$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
8538
8539else
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544
8545
8546
8547
8548
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the malloc function attribute" >&5
8551$as_echo_n "checking if $CC supports the malloc function attribute... " >&6; }
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554
8555$ac_includes_default
8556extern void *  __attribute__((malloc))
8557  bar(int);
8558void * foo(void);
8559void * foo(void)
8560{
8561	return
8562		bar(1);
8563}
8564
8565_ACEOF
8566if ac_fn_c_try_compile "$LINENO"; then :
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8568$as_echo "yes" >&6; }
8569
8570$as_echo "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
8571
8572else
8573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577
8578
8579
8580
8581
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the malloc function attribute on pointers" >&5
8584$as_echo_n "checking if $CC supports the malloc function attribute on pointers... " >&6; }
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587
8588$ac_includes_default
8589extern void *  __attribute__((malloc))
8590  (*bar1)(int);
8591void * foo1(void);
8592void * foo1(void)
8593{
8594	return
8595		bar1(1);
8596}
8597
8598typedef void *  __attribute__((malloc))
8599  (*bar_t)(int);
8600extern bar_t bar2;
8601void * foo2(void);
8602void * foo2(void)
8603{
8604	return
8605		bar2(1);
8606}
8607
8608_ACEOF
8609if ac_fn_c_try_compile "$LINENO"; then :
8610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8611$as_echo "yes" >&6; }
8612
8613$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_MALLOC 1" >>confdefs.h
8614
8615else
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620
8621
8622
8623
8624
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size(1) function attribute" >&5
8627$as_echo_n "checking if $CC supports the alloc_size(1) function attribute... " >&6; }
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630
8631$ac_includes_default
8632extern void *  __attribute__((alloc_size(1)))
8633  bar(int);
8634void * foo(void);
8635void * foo(void)
8636{
8637	return
8638		bar(1);
8639}
8640
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8644$as_echo "yes" >&6; }
8645
8646$as_echo "#define HAVE_FUNC_ATTRIBUTE1_ALLOC_SIZE 1" >>confdefs.h
8647
8648else
8649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650$as_echo "no" >&6; }
8651fi
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653
8654
8655
8656
8657
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size(1) function attribute on pointers" >&5
8660$as_echo_n "checking if $CC supports the alloc_size(1) function attribute on pointers... " >&6; }
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h.  */
8663
8664$ac_includes_default
8665extern void *  __attribute__((alloc_size(1)))
8666  (*bar1)(int);
8667void * foo1(void);
8668void * foo1(void)
8669{
8670	return
8671		bar1(1);
8672}
8673
8674typedef void *  __attribute__((alloc_size(1)))
8675  (*bar_t)(int);
8676extern bar_t bar2;
8677void * foo2(void);
8678void * foo2(void)
8679{
8680	return
8681		bar2(1);
8682}
8683
8684_ACEOF
8685if ac_fn_c_try_compile "$LINENO"; then :
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687$as_echo "yes" >&6; }
8688
8689$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE1_ALLOC_SIZE 1" >>confdefs.h
8690
8691else
8692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
8694fi
8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696
8697
8698
8699
8700
8701
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size(1,2) function attribute" >&5
8703$as_echo_n "checking if $CC supports the alloc_size(1,2) function attribute... " >&6; }
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706
8707$ac_includes_default
8708extern void *  __attribute__((alloc_size(1,2)))
8709  bar(int);
8710void * foo(void);
8711void * foo(void)
8712{
8713	return
8714		bar(1);
8715}
8716
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"; then :
8719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8720$as_echo "yes" >&6; }
8721
8722$as_echo "#define HAVE_FUNC_ATTRIBUTE2_ALLOC_SIZE 1" >>confdefs.h
8723
8724else
8725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729
8730
8731
8732
8733
8734
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size(1,2) function attribute on pointers" >&5
8736$as_echo_n "checking if $CC supports the alloc_size(1,2) function attribute on pointers... " >&6; }
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739
8740$ac_includes_default
8741extern void *  __attribute__((alloc_size(1,2)))
8742  (*bar1)(int);
8743void * foo1(void);
8744void * foo1(void)
8745{
8746	return
8747		bar1(1);
8748}
8749
8750typedef void *  __attribute__((alloc_size(1,2)))
8751  (*bar_t)(int);
8752extern bar_t bar2;
8753void * foo2(void);
8754void * foo2(void)
8755{
8756	return
8757		bar2(1);
8758}
8759
8760_ACEOF
8761if ac_fn_c_try_compile "$LINENO"; then :
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8763$as_echo "yes" >&6; }
8764
8765$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE2_ALLOC_SIZE 1" >>confdefs.h
8766
8767else
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772
8773
8774
8775
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the sentinel function attribute" >&5
8779$as_echo_n "checking if $CC supports the sentinel function attribute... " >&6; }
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782
8783$ac_includes_default
8784extern void *  __attribute__((sentinel))
8785  bar(const char *, ...);
8786void * foo(void);
8787void * foo(void)
8788{
8789	return
8790		bar("a","b",NULL);
8791}
8792
8793_ACEOF
8794if ac_fn_c_try_compile "$LINENO"; then :
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8796$as_echo "yes" >&6; }
8797
8798$as_echo "#define HAVE_FUNC_ATTRIBUTE_SENTINEL 1" >>confdefs.h
8799
8800else
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805
8806
8807
8808
8809
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the sentinel function attribute on pointers" >&5
8812$as_echo_n "checking if $CC supports the sentinel function attribute on pointers... " >&6; }
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815
8816$ac_includes_default
8817extern void *  __attribute__((sentinel))
8818  (*bar1)(const char *, ...);
8819void * foo1(void);
8820void * foo1(void)
8821{
8822	return
8823		bar1("a","b",NULL);
8824}
8825
8826typedef void *  __attribute__((sentinel))
8827  (*bar_t)(const char *, ...);
8828extern bar_t bar2;
8829void * foo2(void);
8830void * foo2(void)
8831{
8832	return
8833		bar2("a","b",NULL);
8834}
8835
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8839$as_echo "yes" >&6; }
8840
8841$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_SENTINEL 1" >>confdefs.h
8842
8843else
8844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846fi
8847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848
8849
8850
8851
8852
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the format(printf,1,2) function attribute" >&5
8855$as_echo_n "checking if $CC supports the format(printf,1,2) function attribute... " >&6; }
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h.  */
8858
8859$ac_includes_default
8860extern int  __attribute__((format(printf,1,2)))
8861  bar(const char *, ...);
8862int foo(void);
8863int foo(void)
8864{
8865	return
8866		bar("%d",1);
8867}
8868
8869_ACEOF
8870if ac_fn_c_try_compile "$LINENO"; then :
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872$as_echo "yes" >&6; }
8873
8874$as_echo "#define HAVE_FUNC_ATTRIBUTE3_FORMAT 1" >>confdefs.h
8875
8876else
8877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878$as_echo "no" >&6; }
8879fi
8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881
8882
8883
8884
8885
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the format(printf,1,2) function attribute on pointers" >&5
8888$as_echo_n "checking if $CC supports the format(printf,1,2) function attribute on pointers... " >&6; }
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891
8892$ac_includes_default
8893extern int  __attribute__((format(printf,1,2)))
8894  (*bar1)(const char *, ...);
8895int foo1(void);
8896int foo1(void)
8897{
8898	return
8899		bar1("%d",1);
8900}
8901
8902typedef int  __attribute__((format(printf,1,2)))
8903  (*bar_t)(const char *, ...);
8904extern bar_t bar2;
8905int foo2(void);
8906int foo2(void)
8907{
8908	return
8909		bar2("%d",1);
8910}
8911
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"; then :
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8915$as_echo "yes" >&6; }
8916
8917$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE3_FORMAT 1" >>confdefs.h
8918
8919else
8920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924
8925
8926
8927
8928
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the const function attribute" >&5
8931$as_echo_n "checking if $CC supports the const function attribute... " >&6; }
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934
8935$ac_includes_default
8936extern void *  __attribute__((const))
8937  bar(int);
8938void * foo(void);
8939void * foo(void)
8940{
8941	return
8942		bar(1);
8943}
8944
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8948$as_echo "yes" >&6; }
8949
8950$as_echo "#define HAVE_FUNC_ATTRIBUTE_CONST 1" >>confdefs.h
8951
8952else
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954$as_echo "no" >&6; }
8955fi
8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957
8958
8959
8960
8961
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the const function attribute on pointers" >&5
8964$as_echo_n "checking if $CC supports the const function attribute on pointers... " >&6; }
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967
8968$ac_includes_default
8969extern void *  __attribute__((const))
8970  (*bar1)(int);
8971void * foo1(void);
8972void * foo1(void)
8973{
8974	return
8975		bar1(1);
8976}
8977
8978typedef void *  __attribute__((const))
8979  (*bar_t)(int);
8980extern bar_t bar2;
8981void * foo2(void);
8982void * foo2(void)
8983{
8984	return
8985		bar2(1);
8986}
8987
8988_ACEOF
8989if ac_fn_c_try_compile "$LINENO"; then :
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8991$as_echo "yes" >&6; }
8992
8993$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_CONST 1" >>confdefs.h
8994
8995else
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000
9001
9002
9003
9004
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the pure function attribute" >&5
9007$as_echo_n "checking if $CC supports the pure function attribute... " >&6; }
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010
9011$ac_includes_default
9012extern void *  __attribute__((pure))
9013  bar(int);
9014void * foo(void);
9015void * foo(void)
9016{
9017	return
9018		bar(1);
9019}
9020
9021_ACEOF
9022if ac_fn_c_try_compile "$LINENO"; then :
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024$as_echo "yes" >&6; }
9025
9026$as_echo "#define HAVE_FUNC_ATTRIBUTE_PURE 1" >>confdefs.h
9027
9028else
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033
9034
9035
9036
9037
9038
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the pure function attribute on pointers" >&5
9040$as_echo_n "checking if $CC supports the pure function attribute on pointers... " >&6; }
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043
9044$ac_includes_default
9045extern void *  __attribute__((pure))
9046  (*bar1)(int);
9047void * foo1(void);
9048void * foo1(void)
9049{
9050	return
9051		bar1(1);
9052}
9053
9054typedef void *  __attribute__((pure))
9055  (*bar_t)(int);
9056extern bar_t bar2;
9057void * foo2(void);
9058void * foo2(void)
9059{
9060	return
9061		bar2(1);
9062}
9063
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"; then :
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9067$as_echo "yes" >&6; }
9068
9069$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_PURE 1" >>confdefs.h
9070
9071else
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076
9077
9078
9079
9080
9081
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the cold function attribute" >&5
9083$as_echo_n "checking if $CC supports the cold function attribute... " >&6; }
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086
9087$ac_includes_default
9088extern void *  __attribute__((cold))
9089  bar(int);
9090void * foo(void);
9091void * foo(void)
9092{
9093	return
9094		bar(1);
9095}
9096
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9100$as_echo "yes" >&6; }
9101
9102$as_echo "#define HAVE_FUNC_ATTRIBUTE_COLD 1" >>confdefs.h
9103
9104else
9105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109
9110
9111
9112
9113
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the cold function attribute on pointers" >&5
9116$as_echo_n "checking if $CC supports the cold function attribute on pointers... " >&6; }
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119
9120$ac_includes_default
9121extern void *  __attribute__((cold))
9122  (*bar1)(int);
9123void * foo1(void);
9124void * foo1(void)
9125{
9126	return
9127		bar1(1);
9128}
9129
9130typedef void *  __attribute__((cold))
9131  (*bar_t)(int);
9132extern bar_t bar2;
9133void * foo2(void);
9134void * foo2(void)
9135{
9136	return
9137		bar2(1);
9138}
9139
9140_ACEOF
9141if ac_fn_c_try_compile "$LINENO"; then :
9142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9143$as_echo "yes" >&6; }
9144
9145$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_COLD 1" >>confdefs.h
9146
9147else
9148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149$as_echo "no" >&6; }
9150fi
9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152
9153
9154
9155
9156
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the unused function attribute" >&5
9159$as_echo_n "checking if $CC supports the unused function attribute... " >&6; }
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162
9163$ac_includes_default
9164extern void *  __attribute__((unused))
9165  bar(int);
9166void * foo(void);
9167void * foo(void)
9168{
9169	return
9170		bar(1);
9171}
9172
9173_ACEOF
9174if ac_fn_c_try_compile "$LINENO"; then :
9175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9176$as_echo "yes" >&6; }
9177
9178$as_echo "#define HAVE_FUNC_ATTRIBUTE_UNUSED 1" >>confdefs.h
9179
9180else
9181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
9183fi
9184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185
9186
9187
9188
9189
9190
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the unused function attribute on pointers" >&5
9192$as_echo_n "checking if $CC supports the unused function attribute on pointers... " >&6; }
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194/* end confdefs.h.  */
9195
9196$ac_includes_default
9197extern void *  __attribute__((unused))
9198  (*bar1)(int);
9199void * foo1(void);
9200void * foo1(void)
9201{
9202	return
9203		bar1(1);
9204}
9205
9206typedef void *  __attribute__((unused))
9207  (*bar_t)(int);
9208extern bar_t bar2;
9209void * foo2(void);
9210void * foo2(void)
9211{
9212	return
9213		bar2(1);
9214}
9215
9216_ACEOF
9217if ac_fn_c_try_compile "$LINENO"; then :
9218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9219$as_echo "yes" >&6; }
9220
9221$as_echo "#define HAVE_FUNC_PTR_ATTRIBUTE_UNUSED 1" >>confdefs.h
9222
9223else
9224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228
9229
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the error function attribute" >&5
9231$as_echo_n "checking if $CC supports the error function attribute... " >&6; }
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h.  */
9234
9235$ac_includes_default
9236extern void __attribute__((error("message"))) barf(void);
9237void foo(void);
9238void foo(void)
9239{
9240	if (0)
9241		barf();
9242}
9243
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9247$as_echo "yes" >&6; }
9248
9249$as_echo "#define HAVE_FUNC_ATTRIBUTE_ERROR 1" >>confdefs.h
9250
9251else
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253$as_echo "no" >&6; }
9254fi
9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256
9257
9258
9259
9260 # Check whether --enable-sections was given.
9261if test "${enable_sections+set}" = set; then :
9262  enableval=$enable_sections; pa_arg_bool_enableval="$enableval"
9263else
9264  pa_arg_bool_enableval="yes"
9265fi
9266
9267
9268 if test x"$pa_arg_bool_enableval" != xno; then :
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ffunction-sections" >&5
9270$as_echo_n "checking if $CC accepts -ffunction-sections... " >&6; }
9271 pa_add_flags__old_flags="$CFLAGS"
9272 CFLAGS="$CFLAGS -ffunction-sections"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275$ac_includes_default
9276int
9277main ()
9278{
9279printf("Hello, World!\n");
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"; then :
9285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9286$as_echo "yes" >&6; }
9287  CFLAGS="$pa_add_flags__old_flags -ffunction-sections"
9288
9289$as_echo "#define CFLAGS_FFUNCTION_SECTIONS 1" >>confdefs.h
9290
9291
9292else
9293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
9295  CFLAGS="$pa_add_flags__old_flags"
9296
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299    conftest$ac_exeext conftest.$ac_ext
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fdata-sections" >&5
9301$as_echo_n "checking if $CC accepts -fdata-sections... " >&6; }
9302 pa_add_flags__old_flags="$CFLAGS"
9303 CFLAGS="$CFLAGS -fdata-sections"
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306$ac_includes_default
9307int
9308main ()
9309{
9310printf("Hello, World!\n");
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_link "$LINENO"; then :
9316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9317$as_echo "yes" >&6; }
9318  CFLAGS="$pa_add_flags__old_flags -fdata-sections"
9319
9320$as_echo "#define CFLAGS_FDATA_SECTIONS 1" >>confdefs.h
9321
9322
9323else
9324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325$as_echo "no" >&6; }
9326  CFLAGS="$pa_add_flags__old_flags"
9327
9328fi
9329rm -f core conftest.err conftest.$ac_objext \
9330    conftest$ac_exeext conftest.$ac_ext
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wl,--gc-sections" >&5
9332$as_echo_n "checking if $CC accepts -Wl,--gc-sections... " >&6; }
9333 pa_add_flags__old_flags="$LDFLAGS"
9334 LDFLAGS="$LDFLAGS -Wl,--gc-sections"
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337$ac_includes_default
9338int
9339main ()
9340{
9341printf("Hello, World!\n");
9342  ;
9343  return 0;
9344}
9345_ACEOF
9346if ac_fn_c_try_link "$LINENO"; then :
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9348$as_echo "yes" >&6; }
9349  LDFLAGS="$pa_add_flags__old_flags -Wl,--gc-sections"
9350
9351$as_echo "#define LDFLAGS_WL_GC_SECTIONS 1" >>confdefs.h
9352
9353
9354else
9355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
9357  LDFLAGS="$pa_add_flags__old_flags"
9358
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361    conftest$ac_exeext conftest.$ac_ext
9362
9363fi
9364
9365
9366
9367
9368 # Check whether --enable-lto was given.
9369if test "${enable_lto+set}" = set; then :
9370  enableval=$enable_lto; pa_arg_bool_enableval="$enableval"
9371else
9372  pa_arg_bool_enableval="no"
9373fi
9374
9375
9376 if test x"$pa_arg_bool_enableval" != xno; then :
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
9378$as_echo_n "checking if $CC accepts -flto... " >&6; }
9379 pa_add_flags__old_flags="$CFLAGS"
9380 CFLAGS="$CFLAGS -flto"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383$ac_includes_default
9384int
9385main ()
9386{
9387printf("Hello, World!\n");
9388  ;
9389  return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9394$as_echo "yes" >&6; }
9395  CFLAGS="$pa_add_flags__old_flags -flto"
9396
9397$as_echo "#define CFLAGS_FLTO 1" >>confdefs.h
9398
9399
9400else
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402$as_echo "no" >&6; }
9403  CFLAGS="$pa_add_flags__old_flags"
9404
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407    conftest$ac_exeext conftest.$ac_ext
9408      ccbase=`echo "$CC" | awk '{ print $1; }'`
9409  for ac_prog in ${ccbase}-ar
9410do
9411  # Extract the first word of "$ac_prog", so it can be a program name with args.
9412set dummy $ac_prog; ac_word=$2
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414$as_echo_n "checking for $ac_word... " >&6; }
9415if ${ac_cv_prog_CC_AR+:} false; then :
9416  $as_echo_n "(cached) " >&6
9417else
9418  if test -n "$CC_AR"; then
9419  ac_cv_prog_CC_AR="$CC_AR" # Let the user override the test.
9420else
9421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $PATH
9423do
9424  IFS=$as_save_IFS
9425  test -z "$as_dir" && as_dir=.
9426    for ac_exec_ext in '' $ac_executable_extensions; do
9427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428    ac_cv_prog_CC_AR="$ac_prog"
9429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430    break 2
9431  fi
9432done
9433  done
9434IFS=$as_save_IFS
9435
9436fi
9437fi
9438CC_AR=$ac_cv_prog_CC_AR
9439if test -n "$CC_AR"; then
9440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_AR" >&5
9441$as_echo "$CC_AR" >&6; }
9442else
9443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444$as_echo "no" >&6; }
9445fi
9446
9447
9448  test -n "$CC_AR" && break
9449done
9450test -n "$CC_AR" || CC_AR="$ac_cv_prog_AR"
9451
9452  AR="$CC_AR"
9453  for ac_prog in ${ccbase}-ranlib
9454do
9455  # Extract the first word of "$ac_prog", so it can be a program name with args.
9456set dummy $ac_prog; ac_word=$2
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458$as_echo_n "checking for $ac_word... " >&6; }
9459if ${ac_cv_prog_CC_RANLIB+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  if test -n "$CC_RANLIB"; then
9463  ac_cv_prog_CC_RANLIB="$CC_RANLIB" # Let the user override the test.
9464else
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468  IFS=$as_save_IFS
9469  test -z "$as_dir" && as_dir=.
9470    for ac_exec_ext in '' $ac_executable_extensions; do
9471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9472    ac_cv_prog_CC_RANLIB="$ac_prog"
9473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474    break 2
9475  fi
9476done
9477  done
9478IFS=$as_save_IFS
9479
9480fi
9481fi
9482CC_RANLIB=$ac_cv_prog_CC_RANLIB
9483if test -n "$CC_RANLIB"; then
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_RANLIB" >&5
9485$as_echo "$CC_RANLIB" >&6; }
9486else
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
9489fi
9490
9491
9492  test -n "$CC_RANLIB" && break
9493done
9494test -n "$CC_RANLIB" || CC_RANLIB="$ac_cv_prog_RANLIB"
9495
9496  RANLIB="$CC_RANLIB"
9497fi
9498
9499
9500
9501
9502 # Check whether --enable-sanitizer was given.
9503if test "${enable_sanitizer+set}" = set; then :
9504  enableval=$enable_sanitizer; pa_arg_bool_enableval="$enableval"
9505else
9506  pa_arg_bool_enableval="no"
9507fi
9508
9509
9510 if test x"$pa_arg_bool_enableval" != xno; then :
9511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
9512$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
9513 pa_add_flags__old_flags="$CFLAGS"
9514 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517$ac_includes_default
9518int
9519main ()
9520{
9521printf("Hello, World!\n");
9522  ;
9523  return 0;
9524}
9525_ACEOF
9526if ac_fn_c_try_link "$LINENO"; then :
9527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9528$as_echo "yes" >&6; }
9529  CFLAGS="$pa_add_flags__old_flags -fno-omit-frame-pointer"
9530
9531$as_echo "#define CFLAGS_FNO_OMIT_FRAME_POINTER 1" >>confdefs.h
9532
9533
9534else
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536$as_echo "no" >&6; }
9537  CFLAGS="$pa_add_flags__old_flags"
9538
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541    conftest$ac_exeext conftest.$ac_ext
9542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fsanitize=address" >&5
9543$as_echo_n "checking if $CC accepts -fsanitize=address... " >&6; }
9544 pa_add_flags__old_flags="$CFLAGS"
9545 CFLAGS="$CFLAGS -fsanitize=address"
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547/* end confdefs.h.  */
9548$ac_includes_default
9549int
9550main ()
9551{
9552printf("Hello, World!\n");
9553  ;
9554  return 0;
9555}
9556_ACEOF
9557if ac_fn_c_try_link "$LINENO"; then :
9558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559$as_echo "yes" >&6; }
9560  CFLAGS="$pa_add_flags__old_flags -fsanitize=address"
9561
9562$as_echo "#define CFLAGS_FSANITIZE_ADDRESS 1" >>confdefs.h
9563
9564
9565else
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567$as_echo "no" >&6; }
9568  CFLAGS="$pa_add_flags__old_flags"
9569
9570fi
9571rm -f core conftest.err conftest.$ac_objext \
9572    conftest$ac_exeext conftest.$ac_ext
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fsanitize=undefined" >&5
9574$as_echo_n "checking if $CC accepts -fsanitize=undefined... " >&6; }
9575 pa_add_flags__old_flags="$CFLAGS"
9576 CFLAGS="$CFLAGS -fsanitize=undefined"
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579$ac_includes_default
9580int
9581main ()
9582{
9583printf("Hello, World!\n");
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590$as_echo "yes" >&6; }
9591  CFLAGS="$pa_add_flags__old_flags -fsanitize=undefined"
9592
9593$as_echo "#define CFLAGS_FSANITIZE_UNDEFINED 1" >>confdefs.h
9594
9595
9596else
9597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598$as_echo "no" >&6; }
9599  CFLAGS="$pa_add_flags__old_flags"
9600
9601fi
9602rm -f core conftest.err conftest.$ac_objext \
9603    conftest$ac_exeext conftest.$ac_ext
9604fi
9605
9606
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fvisibility=hidden" >&5
9608$as_echo_n "checking if $CC accepts -fvisibility=hidden... " >&6; }
9609 pa_add_flags__old_flags="$CFLAGS"
9610 CFLAGS="$CFLAGS -fvisibility=hidden"
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613$ac_includes_default
9614int
9615main ()
9616{
9617printf("Hello, World!\n");
9618  ;
9619  return 0;
9620}
9621_ACEOF
9622if ac_fn_c_try_link "$LINENO"; then :
9623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9624$as_echo "yes" >&6; }
9625  CFLAGS="$pa_add_flags__old_flags -fvisibility=hidden"
9626
9627$as_echo "#define CFLAGS_FVISIBILITY_HIDDEN 1" >>confdefs.h
9628
9629
9630else
9631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
9633  CFLAGS="$pa_add_flags__old_flags"
9634
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wall" >&5
9640$as_echo_n "checking if $CC accepts -Wall... " >&6; }
9641 pa_add_flags__old_flags="$CFLAGS"
9642 CFLAGS="$CFLAGS -Wall"
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h.  */
9645$ac_includes_default
9646int
9647main ()
9648{
9649printf("Hello, World!\n");
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"; then :
9655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9656$as_echo "yes" >&6; }
9657  CFLAGS="$pa_add_flags__old_flags -Wall"
9658
9659$as_echo "#define CFLAGS_WALL 1" >>confdefs.h
9660
9661
9662else
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
9665  CFLAGS="$pa_add_flags__old_flags"
9666
9667fi
9668rm -f core conftest.err conftest.$ac_objext \
9669    conftest$ac_exeext conftest.$ac_ext
9670
9671
9672 # Check whether --enable-pedantic was given.
9673if test "${enable_pedantic+set}" = set; then :
9674  enableval=$enable_pedantic; pa_arg_bool_enableval="$enableval"
9675else
9676  pa_arg_bool_enableval="yes"
9677fi
9678
9679
9680 if test x"$pa_arg_bool_enableval" != xno; then :
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -W" >&5
9682$as_echo_n "checking if $CC accepts -W... " >&6; }
9683 pa_add_flags__old_flags="$CFLAGS"
9684 CFLAGS="$CFLAGS -W"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687$ac_includes_default
9688int
9689main ()
9690{
9691printf("Hello, World!\n");
9692  ;
9693  return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698$as_echo "yes" >&6; }
9699  CFLAGS="$pa_add_flags__old_flags -W"
9700
9701$as_echo "#define CFLAGS_W 1" >>confdefs.h
9702
9703
9704else
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706$as_echo "no" >&6; }
9707  CFLAGS="$pa_add_flags__old_flags"
9708
9709fi
9710rm -f core conftest.err conftest.$ac_objext \
9711    conftest$ac_exeext conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -pedantic" >&5
9713$as_echo_n "checking if $CC accepts -pedantic... " >&6; }
9714 pa_add_flags__old_flags="$CFLAGS"
9715 CFLAGS="$CFLAGS -pedantic"
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717/* end confdefs.h.  */
9718$ac_includes_default
9719int
9720main ()
9721{
9722printf("Hello, World!\n");
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727if ac_fn_c_try_link "$LINENO"; then :
9728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729$as_echo "yes" >&6; }
9730  CFLAGS="$pa_add_flags__old_flags -pedantic"
9731
9732$as_echo "#define CFLAGS_PEDANTIC 1" >>confdefs.h
9733
9734
9735else
9736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737$as_echo "no" >&6; }
9738  CFLAGS="$pa_add_flags__old_flags"
9739
9740fi
9741rm -f core conftest.err conftest.$ac_objext \
9742    conftest$ac_exeext conftest.$ac_ext
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wc90-c99-compat" >&5
9744$as_echo_n "checking if $CC accepts -Wc90-c99-compat... " >&6; }
9745 pa_add_flags__old_flags="$CFLAGS"
9746 CFLAGS="$CFLAGS -Wc90-c99-compat"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749$ac_includes_default
9750int
9751main ()
9752{
9753printf("Hello, World!\n");
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_link "$LINENO"; then :
9759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9760$as_echo "yes" >&6; }
9761  CFLAGS="$pa_add_flags__old_flags -Wc90-c99-compat"
9762
9763$as_echo "#define CFLAGS_WC90_C99_COMPAT 1" >>confdefs.h
9764
9765
9766else
9767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768$as_echo "no" >&6; }
9769  CFLAGS="$pa_add_flags__old_flags"
9770
9771fi
9772rm -f core conftest.err conftest.$ac_objext \
9773    conftest$ac_exeext conftest.$ac_ext
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wc99-compat" >&5
9775$as_echo_n "checking if $CC accepts -Wc99-compat... " >&6; }
9776 pa_add_flags__old_flags="$CFLAGS"
9777 CFLAGS="$CFLAGS -Wc99-compat"
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779/* end confdefs.h.  */
9780$ac_includes_default
9781int
9782main ()
9783{
9784printf("Hello, World!\n");
9785  ;
9786  return 0;
9787}
9788_ACEOF
9789if ac_fn_c_try_link "$LINENO"; then :
9790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9791$as_echo "yes" >&6; }
9792  CFLAGS="$pa_add_flags__old_flags -Wc99-compat"
9793
9794$as_echo "#define CFLAGS_WC99_COMPAT 1" >>confdefs.h
9795
9796
9797else
9798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
9800  CFLAGS="$pa_add_flags__old_flags"
9801
9802fi
9803rm -f core conftest.err conftest.$ac_objext \
9804    conftest$ac_exeext conftest.$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wc99-extensions" >&5
9806$as_echo_n "checking if $CC accepts -Wc99-extensions... " >&6; }
9807 pa_add_flags__old_flags="$CFLAGS"
9808 CFLAGS="$CFLAGS -Wc99-extensions"
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810/* end confdefs.h.  */
9811$ac_includes_default
9812int
9813main ()
9814{
9815printf("Hello, World!\n");
9816  ;
9817  return 0;
9818}
9819_ACEOF
9820if ac_fn_c_try_link "$LINENO"; then :
9821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9822$as_echo "yes" >&6; }
9823  CFLAGS="$pa_add_flags__old_flags -Wc99-extensions"
9824
9825$as_echo "#define CFLAGS_WC99_EXTENSIONS 1" >>confdefs.h
9826
9827
9828else
9829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830$as_echo "no" >&6; }
9831  CFLAGS="$pa_add_flags__old_flags"
9832
9833fi
9834rm -f core conftest.err conftest.$ac_objext \
9835    conftest$ac_exeext conftest.$ac_ext
9836
9837fi
9838
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpedantic-ms-format" >&5
9840$as_echo_n "checking if $CC accepts -Wpedantic-ms-format... " >&6; }
9841 pa_add_flags__old_flags="$CFLAGS"
9842 CFLAGS="$CFLAGS -Wpedantic-ms-format"
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845$ac_includes_default
9846int
9847main ()
9848{
9849printf("Hello, World!\n");
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"; then :
9855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9856$as_echo "yes" >&6; }
9857  CFLAGS="$pa_add_flags__old_flags -Wno-pedantic-ms-format"
9858
9859$as_echo "#define CFLAGS_WPEDANTIC_MS_FORMAT 1" >>confdefs.h
9860
9861
9862else
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865  CFLAGS="$pa_add_flags__old_flags"
9866
9867fi
9868rm -f core conftest.err conftest.$ac_objext \
9869    conftest$ac_exeext conftest.$ac_ext
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wlong-long" >&5
9871$as_echo_n "checking if $CC accepts -Wlong-long... " >&6; }
9872 pa_add_flags__old_flags="$CFLAGS"
9873 CFLAGS="$CFLAGS -Wlong-long"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h.  */
9876$ac_includes_default
9877int
9878main ()
9879{
9880printf("Hello, World!\n");
9881  ;
9882  return 0;
9883}
9884_ACEOF
9885if ac_fn_c_try_link "$LINENO"; then :
9886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9887$as_echo "yes" >&6; }
9888  CFLAGS="$pa_add_flags__old_flags -Wno-long-long"
9889
9890$as_echo "#define CFLAGS_WLONG_LONG 1" >>confdefs.h
9891
9892
9893else
9894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896  CFLAGS="$pa_add_flags__old_flags"
9897
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900    conftest$ac_exeext conftest.$ac_ext
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wstringop-truncation" >&5
9902$as_echo_n "checking if $CC accepts -Wstringop-truncation... " >&6; }
9903 pa_add_flags__old_flags="$CFLAGS"
9904 CFLAGS="$CFLAGS -Wstringop-truncation"
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906/* end confdefs.h.  */
9907$ac_includes_default
9908int
9909main ()
9910{
9911printf("Hello, World!\n");
9912  ;
9913  return 0;
9914}
9915_ACEOF
9916if ac_fn_c_try_link "$LINENO"; then :
9917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9918$as_echo "yes" >&6; }
9919  CFLAGS="$pa_add_flags__old_flags -Wno-stringop-truncation"
9920
9921$as_echo "#define CFLAGS_WSTRINGOP_TRUNCATION 1" >>confdefs.h
9922
9923
9924else
9925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927  CFLAGS="$pa_add_flags__old_flags"
9928
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931    conftest$ac_exeext conftest.$ac_ext
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshift-negative-value" >&5
9933$as_echo_n "checking if $CC accepts -Wshift-negative-value... " >&6; }
9934 pa_add_flags__old_flags="$CFLAGS"
9935 CFLAGS="$CFLAGS -Wshift-negative-value"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h.  */
9938$ac_includes_default
9939int
9940main ()
9941{
9942printf("Hello, World!\n");
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947if ac_fn_c_try_link "$LINENO"; then :
9948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9949$as_echo "yes" >&6; }
9950  CFLAGS="$pa_add_flags__old_flags -Wno-shift-negative-value"
9951
9952$as_echo "#define CFLAGS_WSHIFT_NEGATIVE_VALUE 1" >>confdefs.h
9953
9954
9955else
9956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957$as_echo "no" >&6; }
9958  CFLAGS="$pa_add_flags__old_flags"
9959
9960fi
9961rm -f core conftest.err conftest.$ac_objext \
9962    conftest$ac_exeext conftest.$ac_ext
9963
9964
9965
9966 # Check whether --enable-werror was given.
9967if test "${enable_werror+set}" = set; then :
9968  enableval=$enable_werror; pa_arg_bool_enableval="$enableval"
9969else
9970  pa_arg_bool_enableval="no"
9971fi
9972
9973
9974 if test x"$pa_arg_bool_enableval" != xno; then :
9975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
9976$as_echo_n "checking if $CC accepts -Werror... " >&6; }
9977 pa_add_flags__old_flags="$CFLAGS"
9978 CFLAGS="$CFLAGS -Werror"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981$ac_includes_default
9982int
9983main ()
9984{
9985printf("Hello, World!\n");
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_link "$LINENO"; then :
9991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992$as_echo "yes" >&6; }
9993  CFLAGS="$pa_add_flags__old_flags -Werror"
9994
9995$as_echo "#define CFLAGS_WERROR 1" >>confdefs.h
9996
9997
9998else
9999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000$as_echo "no" >&6; }
10001  CFLAGS="$pa_add_flags__old_flags"
10002
10003fi
10004rm -f core conftest.err conftest.$ac_objext \
10005    conftest$ac_exeext conftest.$ac_ext
10006else
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit" >&5
10008$as_echo_n "checking if $CC accepts -Werror=implicit... " >&6; }
10009 pa_add_flags__old_flags="$CFLAGS"
10010 CFLAGS="$CFLAGS -Werror=implicit"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013$ac_includes_default
10014int
10015main ()
10016{
10017printf("Hello, World!\n");
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10024$as_echo "yes" >&6; }
10025  CFLAGS="$pa_add_flags__old_flags -Werror=implicit"
10026
10027$as_echo "#define CFLAGS_WERROR_IMPLICIT 1" >>confdefs.h
10028
10029
10030else
10031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
10033  CFLAGS="$pa_add_flags__old_flags"
10034
10035fi
10036rm -f core conftest.err conftest.$ac_objext \
10037    conftest$ac_exeext conftest.$ac_ext
10038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-braces" >&5
10039$as_echo_n "checking if $CC accepts -Werror=missing-braces... " >&6; }
10040 pa_add_flags__old_flags="$CFLAGS"
10041 CFLAGS="$CFLAGS -Werror=missing-braces"
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043/* end confdefs.h.  */
10044$ac_includes_default
10045int
10046main ()
10047{
10048printf("Hello, World!\n");
10049  ;
10050  return 0;
10051}
10052_ACEOF
10053if ac_fn_c_try_link "$LINENO"; then :
10054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10055$as_echo "yes" >&6; }
10056  CFLAGS="$pa_add_flags__old_flags -Werror=missing-braces"
10057
10058$as_echo "#define CFLAGS_WERROR_MISSING_BRACES 1" >>confdefs.h
10059
10060
10061else
10062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063$as_echo "no" >&6; }
10064  CFLAGS="$pa_add_flags__old_flags"
10065
10066fi
10067rm -f core conftest.err conftest.$ac_objext \
10068    conftest$ac_exeext conftest.$ac_ext
10069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=return-type" >&5
10070$as_echo_n "checking if $CC accepts -Werror=return-type... " >&6; }
10071 pa_add_flags__old_flags="$CFLAGS"
10072 CFLAGS="$CFLAGS -Werror=return-type"
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075$ac_includes_default
10076int
10077main ()
10078{
10079printf("Hello, World!\n");
10080  ;
10081  return 0;
10082}
10083_ACEOF
10084if ac_fn_c_try_link "$LINENO"; then :
10085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10086$as_echo "yes" >&6; }
10087  CFLAGS="$pa_add_flags__old_flags -Werror=return-type"
10088
10089$as_echo "#define CFLAGS_WERROR_RETURN_TYPE 1" >>confdefs.h
10090
10091
10092else
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
10095  CFLAGS="$pa_add_flags__old_flags"
10096
10097fi
10098rm -f core conftest.err conftest.$ac_objext \
10099    conftest$ac_exeext conftest.$ac_ext
10100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=trigraphs" >&5
10101$as_echo_n "checking if $CC accepts -Werror=trigraphs... " >&6; }
10102 pa_add_flags__old_flags="$CFLAGS"
10103 CFLAGS="$CFLAGS -Werror=trigraphs"
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106$ac_includes_default
10107int
10108main ()
10109{
10110printf("Hello, World!\n");
10111  ;
10112  return 0;
10113}
10114_ACEOF
10115if ac_fn_c_try_link "$LINENO"; then :
10116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10117$as_echo "yes" >&6; }
10118  CFLAGS="$pa_add_flags__old_flags -Werror=trigraphs"
10119
10120$as_echo "#define CFLAGS_WERROR_TRIGRAPHS 1" >>confdefs.h
10121
10122
10123else
10124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125$as_echo "no" >&6; }
10126  CFLAGS="$pa_add_flags__old_flags"
10127
10128fi
10129rm -f core conftest.err conftest.$ac_objext \
10130    conftest$ac_exeext conftest.$ac_ext
10131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=pointer-arith" >&5
10132$as_echo_n "checking if $CC accepts -Werror=pointer-arith... " >&6; }
10133 pa_add_flags__old_flags="$CFLAGS"
10134 CFLAGS="$CFLAGS -Werror=pointer-arith"
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h.  */
10137$ac_includes_default
10138int
10139main ()
10140{
10141printf("Hello, World!\n");
10142  ;
10143  return 0;
10144}
10145_ACEOF
10146if ac_fn_c_try_link "$LINENO"; then :
10147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148$as_echo "yes" >&6; }
10149  CFLAGS="$pa_add_flags__old_flags -Werror=pointer-arith"
10150
10151$as_echo "#define CFLAGS_WERROR_POINTER_ARITH 1" >>confdefs.h
10152
10153
10154else
10155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156$as_echo "no" >&6; }
10157  CFLAGS="$pa_add_flags__old_flags"
10158
10159fi
10160rm -f core conftest.err conftest.$ac_objext \
10161    conftest$ac_exeext conftest.$ac_ext
10162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=strict-prototypes" >&5
10163$as_echo_n "checking if $CC accepts -Werror=strict-prototypes... " >&6; }
10164 pa_add_flags__old_flags="$CFLAGS"
10165 CFLAGS="$CFLAGS -Werror=strict-prototypes"
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168$ac_includes_default
10169int
10170main ()
10171{
10172printf("Hello, World!\n");
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"; then :
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179$as_echo "yes" >&6; }
10180  CFLAGS="$pa_add_flags__old_flags -Werror=strict-prototypes"
10181
10182$as_echo "#define CFLAGS_WERROR_STRICT_PROTOTYPES 1" >>confdefs.h
10183
10184
10185else
10186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187$as_echo "no" >&6; }
10188  CFLAGS="$pa_add_flags__old_flags"
10189
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192    conftest$ac_exeext conftest.$ac_ext
10193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-prototypes" >&5
10194$as_echo_n "checking if $CC accepts -Werror=missing-prototypes... " >&6; }
10195 pa_add_flags__old_flags="$CFLAGS"
10196 CFLAGS="$CFLAGS -Werror=missing-prototypes"
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199$ac_includes_default
10200int
10201main ()
10202{
10203printf("Hello, World!\n");
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"; then :
10209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10210$as_echo "yes" >&6; }
10211  CFLAGS="$pa_add_flags__old_flags -Werror=missing-prototypes"
10212
10213$as_echo "#define CFLAGS_WERROR_MISSING_PROTOTYPES 1" >>confdefs.h
10214
10215
10216else
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218$as_echo "no" >&6; }
10219  CFLAGS="$pa_add_flags__old_flags"
10220
10221fi
10222rm -f core conftest.err conftest.$ac_objext \
10223    conftest$ac_exeext conftest.$ac_ext
10224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-declarations" >&5
10225$as_echo_n "checking if $CC accepts -Werror=missing-declarations... " >&6; }
10226 pa_add_flags__old_flags="$CFLAGS"
10227 CFLAGS="$CFLAGS -Werror=missing-declarations"
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229/* end confdefs.h.  */
10230$ac_includes_default
10231int
10232main ()
10233{
10234printf("Hello, World!\n");
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239if ac_fn_c_try_link "$LINENO"; then :
10240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241$as_echo "yes" >&6; }
10242  CFLAGS="$pa_add_flags__old_flags -Werror=missing-declarations"
10243
10244$as_echo "#define CFLAGS_WERROR_MISSING_DECLARATIONS 1" >>confdefs.h
10245
10246
10247else
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
10250  CFLAGS="$pa_add_flags__old_flags"
10251
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254    conftest$ac_exeext conftest.$ac_ext
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=comment" >&5
10256$as_echo_n "checking if $CC accepts -Werror=comment... " >&6; }
10257 pa_add_flags__old_flags="$CFLAGS"
10258 CFLAGS="$CFLAGS -Werror=comment"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261$ac_includes_default
10262int
10263main ()
10264{
10265printf("Hello, World!\n");
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_link "$LINENO"; then :
10271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272$as_echo "yes" >&6; }
10273  CFLAGS="$pa_add_flags__old_flags -Werror=comment"
10274
10275$as_echo "#define CFLAGS_WERROR_COMMENT 1" >>confdefs.h
10276
10277
10278else
10279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280$as_echo "no" >&6; }
10281  CFLAGS="$pa_add_flags__old_flags"
10282
10283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285    conftest$ac_exeext conftest.$ac_ext
10286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=vla" >&5
10287$as_echo_n "checking if $CC accepts -Werror=vla... " >&6; }
10288 pa_add_flags__old_flags="$CFLAGS"
10289 CFLAGS="$CFLAGS -Werror=vla"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292$ac_includes_default
10293int
10294main ()
10295{
10296printf("Hello, World!\n");
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10303$as_echo "yes" >&6; }
10304  CFLAGS="$pa_add_flags__old_flags -Werror=vla"
10305
10306$as_echo "#define CFLAGS_WERROR_VLA 1" >>confdefs.h
10307
10308
10309else
10310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311$as_echo "no" >&6; }
10312  CFLAGS="$pa_add_flags__old_flags"
10313
10314fi
10315rm -f core conftest.err conftest.$ac_objext \
10316    conftest$ac_exeext conftest.$ac_ext
10317
10318fi
10319
10320
10321
10322
10323 # Check whether --enable-suggestions was given.
10324if test "${enable_suggestions+set}" = set; then :
10325  enableval=$enable_suggestions; pa_arg_bool_enableval="$enableval"
10326else
10327  pa_arg_bool_enableval="no"
10328fi
10329
10330
10331 if test x"$pa_arg_bool_enableval" != xno; then :
10332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=pure" >&5
10333$as_echo_n "checking if $CC accepts -Wsuggest-attribute=pure... " >&6; }
10334 pa_add_flags__old_flags="$CFLAGS"
10335 CFLAGS="$CFLAGS -Wsuggest-attribute=pure"
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338$ac_includes_default
10339int
10340main ()
10341{
10342printf("Hello, World!\n");
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347if ac_fn_c_try_link "$LINENO"; then :
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10349$as_echo "yes" >&6; }
10350  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=pure"
10351
10352$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_PURE 1" >>confdefs.h
10353
10354
10355else
10356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357$as_echo "no" >&6; }
10358  CFLAGS="$pa_add_flags__old_flags"
10359
10360fi
10361rm -f core conftest.err conftest.$ac_objext \
10362    conftest$ac_exeext conftest.$ac_ext
10363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=const" >&5
10364$as_echo_n "checking if $CC accepts -Wsuggest-attribute=const... " >&6; }
10365 pa_add_flags__old_flags="$CFLAGS"
10366 CFLAGS="$CFLAGS -Wsuggest-attribute=const"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369$ac_includes_default
10370int
10371main ()
10372{
10373printf("Hello, World!\n");
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10380$as_echo "yes" >&6; }
10381  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=const"
10382
10383$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_CONST 1" >>confdefs.h
10384
10385
10386else
10387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
10389  CFLAGS="$pa_add_flags__old_flags"
10390
10391fi
10392rm -f core conftest.err conftest.$ac_objext \
10393    conftest$ac_exeext conftest.$ac_ext
10394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=noreturn" >&5
10395$as_echo_n "checking if $CC accepts -Wsuggest-attribute=noreturn... " >&6; }
10396 pa_add_flags__old_flags="$CFLAGS"
10397 CFLAGS="$CFLAGS -Wsuggest-attribute=noreturn"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400$ac_includes_default
10401int
10402main ()
10403{
10404printf("Hello, World!\n");
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409if ac_fn_c_try_link "$LINENO"; then :
10410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10411$as_echo "yes" >&6; }
10412  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=noreturn"
10413
10414$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_NORETURN 1" >>confdefs.h
10415
10416
10417else
10418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420  CFLAGS="$pa_add_flags__old_flags"
10421
10422fi
10423rm -f core conftest.err conftest.$ac_objext \
10424    conftest$ac_exeext conftest.$ac_ext
10425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=format" >&5
10426$as_echo_n "checking if $CC accepts -Wsuggest-attribute=format... " >&6; }
10427 pa_add_flags__old_flags="$CFLAGS"
10428 CFLAGS="$CFLAGS -Wsuggest-attribute=format"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h.  */
10431$ac_includes_default
10432int
10433main ()
10434{
10435printf("Hello, World!\n");
10436  ;
10437  return 0;
10438}
10439_ACEOF
10440if ac_fn_c_try_link "$LINENO"; then :
10441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442$as_echo "yes" >&6; }
10443  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=format"
10444
10445$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_FORMAT 1" >>confdefs.h
10446
10447
10448else
10449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450$as_echo "no" >&6; }
10451  CFLAGS="$pa_add_flags__old_flags"
10452
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=cold" >&5
10457$as_echo_n "checking if $CC accepts -Wsuggest-attribute=cold... " >&6; }
10458 pa_add_flags__old_flags="$CFLAGS"
10459 CFLAGS="$CFLAGS -Wsuggest-attribute=cold"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462$ac_includes_default
10463int
10464main ()
10465{
10466printf("Hello, World!\n");
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10473$as_echo "yes" >&6; }
10474  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=cold"
10475
10476$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_COLD 1" >>confdefs.h
10477
10478
10479else
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482  CFLAGS="$pa_add_flags__old_flags"
10483
10484fi
10485rm -f core conftest.err conftest.$ac_objext \
10486    conftest$ac_exeext conftest.$ac_ext
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wsuggest-attribute=malloc" >&5
10488$as_echo_n "checking if $CC accepts -Wsuggest-attribute=malloc... " >&6; }
10489 pa_add_flags__old_flags="$CFLAGS"
10490 CFLAGS="$CFLAGS -Wsuggest-attribute=malloc"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493$ac_includes_default
10494int
10495main ()
10496{
10497printf("Hello, World!\n");
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502if ac_fn_c_try_link "$LINENO"; then :
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10504$as_echo "yes" >&6; }
10505  CFLAGS="$pa_add_flags__old_flags -Wsuggest-attribute=malloc"
10506
10507$as_echo "#define CFLAGS_WSUGGEST_ATTRIBUTE_MALLOC 1" >>confdefs.h
10508
10509
10510else
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513  CFLAGS="$pa_add_flags__old_flags"
10514
10515fi
10516rm -f core conftest.err conftest.$ac_objext \
10517    conftest$ac_exeext conftest.$ac_ext
10518fi
10519
10520
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C99 external inlines" >&5
10522$as_echo_n "checking if $CC supports C99 external inlines... " >&6; }
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h.  */
10525
10526$ac_includes_default
10527
10528/* Don't mistake GNU inlines for c99 */
10529#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
10530# error "Using gnu inline standard"
10531#endif
10532
10533inline int foo(int x)
10534{
10535	return x+1;
10536}
10537
10538_ACEOF
10539if ac_fn_c_try_compile "$LINENO"; then :
10540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541$as_echo "yes" >&6; }
10542
10543$as_echo "#define HAVE_STDC_INLINE 1" >>confdefs.h
10544
10545else
10546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
10549$as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
10550 pa_add_flags__old_flags="$CFLAGS"
10551 CFLAGS="$CFLAGS -fgnu89-inline"
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h.  */
10554$ac_includes_default
10555int
10556main ()
10557{
10558printf("Hello, World!\n");
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"; then :
10564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10565$as_echo "yes" >&6; }
10566  CFLAGS="$pa_add_flags__old_flags -fgnu89-inline"
10567
10568$as_echo "#define CFLAGS_FGNU89_INLINE 1" >>confdefs.h
10569
10570
10571else
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574  CFLAGS="$pa_add_flags__old_flags"
10575
10576fi
10577rm -f core conftest.err conftest.$ac_objext \
10578    conftest$ac_exeext conftest.$ac_ext
10579fi
10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports typeof" >&5
10582$as_echo_n "checking if $CC supports typeof... " >&6; }
10583if ${pa_cv_typeof+:} false; then :
10584  $as_echo_n "(cached) " >&6
10585else
10586  pa_cv_typeof=no
10587 for pa_typeof_try in typeof __typeof __typeof__ decltype __decltype __decltype__ _Decltype
10588 do
10589  if test $pa_cv_typeof = no; then :
10590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h.  */
10592
10593$ac_includes_default
10594int testme(int x);
10595int testme(int x)
10596{
10597    $pa_typeof_try(x) y = x*x;
10598    return y;
10599}
10600
10601_ACEOF
10602if ac_fn_c_try_compile "$LINENO"; then :
10603  pa_cv_typeof=$pa_typeof_try
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606fi
10607 done
10608
10609fi
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pa_cv_typeof" >&5
10611$as_echo "$pa_cv_typeof" >&6; }
10612 if test $pa_cv_typeof = no; then :
10613
10614else
10615
10616$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
10617
10618	if test $pa_cv_typeof = typeof; then :
10619
10620else
10621
10622cat >>confdefs.h <<_ACEOF
10623#define typeof $pa_cv_typeof
10624_ACEOF
10625
10626fi
10627fi
10628
10629
10630
10631 # Check whether --enable-ccache was given.
10632if test "${enable_ccache+set}" = set; then :
10633  enableval=$enable_ccache; pa_arg_bool_enableval="$enableval"
10634else
10635  pa_arg_bool_enableval="no"
10636fi
10637
10638
10639 if test x"$pa_arg_bool_enableval" != xno; then :
10640  CC="ccache $CC"
10641fi
10642
10643
10644ac_config_files="$ac_config_files Makefile doc/Makefile"
10645
10646cat >confcache <<\_ACEOF
10647# This file is a shell script that caches the results of configure
10648# tests run on this system so they can be shared between configure
10649# scripts and configure runs, see configure's option --config-cache.
10650# It is not useful on other systems.  If it contains results you don't
10651# want to keep, you may remove or edit it.
10652#
10653# config.status only pays attention to the cache file if you give it
10654# the --recheck option to rerun configure.
10655#
10656# `ac_cv_env_foo' variables (set or unset) will be overridden when
10657# loading this file, other *unset* `ac_cv_foo' will be assigned the
10658# following values.
10659
10660_ACEOF
10661
10662# The following way of writing the cache mishandles newlines in values,
10663# but we know of no workaround that is simple, portable, and efficient.
10664# So, we kill variables containing newlines.
10665# Ultrix sh set writes to stderr and can't be redirected directly,
10666# and sets the high bit in the cache file unless we assign to the vars.
10667(
10668  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10669    eval ac_val=\$$ac_var
10670    case $ac_val in #(
10671    *${as_nl}*)
10672      case $ac_var in #(
10673      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10674$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10675      esac
10676      case $ac_var in #(
10677      _ | IFS | as_nl) ;; #(
10678      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10679      *) { eval $ac_var=; unset $ac_var;} ;;
10680      esac ;;
10681    esac
10682  done
10683
10684  (set) 2>&1 |
10685    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10686    *${as_nl}ac_space=\ *)
10687      # `set' does not quote correctly, so add quotes: double-quote
10688      # substitution turns \\\\ into \\, and sed turns \\ into \.
10689      sed -n \
10690	"s/'/'\\\\''/g;
10691	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10692      ;; #(
10693    *)
10694      # `set' quotes correctly as required by POSIX, so do not add quotes.
10695      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10696      ;;
10697    esac |
10698    sort
10699) |
10700  sed '
10701     /^ac_cv_env_/b end
10702     t clear
10703     :clear
10704     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10705     t end
10706     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10707     :end' >>confcache
10708if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10709  if test -w "$cache_file"; then
10710    if test "x$cache_file" != "x/dev/null"; then
10711      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10712$as_echo "$as_me: updating cache $cache_file" >&6;}
10713      if test ! -f "$cache_file" || test -h "$cache_file"; then
10714	cat confcache >"$cache_file"
10715      else
10716        case $cache_file in #(
10717        */* | ?:*)
10718	  mv -f confcache "$cache_file"$$ &&
10719	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10720        *)
10721	  mv -f confcache "$cache_file" ;;
10722	esac
10723      fi
10724    fi
10725  else
10726    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10727$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10728  fi
10729fi
10730rm -f confcache
10731
10732test "x$prefix" = xNONE && prefix=$ac_default_prefix
10733# Let make expand exec_prefix.
10734test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10735
10736DEFS=-DHAVE_CONFIG_H
10737
10738ac_libobjs=
10739ac_ltlibobjs=
10740U=
10741for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10742  # 1. Remove the extension, and $U if already installed.
10743  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10744  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10745  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10746  #    will be set to the directory where LIBOBJS objects are built.
10747  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10748  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10749done
10750LIBOBJS=$ac_libobjs
10751
10752LTLIBOBJS=$ac_ltlibobjs
10753
10754
10755
10756
10757: "${CONFIG_STATUS=./config.status}"
10758ac_write_fail=0
10759ac_clean_files_save=$ac_clean_files
10760ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10762$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10763as_write_fail=0
10764cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10765#! $SHELL
10766# Generated by $as_me.
10767# Run this file to recreate the current configuration.
10768# Compiler output produced by configure, useful for debugging
10769# configure, is in config.log if it exists.
10770
10771debug=false
10772ac_cs_recheck=false
10773ac_cs_silent=false
10774
10775SHELL=\${CONFIG_SHELL-$SHELL}
10776export SHELL
10777_ASEOF
10778cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10779## -------------------- ##
10780## M4sh Initialization. ##
10781## -------------------- ##
10782
10783# Be more Bourne compatible
10784DUALCASE=1; export DUALCASE # for MKS sh
10785if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10786  emulate sh
10787  NULLCMD=:
10788  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10789  # is contrary to our usage.  Disable this feature.
10790  alias -g '${1+"$@"}'='"$@"'
10791  setopt NO_GLOB_SUBST
10792else
10793  case `(set -o) 2>/dev/null` in #(
10794  *posix*) :
10795    set -o posix ;; #(
10796  *) :
10797     ;;
10798esac
10799fi
10800
10801
10802as_nl='
10803'
10804export as_nl
10805# Printing a long string crashes Solaris 7 /usr/bin/printf.
10806as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10809# Prefer a ksh shell builtin over an external printf program on Solaris,
10810# but without wasting forks for bash or zsh.
10811if test -z "$BASH_VERSION$ZSH_VERSION" \
10812    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10813  as_echo='print -r --'
10814  as_echo_n='print -rn --'
10815elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10816  as_echo='printf %s\n'
10817  as_echo_n='printf %s'
10818else
10819  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10820    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10821    as_echo_n='/usr/ucb/echo -n'
10822  else
10823    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10824    as_echo_n_body='eval
10825      arg=$1;
10826      case $arg in #(
10827      *"$as_nl"*)
10828	expr "X$arg" : "X\\(.*\\)$as_nl";
10829	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10830      esac;
10831      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10832    '
10833    export as_echo_n_body
10834    as_echo_n='sh -c $as_echo_n_body as_echo'
10835  fi
10836  export as_echo_body
10837  as_echo='sh -c $as_echo_body as_echo'
10838fi
10839
10840# The user is always right.
10841if test "${PATH_SEPARATOR+set}" != set; then
10842  PATH_SEPARATOR=:
10843  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10844    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10845      PATH_SEPARATOR=';'
10846  }
10847fi
10848
10849
10850# IFS
10851# We need space, tab and new line, in precisely that order.  Quoting is
10852# there to prevent editors from complaining about space-tab.
10853# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10854# splitting by setting IFS to empty value.)
10855IFS=" ""	$as_nl"
10856
10857# Find who we are.  Look in the path if we contain no directory separator.
10858as_myself=
10859case $0 in #((
10860  *[\\/]* ) as_myself=$0 ;;
10861  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862for as_dir in $PATH
10863do
10864  IFS=$as_save_IFS
10865  test -z "$as_dir" && as_dir=.
10866    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10867  done
10868IFS=$as_save_IFS
10869
10870     ;;
10871esac
10872# We did not find ourselves, most probably we were run as `sh COMMAND'
10873# in which case we are not to be found in the path.
10874if test "x$as_myself" = x; then
10875  as_myself=$0
10876fi
10877if test ! -f "$as_myself"; then
10878  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10879  exit 1
10880fi
10881
10882# Unset variables that we do not need and which cause bugs (e.g. in
10883# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10884# suppresses any "Segmentation fault" message there.  '((' could
10885# trigger a bug in pdksh 5.2.14.
10886for as_var in BASH_ENV ENV MAIL MAILPATH
10887do eval test x\${$as_var+set} = xset \
10888  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10889done
10890PS1='$ '
10891PS2='> '
10892PS4='+ '
10893
10894# NLS nuisances.
10895LC_ALL=C
10896export LC_ALL
10897LANGUAGE=C
10898export LANGUAGE
10899
10900# CDPATH.
10901(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10902
10903
10904# as_fn_error STATUS ERROR [LINENO LOG_FD]
10905# ----------------------------------------
10906# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10907# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10908# script with STATUS, using 1 if that was 0.
10909as_fn_error ()
10910{
10911  as_status=$1; test $as_status -eq 0 && as_status=1
10912  if test "$4"; then
10913    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10914    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10915  fi
10916  $as_echo "$as_me: error: $2" >&2
10917  as_fn_exit $as_status
10918} # as_fn_error
10919
10920
10921# as_fn_set_status STATUS
10922# -----------------------
10923# Set $? to STATUS, without forking.
10924as_fn_set_status ()
10925{
10926  return $1
10927} # as_fn_set_status
10928
10929# as_fn_exit STATUS
10930# -----------------
10931# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10932as_fn_exit ()
10933{
10934  set +e
10935  as_fn_set_status $1
10936  exit $1
10937} # as_fn_exit
10938
10939# as_fn_unset VAR
10940# ---------------
10941# Portably unset VAR.
10942as_fn_unset ()
10943{
10944  { eval $1=; unset $1;}
10945}
10946as_unset=as_fn_unset
10947# as_fn_append VAR VALUE
10948# ----------------------
10949# Append the text in VALUE to the end of the definition contained in VAR. Take
10950# advantage of any shell optimizations that allow amortized linear growth over
10951# repeated appends, instead of the typical quadratic growth present in naive
10952# implementations.
10953if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10954  eval 'as_fn_append ()
10955  {
10956    eval $1+=\$2
10957  }'
10958else
10959  as_fn_append ()
10960  {
10961    eval $1=\$$1\$2
10962  }
10963fi # as_fn_append
10964
10965# as_fn_arith ARG...
10966# ------------------
10967# Perform arithmetic evaluation on the ARGs, and store the result in the
10968# global $as_val. Take advantage of shells that can avoid forks. The arguments
10969# must be portable across $(()) and expr.
10970if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10971  eval 'as_fn_arith ()
10972  {
10973    as_val=$(( $* ))
10974  }'
10975else
10976  as_fn_arith ()
10977  {
10978    as_val=`expr "$@" || test $? -eq 1`
10979  }
10980fi # as_fn_arith
10981
10982
10983if expr a : '\(a\)' >/dev/null 2>&1 &&
10984   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10985  as_expr=expr
10986else
10987  as_expr=false
10988fi
10989
10990if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10991  as_basename=basename
10992else
10993  as_basename=false
10994fi
10995
10996if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10997  as_dirname=dirname
10998else
10999  as_dirname=false
11000fi
11001
11002as_me=`$as_basename -- "$0" ||
11003$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11004	 X"$0" : 'X\(//\)$' \| \
11005	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11006$as_echo X/"$0" |
11007    sed '/^.*\/\([^/][^/]*\)\/*$/{
11008	    s//\1/
11009	    q
11010	  }
11011	  /^X\/\(\/\/\)$/{
11012	    s//\1/
11013	    q
11014	  }
11015	  /^X\/\(\/\).*/{
11016	    s//\1/
11017	    q
11018	  }
11019	  s/.*/./; q'`
11020
11021# Avoid depending upon Character Ranges.
11022as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11023as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11024as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11025as_cr_digits='0123456789'
11026as_cr_alnum=$as_cr_Letters$as_cr_digits
11027
11028ECHO_C= ECHO_N= ECHO_T=
11029case `echo -n x` in #(((((
11030-n*)
11031  case `echo 'xy\c'` in
11032  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11033  xy)  ECHO_C='\c';;
11034  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11035       ECHO_T='	';;
11036  esac;;
11037*)
11038  ECHO_N='-n';;
11039esac
11040
11041rm -f conf$$ conf$$.exe conf$$.file
11042if test -d conf$$.dir; then
11043  rm -f conf$$.dir/conf$$.file
11044else
11045  rm -f conf$$.dir
11046  mkdir conf$$.dir 2>/dev/null
11047fi
11048if (echo >conf$$.file) 2>/dev/null; then
11049  if ln -s conf$$.file conf$$ 2>/dev/null; then
11050    as_ln_s='ln -s'
11051    # ... but there are two gotchas:
11052    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11053    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11054    # In both cases, we have to default to `cp -pR'.
11055    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11056      as_ln_s='cp -pR'
11057  elif ln conf$$.file conf$$ 2>/dev/null; then
11058    as_ln_s=ln
11059  else
11060    as_ln_s='cp -pR'
11061  fi
11062else
11063  as_ln_s='cp -pR'
11064fi
11065rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11066rmdir conf$$.dir 2>/dev/null
11067
11068
11069# as_fn_mkdir_p
11070# -------------
11071# Create "$as_dir" as a directory, including parents if necessary.
11072as_fn_mkdir_p ()
11073{
11074
11075  case $as_dir in #(
11076  -*) as_dir=./$as_dir;;
11077  esac
11078  test -d "$as_dir" || eval $as_mkdir_p || {
11079    as_dirs=
11080    while :; do
11081      case $as_dir in #(
11082      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11083      *) as_qdir=$as_dir;;
11084      esac
11085      as_dirs="'$as_qdir' $as_dirs"
11086      as_dir=`$as_dirname -- "$as_dir" ||
11087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11088	 X"$as_dir" : 'X\(//\)[^/]' \| \
11089	 X"$as_dir" : 'X\(//\)$' \| \
11090	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11091$as_echo X"$as_dir" |
11092    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11093	    s//\1/
11094	    q
11095	  }
11096	  /^X\(\/\/\)[^/].*/{
11097	    s//\1/
11098	    q
11099	  }
11100	  /^X\(\/\/\)$/{
11101	    s//\1/
11102	    q
11103	  }
11104	  /^X\(\/\).*/{
11105	    s//\1/
11106	    q
11107	  }
11108	  s/.*/./; q'`
11109      test -d "$as_dir" && break
11110    done
11111    test -z "$as_dirs" || eval "mkdir $as_dirs"
11112  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11113
11114
11115} # as_fn_mkdir_p
11116if mkdir -p . 2>/dev/null; then
11117  as_mkdir_p='mkdir -p "$as_dir"'
11118else
11119  test -d ./-p && rmdir ./-p
11120  as_mkdir_p=false
11121fi
11122
11123
11124# as_fn_executable_p FILE
11125# -----------------------
11126# Test if FILE is an executable regular file.
11127as_fn_executable_p ()
11128{
11129  test -f "$1" && test -x "$1"
11130} # as_fn_executable_p
11131as_test_x='test -x'
11132as_executable_p=as_fn_executable_p
11133
11134# Sed expression to map a string onto a valid CPP name.
11135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11136
11137# Sed expression to map a string onto a valid variable name.
11138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11139
11140
11141exec 6>&1
11142## ----------------------------------- ##
11143## Main body of $CONFIG_STATUS script. ##
11144## ----------------------------------- ##
11145_ASEOF
11146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11147
11148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11149# Save the log message, to keep $0 and so on meaningful, and to
11150# report actual input values of CONFIG_FILES etc. instead of their
11151# values after options handling.
11152ac_log="
11153This file was extended by $as_me, which was
11154generated by GNU Autoconf 2.69.  Invocation command line was
11155
11156  CONFIG_FILES    = $CONFIG_FILES
11157  CONFIG_HEADERS  = $CONFIG_HEADERS
11158  CONFIG_LINKS    = $CONFIG_LINKS
11159  CONFIG_COMMANDS = $CONFIG_COMMANDS
11160  $ $0 $@
11161
11162on `(hostname || uname -n) 2>/dev/null | sed 1q`
11163"
11164
11165_ACEOF
11166
11167case $ac_config_files in *"
11168"*) set x $ac_config_files; shift; ac_config_files=$*;;
11169esac
11170
11171case $ac_config_headers in *"
11172"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11173esac
11174
11175
11176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11177# Files that config.status was made for.
11178config_files="$ac_config_files"
11179config_headers="$ac_config_headers"
11180
11181_ACEOF
11182
11183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11184ac_cs_usage="\
11185\`$as_me' instantiates files and other configuration actions
11186from templates according to the current configuration.  Unless the files
11187and actions are specified as TAGs, all are instantiated by default.
11188
11189Usage: $0 [OPTION]... [TAG]...
11190
11191  -h, --help       print this help, then exit
11192  -V, --version    print version number and configuration settings, then exit
11193      --config     print configuration, then exit
11194  -q, --quiet, --silent
11195                   do not print progress messages
11196  -d, --debug      don't remove temporary files
11197      --recheck    update $as_me by reconfiguring in the same conditions
11198      --file=FILE[:TEMPLATE]
11199                   instantiate the configuration file FILE
11200      --header=FILE[:TEMPLATE]
11201                   instantiate the configuration header FILE
11202
11203Configuration files:
11204$config_files
11205
11206Configuration headers:
11207$config_headers
11208
11209Report bugs to the package provider."
11210
11211_ACEOF
11212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11213ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11214ac_cs_version="\\
11215config.status
11216configured by $0, generated by GNU Autoconf 2.69,
11217  with options \\"\$ac_cs_config\\"
11218
11219Copyright (C) 2012 Free Software Foundation, Inc.
11220This config.status script is free software; the Free Software Foundation
11221gives unlimited permission to copy, distribute and modify it."
11222
11223ac_pwd='$ac_pwd'
11224srcdir='$srcdir'
11225INSTALL='$INSTALL'
11226MKDIR_P='$MKDIR_P'
11227test -n "\$AWK" || AWK=awk
11228_ACEOF
11229
11230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11231# The default lists apply if the user does not specify any file.
11232ac_need_defaults=:
11233while test $# != 0
11234do
11235  case $1 in
11236  --*=?*)
11237    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11238    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11239    ac_shift=:
11240    ;;
11241  --*=)
11242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11243    ac_optarg=
11244    ac_shift=:
11245    ;;
11246  *)
11247    ac_option=$1
11248    ac_optarg=$2
11249    ac_shift=shift
11250    ;;
11251  esac
11252
11253  case $ac_option in
11254  # Handling of the options.
11255  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11256    ac_cs_recheck=: ;;
11257  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11258    $as_echo "$ac_cs_version"; exit ;;
11259  --config | --confi | --conf | --con | --co | --c )
11260    $as_echo "$ac_cs_config"; exit ;;
11261  --debug | --debu | --deb | --de | --d | -d )
11262    debug=: ;;
11263  --file | --fil | --fi | --f )
11264    $ac_shift
11265    case $ac_optarg in
11266    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11267    '') as_fn_error $? "missing file argument" ;;
11268    esac
11269    as_fn_append CONFIG_FILES " '$ac_optarg'"
11270    ac_need_defaults=false;;
11271  --header | --heade | --head | --hea )
11272    $ac_shift
11273    case $ac_optarg in
11274    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11275    esac
11276    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11277    ac_need_defaults=false;;
11278  --he | --h)
11279    # Conflict between --help and --header
11280    as_fn_error $? "ambiguous option: \`$1'
11281Try \`$0 --help' for more information.";;
11282  --help | --hel | -h )
11283    $as_echo "$ac_cs_usage"; exit ;;
11284  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11285  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11286    ac_cs_silent=: ;;
11287
11288  # This is an error.
11289  -*) as_fn_error $? "unrecognized option: \`$1'
11290Try \`$0 --help' for more information." ;;
11291
11292  *) as_fn_append ac_config_targets " $1"
11293     ac_need_defaults=false ;;
11294
11295  esac
11296  shift
11297done
11298
11299ac_configure_extra_args=
11300
11301if $ac_cs_silent; then
11302  exec 6>/dev/null
11303  ac_configure_extra_args="$ac_configure_extra_args --silent"
11304fi
11305
11306_ACEOF
11307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11308if \$ac_cs_recheck; then
11309  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11310  shift
11311  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11312  CONFIG_SHELL='$SHELL'
11313  export CONFIG_SHELL
11314  exec "\$@"
11315fi
11316
11317_ACEOF
11318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11319exec 5>>config.log
11320{
11321  echo
11322  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11323## Running $as_me. ##
11324_ASBOX
11325  $as_echo "$ac_log"
11326} >&5
11327
11328_ACEOF
11329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11330_ACEOF
11331
11332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11333
11334# Handling of arguments.
11335for ac_config_target in $ac_config_targets
11336do
11337  case $ac_config_target in
11338    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
11339    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11340    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11341
11342  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11343  esac
11344done
11345
11346
11347# If the user did not use the arguments to specify the items to instantiate,
11348# then the envvar interface is used.  Set only those that are not.
11349# We use the long form for the default assignment because of an extremely
11350# bizarre bug on SunOS 4.1.3.
11351if $ac_need_defaults; then
11352  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11353  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11354fi
11355
11356# Have a temporary directory for convenience.  Make it in the build tree
11357# simply because there is no reason against having it here, and in addition,
11358# creating and moving files from /tmp can sometimes cause problems.
11359# Hook for its removal unless debugging.
11360# Note that there is a small window in which the directory will not be cleaned:
11361# after its creation but before its name has been assigned to `$tmp'.
11362$debug ||
11363{
11364  tmp= ac_tmp=
11365  trap 'exit_status=$?
11366  : "${ac_tmp:=$tmp}"
11367  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11368' 0
11369  trap 'as_fn_exit 1' 1 2 13 15
11370}
11371# Create a (secure) tmp directory for tmp files.
11372
11373{
11374  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11375  test -d "$tmp"
11376}  ||
11377{
11378  tmp=./conf$$-$RANDOM
11379  (umask 077 && mkdir "$tmp")
11380} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11381ac_tmp=$tmp
11382
11383# Set up the scripts for CONFIG_FILES section.
11384# No need to generate them if there are no CONFIG_FILES.
11385# This happens for instance with `./config.status config.h'.
11386if test -n "$CONFIG_FILES"; then
11387
11388
11389ac_cr=`echo X | tr X '\015'`
11390# On cygwin, bash can eat \r inside `` if the user requested igncr.
11391# But we know of no other shell where ac_cr would be empty at this
11392# point, so we can use a bashism as a fallback.
11393if test "x$ac_cr" = x; then
11394  eval ac_cr=\$\'\\r\'
11395fi
11396ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11397if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11398  ac_cs_awk_cr='\\r'
11399else
11400  ac_cs_awk_cr=$ac_cr
11401fi
11402
11403echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11404_ACEOF
11405
11406
11407{
11408  echo "cat >conf$$subs.awk <<_ACEOF" &&
11409  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11410  echo "_ACEOF"
11411} >conf$$subs.sh ||
11412  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11413ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11414ac_delim='%!_!# '
11415for ac_last_try in false false false false false :; do
11416  . ./conf$$subs.sh ||
11417    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11418
11419  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11420  if test $ac_delim_n = $ac_delim_num; then
11421    break
11422  elif $ac_last_try; then
11423    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11424  else
11425    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11426  fi
11427done
11428rm -f conf$$subs.sh
11429
11430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11431cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11432_ACEOF
11433sed -n '
11434h
11435s/^/S["/; s/!.*/"]=/
11436p
11437g
11438s/^[^!]*!//
11439:repl
11440t repl
11441s/'"$ac_delim"'$//
11442t delim
11443:nl
11444h
11445s/\(.\{148\}\)..*/\1/
11446t more1
11447s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11448p
11449n
11450b repl
11451:more1
11452s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11453p
11454g
11455s/.\{148\}//
11456t nl
11457:delim
11458h
11459s/\(.\{148\}\)..*/\1/
11460t more2
11461s/["\\]/\\&/g; s/^/"/; s/$/"/
11462p
11463b
11464:more2
11465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11466p
11467g
11468s/.\{148\}//
11469t delim
11470' <conf$$subs.awk | sed '
11471/^[^""]/{
11472  N
11473  s/\n//
11474}
11475' >>$CONFIG_STATUS || ac_write_fail=1
11476rm -f conf$$subs.awk
11477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11478_ACAWK
11479cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11480  for (key in S) S_is_set[key] = 1
11481  FS = ""
11482
11483}
11484{
11485  line = $ 0
11486  nfields = split(line, field, "@")
11487  substed = 0
11488  len = length(field[1])
11489  for (i = 2; i < nfields; i++) {
11490    key = field[i]
11491    keylen = length(key)
11492    if (S_is_set[key]) {
11493      value = S[key]
11494      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11495      len += length(value) + length(field[++i])
11496      substed = 1
11497    } else
11498      len += 1 + keylen
11499  }
11500
11501  print line
11502}
11503
11504_ACAWK
11505_ACEOF
11506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11507if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11508  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11509else
11510  cat
11511fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11512  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11513_ACEOF
11514
11515# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11516# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11517# trailing colons and then remove the whole line if VPATH becomes empty
11518# (actually we leave an empty line to preserve line numbers).
11519if test "x$srcdir" = x.; then
11520  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11521h
11522s///
11523s/^/:/
11524s/[	 ]*$/:/
11525s/:\$(srcdir):/:/g
11526s/:\${srcdir}:/:/g
11527s/:@srcdir@:/:/g
11528s/^:*//
11529s/:*$//
11530x
11531s/\(=[	 ]*\).*/\1/
11532G
11533s/\n//
11534s/^[^=]*=[	 ]*$//
11535}'
11536fi
11537
11538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11539fi # test -n "$CONFIG_FILES"
11540
11541# Set up the scripts for CONFIG_HEADERS section.
11542# No need to generate them if there are no CONFIG_HEADERS.
11543# This happens for instance with `./config.status Makefile'.
11544if test -n "$CONFIG_HEADERS"; then
11545cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11546BEGIN {
11547_ACEOF
11548
11549# Transform confdefs.h into an awk script `defines.awk', embedded as
11550# here-document in config.status, that substitutes the proper values into
11551# config.h.in to produce config.h.
11552
11553# Create a delimiter string that does not exist in confdefs.h, to ease
11554# handling of long lines.
11555ac_delim='%!_!# '
11556for ac_last_try in false false :; do
11557  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11558  if test -z "$ac_tt"; then
11559    break
11560  elif $ac_last_try; then
11561    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11562  else
11563    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11564  fi
11565done
11566
11567# For the awk script, D is an array of macro values keyed by name,
11568# likewise P contains macro parameters if any.  Preserve backslash
11569# newline sequences.
11570
11571ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11572sed -n '
11573s/.\{148\}/&'"$ac_delim"'/g
11574t rset
11575:rset
11576s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11577t def
11578d
11579:def
11580s/\\$//
11581t bsnl
11582s/["\\]/\\&/g
11583s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11584D["\1"]=" \3"/p
11585s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11586d
11587:bsnl
11588s/["\\]/\\&/g
11589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11590D["\1"]=" \3\\\\\\n"\\/p
11591t cont
11592s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11593t cont
11594d
11595:cont
11596n
11597s/.\{148\}/&'"$ac_delim"'/g
11598t clear
11599:clear
11600s/\\$//
11601t bsnlc
11602s/["\\]/\\&/g; s/^/"/; s/$/"/p
11603d
11604:bsnlc
11605s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11606b cont
11607' <confdefs.h | sed '
11608s/'"$ac_delim"'/"\\\
11609"/g' >>$CONFIG_STATUS || ac_write_fail=1
11610
11611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11612  for (key in D) D_is_set[key] = 1
11613  FS = ""
11614}
11615/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11616  line = \$ 0
11617  split(line, arg, " ")
11618  if (arg[1] == "#") {
11619    defundef = arg[2]
11620    mac1 = arg[3]
11621  } else {
11622    defundef = substr(arg[1], 2)
11623    mac1 = arg[2]
11624  }
11625  split(mac1, mac2, "(") #)
11626  macro = mac2[1]
11627  prefix = substr(line, 1, index(line, defundef) - 1)
11628  if (D_is_set[macro]) {
11629    # Preserve the white space surrounding the "#".
11630    print prefix "define", macro P[macro] D[macro]
11631    next
11632  } else {
11633    # Replace #undef with comments.  This is necessary, for example,
11634    # in the case of _POSIX_SOURCE, which is predefined and required
11635    # on some systems where configure will not decide to define it.
11636    if (defundef == "undef") {
11637      print "/*", prefix defundef, macro, "*/"
11638      next
11639    }
11640  }
11641}
11642{ print }
11643_ACAWK
11644_ACEOF
11645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11646  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11647fi # test -n "$CONFIG_HEADERS"
11648
11649
11650eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11651shift
11652for ac_tag
11653do
11654  case $ac_tag in
11655  :[FHLC]) ac_mode=$ac_tag; continue;;
11656  esac
11657  case $ac_mode$ac_tag in
11658  :[FHL]*:*);;
11659  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11660  :[FH]-) ac_tag=-:-;;
11661  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11662  esac
11663  ac_save_IFS=$IFS
11664  IFS=:
11665  set x $ac_tag
11666  IFS=$ac_save_IFS
11667  shift
11668  ac_file=$1
11669  shift
11670
11671  case $ac_mode in
11672  :L) ac_source=$1;;
11673  :[FH])
11674    ac_file_inputs=
11675    for ac_f
11676    do
11677      case $ac_f in
11678      -) ac_f="$ac_tmp/stdin";;
11679      *) # Look for the file first in the build tree, then in the source tree
11680	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11681	 # because $ac_f cannot contain `:'.
11682	 test -f "$ac_f" ||
11683	   case $ac_f in
11684	   [\\/$]*) false;;
11685	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11686	   esac ||
11687	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11688      esac
11689      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11690      as_fn_append ac_file_inputs " '$ac_f'"
11691    done
11692
11693    # Let's still pretend it is `configure' which instantiates (i.e., don't
11694    # use $as_me), people would be surprised to read:
11695    #    /* config.h.  Generated by config.status.  */
11696    configure_input='Generated from '`
11697	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11698	`' by configure.'
11699    if test x"$ac_file" != x-; then
11700      configure_input="$ac_file.  $configure_input"
11701      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11702$as_echo "$as_me: creating $ac_file" >&6;}
11703    fi
11704    # Neutralize special characters interpreted by sed in replacement strings.
11705    case $configure_input in #(
11706    *\&* | *\|* | *\\* )
11707       ac_sed_conf_input=`$as_echo "$configure_input" |
11708       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11709    *) ac_sed_conf_input=$configure_input;;
11710    esac
11711
11712    case $ac_tag in
11713    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11714      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11715    esac
11716    ;;
11717  esac
11718
11719  ac_dir=`$as_dirname -- "$ac_file" ||
11720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11721	 X"$ac_file" : 'X\(//\)[^/]' \| \
11722	 X"$ac_file" : 'X\(//\)$' \| \
11723	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11724$as_echo X"$ac_file" |
11725    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11726	    s//\1/
11727	    q
11728	  }
11729	  /^X\(\/\/\)[^/].*/{
11730	    s//\1/
11731	    q
11732	  }
11733	  /^X\(\/\/\)$/{
11734	    s//\1/
11735	    q
11736	  }
11737	  /^X\(\/\).*/{
11738	    s//\1/
11739	    q
11740	  }
11741	  s/.*/./; q'`
11742  as_dir="$ac_dir"; as_fn_mkdir_p
11743  ac_builddir=.
11744
11745case "$ac_dir" in
11746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11747*)
11748  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11749  # A ".." for each directory in $ac_dir_suffix.
11750  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11751  case $ac_top_builddir_sub in
11752  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11753  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11754  esac ;;
11755esac
11756ac_abs_top_builddir=$ac_pwd
11757ac_abs_builddir=$ac_pwd$ac_dir_suffix
11758# for backward compatibility:
11759ac_top_builddir=$ac_top_build_prefix
11760
11761case $srcdir in
11762  .)  # We are building in place.
11763    ac_srcdir=.
11764    ac_top_srcdir=$ac_top_builddir_sub
11765    ac_abs_top_srcdir=$ac_pwd ;;
11766  [\\/]* | ?:[\\/]* )  # Absolute name.
11767    ac_srcdir=$srcdir$ac_dir_suffix;
11768    ac_top_srcdir=$srcdir
11769    ac_abs_top_srcdir=$srcdir ;;
11770  *) # Relative name.
11771    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11772    ac_top_srcdir=$ac_top_build_prefix$srcdir
11773    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11774esac
11775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11776
11777
11778  case $ac_mode in
11779  :F)
11780  #
11781  # CONFIG_FILE
11782  #
11783
11784  case $INSTALL in
11785  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11786  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11787  esac
11788  ac_MKDIR_P=$MKDIR_P
11789  case $MKDIR_P in
11790  [\\/$]* | ?:[\\/]* ) ;;
11791  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11792  esac
11793_ACEOF
11794
11795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796# If the template does not know about datarootdir, expand it.
11797# FIXME: This hack should be removed a few years after 2.60.
11798ac_datarootdir_hack=; ac_datarootdir_seen=
11799ac_sed_dataroot='
11800/datarootdir/ {
11801  p
11802  q
11803}
11804/@datadir@/p
11805/@docdir@/p
11806/@infodir@/p
11807/@localedir@/p
11808/@mandir@/p'
11809case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11810*datarootdir*) ac_datarootdir_seen=yes;;
11811*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11813$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11814_ACEOF
11815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11816  ac_datarootdir_hack='
11817  s&@datadir@&$datadir&g
11818  s&@docdir@&$docdir&g
11819  s&@infodir@&$infodir&g
11820  s&@localedir@&$localedir&g
11821  s&@mandir@&$mandir&g
11822  s&\\\${datarootdir}&$datarootdir&g' ;;
11823esac
11824_ACEOF
11825
11826# Neutralize VPATH when `$srcdir' = `.'.
11827# Shell code in configure.ac might set extrasub.
11828# FIXME: do we really want to maintain this feature?
11829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830ac_sed_extra="$ac_vpsub
11831$extrasub
11832_ACEOF
11833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11834:t
11835/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11836s|@configure_input@|$ac_sed_conf_input|;t t
11837s&@top_builddir@&$ac_top_builddir_sub&;t t
11838s&@top_build_prefix@&$ac_top_build_prefix&;t t
11839s&@srcdir@&$ac_srcdir&;t t
11840s&@abs_srcdir@&$ac_abs_srcdir&;t t
11841s&@top_srcdir@&$ac_top_srcdir&;t t
11842s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11843s&@builddir@&$ac_builddir&;t t
11844s&@abs_builddir@&$ac_abs_builddir&;t t
11845s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11846s&@INSTALL@&$ac_INSTALL&;t t
11847s&@MKDIR_P@&$ac_MKDIR_P&;t t
11848$ac_datarootdir_hack
11849"
11850eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11851  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11852
11853test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11854  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11855  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11856      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11858which seems to be undefined.  Please make sure it is defined" >&5
11859$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11860which seems to be undefined.  Please make sure it is defined" >&2;}
11861
11862  rm -f "$ac_tmp/stdin"
11863  case $ac_file in
11864  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11865  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11866  esac \
11867  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11868 ;;
11869  :H)
11870  #
11871  # CONFIG_HEADER
11872  #
11873  if test x"$ac_file" != x-; then
11874    {
11875      $as_echo "/* $configure_input  */" \
11876      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11877    } >"$ac_tmp/config.h" \
11878      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11879    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11880      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11881$as_echo "$as_me: $ac_file is unchanged" >&6;}
11882    else
11883      rm -f "$ac_file"
11884      mv "$ac_tmp/config.h" "$ac_file" \
11885	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11886    fi
11887  else
11888    $as_echo "/* $configure_input  */" \
11889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11890      || as_fn_error $? "could not create -" "$LINENO" 5
11891  fi
11892 ;;
11893
11894
11895  esac
11896
11897done # for ac_tag
11898
11899
11900as_fn_exit 0
11901_ACEOF
11902ac_clean_files=$ac_clean_files_save
11903
11904test $ac_write_fail = 0 ||
11905  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11906
11907
11908# configure is writing to config.log, and then calls config.status.
11909# config.status does its own redirection, appending to config.log.
11910# Unfortunately, on DOS this fails, as config.log is still kept open
11911# by configure, so config.status won't be able to write to it; its
11912# output is simply discarded.  So we exec the FD to /dev/null,
11913# effectively closing config.log, so it can be properly (re)opened and
11914# appended to by config.status.  When coming back to configure, we
11915# need to make the FD available again.
11916if test "$no_create" != yes; then
11917  ac_cs_success=:
11918  ac_config_status_args=
11919  test "$silent" = yes &&
11920    ac_config_status_args="$ac_config_status_args --quiet"
11921  exec 5>/dev/null
11922  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11923  exec 5>>config.log
11924  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11925  # would make configure fail if this is the last instruction.
11926  $ac_cs_success || as_fn_exit 1
11927fi
11928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11930$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11931fi
11932
11933