1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cabextract 1.9.1.
4#
5# Report bugs to <kyzer@cabextract.org.uk>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: kyzer@cabextract.org.uk about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='cabextract'
582PACKAGE_TARNAME='cabextract'
583PACKAGE_VERSION='1.9.1'
584PACKAGE_STRING='cabextract 1.9.1'
585PACKAGE_BUGREPORT='kyzer@cabextract.org.uk'
586PACKAGE_URL=''
587
588ac_unique_file="src/cabextract.c"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628EXTERNAL_LIBMSPACK_FALSE
629EXTERNAL_LIBMSPACK_TRUE
630libmspack_LIBS
631libmspack_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
635LTLIBICONV
636LIBICONV
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645ALLOCA
646LIBOBJS
647EGREP
648GREP
649CPP
650RANLIB
651ac_ct_AR
652AR
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670AM_BACKSLASH
671AM_DEFAULT_VERBOSITY
672AM_DEFAULT_V
673AM_V
674am__untar
675am__tar
676AMTAR
677am__leading_dot
678SET_MAKE
679AWK
680mkdir_p
681MKDIR_P
682INSTALL_STRIP_PROGRAM
683STRIP
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716runstatedir
717localstatedir
718sharedstatedir
719sysconfdir
720datadir
721datarootdir
722libexecdir
723sbindir
724bindir
725program_transform_name
726prefix
727exec_prefix
728PACKAGE_URL
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
736ac_subst_files=''
737ac_user_opts='
738enable_option_checking
739enable_silent_rules
740enable_dependency_tracking
741enable_largefile
742with_gnu_ld
743enable_rpath
744with_libiconv_prefix
745with_external_libmspack
746'
747      ac_precious_vars='build_alias
748host_alias
749target_alias
750CC
751CFLAGS
752LDFLAGS
753LIBS
754CPPFLAGS
755CPP
756PKG_CONFIG
757PKG_CONFIG_PATH
758PKG_CONFIG_LIBDIR
759libmspack_CFLAGS
760libmspack_LIBS'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799runstatedir='${localstatedir}/run'
800includedir='${prefix}/include'
801oldincludedir='/usr/include'
802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803infodir='${datarootdir}/info'
804htmldir='${docdir}'
805dvidir='${docdir}'
806pdfdir='${docdir}'
807psdir='${docdir}'
808libdir='${exec_prefix}/lib'
809localedir='${datarootdir}/locale'
810mandir='${datarootdir}/man'
811
812ac_prev=
813ac_dashdash=
814for ac_option
815do
816  # If the previous option needs an argument, assign it.
817  if test -n "$ac_prev"; then
818    eval $ac_prev=\$ac_option
819    ac_prev=
820    continue
821  fi
822
823  case $ac_option in
824  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825  *=)   ac_optarg= ;;
826  *)    ac_optarg=yes ;;
827  esac
828
829  # Accept the important Cygnus configure options, so we can diagnose typos.
830
831  case $ac_dashdash$ac_option in
832  --)
833    ac_dashdash=yes ;;
834
835  -bindir | --bindir | --bindi | --bind | --bin | --bi)
836    ac_prev=bindir ;;
837  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838    bindir=$ac_optarg ;;
839
840  -build | --build | --buil | --bui | --bu)
841    ac_prev=build_alias ;;
842  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843    build_alias=$ac_optarg ;;
844
845  -cache-file | --cache-file | --cache-fil | --cache-fi \
846  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847    ac_prev=cache_file ;;
848  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850    cache_file=$ac_optarg ;;
851
852  --config-cache | -C)
853    cache_file=config.cache ;;
854
855  -datadir | --datadir | --datadi | --datad)
856    ac_prev=datadir ;;
857  -datadir=* | --datadir=* | --datadi=* | --datad=*)
858    datadir=$ac_optarg ;;
859
860  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861  | --dataroo | --dataro | --datar)
862    ac_prev=datarootdir ;;
863  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865    datarootdir=$ac_optarg ;;
866
867  -disable-* | --disable-*)
868    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869    # Reject names that are not valid shell variable names.
870    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871      as_fn_error $? "invalid feature name: $ac_useropt"
872    ac_useropt_orig=$ac_useropt
873    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874    case $ac_user_opts in
875      *"
876"enable_$ac_useropt"
877"*) ;;
878      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879	 ac_unrecognized_sep=', ';;
880    esac
881    eval enable_$ac_useropt=no ;;
882
883  -docdir | --docdir | --docdi | --doc | --do)
884    ac_prev=docdir ;;
885  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886    docdir=$ac_optarg ;;
887
888  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889    ac_prev=dvidir ;;
890  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891    dvidir=$ac_optarg ;;
892
893  -enable-* | --enable-*)
894    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895    # Reject names that are not valid shell variable names.
896    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897      as_fn_error $? "invalid feature name: $ac_useropt"
898    ac_useropt_orig=$ac_useropt
899    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900    case $ac_user_opts in
901      *"
902"enable_$ac_useropt"
903"*) ;;
904      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905	 ac_unrecognized_sep=', ';;
906    esac
907    eval enable_$ac_useropt=\$ac_optarg ;;
908
909  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911  | --exec | --exe | --ex)
912    ac_prev=exec_prefix ;;
913  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915  | --exec=* | --exe=* | --ex=*)
916    exec_prefix=$ac_optarg ;;
917
918  -gas | --gas | --ga | --g)
919    # Obsolete; use --with-gas.
920    with_gas=yes ;;
921
922  -help | --help | --hel | --he | -h)
923    ac_init_help=long ;;
924  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925    ac_init_help=recursive ;;
926  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927    ac_init_help=short ;;
928
929  -host | --host | --hos | --ho)
930    ac_prev=host_alias ;;
931  -host=* | --host=* | --hos=* | --ho=*)
932    host_alias=$ac_optarg ;;
933
934  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935    ac_prev=htmldir ;;
936  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937  | --ht=*)
938    htmldir=$ac_optarg ;;
939
940  -includedir | --includedir | --includedi | --included | --include \
941  | --includ | --inclu | --incl | --inc)
942    ac_prev=includedir ;;
943  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944  | --includ=* | --inclu=* | --incl=* | --inc=*)
945    includedir=$ac_optarg ;;
946
947  -infodir | --infodir | --infodi | --infod | --info | --inf)
948    ac_prev=infodir ;;
949  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950    infodir=$ac_optarg ;;
951
952  -libdir | --libdir | --libdi | --libd)
953    ac_prev=libdir ;;
954  -libdir=* | --libdir=* | --libdi=* | --libd=*)
955    libdir=$ac_optarg ;;
956
957  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958  | --libexe | --libex | --libe)
959    ac_prev=libexecdir ;;
960  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961  | --libexe=* | --libex=* | --libe=*)
962    libexecdir=$ac_optarg ;;
963
964  -localedir | --localedir | --localedi | --localed | --locale)
965    ac_prev=localedir ;;
966  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967    localedir=$ac_optarg ;;
968
969  -localstatedir | --localstatedir | --localstatedi | --localstated \
970  | --localstate | --localstat | --localsta | --localst | --locals)
971    ac_prev=localstatedir ;;
972  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974    localstatedir=$ac_optarg ;;
975
976  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977    ac_prev=mandir ;;
978  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979    mandir=$ac_optarg ;;
980
981  -nfp | --nfp | --nf)
982    # Obsolete; use --without-fp.
983    with_fp=no ;;
984
985  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986  | --no-cr | --no-c | -n)
987    no_create=yes ;;
988
989  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991    no_recursion=yes ;;
992
993  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995  | --oldin | --oldi | --old | --ol | --o)
996    ac_prev=oldincludedir ;;
997  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000    oldincludedir=$ac_optarg ;;
1001
1002  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003    ac_prev=prefix ;;
1004  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005    prefix=$ac_optarg ;;
1006
1007  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008  | --program-pre | --program-pr | --program-p)
1009    ac_prev=program_prefix ;;
1010  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012    program_prefix=$ac_optarg ;;
1013
1014  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015  | --program-suf | --program-su | --program-s)
1016    ac_prev=program_suffix ;;
1017  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019    program_suffix=$ac_optarg ;;
1020
1021  -program-transform-name | --program-transform-name \
1022  | --program-transform-nam | --program-transform-na \
1023  | --program-transform-n | --program-transform- \
1024  | --program-transform | --program-transfor \
1025  | --program-transfo | --program-transf \
1026  | --program-trans | --program-tran \
1027  | --progr-tra | --program-tr | --program-t)
1028    ac_prev=program_transform_name ;;
1029  -program-transform-name=* | --program-transform-name=* \
1030  | --program-transform-nam=* | --program-transform-na=* \
1031  | --program-transform-n=* | --program-transform-=* \
1032  | --program-transform=* | --program-transfor=* \
1033  | --program-transfo=* | --program-transf=* \
1034  | --program-trans=* | --program-tran=* \
1035  | --progr-tra=* | --program-tr=* | --program-t=*)
1036    program_transform_name=$ac_optarg ;;
1037
1038  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039    ac_prev=pdfdir ;;
1040  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041    pdfdir=$ac_optarg ;;
1042
1043  -psdir | --psdir | --psdi | --psd | --ps)
1044    ac_prev=psdir ;;
1045  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046    psdir=$ac_optarg ;;
1047
1048  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049  | -silent | --silent | --silen | --sile | --sil)
1050    silent=yes ;;
1051
1052  -runstatedir | --runstatedir | --runstatedi | --runstated \
1053  | --runstate | --runstat | --runsta | --runst | --runs \
1054  | --run | --ru | --r)
1055    ac_prev=runstatedir ;;
1056  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1057  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1058  | --run=* | --ru=* | --r=*)
1059    runstatedir=$ac_optarg ;;
1060
1061  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062    ac_prev=sbindir ;;
1063  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064  | --sbi=* | --sb=*)
1065    sbindir=$ac_optarg ;;
1066
1067  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069  | --sharedst | --shareds | --shared | --share | --shar \
1070  | --sha | --sh)
1071    ac_prev=sharedstatedir ;;
1072  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075  | --sha=* | --sh=*)
1076    sharedstatedir=$ac_optarg ;;
1077
1078  -site | --site | --sit)
1079    ac_prev=site ;;
1080  -site=* | --site=* | --sit=*)
1081    site=$ac_optarg ;;
1082
1083  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084    ac_prev=srcdir ;;
1085  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086    srcdir=$ac_optarg ;;
1087
1088  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089  | --syscon | --sysco | --sysc | --sys | --sy)
1090    ac_prev=sysconfdir ;;
1091  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093    sysconfdir=$ac_optarg ;;
1094
1095  -target | --target | --targe | --targ | --tar | --ta | --t)
1096    ac_prev=target_alias ;;
1097  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098    target_alias=$ac_optarg ;;
1099
1100  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101    verbose=yes ;;
1102
1103  -version | --version | --versio | --versi | --vers | -V)
1104    ac_init_version=: ;;
1105
1106  -with-* | --with-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=\$ac_optarg ;;
1121
1122  -without-* | --without-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=no ;;
1137
1138  --x)
1139    # Obsolete; use --with-x.
1140    with_x=yes ;;
1141
1142  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143  | --x-incl | --x-inc | --x-in | --x-i)
1144    ac_prev=x_includes ;;
1145  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147    x_includes=$ac_optarg ;;
1148
1149  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151    ac_prev=x_libraries ;;
1152  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154    x_libraries=$ac_optarg ;;
1155
1156  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158    ;;
1159
1160  *=*)
1161    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162    # Reject names that are not valid shell variable names.
1163    case $ac_envvar in #(
1164      '' | [0-9]* | *[!_$as_cr_alnum]* )
1165      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166    esac
1167    eval $ac_envvar=\$ac_optarg
1168    export $ac_envvar ;;
1169
1170  *)
1171    # FIXME: should be removed in autoconf 3.0.
1172    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176    ;;
1177
1178  esac
1179done
1180
1181if test -n "$ac_prev"; then
1182  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183  as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187  case $enable_option_checking in
1188    no) ;;
1189    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191  esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196		datadir sysconfdir sharedstatedir localstatedir includedir \
1197		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198		libdir localedir mandir runstatedir
1199do
1200  eval ac_val=\$$ac_var
1201  # Remove trailing slashes.
1202  case $ac_val in
1203    */ )
1204      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205      eval $ac_var=\$ac_val;;
1206  esac
1207  # Be sure to have absolute directory names.
1208  case $ac_val in
1209    [\\/$]* | ?:[\\/]* )  continue;;
1210    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211  esac
1212  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224  if test "x$build_alias" = x; then
1225    cross_compiling=maybe
1226  elif test "x$build_alias" != "x$host_alias"; then
1227    cross_compiling=yes
1228  fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240  as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242  as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247  ac_srcdir_defaulted=yes
1248  # Try the directory containing this script, then the parent directory.
1249  ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251	 X"$as_myself" : 'X\(//\)[^/]' \| \
1252	 X"$as_myself" : 'X\(//\)$' \| \
1253	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)[^/].*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\).*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  s/.*/./; q'`
1272  srcdir=$ac_confdir
1273  if test ! -r "$srcdir/$ac_unique_file"; then
1274    srcdir=..
1275  fi
1276else
1277  ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286	pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289  srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_env_${ac_var}_value=\$${ac_var}
1300  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308  # Omit some internal or obsolete options to make the list less imposing.
1309  # This message is too long to be a string in the A/UX 3.1 sh.
1310  cat <<_ACEOF
1311\`configure' configures cabextract 1.9.1 to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321  -h, --help              display this help and exit
1322      --help=short        display options specific to this package
1323      --help=recursive    display the short help of all the included packages
1324  -V, --version           display version information and exit
1325  -q, --quiet, --silent   do not print \`checking ...' messages
1326      --cache-file=FILE   cache test results in FILE [disabled]
1327  -C, --config-cache      alias for \`--cache-file=config.cache'
1328  -n, --no-create         do not create output files
1329      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332  --prefix=PREFIX         install architecture-independent files in PREFIX
1333                          [$ac_default_prefix]
1334  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                          [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345  --bindir=DIR            user executables [EPREFIX/bin]
1346  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root [DATAROOTDIR/doc/cabextract]
1361  --htmldir=DIR           html documentation [DOCDIR]
1362  --dvidir=DIR            dvi documentation [DOCDIR]
1363  --pdfdir=DIR            pdf documentation [DOCDIR]
1364  --psdir=DIR             ps documentation [DOCDIR]
1365_ACEOF
1366
1367  cat <<\_ACEOF
1368
1369Program names:
1370  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381  case $ac_init_help in
1382     short | recursive ) echo "Configuration of cabextract 1.9.1:";;
1383   esac
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-silent-rules   less verbose build output (undo: "make V=1")
1391  --disable-silent-rules  verbose build output (undo: "make V=0")
1392  --enable-dependency-tracking
1393                          do not reject slow dependency extractors
1394  --disable-dependency-tracking
1395                          speeds up one-time build
1396  --disable-largefile     omit support for large files
1397  --disable-rpath         do not hardcode runtime library paths
1398
1399Optional Packages:
1400  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1401  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1402  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1403  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1404  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1405  --with-external-libmspack
1406                          use external libmspack (default no)
1407
1408Some influential environment variables:
1409  CC          C compiler command
1410  CFLAGS      C compiler flags
1411  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412              nonstandard directory <lib dir>
1413  LIBS        libraries to pass to the linker, e.g. -l<library>
1414  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415              you have headers in a nonstandard directory <include dir>
1416  CPP         C preprocessor
1417  PKG_CONFIG  path to pkg-config utility
1418  PKG_CONFIG_PATH
1419              directories to add to pkg-config's search path
1420  PKG_CONFIG_LIBDIR
1421              path overriding pkg-config's built-in search path
1422  libmspack_CFLAGS
1423              C compiler flags for libmspack, overriding pkg-config
1424  libmspack_LIBS
1425              linker flags for libmspack, overriding pkg-config
1426
1427Use these variables to override the choices made by `configure' or to help
1428it to find libraries and programs with nonstandard names/locations.
1429
1430Report bugs to <kyzer@cabextract.org.uk>.
1431_ACEOF
1432ac_status=$?
1433fi
1434
1435if test "$ac_init_help" = "recursive"; then
1436  # If there are subdirs, report their specific --help.
1437  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438    test -d "$ac_dir" ||
1439      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440      continue
1441    ac_builddir=.
1442
1443case "$ac_dir" in
1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445*)
1446  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447  # A ".." for each directory in $ac_dir_suffix.
1448  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449  case $ac_top_builddir_sub in
1450  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452  esac ;;
1453esac
1454ac_abs_top_builddir=$ac_pwd
1455ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456# for backward compatibility:
1457ac_top_builddir=$ac_top_build_prefix
1458
1459case $srcdir in
1460  .)  # We are building in place.
1461    ac_srcdir=.
1462    ac_top_srcdir=$ac_top_builddir_sub
1463    ac_abs_top_srcdir=$ac_pwd ;;
1464  [\\/]* | ?:[\\/]* )  # Absolute name.
1465    ac_srcdir=$srcdir$ac_dir_suffix;
1466    ac_top_srcdir=$srcdir
1467    ac_abs_top_srcdir=$srcdir ;;
1468  *) # Relative name.
1469    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470    ac_top_srcdir=$ac_top_build_prefix$srcdir
1471    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472esac
1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474
1475    cd "$ac_dir" || { ac_status=$?; continue; }
1476    # Check for guested configure.
1477    if test -f "$ac_srcdir/configure.gnu"; then
1478      echo &&
1479      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480    elif test -f "$ac_srcdir/configure"; then
1481      echo &&
1482      $SHELL "$ac_srcdir/configure" --help=recursive
1483    else
1484      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485    fi || ac_status=$?
1486    cd "$ac_pwd" || { ac_status=$?; break; }
1487  done
1488fi
1489
1490test -n "$ac_init_help" && exit $ac_status
1491if $ac_init_version; then
1492  cat <<\_ACEOF
1493cabextract configure 1.9.1
1494generated by GNU Autoconf 2.69
1495
1496Copyright (C) 2012 Free Software Foundation, Inc.
1497This configure script is free software; the Free Software Foundation
1498gives unlimited permission to copy, distribute and modify it.
1499_ACEOF
1500  exit
1501fi
1502
1503## ------------------------ ##
1504## Autoconf initialization. ##
1505## ------------------------ ##
1506
1507# ac_fn_c_try_compile LINENO
1508# --------------------------
1509# Try to compile conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_compile ()
1511{
1512  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513  rm -f conftest.$ac_objext
1514  if { { ac_try="$ac_compile"
1515case "(($ac_try" in
1516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517  *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521  (eval "$ac_compile") 2>conftest.err
1522  ac_status=$?
1523  if test -s conftest.err; then
1524    grep -v '^ *+' conftest.err >conftest.er1
1525    cat conftest.er1 >&5
1526    mv -f conftest.er1 conftest.err
1527  fi
1528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529  test $ac_status = 0; } && {
1530	 test -z "$ac_c_werror_flag" ||
1531	 test ! -s conftest.err
1532       } && test -s conftest.$ac_objext; then :
1533  ac_retval=0
1534else
1535  $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538	ac_retval=1
1539fi
1540  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541  as_fn_set_status $ac_retval
1542
1543} # ac_fn_c_try_compile
1544
1545# ac_fn_c_try_cpp LINENO
1546# ----------------------
1547# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_cpp ()
1549{
1550  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551  if { { ac_try="$ac_cpp conftest.$ac_ext"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } > conftest.i && {
1567	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       }; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575    ac_retval=1
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_cpp
1581
1582# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1583# -------------------------------------------------------
1584# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1585# the include files in INCLUDES and setting the cache variable VAR
1586# accordingly.
1587ac_fn_c_check_header_mongrel ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if eval \${$3+:} false; then :
1591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592$as_echo_n "checking for $2... " >&6; }
1593if eval \${$3+:} false; then :
1594  $as_echo_n "(cached) " >&6
1595fi
1596eval ac_res=\$$3
1597	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598$as_echo "$ac_res" >&6; }
1599else
1600  # Is the header compilable?
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1602$as_echo_n "checking $2 usability... " >&6; }
1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h.  */
1605$4
1606#include <$2>
1607_ACEOF
1608if ac_fn_c_try_compile "$LINENO"; then :
1609  ac_header_compiler=yes
1610else
1611  ac_header_compiler=no
1612fi
1613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1615$as_echo "$ac_header_compiler" >&6; }
1616
1617# Is the header present?
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1619$as_echo_n "checking $2 presence... " >&6; }
1620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h.  */
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_cpp "$LINENO"; then :
1625  ac_header_preproc=yes
1626else
1627  ac_header_preproc=no
1628fi
1629rm -f conftest.err conftest.i conftest.$ac_ext
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1631$as_echo "$ac_header_preproc" >&6; }
1632
1633# So?  What about this header?
1634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635  yes:no: )
1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1637$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640    ;;
1641  no:yes:* )
1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1643$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1645$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1647$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1649$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652( $as_echo "## -------------------------------------- ##
1653## Report this to kyzer@cabextract.org.uk ##
1654## -------------------------------------- ##"
1655     ) | sed "s/^/$as_me: WARNING:     /" >&2
1656    ;;
1657esac
1658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if eval \${$3+:} false; then :
1661  $as_echo_n "(cached) " >&6
1662else
1663  eval "$3=\$ac_header_compiler"
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_header_mongrel
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>&5
1688  ac_status=$?
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691  { { case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_try") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; }; }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: program exited with status $ac_status" >&5
1704       $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707       ac_retval=$ac_status
1708fi
1709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733  eval "$3=yes"
1734else
1735  eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_compile
1745
1746# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1747# -------------------------------------------
1748# Tests whether TYPE exists after having included INCLUDES, setting cache
1749# variable VAR accordingly.
1750ac_fn_c_check_type ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval \${$3+:} false; then :
1756  $as_echo_n "(cached) " >&6
1757else
1758  eval "$3=no"
1759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762int
1763main ()
1764{
1765if (sizeof ($2))
1766	 return 0;
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775int
1776main ()
1777{
1778if (sizeof (($2)))
1779	    return 0;
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785
1786else
1787  eval "$3=yes"
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798} # ac_fn_c_check_type
1799
1800# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1801# --------------------------------------------
1802# Tries to find the compile-time value of EXPR in a program that includes
1803# INCLUDES, setting VAR accordingly. Returns whether the value could be
1804# computed
1805ac_fn_c_compute_int ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if test "$cross_compiling" = yes; then
1809    # Depending upon the size, compute the lo and hi bounds.
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813int
1814main ()
1815{
1816static int test_array [1 - 2 * !(($2) >= 0)];
1817test_array [0] = 0;
1818return test_array [0];
1819
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"; then :
1825  ac_lo=0 ac_mid=0
1826  while :; do
1827    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830int
1831main ()
1832{
1833static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1834test_array [0] = 0;
1835return test_array [0];
1836
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  ac_hi=$ac_mid; break
1843else
1844  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1845			if test $ac_lo -le $ac_mid; then
1846			  ac_lo= ac_hi=
1847			  break
1848			fi
1849			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852  done
1853else
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857int
1858main ()
1859{
1860static int test_array [1 - 2 * !(($2) < 0)];
1861test_array [0] = 0;
1862return test_array [0];
1863
1864  ;
1865  return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869  ac_hi=-1 ac_mid=-1
1870  while :; do
1871    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h.  */
1873$4
1874int
1875main ()
1876{
1877static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1878test_array [0] = 0;
1879return test_array [0];
1880
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  ac_lo=$ac_mid; break
1887else
1888  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1889			if test $ac_mid -le $ac_hi; then
1890			  ac_lo= ac_hi=
1891			  break
1892			fi
1893			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896  done
1897else
1898  ac_lo= ac_hi=
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903# Binary search between lo and hi bounds.
1904while test "x$ac_lo" != "x$ac_hi"; do
1905  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909int
1910main ()
1911{
1912static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913test_array [0] = 0;
1914return test_array [0];
1915
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  ac_hi=$ac_mid
1922else
1923  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926done
1927case $ac_lo in #((
1928?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1929'') ac_retval=1 ;;
1930esac
1931  else
1932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935static long int longval () { return $2; }
1936static unsigned long int ulongval () { return $2; }
1937#include <stdio.h>
1938#include <stdlib.h>
1939int
1940main ()
1941{
1942
1943  FILE *f = fopen ("conftest.val", "w");
1944  if (! f)
1945    return 1;
1946  if (($2) < 0)
1947    {
1948      long int i = longval ();
1949      if (i != ($2))
1950	return 1;
1951      fprintf (f, "%ld", i);
1952    }
1953  else
1954    {
1955      unsigned long int i = ulongval ();
1956      if (i != ($2))
1957	return 1;
1958      fprintf (f, "%lu", i);
1959    }
1960  /* Do not output a trailing newline, as this causes \r\n confusion
1961     on some platforms.  */
1962  return ferror (f) || fclose (f) != 0;
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_run "$LINENO"; then :
1969  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1970else
1971  ac_retval=1
1972fi
1973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1974  conftest.$ac_objext conftest.beam conftest.$ac_ext
1975rm -f conftest.val
1976
1977  fi
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_compute_int
1982
1983# ac_fn_c_try_link LINENO
1984# -----------------------
1985# Try to link conftest.$ac_ext, and return whether this succeeded.
1986ac_fn_c_try_link ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  rm -f conftest.$ac_objext conftest$ac_exeext
1990  if { { ac_try="$ac_link"
1991case "(($ac_try" in
1992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993  *) ac_try_echo=$ac_try;;
1994esac
1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996$as_echo "$ac_try_echo"; } >&5
1997  (eval "$ac_link") 2>conftest.err
1998  ac_status=$?
1999  if test -s conftest.err; then
2000    grep -v '^ *+' conftest.err >conftest.er1
2001    cat conftest.er1 >&5
2002    mv -f conftest.er1 conftest.err
2003  fi
2004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005  test $ac_status = 0; } && {
2006	 test -z "$ac_c_werror_flag" ||
2007	 test ! -s conftest.err
2008       } && test -s conftest$ac_exeext && {
2009	 test "$cross_compiling" = yes ||
2010	 test -x conftest$ac_exeext
2011       }; then :
2012  ac_retval=0
2013else
2014  $as_echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017	ac_retval=1
2018fi
2019  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021  # interfere with the next link command; also delete a directory that is
2022  # left behind by Apple's compiler.  We do this before executing the actions.
2023  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025  as_fn_set_status $ac_retval
2026
2027} # ac_fn_c_try_link
2028
2029# ac_fn_c_check_func LINENO FUNC VAR
2030# ----------------------------------
2031# Tests whether FUNC exists, setting the cache variable VAR accordingly
2032ac_fn_c_check_func ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
2037if eval \${$3+:} false; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2044#define $2 innocuous_$2
2045
2046/* System header to define __stub macros and hopefully few prototypes,
2047    which can conflict with char $2 (); below.
2048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049    <limits.h> exists even on freestanding compilers.  */
2050
2051#ifdef __STDC__
2052# include <limits.h>
2053#else
2054# include <assert.h>
2055#endif
2056
2057#undef $2
2058
2059/* Override any GCC internal prototype to avoid an error.
2060   Use char because int might match the return type of a GCC
2061   builtin and then its argument prototype would still apply.  */
2062#ifdef __cplusplus
2063extern "C"
2064#endif
2065char $2 ();
2066/* The GNU C library defines this for functions which it implements
2067    to always fail with ENOSYS.  Some functions are actually named
2068    something starting with __ and the normal name is an alias.  */
2069#if defined __stub_$2 || defined __stub___$2
2070choke me
2071#endif
2072
2073int
2074main ()
2075{
2076return $2 ();
2077  ;
2078  return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_link "$LINENO"; then :
2082  eval "$3=yes"
2083else
2084  eval "$3=no"
2085fi
2086rm -f core conftest.err conftest.$ac_objext \
2087    conftest$ac_exeext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094} # ac_fn_c_check_func
2095
2096# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2097# ---------------------------------------------
2098# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2099# accordingly.
2100ac_fn_c_check_decl ()
2101{
2102  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103  as_decl_name=`echo $2|sed 's/ *(.*//'`
2104  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2106$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2107if eval \${$3+:} false; then :
2108  $as_echo_n "(cached) " >&6
2109else
2110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116#ifndef $as_decl_name
2117#ifdef __cplusplus
2118  (void) $as_decl_use;
2119#else
2120  (void) $as_decl_name;
2121#endif
2122#endif
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  eval "$3=yes"
2130else
2131  eval "$3=no"
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135eval ac_res=\$$3
2136	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137$as_echo "$ac_res" >&6; }
2138  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140} # ac_fn_c_check_decl
2141cat >config.log <<_ACEOF
2142This file contains any messages produced by compilers while
2143running configure, to aid debugging if configure makes a mistake.
2144
2145It was created by cabextract $as_me 1.9.1, which was
2146generated by GNU Autoconf 2.69.  Invocation command line was
2147
2148  $ $0 $@
2149
2150_ACEOF
2151exec 5>>config.log
2152{
2153cat <<_ASUNAME
2154## --------- ##
2155## Platform. ##
2156## --------- ##
2157
2158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2166
2167/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2168/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2171/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2172/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2173/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2174
2175_ASUNAME
2176
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182    $as_echo "PATH: $as_dir"
2183  done
2184IFS=$as_save_IFS
2185
2186} >&5
2187
2188cat >&5 <<_ACEOF
2189
2190
2191## ----------- ##
2192## Core tests. ##
2193## ----------- ##
2194
2195_ACEOF
2196
2197
2198# Keep a trace of the command line.
2199# Strip out --no-create and --no-recursion so they do not pile up.
2200# Strip out --silent because we don't want to record it for future runs.
2201# Also quote any args containing shell meta-characters.
2202# Make two passes to allow for proper duplicate-argument suppression.
2203ac_configure_args=
2204ac_configure_args0=
2205ac_configure_args1=
2206ac_must_keep_next=false
2207for ac_pass in 1 2
2208do
2209  for ac_arg
2210  do
2211    case $ac_arg in
2212    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214    | -silent | --silent | --silen | --sile | --sil)
2215      continue ;;
2216    *\'*)
2217      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    esac
2219    case $ac_pass in
2220    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221    2)
2222      as_fn_append ac_configure_args1 " '$ac_arg'"
2223      if test $ac_must_keep_next = true; then
2224	ac_must_keep_next=false # Got value, back to normal.
2225      else
2226	case $ac_arg in
2227	  *=* | --config-cache | -C | -disable-* | --disable-* \
2228	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230	  | -with-* | --with-* | -without-* | --without-* | --x)
2231	    case "$ac_configure_args0 " in
2232	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233	    esac
2234	    ;;
2235	  -* ) ac_must_keep_next=true ;;
2236	esac
2237      fi
2238      as_fn_append ac_configure_args " '$ac_arg'"
2239      ;;
2240    esac
2241  done
2242done
2243{ ac_configure_args0=; unset ac_configure_args0;}
2244{ ac_configure_args1=; unset ac_configure_args1;}
2245
2246# When interrupted or exit'd, cleanup temporary files, and complete
2247# config.log.  We remove comments because anyway the quotes in there
2248# would cause problems or look ugly.
2249# WARNING: Use '\'' to represent an apostrophe within the trap.
2250# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251trap 'exit_status=$?
2252  # Save into config.log some information that might help in debugging.
2253  {
2254    echo
2255
2256    $as_echo "## ---------------- ##
2257## Cache variables. ##
2258## ---------------- ##"
2259    echo
2260    # The following way of writing the cache mishandles newlines in values,
2261(
2262  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263    eval ac_val=\$$ac_var
2264    case $ac_val in #(
2265    *${as_nl}*)
2266      case $ac_var in #(
2267      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269      esac
2270      case $ac_var in #(
2271      _ | IFS | as_nl) ;; #(
2272      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273      *) { eval $ac_var=; unset $ac_var;} ;;
2274      esac ;;
2275    esac
2276  done
2277  (set) 2>&1 |
2278    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279    *${as_nl}ac_space=\ *)
2280      sed -n \
2281	"s/'\''/'\''\\\\'\'''\''/g;
2282	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283      ;; #(
2284    *)
2285      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286      ;;
2287    esac |
2288    sort
2289)
2290    echo
2291
2292    $as_echo "## ----------------- ##
2293## Output variables. ##
2294## ----------------- ##"
2295    echo
2296    for ac_var in $ac_subst_vars
2297    do
2298      eval ac_val=\$$ac_var
2299      case $ac_val in
2300      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301      esac
2302      $as_echo "$ac_var='\''$ac_val'\''"
2303    done | sort
2304    echo
2305
2306    if test -n "$ac_subst_files"; then
2307      $as_echo "## ------------------- ##
2308## File substitutions. ##
2309## ------------------- ##"
2310      echo
2311      for ac_var in $ac_subst_files
2312      do
2313	eval ac_val=\$$ac_var
2314	case $ac_val in
2315	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316	esac
2317	$as_echo "$ac_var='\''$ac_val'\''"
2318      done | sort
2319      echo
2320    fi
2321
2322    if test -s confdefs.h; then
2323      $as_echo "## ----------- ##
2324## confdefs.h. ##
2325## ----------- ##"
2326      echo
2327      cat confdefs.h
2328      echo
2329    fi
2330    test "$ac_signal" != 0 &&
2331      $as_echo "$as_me: caught signal $ac_signal"
2332    $as_echo "$as_me: exit $exit_status"
2333  } >&5
2334  rm -f core *.core core.conftest.* &&
2335    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336    exit $exit_status
2337' 0
2338for ac_signal in 1 2 13 15; do
2339  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340done
2341ac_signal=0
2342
2343# confdefs.h avoids OS command line length limits that DEFS can exceed.
2344rm -f -r conftest* confdefs.h
2345
2346$as_echo "/* confdefs.h */" > confdefs.h
2347
2348# Predefined preprocessor variables.
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_NAME "$PACKAGE_NAME"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_VERSION "$PACKAGE_VERSION"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_STRING "$PACKAGE_STRING"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_URL "$PACKAGE_URL"
2372_ACEOF
2373
2374
2375# Let the site file select an alternate cache file if it wants to.
2376# Prefer an explicitly selected file to automatically selected ones.
2377ac_site_file1=NONE
2378ac_site_file2=NONE
2379if test -n "$CONFIG_SITE"; then
2380  # We do not want a PATH search for config.site.
2381  case $CONFIG_SITE in #((
2382    -*)  ac_site_file1=./$CONFIG_SITE;;
2383    */*) ac_site_file1=$CONFIG_SITE;;
2384    *)   ac_site_file1=./$CONFIG_SITE;;
2385  esac
2386elif test "x$prefix" != xNONE; then
2387  ac_site_file1=$prefix/share/config.site
2388  ac_site_file2=$prefix/etc/config.site
2389else
2390  ac_site_file1=$ac_default_prefix/share/config.site
2391  ac_site_file2=$ac_default_prefix/etc/config.site
2392fi
2393for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394do
2395  test "x$ac_site_file" = xNONE && continue
2396  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2397    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399    sed 's/^/| /' "$ac_site_file" >&5
2400    . "$ac_site_file" \
2401      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403as_fn_error $? "failed to load site script $ac_site_file
2404See \`config.log' for more details" "$LINENO" 5; }
2405  fi
2406done
2407
2408if test -r "$cache_file"; then
2409  # Some versions of bash will fail to source /dev/null (special files
2410  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2411  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413$as_echo "$as_me: loading cache $cache_file" >&6;}
2414    case $cache_file in
2415      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416      *)                      . "./$cache_file";;
2417    esac
2418  fi
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421$as_echo "$as_me: creating cache $cache_file" >&6;}
2422  >$cache_file
2423fi
2424
2425# Check that the precious variables saved in the cache have kept the same
2426# value.
2427ac_cache_corrupted=false
2428for ac_var in $ac_precious_vars; do
2429  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430  eval ac_new_set=\$ac_env_${ac_var}_set
2431  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432  eval ac_new_val=\$ac_env_${ac_var}_value
2433  case $ac_old_set,$ac_new_set in
2434    set,)
2435      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437      ac_cache_corrupted=: ;;
2438    ,set)
2439      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441      ac_cache_corrupted=: ;;
2442    ,);;
2443    *)
2444      if test "x$ac_old_val" != "x$ac_new_val"; then
2445	# differences in whitespace do not lead to failure.
2446	ac_old_val_w=`echo x $ac_old_val`
2447	ac_new_val_w=`echo x $ac_new_val`
2448	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451	  ac_cache_corrupted=:
2452	else
2453	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455	  eval $ac_var=\$ac_old_val
2456	fi
2457	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2458$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2459	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2460$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2461      fi;;
2462  esac
2463  # Pass precious variables to config.status.
2464  if test "$ac_new_set" = set; then
2465    case $ac_new_val in
2466    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467    *) ac_arg=$ac_var=$ac_new_val ;;
2468    esac
2469    case " $ac_configure_args " in
2470      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2471      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472    esac
2473  fi
2474done
2475if $ac_cache_corrupted; then
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2481fi
2482## -------------------- ##
2483## Main body of script. ##
2484## -------------------- ##
2485
2486ac_ext=c
2487ac_cpp='$CPP $CPPFLAGS'
2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491
2492
2493am__api_version='1.15'
2494
2495ac_aux_dir=
2496for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2497  if test -f "$ac_dir/install-sh"; then
2498    ac_aux_dir=$ac_dir
2499    ac_install_sh="$ac_aux_dir/install-sh -c"
2500    break
2501  elif test -f "$ac_dir/install.sh"; then
2502    ac_aux_dir=$ac_dir
2503    ac_install_sh="$ac_aux_dir/install.sh -c"
2504    break
2505  elif test -f "$ac_dir/shtool"; then
2506    ac_aux_dir=$ac_dir
2507    ac_install_sh="$ac_aux_dir/shtool install -c"
2508    break
2509  fi
2510done
2511if test -z "$ac_aux_dir"; then
2512  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2513fi
2514
2515# These three variables are undocumented and unsupported,
2516# and are intended to be withdrawn in a future Autoconf release.
2517# They can cause serious problems if a builder's source tree is in a directory
2518# whose full name contains unusual characters.
2519ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2520ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2521ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2522
2523
2524# Find a good install program.  We prefer a C program (faster),
2525# so one script is as good as another.  But avoid the broken or
2526# incompatible versions:
2527# SysV /etc/install, /usr/sbin/install
2528# SunOS /usr/etc/install
2529# IRIX /sbin/install
2530# AIX /bin/install
2531# AmigaOS /C/install, which installs bootblocks on floppy discs
2532# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2533# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2534# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2535# OS/2's system install, which has a completely different semantic
2536# ./install, which can be erroneously created by make from ./install.sh.
2537# Reject install programs that cannot install multiple files.
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2539$as_echo_n "checking for a BSD-compatible install... " >&6; }
2540if test -z "$INSTALL"; then
2541if ${ac_cv_path_install+:} false; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    # Account for people who put trailing slashes in PATH elements.
2550case $as_dir/ in #((
2551  ./ | .// | /[cC]/* | \
2552  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2553  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2554  /usr/ucb/* ) ;;
2555  *)
2556    # OSF1 and SCO ODT 3.0 have their own names for install.
2557    # Don't use installbsd from OSF since it installs stuff as root
2558    # by default.
2559    for ac_prog in ginstall scoinst install; do
2560      for ac_exec_ext in '' $ac_executable_extensions; do
2561	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2562	  if test $ac_prog = install &&
2563	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564	    # AIX install.  It has an incompatible calling convention.
2565	    :
2566	  elif test $ac_prog = install &&
2567	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568	    # program-specific install script used by HP pwplus--don't use.
2569	    :
2570	  else
2571	    rm -rf conftest.one conftest.two conftest.dir
2572	    echo one > conftest.one
2573	    echo two > conftest.two
2574	    mkdir conftest.dir
2575	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2576	      test -s conftest.one && test -s conftest.two &&
2577	      test -s conftest.dir/conftest.one &&
2578	      test -s conftest.dir/conftest.two
2579	    then
2580	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2581	      break 3
2582	    fi
2583	  fi
2584	fi
2585      done
2586    done
2587    ;;
2588esac
2589
2590  done
2591IFS=$as_save_IFS
2592
2593rm -rf conftest.one conftest.two conftest.dir
2594
2595fi
2596  if test "${ac_cv_path_install+set}" = set; then
2597    INSTALL=$ac_cv_path_install
2598  else
2599    # As a last resort, use the slow shell script.  Don't cache a
2600    # value for INSTALL within a source directory, because that will
2601    # break other packages using the cache if that directory is
2602    # removed, or if the value is a relative name.
2603    INSTALL=$ac_install_sh
2604  fi
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2607$as_echo "$INSTALL" >&6; }
2608
2609# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2610# It thinks the first close brace ends the variable substitution.
2611test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2612
2613test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2614
2615test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2616
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2618$as_echo_n "checking whether build environment is sane... " >&6; }
2619# Reject unsafe characters in $srcdir or the absolute working directory
2620# name.  Accept space and tab only in the latter.
2621am_lf='
2622'
2623case `pwd` in
2624  *[\\\"\#\$\&\'\`$am_lf]*)
2625    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2626esac
2627case $srcdir in
2628  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2629    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2630esac
2631
2632# Do 'set' in a subshell so we don't clobber the current shell's
2633# arguments.  Must try -L first in case configure is actually a
2634# symlink; some systems play weird games with the mod time of symlinks
2635# (eg FreeBSD returns the mod time of the symlink's containing
2636# directory).
2637if (
2638   am_has_slept=no
2639   for am_try in 1 2; do
2640     echo "timestamp, slept: $am_has_slept" > conftest.file
2641     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2642     if test "$*" = "X"; then
2643	# -L didn't work.
2644	set X `ls -t "$srcdir/configure" conftest.file`
2645     fi
2646     if test "$*" != "X $srcdir/configure conftest.file" \
2647	&& test "$*" != "X conftest.file $srcdir/configure"; then
2648
2649	# If neither matched, then we have a broken ls.  This can happen
2650	# if, for instance, CONFIG_SHELL is bash and it inherits a
2651	# broken ls alias from the environment.  This has actually
2652	# happened.  Such a system could not be considered "sane".
2653	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2654  alias in your environment" "$LINENO" 5
2655     fi
2656     if test "$2" = conftest.file || test $am_try -eq 2; then
2657       break
2658     fi
2659     # Just in case.
2660     sleep 1
2661     am_has_slept=yes
2662   done
2663   test "$2" = conftest.file
2664   )
2665then
2666   # Ok.
2667   :
2668else
2669   as_fn_error $? "newly created file is older than distributed files!
2670Check your system clock" "$LINENO" 5
2671fi
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673$as_echo "yes" >&6; }
2674# If we didn't sleep, we still need to ensure time stamps of config.status and
2675# generated files are strictly newer.
2676am_sleep_pid=
2677if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2678  ( sleep 1 ) &
2679  am_sleep_pid=$!
2680fi
2681
2682rm -f conftest.file
2683
2684test "$program_prefix" != NONE &&
2685  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2686# Use a double $ so make ignores it.
2687test "$program_suffix" != NONE &&
2688  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2689# Double any \ or $.
2690# By default was `s,x,x', remove it if useless.
2691ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2692program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2693
2694# Expand $ac_aux_dir to an absolute path.
2695am_aux_dir=`cd "$ac_aux_dir" && pwd`
2696
2697if test x"${MISSING+set}" != xset; then
2698  case $am_aux_dir in
2699  *\ * | *\	*)
2700    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2701  *)
2702    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2703  esac
2704fi
2705# Use eval to expand $SHELL
2706if eval "$MISSING --is-lightweight"; then
2707  am_missing_run="$MISSING "
2708else
2709  am_missing_run=
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2711$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2712fi
2713
2714if test x"${install_sh+set}" != xset; then
2715  case $am_aux_dir in
2716  *\ * | *\	*)
2717    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2718  *)
2719    install_sh="\${SHELL} $am_aux_dir/install-sh"
2720  esac
2721fi
2722
2723# Installed binaries are usually stripped using 'strip' when the user
2724# run "make install-strip".  However 'strip' might not be the right
2725# tool to use in cross-compilation environments, therefore Automake
2726# will honor the 'STRIP' environment variable to overrule this program.
2727if test "$cross_compiling" != no; then
2728  if test -n "$ac_tool_prefix"; then
2729  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2730set dummy ${ac_tool_prefix}strip; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_STRIP+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$STRIP"; then
2737  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756STRIP=$ac_cv_prog_STRIP
2757if test -n "$STRIP"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2759$as_echo "$STRIP" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766fi
2767if test -z "$ac_cv_prog_STRIP"; then
2768  ac_ct_STRIP=$STRIP
2769  # Extract the first word of "strip", so it can be a program name with args.
2770set dummy strip; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$ac_ct_STRIP"; then
2777  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784    for ac_exec_ext in '' $ac_executable_extensions; do
2785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786    ac_cv_prog_ac_ct_STRIP="strip"
2787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788    break 2
2789  fi
2790done
2791  done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2797if test -n "$ac_ct_STRIP"; then
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2799$as_echo "$ac_ct_STRIP" >&6; }
2800else
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805  if test "x$ac_ct_STRIP" = x; then
2806    STRIP=":"
2807  else
2808    case $cross_compiling:$ac_tool_warned in
2809yes:)
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812ac_tool_warned=yes ;;
2813esac
2814    STRIP=$ac_ct_STRIP
2815  fi
2816else
2817  STRIP="$ac_cv_prog_STRIP"
2818fi
2819
2820fi
2821INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2824$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2825if test -z "$MKDIR_P"; then
2826  if ${ac_cv_path_mkdir+:} false; then :
2827  $as_echo_n "(cached) " >&6
2828else
2829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2831do
2832  IFS=$as_save_IFS
2833  test -z "$as_dir" && as_dir=.
2834    for ac_prog in mkdir gmkdir; do
2835	 for ac_exec_ext in '' $ac_executable_extensions; do
2836	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2837	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2838	     'mkdir (GNU coreutils) '* | \
2839	     'mkdir (coreutils) '* | \
2840	     'mkdir (fileutils) '4.1*)
2841	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2842	       break 3;;
2843	   esac
2844	 done
2845       done
2846  done
2847IFS=$as_save_IFS
2848
2849fi
2850
2851  test -d ./--version && rmdir ./--version
2852  if test "${ac_cv_path_mkdir+set}" = set; then
2853    MKDIR_P="$ac_cv_path_mkdir -p"
2854  else
2855    # As a last resort, use the slow shell script.  Don't cache a
2856    # value for MKDIR_P within a source directory, because that will
2857    # break other packages using the cache if that directory is
2858    # removed, or if the value is a relative name.
2859    MKDIR_P="$ac_install_sh -d"
2860  fi
2861fi
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2863$as_echo "$MKDIR_P" >&6; }
2864
2865for ac_prog in gawk mawk nawk awk
2866do
2867  # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_AWK+:} false; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  if test -n "$AWK"; then
2875  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  test -z "$as_dir" && as_dir=.
2882    for ac_exec_ext in '' $ac_executable_extensions; do
2883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884    ac_cv_prog_AWK="$ac_prog"
2885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894AWK=$ac_cv_prog_AWK
2895if test -n "$AWK"; then
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2897$as_echo "$AWK" >&6; }
2898else
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904  test -n "$AWK" && break
2905done
2906
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2909set x ${MAKE-make}
2910ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2911if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  cat >conftest.make <<\_ACEOF
2915SHELL = /bin/sh
2916all:
2917	@echo '@@@%%%=$(MAKE)=@@@%%%'
2918_ACEOF
2919# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2920case `${MAKE-make} -f conftest.make 2>/dev/null` in
2921  *@@@%%%=?*=@@@%%%*)
2922    eval ac_cv_prog_make_${ac_make}_set=yes;;
2923  *)
2924    eval ac_cv_prog_make_${ac_make}_set=no;;
2925esac
2926rm -f conftest.make
2927fi
2928if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2930$as_echo "yes" >&6; }
2931  SET_MAKE=
2932else
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935  SET_MAKE="MAKE=${MAKE-make}"
2936fi
2937
2938rm -rf .tst 2>/dev/null
2939mkdir .tst 2>/dev/null
2940if test -d .tst; then
2941  am__leading_dot=.
2942else
2943  am__leading_dot=_
2944fi
2945rmdir .tst 2>/dev/null
2946
2947# Check whether --enable-silent-rules was given.
2948if test "${enable_silent_rules+set}" = set; then :
2949  enableval=$enable_silent_rules;
2950fi
2951
2952case $enable_silent_rules in # (((
2953  yes) AM_DEFAULT_VERBOSITY=0;;
2954   no) AM_DEFAULT_VERBOSITY=1;;
2955    *) AM_DEFAULT_VERBOSITY=1;;
2956esac
2957am_make=${MAKE-make}
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2959$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2960if ${am_cv_make_support_nested_variables+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if $as_echo 'TRUE=$(BAR$(V))
2964BAR0=false
2965BAR1=true
2966V=1
2967am__doit:
2968	@$(TRUE)
2969.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2970  am_cv_make_support_nested_variables=yes
2971else
2972  am_cv_make_support_nested_variables=no
2973fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2976$as_echo "$am_cv_make_support_nested_variables" >&6; }
2977if test $am_cv_make_support_nested_variables = yes; then
2978    AM_V='$(V)'
2979  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2980else
2981  AM_V=$AM_DEFAULT_VERBOSITY
2982  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2983fi
2984AM_BACKSLASH='\'
2985
2986if test "`cd $srcdir && pwd`" != "`pwd`"; then
2987  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2988  # is not polluted with repeated "-I."
2989  am__isrc=' -I$(srcdir)'
2990  # test to see if srcdir already configured
2991  if test -f $srcdir/config.status; then
2992    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2993  fi
2994fi
2995
2996# test whether we have cygpath
2997if test -z "$CYGPATH_W"; then
2998  if (cygpath --version) >/dev/null 2>/dev/null; then
2999    CYGPATH_W='cygpath -w'
3000  else
3001    CYGPATH_W=echo
3002  fi
3003fi
3004
3005
3006# Define the identity of the package.
3007 PACKAGE='cabextract'
3008 VERSION='1.9.1'
3009
3010
3011cat >>confdefs.h <<_ACEOF
3012#define PACKAGE "$PACKAGE"
3013_ACEOF
3014
3015
3016cat >>confdefs.h <<_ACEOF
3017#define VERSION "$VERSION"
3018_ACEOF
3019
3020# Some tools Automake needs.
3021
3022ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3023
3024
3025AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3026
3027
3028AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3029
3030
3031AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3032
3033
3034MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3035
3036# For better backward compatibility.  To be removed once Automake 1.9.x
3037# dies out for good.  For more background, see:
3038# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3039# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3040mkdir_p='$(MKDIR_P)'
3041
3042# We need awk for the "check" target (and possibly the TAP driver).  The
3043# system "awk" is bad on some platforms.
3044# Always define AMTAR for backward compatibility.  Yes, it's still used
3045# in the wild :-(  We should find a proper way to deprecate it ...
3046AMTAR='$${TAR-tar}'
3047
3048
3049# We'll loop over all known methods to create a tar archive until one works.
3050_am_tools='gnutar  pax cpio none'
3051
3052am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3053
3054
3055
3056
3057
3058
3059# POSIX will say in a future version that running "rm -f" with no argument
3060# is OK; and we want to be able to make that assumption in our Makefile
3061# recipes.  So use an aggressive probe to check that the usage we want is
3062# actually supported "in the wild" to an acceptable degree.
3063# See automake bug#10828.
3064# To make any issue more visible, cause the running configure to be aborted
3065# by default if the 'rm' program in use doesn't match our expectations; the
3066# user can still override this though.
3067if rm -f && rm -fr && rm -rf; then : OK; else
3068  cat >&2 <<'END'
3069Oops!
3070
3071Your 'rm' program seems unable to run without file operands specified
3072on the command line, even when the '-f' option is present.  This is contrary
3073to the behaviour of most rm programs out there, and not conforming with
3074the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3075
3076Please tell bug-automake@gnu.org about your system, including the value
3077of your $PATH and any error possibly output before this message.  This
3078can help us improve future automake versions.
3079
3080END
3081  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3082    echo 'Configuration will proceed anyway, since you have set the' >&2
3083    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3084    echo >&2
3085  else
3086    cat >&2 <<'END'
3087Aborting the configuration process, to ensure you take notice of the issue.
3088
3089You can download and install GNU coreutils to get an 'rm' implementation
3090that behaves properly: <http://www.gnu.org/software/coreutils/>.
3091
3092If you want to complete the configuration process using your problematic
3093'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3094to "yes", and re-run configure.
3095
3096END
3097    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3098  fi
3099fi
3100
3101
3102ac_config_headers="$ac_config_headers config.h"
3103
3104
3105# Checks for programs.
3106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111if test -n "$ac_tool_prefix"; then
3112  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_CC+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149fi
3150if test -z "$ac_cv_prog_CC"; then
3151  ac_ct_CC=$CC
3152  # Extract the first word of "gcc", so it can be a program name with args.
3153set dummy gcc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_ac_ct_CC="gcc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188  if test "x$ac_ct_CC" = x; then
3189    CC=""
3190  else
3191    case $cross_compiling:$ac_tool_warned in
3192yes:)
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195ac_tool_warned=yes ;;
3196esac
3197    CC=$ac_ct_CC
3198  fi
3199else
3200  CC="$ac_cv_prog_CC"
3201fi
3202
3203if test -z "$CC"; then
3204          if test -n "$ac_tool_prefix"; then
3205    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206set dummy ${ac_tool_prefix}cc; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_CC+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$CC"; then
3213  ac_cv_prog_CC="$CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_CC="${ac_tool_prefix}cc"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235$as_echo "$CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242  fi
3243fi
3244if test -z "$CC"; then
3245  # Extract the first word of "cc", so it can be a program name with args.
3246set dummy cc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255  ac_prog_rejected=no
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264       ac_prog_rejected=yes
3265       continue
3266     fi
3267    ac_cv_prog_CC="cc"
3268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272  done
3273IFS=$as_save_IFS
3274
3275if test $ac_prog_rejected = yes; then
3276  # We found a bogon in the path, so make sure we never use it.
3277  set dummy $ac_cv_prog_CC
3278  shift
3279  if test $# != 0; then
3280    # We chose a different compiler from the bogus one.
3281    # However, it has the same basename, so the bogon will be chosen
3282    # first if we set CC to just the basename; use the full file name.
3283    shift
3284    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285  fi
3286fi
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299fi
3300if test -z "$CC"; then
3301  if test -n "$ac_tool_prefix"; then
3302  for ac_prog in cl.exe
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_CC+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  if test -n "$CC"; then
3312  ac_cv_prog_CC="$CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319    for ac_exec_ext in '' $ac_executable_extensions; do
3320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326  done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341    test -n "$CC" && break
3342  done
3343fi
3344if test -z "$CC"; then
3345  ac_ct_CC=$CC
3346  for ac_prog in cl.exe
3347do
3348  # Extract the first word of "$ac_prog", so it can be a program name with args.
3349set dummy $ac_prog; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -n "$ac_ct_CC"; then
3356  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_exec_ext in '' $ac_executable_extensions; do
3364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365    ac_cv_prog_ac_ct_CC="$ac_prog"
3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370  done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376if test -n "$ac_ct_CC"; then
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378$as_echo "$ac_ct_CC" >&6; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385  test -n "$ac_ct_CC" && break
3386done
3387
3388  if test "x$ac_ct_CC" = x; then
3389    CC=""
3390  else
3391    case $cross_compiling:$ac_tool_warned in
3392yes:)
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395ac_tool_warned=yes ;;
3396esac
3397    CC=$ac_ct_CC
3398  fi
3399fi
3400
3401fi
3402
3403
3404test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error $? "no acceptable C compiler found in \$PATH
3407See \`config.log' for more details" "$LINENO" 5; }
3408
3409# Provide some information about the compiler.
3410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3411set X $ac_compile
3412ac_compiler=$2
3413for ac_option in --version -v -V -qversion; do
3414  { { ac_try="$ac_compiler $ac_option >&5"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3422  ac_status=$?
3423  if test -s conftest.err; then
3424    sed '10a\
3425... rest of stderr output deleted ...
3426         10q' conftest.err >conftest.er1
3427    cat conftest.er1 >&5
3428  fi
3429  rm -f conftest.er1 conftest.err
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }
3432done
3433
3434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445ac_clean_files_save=$ac_clean_files
3446ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3447# Try to create an executable without -o first, disregard a.out.
3448# It will help us diagnose broken compilers, and finding out an intuition
3449# of exeext.
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451$as_echo_n "checking whether the C compiler works... " >&6; }
3452ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
3454# The possible output files:
3455ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456
3457ac_rmfiles=
3458for ac_file in $ac_files
3459do
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3463  esac
3464done
3465rm -f $ac_rmfiles
3466
3467if { { ac_try="$ac_link_default"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_link_default") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }; then :
3478  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3479# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3480# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3481# so that the user can short-circuit this test for compilers unknown to
3482# Autoconf.
3483for ac_file in $ac_files ''
3484do
3485  test -f "$ac_file" || continue
3486  case $ac_file in
3487    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488	;;
3489    [ab].out )
3490	# We found the default executable, but exeext='' is most
3491	# certainly right.
3492	break;;
3493    *.* )
3494	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495	then :; else
3496	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497	fi
3498	# We set ac_cv_exeext here because the later test for it is not
3499	# safe: cross compilers may not add the suffix if given an `-o'
3500	# argument, so we may need to know it at that point already.
3501	# Even if this section looks crufty: it has the advantage of
3502	# actually working.
3503	break;;
3504    * )
3505	break;;
3506  esac
3507done
3508test "$ac_cv_exeext" = no && ac_cv_exeext=
3509
3510else
3511  ac_file=''
3512fi
3513if test -z "$ac_file"; then :
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516$as_echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error 77 "C compiler cannot create executables
3522See \`config.log' for more details" "$LINENO" 5; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525$as_echo "yes" >&6; }
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528$as_echo_n "checking for C compiler default output file name... " >&6; }
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530$as_echo "$ac_file" >&6; }
3531ac_exeext=$ac_cv_exeext
3532
3533rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534ac_clean_files=$ac_clean_files_save
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536$as_echo_n "checking for suffix of executables... " >&6; }
3537if { { ac_try="$ac_link"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543$as_echo "$ac_try_echo"; } >&5
3544  (eval "$ac_link") 2>&5
3545  ac_status=$?
3546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547  test $ac_status = 0; }; then :
3548  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3549# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3550# work properly (i.e., refer to `conftest.exe'), while it won't with
3551# `rm'.
3552for ac_file in conftest.exe conftest conftest.*; do
3553  test -f "$ac_file" || continue
3554  case $ac_file in
3555    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557	  break;;
3558    * ) break;;
3559  esac
3560done
3561else
3562  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3565See \`config.log' for more details" "$LINENO" 5; }
3566fi
3567rm -f conftest conftest$ac_cv_exeext
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569$as_echo "$ac_cv_exeext" >&6; }
3570
3571rm -f conftest.$ac_ext
3572EXEEXT=$ac_cv_exeext
3573ac_exeext=$EXEEXT
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576#include <stdio.h>
3577int
3578main ()
3579{
3580FILE *f = fopen ("conftest.out", "w");
3581 return ferror (f) || fclose (f) != 0;
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587ac_clean_files="$ac_clean_files conftest.out"
3588# Check that the compiler produces executables we can run.  If not, either
3589# the compiler is broken, or we cross compile.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591$as_echo_n "checking whether we are cross compiling... " >&6; }
3592if test "$cross_compiling" != yes; then
3593  { { ac_try="$ac_link"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600  (eval "$ac_link") 2>&5
3601  ac_status=$?
3602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603  test $ac_status = 0; }
3604  if { ac_try='./conftest$ac_cv_exeext'
3605  { { case "(($ac_try" in
3606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607  *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611  (eval "$ac_try") 2>&5
3612  ac_status=$?
3613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614  test $ac_status = 0; }; }; then
3615    cross_compiling=no
3616  else
3617    if test "$cross_compiling" = maybe; then
3618	cross_compiling=yes
3619    else
3620	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622as_fn_error $? "cannot run C compiled programs.
3623If you meant to cross compile, use \`--host'.
3624See \`config.log' for more details" "$LINENO" 5; }
3625    fi
3626  fi
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629$as_echo "$cross_compiling" >&6; }
3630
3631rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632ac_clean_files=$ac_clean_files_save
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634$as_echo_n "checking for suffix of object files... " >&6; }
3635if ${ac_cv_objext+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649rm -f conftest.o conftest.obj
3650if { { ac_try="$ac_compile"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657  (eval "$ac_compile") 2>&5
3658  ac_status=$?
3659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660  test $ac_status = 0; }; then :
3661  for ac_file in conftest.o conftest.obj conftest.*; do
3662  test -f "$ac_file" || continue;
3663  case $ac_file in
3664    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3666       break;;
3667  esac
3668done
3669else
3670  $as_echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675as_fn_error $? "cannot compute suffix of object files: cannot compile
3676See \`config.log' for more details" "$LINENO" 5; }
3677fi
3678rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681$as_echo "$ac_cv_objext" >&6; }
3682OBJEXT=$ac_cv_objext
3683ac_objext=$OBJEXT
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686if ${ac_cv_c_compiler_gnu+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695#ifndef __GNUC__
3696       choke me
3697#endif
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704  ac_compiler_gnu=yes
3705else
3706  ac_compiler_gnu=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714if test $ac_compiler_gnu = yes; then
3715  GCC=yes
3716else
3717  GCC=
3718fi
3719ac_test_CFLAGS=${CFLAGS+set}
3720ac_save_CFLAGS=$CFLAGS
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722$as_echo_n "checking whether $CC accepts -g... " >&6; }
3723if ${ac_cv_prog_cc_g+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  ac_save_c_werror_flag=$ac_c_werror_flag
3727   ac_c_werror_flag=yes
3728   ac_cv_prog_cc_g=no
3729   CFLAGS="-g"
3730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742  ac_cv_prog_cc_g=yes
3743else
3744  CFLAGS=""
3745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h.  */
3747
3748int
3749main ()
3750{
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756if ac_fn_c_try_compile "$LINENO"; then :
3757
3758else
3759  ac_c_werror_flag=$ac_save_c_werror_flag
3760	 CFLAGS="-g"
3761	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
3773  ac_cv_prog_cc_g=yes
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780   ac_c_werror_flag=$ac_save_c_werror_flag
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783$as_echo "$ac_cv_prog_cc_g" >&6; }
3784if test "$ac_test_CFLAGS" = set; then
3785  CFLAGS=$ac_save_CFLAGS
3786elif test $ac_cv_prog_cc_g = yes; then
3787  if test "$GCC" = yes; then
3788    CFLAGS="-g -O2"
3789  else
3790    CFLAGS="-g"
3791  fi
3792else
3793  if test "$GCC" = yes; then
3794    CFLAGS="-O2"
3795  else
3796    CFLAGS=
3797  fi
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801if ${ac_cv_prog_cc_c89+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  ac_cv_prog_cc_c89=no
3805ac_save_CC=$CC
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808#include <stdarg.h>
3809#include <stdio.h>
3810struct stat;
3811/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3812struct buf { int x; };
3813FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814static char *e (p, i)
3815     char **p;
3816     int i;
3817{
3818  return p[i];
3819}
3820static char *f (char * (*g) (char **, int), char **p, ...)
3821{
3822  char *s;
3823  va_list v;
3824  va_start (v,p);
3825  s = g (p, va_arg (v,int));
3826  va_end (v);
3827  return s;
3828}
3829
3830/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3831   function prototypes and stuff, but not '\xHH' hex character constants.
3832   These don't provoke an error unfortunately, instead are silently treated
3833   as 'x'.  The following induces an error, until -std is added to get
3834   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3835   array size at least.  It's necessary to write '\x00'==0 to get something
3836   that's true only with -std.  */
3837int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840   inside strings and character constants.  */
3841#define FOO(x) 'x'
3842int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844int test (int i, double x);
3845struct s1 {int (*f) (int a);};
3846struct s2 {int (*f) (double a);};
3847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848int argc;
3849char **argv;
3850int
3851main ()
3852{
3853return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860do
3861  CC="$ac_save_CC $ac_arg"
3862  if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_cv_prog_cc_c89=$ac_arg
3864fi
3865rm -f core conftest.err conftest.$ac_objext
3866  test "x$ac_cv_prog_cc_c89" != "xno" && break
3867done
3868rm -f conftest.$ac_ext
3869CC=$ac_save_CC
3870
3871fi
3872# AC_CACHE_VAL
3873case "x$ac_cv_prog_cc_c89" in
3874  x)
3875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876$as_echo "none needed" >&6; } ;;
3877  xno)
3878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879$as_echo "unsupported" >&6; } ;;
3880  *)
3881    CC="$CC $ac_cv_prog_cc_c89"
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884esac
3885if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887fi
3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3901$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3902if ${am_cv_prog_cc_c_o+:} false; then :
3903  $as_echo_n "(cached) " >&6
3904else
3905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916  # Make sure it works both with $CC and with simple cc.
3917  # Following AC_PROG_CC_C_O, we do the test twice because some
3918  # compilers refuse to overwrite an existing .o file with -o,
3919  # though they will create one.
3920  am_cv_prog_cc_c_o=yes
3921  for am_i in 1 2; do
3922    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3923   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } \
3927         && test -f conftest2.$ac_objext; then
3928      : OK
3929    else
3930      am_cv_prog_cc_c_o=no
3931      break
3932    fi
3933  done
3934  rm -f core conftest*
3935  unset am_i
3936fi
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3938$as_echo "$am_cv_prog_cc_c_o" >&6; }
3939if test "$am_cv_prog_cc_c_o" != yes; then
3940   # Losing compiler, so override with the script.
3941   # FIXME: It is wrong to rewrite CC.
3942   # But if we don't then we get into trouble of one sort or another.
3943   # A longer-term fix would be to have automake use am__CC in this case,
3944   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945   CC="$am_aux_dir/compile $CC"
3946fi
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953DEPDIR="${am__leading_dot}deps"
3954
3955ac_config_commands="$ac_config_commands depfiles"
3956
3957
3958am_make=${MAKE-make}
3959cat > confinc << 'END'
3960am__doit:
3961	@echo this is the am__doit target
3962.PHONY: am__doit
3963END
3964# If we don't find an include directive, just comment out the code.
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3966$as_echo_n "checking for style of include used by $am_make... " >&6; }
3967am__include="#"
3968am__quote=
3969_am_result=none
3970# First try GNU make style include.
3971echo "include confinc" > confmf
3972# Ignore all kinds of additional output from 'make'.
3973case `$am_make -s -f confmf 2> /dev/null` in #(
3974*the\ am__doit\ target*)
3975  am__include=include
3976  am__quote=
3977  _am_result=GNU
3978  ;;
3979esac
3980# Now try BSD make style include.
3981if test "$am__include" = "#"; then
3982   echo '.include "confinc"' > confmf
3983   case `$am_make -s -f confmf 2> /dev/null` in #(
3984   *the\ am__doit\ target*)
3985     am__include=.include
3986     am__quote="\""
3987     _am_result=BSD
3988     ;;
3989   esac
3990fi
3991
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3994$as_echo "$_am_result" >&6; }
3995rm -f confinc confmf
3996
3997# Check whether --enable-dependency-tracking was given.
3998if test "${enable_dependency_tracking+set}" = set; then :
3999  enableval=$enable_dependency_tracking;
4000fi
4001
4002if test "x$enable_dependency_tracking" != xno; then
4003  am_depcomp="$ac_aux_dir/depcomp"
4004  AMDEPBACKSLASH='\'
4005  am__nodep='_no'
4006fi
4007 if test "x$enable_dependency_tracking" != xno; then
4008  AMDEP_TRUE=
4009  AMDEP_FALSE='#'
4010else
4011  AMDEP_TRUE='#'
4012  AMDEP_FALSE=
4013fi
4014
4015
4016
4017depcc="$CC"   am_compiler_list=
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4020$as_echo_n "checking dependency style of $depcc... " >&6; }
4021if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4025  # We make a subdir and do the tests there.  Otherwise we can end up
4026  # making bogus files that we don't know about and never remove.  For
4027  # instance it was reported that on HP-UX the gcc test will end up
4028  # making a dummy file named 'D' -- because '-MD' means "put the output
4029  # in D".
4030  rm -rf conftest.dir
4031  mkdir conftest.dir
4032  # Copy depcomp to subdir because otherwise we won't find it if we're
4033  # using a relative directory.
4034  cp "$am_depcomp" conftest.dir
4035  cd conftest.dir
4036  # We will build objects and dependencies in a subdirectory because
4037  # it helps to detect inapplicable dependency modes.  For instance
4038  # both Tru64's cc and ICC support -MD to output dependencies as a
4039  # side effect of compilation, but ICC will put the dependencies in
4040  # the current directory while Tru64 will put them in the object
4041  # directory.
4042  mkdir sub
4043
4044  am_cv_CC_dependencies_compiler_type=none
4045  if test "$am_compiler_list" = ""; then
4046     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4047  fi
4048  am__universal=false
4049  case " $depcc " in #(
4050     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4051     esac
4052
4053  for depmode in $am_compiler_list; do
4054    # Setup a source with many dependencies, because some compilers
4055    # like to wrap large dependency lists on column 80 (with \), and
4056    # we should not choose a depcomp mode which is confused by this.
4057    #
4058    # We need to recreate these files for each test, as the compiler may
4059    # overwrite some of them when testing with obscure command lines.
4060    # This happens at least with the AIX C compiler.
4061    : > sub/conftest.c
4062    for i in 1 2 3 4 5 6; do
4063      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4064      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4065      # Solaris 10 /bin/sh.
4066      echo '/* dummy */' > sub/conftst$i.h
4067    done
4068    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4069
4070    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4071    # mode.  It turns out that the SunPro C++ compiler does not properly
4072    # handle '-M -o', and we need to detect this.  Also, some Intel
4073    # versions had trouble with output in subdirs.
4074    am__obj=sub/conftest.${OBJEXT-o}
4075    am__minus_obj="-o $am__obj"
4076    case $depmode in
4077    gcc)
4078      # This depmode causes a compiler race in universal mode.
4079      test "$am__universal" = false || continue
4080      ;;
4081    nosideeffect)
4082      # After this tag, mechanisms are not by side-effect, so they'll
4083      # only be used when explicitly requested.
4084      if test "x$enable_dependency_tracking" = xyes; then
4085	continue
4086      else
4087	break
4088      fi
4089      ;;
4090    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4091      # This compiler won't grok '-c -o', but also, the minuso test has
4092      # not run yet.  These depmodes are late enough in the game, and
4093      # so weak that their functioning should not be impacted.
4094      am__obj=conftest.${OBJEXT-o}
4095      am__minus_obj=
4096      ;;
4097    none) break ;;
4098    esac
4099    if depmode=$depmode \
4100       source=sub/conftest.c object=$am__obj \
4101       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4102       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4103         >/dev/null 2>conftest.err &&
4104       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4105       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4106       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4107       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4108      # icc doesn't choke on unknown options, it will just issue warnings
4109      # or remarks (even with -Werror).  So we grep stderr for any message
4110      # that says an option was ignored or not supported.
4111      # When given -MP, icc 7.0 and 7.1 complain thusly:
4112      #   icc: Command line warning: ignoring option '-M'; no argument required
4113      # The diagnosis changed in icc 8.0:
4114      #   icc: Command line remark: option '-MP' not supported
4115      if (grep 'ignoring option' conftest.err ||
4116          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4117        am_cv_CC_dependencies_compiler_type=$depmode
4118        break
4119      fi
4120    fi
4121  done
4122
4123  cd ..
4124  rm -rf conftest.dir
4125else
4126  am_cv_CC_dependencies_compiler_type=none
4127fi
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4131$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4132CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4133
4134 if
4135  test "x$enable_dependency_tracking" != xno \
4136  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4137  am__fastdepCC_TRUE=
4138  am__fastdepCC_FALSE='#'
4139else
4140  am__fastdepCC_TRUE='#'
4141  am__fastdepCC_FALSE=
4142fi
4143
4144
4145
4146if test -n "$ac_tool_prefix"; then
4147  for ac_prog in ar lib "link -lib"
4148  do
4149    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if ${ac_cv_prog_AR+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -n "$AR"; then
4157  ac_cv_prog_AR="$AR" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_exec_ext in '' $ac_executable_extensions; do
4165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171  done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176AR=$ac_cv_prog_AR
4177if test -n "$AR"; then
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4179$as_echo "$AR" >&6; }
4180else
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186    test -n "$AR" && break
4187  done
4188fi
4189if test -z "$AR"; then
4190  ac_ct_AR=$AR
4191  for ac_prog in ar lib "link -lib"
4192do
4193  # Extract the first word of "$ac_prog", so it can be a program name with args.
4194set dummy $ac_prog; ac_word=$2
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196$as_echo_n "checking for $ac_word... " >&6; }
4197if ${ac_cv_prog_ac_ct_AR+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  if test -n "$ac_ct_AR"; then
4201  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206  IFS=$as_save_IFS
4207  test -z "$as_dir" && as_dir=.
4208    for ac_exec_ext in '' $ac_executable_extensions; do
4209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210    ac_cv_prog_ac_ct_AR="$ac_prog"
4211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212    break 2
4213  fi
4214done
4215  done
4216IFS=$as_save_IFS
4217
4218fi
4219fi
4220ac_ct_AR=$ac_cv_prog_ac_ct_AR
4221if test -n "$ac_ct_AR"; then
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4223$as_echo "$ac_ct_AR" >&6; }
4224else
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
4227fi
4228
4229
4230  test -n "$ac_ct_AR" && break
4231done
4232
4233  if test "x$ac_ct_AR" = x; then
4234    AR="false"
4235  else
4236    case $cross_compiling:$ac_tool_warned in
4237yes:)
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240ac_tool_warned=yes ;;
4241esac
4242    AR=$ac_ct_AR
4243  fi
4244fi
4245
4246: ${AR=ar}
4247
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4249$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4250if ${am_cv_ar_interface+:} false; then :
4251  $as_echo_n "(cached) " >&6
4252else
4253  ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259   am_cv_ar_interface=ar
4260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262int some_variable = 0;
4263_ACEOF
4264if ac_fn_c_try_compile "$LINENO"; then :
4265  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4266      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4267  (eval $am_ar_try) 2>&5
4268  ac_status=$?
4269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270  test $ac_status = 0; }
4271      if test "$ac_status" -eq 0; then
4272        am_cv_ar_interface=ar
4273      else
4274        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4275        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4276  (eval $am_ar_try) 2>&5
4277  ac_status=$?
4278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279  test $ac_status = 0; }
4280        if test "$ac_status" -eq 0; then
4281          am_cv_ar_interface=lib
4282        else
4283          am_cv_ar_interface=unknown
4284        fi
4285      fi
4286      rm -f conftest.lib libconftest.a
4287
4288fi
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290   ac_ext=c
4291ac_cpp='$CPP $CPPFLAGS'
4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4298$as_echo "$am_cv_ar_interface" >&6; }
4299
4300case $am_cv_ar_interface in
4301ar)
4302  ;;
4303lib)
4304  # Microsoft lib, so override with the ar-lib wrapper script.
4305  # FIXME: It is wrong to rewrite AR.
4306  # But if we don't then we get into trouble of one sort or another.
4307  # A longer-term fix would be to have automake use am__AR in this case,
4308  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4309  # similar.
4310  AR="$am_aux_dir/ar-lib $AR"
4311  ;;
4312unknown)
4313  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4314  ;;
4315esac
4316
4317
4318if test -n "$ac_tool_prefix"; then
4319  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4320set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
4323if ${ac_cv_prog_RANLIB+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -n "$RANLIB"; then
4327  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_exec_ext in '' $ac_executable_extensions; do
4335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338    break 2
4339  fi
4340done
4341  done
4342IFS=$as_save_IFS
4343
4344fi
4345fi
4346RANLIB=$ac_cv_prog_RANLIB
4347if test -n "$RANLIB"; then
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4349$as_echo "$RANLIB" >&6; }
4350else
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
4354
4355
4356fi
4357if test -z "$ac_cv_prog_RANLIB"; then
4358  ac_ct_RANLIB=$RANLIB
4359  # Extract the first word of "ranlib", so it can be a program name with args.
4360set dummy ranlib; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  if test -n "$ac_ct_RANLIB"; then
4367  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374    for ac_exec_ext in '' $ac_executable_extensions; do
4375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376    ac_cv_prog_ac_ct_RANLIB="ranlib"
4377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378    break 2
4379  fi
4380done
4381  done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4387if test -n "$ac_ct_RANLIB"; then
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4389$as_echo "$ac_ct_RANLIB" >&6; }
4390else
4391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
4393fi
4394
4395  if test "x$ac_ct_RANLIB" = x; then
4396    RANLIB=":"
4397  else
4398    case $cross_compiling:$ac_tool_warned in
4399yes:)
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402ac_tool_warned=yes ;;
4403esac
4404    RANLIB=$ac_ct_RANLIB
4405  fi
4406else
4407  RANLIB="$ac_cv_prog_RANLIB"
4408fi
4409
4410
4411# Checks for header files.
4412ac_ext=c
4413ac_cpp='$CPP $CPPFLAGS'
4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4418$as_echo_n "checking how to run the C preprocessor... " >&6; }
4419# On Suns, sometimes $CPP names a directory.
4420if test -n "$CPP" && test -d "$CPP"; then
4421  CPP=
4422fi
4423if test -z "$CPP"; then
4424  if ${ac_cv_prog_CPP+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427      # Double quotes because CPP needs to be expanded
4428    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4429    do
4430      ac_preproc_ok=false
4431for ac_c_preproc_warn_flag in '' yes
4432do
4433  # Use a header file that comes with gcc, so configuring glibc
4434  # with a fresh cross-compiler works.
4435  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436  # <limits.h> exists even on freestanding compilers.
4437  # On the NeXT, cc -E runs the code through the compiler's parser,
4438  # not just through cpp. "Syntax error" is here to catch this case.
4439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#ifdef __STDC__
4442# include <limits.h>
4443#else
4444# include <assert.h>
4445#endif
4446		     Syntax error
4447_ACEOF
4448if ac_fn_c_try_cpp "$LINENO"; then :
4449
4450else
4451  # Broken: fails on valid input.
4452continue
4453fi
4454rm -f conftest.err conftest.i conftest.$ac_ext
4455
4456  # OK, works on sane cases.  Now check whether nonexistent headers
4457  # can be detected and how.
4458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460#include <ac_nonexistent.h>
4461_ACEOF
4462if ac_fn_c_try_cpp "$LINENO"; then :
4463  # Broken: success on invalid input.
4464continue
4465else
4466  # Passes both tests.
4467ac_preproc_ok=:
4468break
4469fi
4470rm -f conftest.err conftest.i conftest.$ac_ext
4471
4472done
4473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474rm -f conftest.i conftest.err conftest.$ac_ext
4475if $ac_preproc_ok; then :
4476  break
4477fi
4478
4479    done
4480    ac_cv_prog_CPP=$CPP
4481
4482fi
4483  CPP=$ac_cv_prog_CPP
4484else
4485  ac_cv_prog_CPP=$CPP
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4488$as_echo "$CPP" >&6; }
4489ac_preproc_ok=false
4490for ac_c_preproc_warn_flag in '' yes
4491do
4492  # Use a header file that comes with gcc, so configuring glibc
4493  # with a fresh cross-compiler works.
4494  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495  # <limits.h> exists even on freestanding compilers.
4496  # On the NeXT, cc -E runs the code through the compiler's parser,
4497  # not just through cpp. "Syntax error" is here to catch this case.
4498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500#ifdef __STDC__
4501# include <limits.h>
4502#else
4503# include <assert.h>
4504#endif
4505		     Syntax error
4506_ACEOF
4507if ac_fn_c_try_cpp "$LINENO"; then :
4508
4509else
4510  # Broken: fails on valid input.
4511continue
4512fi
4513rm -f conftest.err conftest.i conftest.$ac_ext
4514
4515  # OK, works on sane cases.  Now check whether nonexistent headers
4516  # can be detected and how.
4517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <ac_nonexistent.h>
4520_ACEOF
4521if ac_fn_c_try_cpp "$LINENO"; then :
4522  # Broken: success on invalid input.
4523continue
4524else
4525  # Passes both tests.
4526ac_preproc_ok=:
4527break
4528fi
4529rm -f conftest.err conftest.i conftest.$ac_ext
4530
4531done
4532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533rm -f conftest.i conftest.err conftest.$ac_ext
4534if $ac_preproc_ok; then :
4535
4536else
4537  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4540See \`config.log' for more details" "$LINENO" 5; }
4541fi
4542
4543ac_ext=c
4544ac_cpp='$CPP $CPPFLAGS'
4545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4551$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4552if ${ac_cv_path_GREP+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -z "$GREP"; then
4556  ac_path_GREP_found=false
4557  # Loop through the user's path and test for each of PROGNAME-LIST
4558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560do
4561  IFS=$as_save_IFS
4562  test -z "$as_dir" && as_dir=.
4563    for ac_prog in grep ggrep; do
4564    for ac_exec_ext in '' $ac_executable_extensions; do
4565      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4566      as_fn_executable_p "$ac_path_GREP" || continue
4567# Check for GNU ac_path_GREP and select it if it is found.
4568  # Check for GNU $ac_path_GREP
4569case `"$ac_path_GREP" --version 2>&1` in
4570*GNU*)
4571  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4572*)
4573  ac_count=0
4574  $as_echo_n 0123456789 >"conftest.in"
4575  while :
4576  do
4577    cat "conftest.in" "conftest.in" >"conftest.tmp"
4578    mv "conftest.tmp" "conftest.in"
4579    cp "conftest.in" "conftest.nl"
4580    $as_echo 'GREP' >> "conftest.nl"
4581    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583    as_fn_arith $ac_count + 1 && ac_count=$as_val
4584    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4585      # Best one so far, save it but keep looking for a better one
4586      ac_cv_path_GREP="$ac_path_GREP"
4587      ac_path_GREP_max=$ac_count
4588    fi
4589    # 10*(2^10) chars as input seems more than enough
4590    test $ac_count -gt 10 && break
4591  done
4592  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593esac
4594
4595      $ac_path_GREP_found && break 3
4596    done
4597  done
4598  done
4599IFS=$as_save_IFS
4600  if test -z "$ac_cv_path_GREP"; then
4601    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602  fi
4603else
4604  ac_cv_path_GREP=$GREP
4605fi
4606
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4609$as_echo "$ac_cv_path_GREP" >&6; }
4610 GREP="$ac_cv_path_GREP"
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4614$as_echo_n "checking for egrep... " >&6; }
4615if ${ac_cv_path_EGREP+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4619   then ac_cv_path_EGREP="$GREP -E"
4620   else
4621     if test -z "$EGREP"; then
4622  ac_path_EGREP_found=false
4623  # Loop through the user's path and test for each of PROGNAME-LIST
4624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626do
4627  IFS=$as_save_IFS
4628  test -z "$as_dir" && as_dir=.
4629    for ac_prog in egrep; do
4630    for ac_exec_ext in '' $ac_executable_extensions; do
4631      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4632      as_fn_executable_p "$ac_path_EGREP" || continue
4633# Check for GNU ac_path_EGREP and select it if it is found.
4634  # Check for GNU $ac_path_EGREP
4635case `"$ac_path_EGREP" --version 2>&1` in
4636*GNU*)
4637  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4638*)
4639  ac_count=0
4640  $as_echo_n 0123456789 >"conftest.in"
4641  while :
4642  do
4643    cat "conftest.in" "conftest.in" >"conftest.tmp"
4644    mv "conftest.tmp" "conftest.in"
4645    cp "conftest.in" "conftest.nl"
4646    $as_echo 'EGREP' >> "conftest.nl"
4647    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649    as_fn_arith $ac_count + 1 && ac_count=$as_val
4650    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4651      # Best one so far, save it but keep looking for a better one
4652      ac_cv_path_EGREP="$ac_path_EGREP"
4653      ac_path_EGREP_max=$ac_count
4654    fi
4655    # 10*(2^10) chars as input seems more than enough
4656    test $ac_count -gt 10 && break
4657  done
4658  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659esac
4660
4661      $ac_path_EGREP_found && break 3
4662    done
4663  done
4664  done
4665IFS=$as_save_IFS
4666  if test -z "$ac_cv_path_EGREP"; then
4667    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4668  fi
4669else
4670  ac_cv_path_EGREP=$EGREP
4671fi
4672
4673   fi
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4676$as_echo "$ac_cv_path_EGREP" >&6; }
4677 EGREP="$ac_cv_path_EGREP"
4678
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4681$as_echo_n "checking for ANSI C header files... " >&6; }
4682if ${ac_cv_header_stdc+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h.  */
4687#include <stdlib.h>
4688#include <stdarg.h>
4689#include <string.h>
4690#include <float.h>
4691
4692int
4693main ()
4694{
4695
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"; then :
4701  ac_cv_header_stdc=yes
4702else
4703  ac_cv_header_stdc=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706
4707if test $ac_cv_header_stdc = yes; then
4708  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h.  */
4711#include <string.h>
4712
4713_ACEOF
4714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715  $EGREP "memchr" >/dev/null 2>&1; then :
4716
4717else
4718  ac_cv_header_stdc=no
4719fi
4720rm -f conftest*
4721
4722fi
4723
4724if test $ac_cv_header_stdc = yes; then
4725  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728#include <stdlib.h>
4729
4730_ACEOF
4731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732  $EGREP "free" >/dev/null 2>&1; then :
4733
4734else
4735  ac_cv_header_stdc=no
4736fi
4737rm -f conftest*
4738
4739fi
4740
4741if test $ac_cv_header_stdc = yes; then
4742  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4743  if test "$cross_compiling" = yes; then :
4744  :
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748#include <ctype.h>
4749#include <stdlib.h>
4750#if ((' ' & 0x0FF) == 0x020)
4751# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4752# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4753#else
4754# define ISLOWER(c) \
4755		   (('a' <= (c) && (c) <= 'i') \
4756		     || ('j' <= (c) && (c) <= 'r') \
4757		     || ('s' <= (c) && (c) <= 'z'))
4758# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4759#endif
4760
4761#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4762int
4763main ()
4764{
4765  int i;
4766  for (i = 0; i < 256; i++)
4767    if (XOR (islower (i), ISLOWER (i))
4768	|| toupper (i) != TOUPPER (i))
4769      return 2;
4770  return 0;
4771}
4772_ACEOF
4773if ac_fn_c_try_run "$LINENO"; then :
4774
4775else
4776  ac_cv_header_stdc=no
4777fi
4778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4779  conftest.$ac_objext conftest.beam conftest.$ac_ext
4780fi
4781
4782fi
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4785$as_echo "$ac_cv_header_stdc" >&6; }
4786if test $ac_cv_header_stdc = yes; then
4787
4788$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4789
4790fi
4791
4792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4793for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4794		  inttypes.h stdint.h unistd.h
4795do :
4796  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4798"
4799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4800  cat >>confdefs.h <<_ACEOF
4801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4802_ACEOF
4803
4804fi
4805
4806done
4807
4808
4809for ac_header in getopt.h inttypes.h strings.h
4810do :
4811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4814  cat >>confdefs.h <<_ACEOF
4815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816_ACEOF
4817
4818fi
4819
4820done
4821
4822
4823# Checks for typedefs, structures, and compiler characteristics.
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4825$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4826if ${ac_cv_c_const+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831
4832int
4833main ()
4834{
4835
4836#ifndef __cplusplus
4837  /* Ultrix mips cc rejects this sort of thing.  */
4838  typedef int charset[2];
4839  const charset cs = { 0, 0 };
4840  /* SunOS 4.1.1 cc rejects this.  */
4841  char const *const *pcpcc;
4842  char **ppc;
4843  /* NEC SVR4.0.2 mips cc rejects this.  */
4844  struct point {int x, y;};
4845  static struct point const zero = {0,0};
4846  /* AIX XL C 1.02.0.0 rejects this.
4847     It does not let you subtract one const X* pointer from another in
4848     an arm of an if-expression whose if-part is not a constant
4849     expression */
4850  const char *g = "string";
4851  pcpcc = &g + (g ? g-g : 0);
4852  /* HPUX 7.0 cc rejects these. */
4853  ++pcpcc;
4854  ppc = (char**) pcpcc;
4855  pcpcc = (char const *const *) ppc;
4856  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4857    char tx;
4858    char *t = &tx;
4859    char const *s = 0 ? (char *) 0 : (char const *) 0;
4860
4861    *t++ = 0;
4862    if (s) return 0;
4863  }
4864  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4865    int x[] = {25, 17};
4866    const int *foo = &x[0];
4867    ++foo;
4868  }
4869  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4870    typedef const int *iptr;
4871    iptr p = 0;
4872    ++p;
4873  }
4874  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4875       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4876    struct s { int j; const int *ap[3]; } bx;
4877    struct s *b = &bx; b->j = 5;
4878  }
4879  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4880    const int foo = 10;
4881    if (!foo) return 0;
4882  }
4883  return !cs[0] && !zero.x;
4884#endif
4885
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890if ac_fn_c_try_compile "$LINENO"; then :
4891  ac_cv_c_const=yes
4892else
4893  ac_cv_c_const=no
4894fi
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4898$as_echo "$ac_cv_c_const" >&6; }
4899if test $ac_cv_c_const = no; then
4900
4901$as_echo "#define const /**/" >>confdefs.h
4902
4903fi
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4906$as_echo_n "checking for inline... " >&6; }
4907if ${ac_cv_c_inline+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  ac_cv_c_inline=no
4911for ac_kw in inline __inline__ __inline; do
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914#ifndef __cplusplus
4915typedef int foo_t;
4916static $ac_kw foo_t static_foo () {return 0; }
4917$ac_kw foo_t foo () {return 0; }
4918#endif
4919
4920_ACEOF
4921if ac_fn_c_try_compile "$LINENO"; then :
4922  ac_cv_c_inline=$ac_kw
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925  test "$ac_cv_c_inline" != no && break
4926done
4927
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4930$as_echo "$ac_cv_c_inline" >&6; }
4931
4932case $ac_cv_c_inline in
4933  inline | yes) ;;
4934  *)
4935    case $ac_cv_c_inline in
4936      no) ac_val=;;
4937      *) ac_val=$ac_cv_c_inline;;
4938    esac
4939    cat >>confdefs.h <<_ACEOF
4940#ifndef __cplusplus
4941#define inline $ac_val
4942#endif
4943_ACEOF
4944    ;;
4945esac
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4948$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4949if ${ac_cv_c_bigendian+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  ac_cv_c_bigendian=unknown
4953    # See if we're dealing with a universal compiler.
4954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956#ifndef __APPLE_CC__
4957	       not a universal capable compiler
4958	     #endif
4959	     typedef int dummy;
4960
4961_ACEOF
4962if ac_fn_c_try_compile "$LINENO"; then :
4963
4964	# Check for potential -arch flags.  It is not universal unless
4965	# there are at least two -arch flags with different values.
4966	ac_arch=
4967	ac_prev=
4968	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4969	 if test -n "$ac_prev"; then
4970	   case $ac_word in
4971	     i?86 | x86_64 | ppc | ppc64)
4972	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4973		 ac_arch=$ac_word
4974	       else
4975		 ac_cv_c_bigendian=universal
4976		 break
4977	       fi
4978	       ;;
4979	   esac
4980	   ac_prev=
4981	 elif test "x$ac_word" = "x-arch"; then
4982	   ac_prev=arch
4983	 fi
4984       done
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987    if test $ac_cv_c_bigendian = unknown; then
4988      # See if sys/param.h defines the BYTE_ORDER macro.
4989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <sys/types.h>
4992	     #include <sys/param.h>
4993
4994int
4995main ()
4996{
4997#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4998		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4999		     && LITTLE_ENDIAN)
5000	      bogus endian macros
5001	     #endif
5002
5003  ;
5004  return 0;
5005}
5006_ACEOF
5007if ac_fn_c_try_compile "$LINENO"; then :
5008  # It does; now see whether it defined to BIG_ENDIAN or not.
5009	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011#include <sys/types.h>
5012		#include <sys/param.h>
5013
5014int
5015main ()
5016{
5017#if BYTE_ORDER != BIG_ENDIAN
5018		 not big endian
5019		#endif
5020
5021  ;
5022  return 0;
5023}
5024_ACEOF
5025if ac_fn_c_try_compile "$LINENO"; then :
5026  ac_cv_c_bigendian=yes
5027else
5028  ac_cv_c_bigendian=no
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033    fi
5034    if test $ac_cv_c_bigendian = unknown; then
5035      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5036      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038#include <limits.h>
5039
5040int
5041main ()
5042{
5043#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5044	      bogus endian macros
5045	     #endif
5046
5047  ;
5048  return 0;
5049}
5050_ACEOF
5051if ac_fn_c_try_compile "$LINENO"; then :
5052  # It does; now see whether it defined to _BIG_ENDIAN or not.
5053	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055#include <limits.h>
5056
5057int
5058main ()
5059{
5060#ifndef _BIG_ENDIAN
5061		 not big endian
5062		#endif
5063
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068if ac_fn_c_try_compile "$LINENO"; then :
5069  ac_cv_c_bigendian=yes
5070else
5071  ac_cv_c_bigendian=no
5072fi
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076    fi
5077    if test $ac_cv_c_bigendian = unknown; then
5078      # Compile a test program.
5079      if test "$cross_compiling" = yes; then :
5080  # Try to guess by grepping values from an object file.
5081	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083short int ascii_mm[] =
5084		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5085		short int ascii_ii[] =
5086		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5087		int use_ascii (int i) {
5088		  return ascii_mm[i] + ascii_ii[i];
5089		}
5090		short int ebcdic_ii[] =
5091		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5092		short int ebcdic_mm[] =
5093		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5094		int use_ebcdic (int i) {
5095		  return ebcdic_mm[i] + ebcdic_ii[i];
5096		}
5097		extern int foo;
5098
5099int
5100main ()
5101{
5102return use_ascii (foo) == use_ebcdic (foo);
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_compile "$LINENO"; then :
5108  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5109	      ac_cv_c_bigendian=yes
5110	    fi
5111	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5112	      if test "$ac_cv_c_bigendian" = unknown; then
5113		ac_cv_c_bigendian=no
5114	      else
5115		# finding both strings is unlikely to happen, but who knows?
5116		ac_cv_c_bigendian=unknown
5117	      fi
5118	    fi
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121else
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124$ac_includes_default
5125int
5126main ()
5127{
5128
5129	     /* Are we little or big endian?  From Harbison&Steele.  */
5130	     union
5131	     {
5132	       long int l;
5133	       char c[sizeof (long int)];
5134	     } u;
5135	     u.l = 1;
5136	     return u.c[sizeof (long int) - 1] == 1;
5137
5138  ;
5139  return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_run "$LINENO"; then :
5143  ac_cv_c_bigendian=no
5144else
5145  ac_cv_c_bigendian=yes
5146fi
5147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5148  conftest.$ac_objext conftest.beam conftest.$ac_ext
5149fi
5150
5151    fi
5152fi
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5154$as_echo "$ac_cv_c_bigendian" >&6; }
5155 case $ac_cv_c_bigendian in #(
5156   yes)
5157     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5158;; #(
5159   no)
5160      ;; #(
5161   universal)
5162
5163$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5164
5165     ;; #(
5166   *)
5167     as_fn_error $? "unknown endianness
5168 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5169 esac
5170
5171ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5172if test "x$ac_cv_type_mode_t" = xyes; then :
5173
5174else
5175
5176cat >>confdefs.h <<_ACEOF
5177#define mode_t int
5178_ACEOF
5179
5180fi
5181
5182ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5183if test "x$ac_cv_type_off_t" = xyes; then :
5184
5185else
5186
5187cat >>confdefs.h <<_ACEOF
5188#define off_t long int
5189_ACEOF
5190
5191fi
5192
5193ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5194if test "x$ac_cv_type_size_t" = xyes; then :
5195
5196else
5197
5198cat >>confdefs.h <<_ACEOF
5199#define size_t unsigned int
5200_ACEOF
5201
5202fi
5203
5204# The cast to long int works around a bug in the HP C Compiler
5205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5207# This bug is HP SR number 8606223364.
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5209$as_echo_n "checking size of off_t... " >&6; }
5210if ${ac_cv_sizeof_off_t+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
5214
5215else
5216  if test "$ac_cv_type_off_t" = yes; then
5217     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219as_fn_error 77 "cannot compute sizeof (off_t)
5220See \`config.log' for more details" "$LINENO" 5; }
5221   else
5222     ac_cv_sizeof_off_t=0
5223   fi
5224fi
5225
5226fi
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5228$as_echo "$ac_cv_sizeof_off_t" >&6; }
5229
5230
5231
5232cat >>confdefs.h <<_ACEOF
5233#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5234_ACEOF
5235
5236
5237# Check whether --enable-largefile was given.
5238if test "${enable_largefile+set}" = set; then :
5239  enableval=$enable_largefile;
5240fi
5241
5242if test "$enable_largefile" != no; then
5243
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5245$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5246if ${ac_cv_sys_largefile_CC+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  ac_cv_sys_largefile_CC=no
5250     if test "$GCC" != yes; then
5251       ac_save_CC=$CC
5252       while :; do
5253	 # IRIX 6.2 and later do not support large files by default,
5254	 # so use the C compiler's -n32 option if that helps.
5255	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257#include <sys/types.h>
5258 /* Check that off_t can represent 2**63 - 1 correctly.
5259    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5260    since some C++ compilers masquerading as C compilers
5261    incorrectly reject 9223372036854775807.  */
5262#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5263  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5264		       && LARGE_OFF_T % 2147483647 == 1)
5265		      ? 1 : -1];
5266int
5267main ()
5268{
5269
5270  ;
5271  return 0;
5272}
5273_ACEOF
5274	 if ac_fn_c_try_compile "$LINENO"; then :
5275  break
5276fi
5277rm -f core conftest.err conftest.$ac_objext
5278	 CC="$CC -n32"
5279	 if ac_fn_c_try_compile "$LINENO"; then :
5280  ac_cv_sys_largefile_CC=' -n32'; break
5281fi
5282rm -f core conftest.err conftest.$ac_objext
5283	 break
5284       done
5285       CC=$ac_save_CC
5286       rm -f conftest.$ac_ext
5287    fi
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5290$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5291  if test "$ac_cv_sys_largefile_CC" != no; then
5292    CC=$CC$ac_cv_sys_largefile_CC
5293  fi
5294
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5296$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5297if ${ac_cv_sys_file_offset_bits+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  while :; do
5301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303#include <sys/types.h>
5304 /* Check that off_t can represent 2**63 - 1 correctly.
5305    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5306    since some C++ compilers masquerading as C compilers
5307    incorrectly reject 9223372036854775807.  */
5308#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5309  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5310		       && LARGE_OFF_T % 2147483647 == 1)
5311		      ? 1 : -1];
5312int
5313main ()
5314{
5315
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321  ac_cv_sys_file_offset_bits=no; break
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326#define _FILE_OFFSET_BITS 64
5327#include <sys/types.h>
5328 /* Check that off_t can represent 2**63 - 1 correctly.
5329    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5330    since some C++ compilers masquerading as C compilers
5331    incorrectly reject 9223372036854775807.  */
5332#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5333  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5334		       && LARGE_OFF_T % 2147483647 == 1)
5335		      ? 1 : -1];
5336int
5337main ()
5338{
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"; then :
5345  ac_cv_sys_file_offset_bits=64; break
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348  ac_cv_sys_file_offset_bits=unknown
5349  break
5350done
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5353$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5354case $ac_cv_sys_file_offset_bits in #(
5355  no | unknown) ;;
5356  *)
5357cat >>confdefs.h <<_ACEOF
5358#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5359_ACEOF
5360;;
5361esac
5362rm -rf conftest*
5363  if test $ac_cv_sys_file_offset_bits = unknown; then
5364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5365$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5366if ${ac_cv_sys_large_files+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  while :; do
5370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372#include <sys/types.h>
5373 /* Check that off_t can represent 2**63 - 1 correctly.
5374    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5375    since some C++ compilers masquerading as C compilers
5376    incorrectly reject 9223372036854775807.  */
5377#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5378  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5379		       && LARGE_OFF_T % 2147483647 == 1)
5380		      ? 1 : -1];
5381int
5382main ()
5383{
5384
5385  ;
5386  return 0;
5387}
5388_ACEOF
5389if ac_fn_c_try_compile "$LINENO"; then :
5390  ac_cv_sys_large_files=no; break
5391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395#define _LARGE_FILES 1
5396#include <sys/types.h>
5397 /* Check that off_t can represent 2**63 - 1 correctly.
5398    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5399    since some C++ compilers masquerading as C compilers
5400    incorrectly reject 9223372036854775807.  */
5401#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5402  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5403		       && LARGE_OFF_T % 2147483647 == 1)
5404		      ? 1 : -1];
5405int
5406main ()
5407{
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_compile "$LINENO"; then :
5414  ac_cv_sys_large_files=1; break
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417  ac_cv_sys_large_files=unknown
5418  break
5419done
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5422$as_echo "$ac_cv_sys_large_files" >&6; }
5423case $ac_cv_sys_large_files in #(
5424  no | unknown) ;;
5425  *)
5426cat >>confdefs.h <<_ACEOF
5427#define _LARGE_FILES $ac_cv_sys_large_files
5428_ACEOF
5429;;
5430esac
5431rm -rf conftest*
5432  fi
5433
5434
5435fi
5436
5437
5438# Checks for library functions.
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
5440$as_echo_n "checking for working POSIX fnmatch... " >&6; }
5441if ${ac_cv_func_fnmatch_works+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  # Some versions of Solaris, SCO, and the GNU C Library
5445   # have a broken or incompatible fnmatch.
5446   # So we run a test program.  If we are cross-compiling, take no chance.
5447   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5448   if test "$cross_compiling" = yes; then :
5449  ac_cv_func_fnmatch_works=cross
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453#include <fnmatch.h>
5454#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
5455#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5456
5457int
5458main ()
5459{
5460return
5461	   (!(y ("a*", "abc", 0)
5462	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5463	      && y ("a\\\\bc", "abc", 0)
5464	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5465	      && y ("*x", ".x", 0)
5466	      && n ("*x", ".x", FNM_PERIOD)
5467	      && 1));
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_run "$LINENO"; then :
5473  ac_cv_func_fnmatch_works=yes
5474else
5475  ac_cv_func_fnmatch_works=no
5476fi
5477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5478  conftest.$ac_objext conftest.beam conftest.$ac_ext
5479fi
5480
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
5483$as_echo "$ac_cv_func_fnmatch_works" >&6; }
5484if test $ac_cv_func_fnmatch_works = yes; then :
5485
5486$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
5487
5488fi
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5492$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5493if ${ac_cv_sys_largefile_source+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  while :; do
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499#include <sys/types.h> /* for off_t */
5500     #include <stdio.h>
5501int
5502main ()
5503{
5504int (*fp) (FILE *, off_t, int) = fseeko;
5505     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5506  ;
5507  return 0;
5508}
5509_ACEOF
5510if ac_fn_c_try_link "$LINENO"; then :
5511  ac_cv_sys_largefile_source=no; break
5512fi
5513rm -f core conftest.err conftest.$ac_objext \
5514    conftest$ac_exeext conftest.$ac_ext
5515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517#define _LARGEFILE_SOURCE 1
5518#include <sys/types.h> /* for off_t */
5519     #include <stdio.h>
5520int
5521main ()
5522{
5523int (*fp) (FILE *, off_t, int) = fseeko;
5524     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529if ac_fn_c_try_link "$LINENO"; then :
5530  ac_cv_sys_largefile_source=1; break
5531fi
5532rm -f core conftest.err conftest.$ac_objext \
5533    conftest$ac_exeext conftest.$ac_ext
5534  ac_cv_sys_largefile_source=unknown
5535  break
5536done
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5539$as_echo "$ac_cv_sys_largefile_source" >&6; }
5540case $ac_cv_sys_largefile_source in #(
5541  no | unknown) ;;
5542  *)
5543cat >>confdefs.h <<_ACEOF
5544#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5545_ACEOF
5546;;
5547esac
5548rm -rf conftest*
5549
5550# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5551# in glibc 2.1.3, but that breaks too many other things.
5552# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5553if test $ac_cv_sys_largefile_source != unknown; then
5554
5555$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5556
5557fi
5558
5559for ac_func in mkdir _mkdir
5560do :
5561  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5562ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5563if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5564  cat >>confdefs.h <<_ACEOF
5565#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5566_ACEOF
5567
5568fi
5569done
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes one argument" >&5
5572$as_echo_n "checking whether mkdir takes one argument... " >&6; }
5573if ${ac_cv_mkdir_takes_one_arg+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578
5579#include <sys/stat.h>
5580#if HAVE_UNISTD_H
5581#  include <unistd.h>
5582#endif
5583
5584int
5585main ()
5586{
5587mkdir (".");
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"; then :
5593  ac_cv_mkdir_takes_one_arg=yes
5594else
5595  ac_cv_mkdir_takes_one_arg=no
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_takes_one_arg" >&5
5600$as_echo "$ac_cv_mkdir_takes_one_arg" >&6; }
5601if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
5602
5603$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
5604
5605fi
5606
5607for ac_func in towlower umask utime utimes
5608do :
5609  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5611if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5612  cat >>confdefs.h <<_ACEOF
5613#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5614_ACEOF
5615
5616fi
5617done
5618
5619for ac_func in getopt_long
5620do :
5621  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5622if test "x$ac_cv_func_getopt_long" = xyes; then :
5623  cat >>confdefs.h <<_ACEOF
5624#define HAVE_GETOPT_LONG 1
5625_ACEOF
5626
5627else
5628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
5629$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
5630if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  ac_check_lib_save_LIBS=$LIBS
5634LIBS="-lgnugetopt  $LIBS"
5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637
5638/* Override any GCC internal prototype to avoid an error.
5639   Use char because int might match the return type of a GCC
5640   builtin and then its argument prototype would still apply.  */
5641#ifdef __cplusplus
5642extern "C"
5643#endif
5644char getopt_long ();
5645int
5646main ()
5647{
5648return getopt_long ();
5649  ;
5650  return 0;
5651}
5652_ACEOF
5653if ac_fn_c_try_link "$LINENO"; then :
5654  ac_cv_lib_gnugetopt_getopt_long=yes
5655else
5656  ac_cv_lib_gnugetopt_getopt_long=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext \
5659    conftest$ac_exeext conftest.$ac_ext
5660LIBS=$ac_check_lib_save_LIBS
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5663$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
5664if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then :
5665  $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5666
5667else
5668  case " $LIBOBJS " in
5669  *" getopt.$ac_objext "* ) ;;
5670  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5671 ;;
5672esac
5673 case " $LIBOBJS " in
5674  *" getopt1.$ac_objext "* ) ;;
5675  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
5676 ;;
5677esac
5678
5679fi
5680
5681fi
5682done
5683
5684# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5685# for constant arguments.  Useless!
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5687$as_echo_n "checking for working alloca.h... " >&6; }
5688if ${ac_cv_working_alloca_h+:} false; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693#include <alloca.h>
5694int
5695main ()
5696{
5697char *p = (char *) alloca (2 * sizeof (int));
5698			  if (p) return 0;
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"; then :
5704  ac_cv_working_alloca_h=yes
5705else
5706  ac_cv_working_alloca_h=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext \
5709    conftest$ac_exeext conftest.$ac_ext
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5712$as_echo "$ac_cv_working_alloca_h" >&6; }
5713if test $ac_cv_working_alloca_h = yes; then
5714
5715$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5716
5717fi
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5720$as_echo_n "checking for alloca... " >&6; }
5721if ${ac_cv_func_alloca_works+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h.  */
5726#ifdef __GNUC__
5727# define alloca __builtin_alloca
5728#else
5729# ifdef _MSC_VER
5730#  include <malloc.h>
5731#  define alloca _alloca
5732# else
5733#  ifdef HAVE_ALLOCA_H
5734#   include <alloca.h>
5735#  else
5736#   ifdef _AIX
5737 #pragma alloca
5738#   else
5739#    ifndef alloca /* predefined by HP cc +Olibcalls */
5740void *alloca (size_t);
5741#    endif
5742#   endif
5743#  endif
5744# endif
5745#endif
5746
5747int
5748main ()
5749{
5750char *p = (char *) alloca (1);
5751				    if (p) return 0;
5752  ;
5753  return 0;
5754}
5755_ACEOF
5756if ac_fn_c_try_link "$LINENO"; then :
5757  ac_cv_func_alloca_works=yes
5758else
5759  ac_cv_func_alloca_works=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5765$as_echo "$ac_cv_func_alloca_works" >&6; }
5766
5767if test $ac_cv_func_alloca_works = yes; then
5768
5769$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5770
5771else
5772  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5773# that cause trouble.  Some versions do not even contain alloca or
5774# contain a buggy version.  If you still want to use their alloca,
5775# use ar to extract alloca.o from them instead of compiling alloca.c.
5776
5777ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5778
5779$as_echo "#define C_ALLOCA 1" >>confdefs.h
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5783$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5784if ${ac_cv_os_cray+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789#if defined CRAY && ! defined CRAY2
5790webecray
5791#else
5792wenotbecray
5793#endif
5794
5795_ACEOF
5796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797  $EGREP "webecray" >/dev/null 2>&1; then :
5798  ac_cv_os_cray=yes
5799else
5800  ac_cv_os_cray=no
5801fi
5802rm -f conftest*
5803
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5806$as_echo "$ac_cv_os_cray" >&6; }
5807if test $ac_cv_os_cray = yes; then
5808  for ac_func in _getb67 GETB67 getb67; do
5809    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5811if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5812
5813cat >>confdefs.h <<_ACEOF
5814#define CRAY_STACKSEG_END $ac_func
5815_ACEOF
5816
5817    break
5818fi
5819
5820  done
5821fi
5822
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5824$as_echo_n "checking stack direction for C alloca... " >&6; }
5825if ${ac_cv_c_stack_direction+:} false; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  if test "$cross_compiling" = yes; then :
5829  ac_cv_c_stack_direction=0
5830else
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833$ac_includes_default
5834int
5835find_stack_direction (int *addr, int depth)
5836{
5837  int dir, dummy = 0;
5838  if (! addr)
5839    addr = &dummy;
5840  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5841  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5842  return dir + dummy;
5843}
5844
5845int
5846main (int argc, char **argv)
5847{
5848  return find_stack_direction (0, argc + !argv + 20) < 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_run "$LINENO"; then :
5852  ac_cv_c_stack_direction=1
5853else
5854  ac_cv_c_stack_direction=-1
5855fi
5856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5857  conftest.$ac_objext conftest.beam conftest.$ac_ext
5858fi
5859
5860fi
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5862$as_echo "$ac_cv_c_stack_direction" >&6; }
5863cat >>confdefs.h <<_ACEOF
5864#define STACK_DIRECTION $ac_cv_c_stack_direction
5865_ACEOF
5866
5867
5868fi
5869
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5871$as_echo_n "checking for mbstate_t... " >&6; }
5872if ${ac_cv_type_mbstate_t+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h.  */
5877$ac_includes_default
5878#	    include <wchar.h>
5879int
5880main ()
5881{
5882mbstate_t x; return sizeof x;
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888  ac_cv_type_mbstate_t=yes
5889else
5890  ac_cv_type_mbstate_t=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5895$as_echo "$ac_cv_type_mbstate_t" >&6; }
5896   if test $ac_cv_type_mbstate_t = yes; then
5897
5898$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5899
5900   else
5901
5902$as_echo "#define mbstate_t int" >>confdefs.h
5903
5904   fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
5906$as_echo_n "checking for working POSIX fnmatch... " >&6; }
5907if ${ac_cv_func_fnmatch_works+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  # Some versions of Solaris, SCO, and the GNU C Library
5911   # have a broken or incompatible fnmatch.
5912   # So we run a test program.  If we are cross-compiling, take no chance.
5913   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5914   if test "$cross_compiling" = yes; then :
5915  ac_cv_func_fnmatch_works=cross
5916else
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919#include <fnmatch.h>
5920#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
5921#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5922
5923int
5924main ()
5925{
5926return
5927	   (!(y ("a*", "abc", 0)
5928	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5929	      && y ("a\\\\bc", "abc", 0)
5930	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5931	      && y ("*x", ".x", 0)
5932	      && n ("*x", ".x", FNM_PERIOD)
5933	      && 1));
5934  ;
5935  return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_run "$LINENO"; then :
5939  ac_cv_func_fnmatch_works=yes
5940else
5941  ac_cv_func_fnmatch_works=no
5942fi
5943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5944  conftest.$ac_objext conftest.beam conftest.$ac_ext
5945fi
5946
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
5949$as_echo "$ac_cv_func_fnmatch_works" >&6; }
5950if test $ac_cv_func_fnmatch_works = yes; then :
5951  rm -f "$ac_config_libobj_dir/fnmatch.h"
5952else
5953  ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
5954if test "x$ac_cv_have_decl_getenv" = xyes; then :
5955  ac_have_decl=1
5956else
5957  ac_have_decl=0
5958fi
5959
5960cat >>confdefs.h <<_ACEOF
5961#define HAVE_DECL_GETENV $ac_have_decl
5962_ACEOF
5963
5964for ac_func in btowc mbsrtowcs mempcpy wmempcpy
5965do :
5966  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5968if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5969  cat >>confdefs.h <<_ACEOF
5970#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5971_ACEOF
5972
5973fi
5974done
5975
5976for ac_header in wchar.h wctype.h
5977do :
5978  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5981  cat >>confdefs.h <<_ACEOF
5982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983_ACEOF
5984
5985fi
5986
5987done
5988
5989case " $LIBOBJS " in
5990  *" fnmatch.$ac_objext "* ) ;;
5991  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
5992 ;;
5993esac
5994
5995ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
5996
5997
5998$as_echo "#define fnmatch rpl_fnmatch" >>confdefs.h
5999
6000
6001fi
6002
6003
6004# Make sure we can run config.sub.
6005$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6006  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6009$as_echo_n "checking build system type... " >&6; }
6010if ${ac_cv_build+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  ac_build_alias=$build_alias
6014test "x$ac_build_alias" = x &&
6015  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6016test "x$ac_build_alias" = x &&
6017  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6018ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6019  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6020
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6023$as_echo "$ac_cv_build" >&6; }
6024case $ac_cv_build in
6025*-*-*) ;;
6026*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6027esac
6028build=$ac_cv_build
6029ac_save_IFS=$IFS; IFS='-'
6030set x $ac_cv_build
6031shift
6032build_cpu=$1
6033build_vendor=$2
6034shift; shift
6035# Remember, the first character of IFS is used to create $*,
6036# except with old shells:
6037build_os=$*
6038IFS=$ac_save_IFS
6039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6040
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6043$as_echo_n "checking host system type... " >&6; }
6044if ${ac_cv_host+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  if test "x$host_alias" = x; then
6048  ac_cv_host=$ac_cv_build
6049else
6050  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6051    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6052fi
6053
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6056$as_echo "$ac_cv_host" >&6; }
6057case $ac_cv_host in
6058*-*-*) ;;
6059*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6060esac
6061host=$ac_cv_host
6062ac_save_IFS=$IFS; IFS='-'
6063set x $ac_cv_host
6064shift
6065host_cpu=$1
6066host_vendor=$2
6067shift; shift
6068# Remember, the first character of IFS is used to create $*,
6069# except with old shells:
6070host_os=$*
6071IFS=$ac_save_IFS
6072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6073
6074
6075
6076      if test "X$prefix" = "XNONE"; then
6077    acl_final_prefix="$ac_default_prefix"
6078  else
6079    acl_final_prefix="$prefix"
6080  fi
6081  if test "X$exec_prefix" = "XNONE"; then
6082    acl_final_exec_prefix='${prefix}'
6083  else
6084    acl_final_exec_prefix="$exec_prefix"
6085  fi
6086  acl_save_prefix="$prefix"
6087  prefix="$acl_final_prefix"
6088  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6089  prefix="$acl_save_prefix"
6090
6091
6092
6093# Check whether --with-gnu-ld was given.
6094if test "${with_gnu_ld+set}" = set; then :
6095  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6096else
6097  with_gnu_ld=no
6098fi
6099
6100# Prepare PATH_SEPARATOR.
6101# The user is always right.
6102if test "${PATH_SEPARATOR+set}" != set; then
6103  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6104  # contains only /bin. Note that ksh looks also at the FPATH variable,
6105  # so we have to set that as well for the test.
6106  PATH_SEPARATOR=:
6107  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6108    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6109           || PATH_SEPARATOR=';'
6110       }
6111fi
6112
6113ac_prog=ld
6114if test "$GCC" = yes; then
6115  # Check if gcc -print-prog-name=ld gives a path.
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6117$as_echo_n "checking for ld used by $CC... " >&6; }
6118  case $host in
6119  *-*-mingw*)
6120    # gcc leaves a trailing carriage return which upsets mingw
6121    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6122  *)
6123    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6124  esac
6125  case $ac_prog in
6126    # Accept absolute paths.
6127    [\\/]* | ?:[\\/]*)
6128      re_direlt='/[^/][^/]*/\.\./'
6129      # Canonicalize the pathname of ld
6130      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6131      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6132        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6133      done
6134      test -z "$LD" && LD="$ac_prog"
6135      ;;
6136  "")
6137    # If it fails, then pretend we aren't using GCC.
6138    ac_prog=ld
6139    ;;
6140  *)
6141    # If it is relative, then search for the first ld in PATH.
6142    with_gnu_ld=unknown
6143    ;;
6144  esac
6145elif test "$with_gnu_ld" = yes; then
6146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6147$as_echo_n "checking for GNU ld... " >&6; }
6148else
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6150$as_echo_n "checking for non-GNU ld... " >&6; }
6151fi
6152if ${acl_cv_path_LD+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -z "$LD"; then
6156  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6157  for ac_dir in $PATH; do
6158    IFS="$acl_save_ifs"
6159    test -z "$ac_dir" && ac_dir=.
6160    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6161      acl_cv_path_LD="$ac_dir/$ac_prog"
6162      # Check to see if the program is GNU ld.  I'd rather use --version,
6163      # but apparently some variants of GNU ld only accept -v.
6164      # Break only if it was the GNU/non-GNU ld that we prefer.
6165      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6166      *GNU* | *'with BFD'*)
6167        test "$with_gnu_ld" != no && break
6168        ;;
6169      *)
6170        test "$with_gnu_ld" != yes && break
6171        ;;
6172      esac
6173    fi
6174  done
6175  IFS="$acl_save_ifs"
6176else
6177  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6178fi
6179fi
6180
6181LD="$acl_cv_path_LD"
6182if test -n "$LD"; then
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6184$as_echo "$LD" >&6; }
6185else
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6191$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6192if ${acl_cv_prog_gnu_ld+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6196case `$LD -v 2>&1 </dev/null` in
6197*GNU* | *'with BFD'*)
6198  acl_cv_prog_gnu_ld=yes
6199  ;;
6200*)
6201  acl_cv_prog_gnu_ld=no
6202  ;;
6203esac
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6206$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6207with_gnu_ld=$acl_cv_prog_gnu_ld
6208
6209
6210
6211
6212                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6213$as_echo_n "checking for shared library run path origin... " >&6; }
6214if ${acl_cv_rpath+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217
6218    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6219    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6220    . ./conftest.sh
6221    rm -f ./conftest.sh
6222    acl_cv_rpath=done
6223
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6226$as_echo "$acl_cv_rpath" >&6; }
6227  wl="$acl_cv_wl"
6228  acl_libext="$acl_cv_libext"
6229  acl_shlibext="$acl_cv_shlibext"
6230  acl_libname_spec="$acl_cv_libname_spec"
6231  acl_library_names_spec="$acl_cv_library_names_spec"
6232  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6233  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6234  acl_hardcode_direct="$acl_cv_hardcode_direct"
6235  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6236    # Check whether --enable-rpath was given.
6237if test "${enable_rpath+set}" = set; then :
6238  enableval=$enable_rpath; :
6239else
6240  enable_rpath=yes
6241fi
6242
6243
6244
6245
6246  acl_libdirstem=lib
6247  acl_libdirstem2=
6248  case "$host_os" in
6249    solaris*)
6250                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6251$as_echo_n "checking for 64-bit host... " >&6; }
6252if ${gl_cv_solaris_64bit+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257
6258#ifdef _LP64
6259sixtyfour bits
6260#endif
6261
6262_ACEOF
6263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6265  gl_cv_solaris_64bit=yes
6266else
6267  gl_cv_solaris_64bit=no
6268fi
6269rm -f conftest*
6270
6271
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6274$as_echo "$gl_cv_solaris_64bit" >&6; }
6275      if test $gl_cv_solaris_64bit = yes; then
6276        acl_libdirstem=lib/64
6277        case "$host_cpu" in
6278          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6279          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6280        esac
6281      fi
6282      ;;
6283    *)
6284      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6285      if test -n "$searchpath"; then
6286        acl_save_IFS="${IFS= 	}"; IFS=":"
6287        for searchdir in $searchpath; do
6288          if test -d "$searchdir"; then
6289            case "$searchdir" in
6290              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6291              */../ | */.. )
6292                # Better ignore directories of this form. They are misleading.
6293                ;;
6294              *) searchdir=`cd "$searchdir" && pwd`
6295                 case "$searchdir" in
6296                   */lib64 ) acl_libdirstem=lib64 ;;
6297                 esac ;;
6298            esac
6299          fi
6300        done
6301        IFS="$acl_save_IFS"
6302      fi
6303      ;;
6304  esac
6305  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318    use_additional=yes
6319
6320  acl_save_prefix="$prefix"
6321  prefix="$acl_final_prefix"
6322  acl_save_exec_prefix="$exec_prefix"
6323  exec_prefix="$acl_final_exec_prefix"
6324
6325    eval additional_includedir=\"$includedir\"
6326    eval additional_libdir=\"$libdir\"
6327
6328  exec_prefix="$acl_save_exec_prefix"
6329  prefix="$acl_save_prefix"
6330
6331
6332# Check whether --with-libiconv-prefix was given.
6333if test "${with_libiconv_prefix+set}" = set; then :
6334  withval=$with_libiconv_prefix;
6335    if test "X$withval" = "Xno"; then
6336      use_additional=no
6337    else
6338      if test "X$withval" = "X"; then
6339
6340  acl_save_prefix="$prefix"
6341  prefix="$acl_final_prefix"
6342  acl_save_exec_prefix="$exec_prefix"
6343  exec_prefix="$acl_final_exec_prefix"
6344
6345          eval additional_includedir=\"$includedir\"
6346          eval additional_libdir=\"$libdir\"
6347
6348  exec_prefix="$acl_save_exec_prefix"
6349  prefix="$acl_save_prefix"
6350
6351      else
6352        additional_includedir="$withval/include"
6353        additional_libdir="$withval/$acl_libdirstem"
6354        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6355           && ! test -d "$withval/$acl_libdirstem"; then
6356          additional_libdir="$withval/$acl_libdirstem2"
6357        fi
6358      fi
6359    fi
6360
6361fi
6362
6363      LIBICONV=
6364  LTLIBICONV=
6365  INCICONV=
6366  LIBICONV_PREFIX=
6367      HAVE_LIBICONV=
6368  rpathdirs=
6369  ltrpathdirs=
6370  names_already_handled=
6371  names_next_round='iconv '
6372  while test -n "$names_next_round"; do
6373    names_this_round="$names_next_round"
6374    names_next_round=
6375    for name in $names_this_round; do
6376      already_handled=
6377      for n in $names_already_handled; do
6378        if test "$n" = "$name"; then
6379          already_handled=yes
6380          break
6381        fi
6382      done
6383      if test -z "$already_handled"; then
6384        names_already_handled="$names_already_handled $name"
6385                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6386        eval value=\"\$HAVE_LIB$uppername\"
6387        if test -n "$value"; then
6388          if test "$value" = yes; then
6389            eval value=\"\$LIB$uppername\"
6390            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6391            eval value=\"\$LTLIB$uppername\"
6392            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6393          else
6394                                    :
6395          fi
6396        else
6397                              found_dir=
6398          found_la=
6399          found_so=
6400          found_a=
6401          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6402          if test -n "$acl_shlibext"; then
6403            shrext=".$acl_shlibext"             # typically: shrext=.so
6404          else
6405            shrext=
6406          fi
6407          if test $use_additional = yes; then
6408            dir="$additional_libdir"
6409                                    if test -n "$acl_shlibext"; then
6410              if test -f "$dir/$libname$shrext"; then
6411                found_dir="$dir"
6412                found_so="$dir/$libname$shrext"
6413              else
6414                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6415                  ver=`(cd "$dir" && \
6416                        for f in "$libname$shrext".*; do echo "$f"; done \
6417                        | sed -e "s,^$libname$shrext\\\\.,," \
6418                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6419                        | sed 1q ) 2>/dev/null`
6420                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6421                    found_dir="$dir"
6422                    found_so="$dir/$libname$shrext.$ver"
6423                  fi
6424                else
6425                  eval library_names=\"$acl_library_names_spec\"
6426                  for f in $library_names; do
6427                    if test -f "$dir/$f"; then
6428                      found_dir="$dir"
6429                      found_so="$dir/$f"
6430                      break
6431                    fi
6432                  done
6433                fi
6434              fi
6435            fi
6436                        if test "X$found_dir" = "X"; then
6437              if test -f "$dir/$libname.$acl_libext"; then
6438                found_dir="$dir"
6439                found_a="$dir/$libname.$acl_libext"
6440              fi
6441            fi
6442            if test "X$found_dir" != "X"; then
6443              if test -f "$dir/$libname.la"; then
6444                found_la="$dir/$libname.la"
6445              fi
6446            fi
6447          fi
6448          if test "X$found_dir" = "X"; then
6449            for x in $LDFLAGS $LTLIBICONV; do
6450
6451  acl_save_prefix="$prefix"
6452  prefix="$acl_final_prefix"
6453  acl_save_exec_prefix="$exec_prefix"
6454  exec_prefix="$acl_final_exec_prefix"
6455  eval x=\"$x\"
6456  exec_prefix="$acl_save_exec_prefix"
6457  prefix="$acl_save_prefix"
6458
6459              case "$x" in
6460                -L*)
6461                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6462                                    if test -n "$acl_shlibext"; then
6463                    if test -f "$dir/$libname$shrext"; then
6464                      found_dir="$dir"
6465                      found_so="$dir/$libname$shrext"
6466                    else
6467                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6468                        ver=`(cd "$dir" && \
6469                              for f in "$libname$shrext".*; do echo "$f"; done \
6470                              | sed -e "s,^$libname$shrext\\\\.,," \
6471                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6472                              | sed 1q ) 2>/dev/null`
6473                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6474                          found_dir="$dir"
6475                          found_so="$dir/$libname$shrext.$ver"
6476                        fi
6477                      else
6478                        eval library_names=\"$acl_library_names_spec\"
6479                        for f in $library_names; do
6480                          if test -f "$dir/$f"; then
6481                            found_dir="$dir"
6482                            found_so="$dir/$f"
6483                            break
6484                          fi
6485                        done
6486                      fi
6487                    fi
6488                  fi
6489                                    if test "X$found_dir" = "X"; then
6490                    if test -f "$dir/$libname.$acl_libext"; then
6491                      found_dir="$dir"
6492                      found_a="$dir/$libname.$acl_libext"
6493                    fi
6494                  fi
6495                  if test "X$found_dir" != "X"; then
6496                    if test -f "$dir/$libname.la"; then
6497                      found_la="$dir/$libname.la"
6498                    fi
6499                  fi
6500                  ;;
6501              esac
6502              if test "X$found_dir" != "X"; then
6503                break
6504              fi
6505            done
6506          fi
6507          if test "X$found_dir" != "X"; then
6508                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6509            if test "X$found_so" != "X"; then
6510                                                        if test "$enable_rpath" = no \
6511                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6512                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6513                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6514              else
6515                                                                                haveit=
6516                for x in $ltrpathdirs; do
6517                  if test "X$x" = "X$found_dir"; then
6518                    haveit=yes
6519                    break
6520                  fi
6521                done
6522                if test -z "$haveit"; then
6523                  ltrpathdirs="$ltrpathdirs $found_dir"
6524                fi
6525                                if test "$acl_hardcode_direct" = yes; then
6526                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6527                else
6528                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6529                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6530                                                            haveit=
6531                    for x in $rpathdirs; do
6532                      if test "X$x" = "X$found_dir"; then
6533                        haveit=yes
6534                        break
6535                      fi
6536                    done
6537                    if test -z "$haveit"; then
6538                      rpathdirs="$rpathdirs $found_dir"
6539                    fi
6540                  else
6541                                                                                haveit=
6542                    for x in $LDFLAGS $LIBICONV; do
6543
6544  acl_save_prefix="$prefix"
6545  prefix="$acl_final_prefix"
6546  acl_save_exec_prefix="$exec_prefix"
6547  exec_prefix="$acl_final_exec_prefix"
6548  eval x=\"$x\"
6549  exec_prefix="$acl_save_exec_prefix"
6550  prefix="$acl_save_prefix"
6551
6552                      if test "X$x" = "X-L$found_dir"; then
6553                        haveit=yes
6554                        break
6555                      fi
6556                    done
6557                    if test -z "$haveit"; then
6558                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6559                    fi
6560                    if test "$acl_hardcode_minus_L" != no; then
6561                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6562                    else
6563                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6564                    fi
6565                  fi
6566                fi
6567              fi
6568            else
6569              if test "X$found_a" != "X"; then
6570                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6571              else
6572                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6573              fi
6574            fi
6575                        additional_includedir=
6576            case "$found_dir" in
6577              */$acl_libdirstem | */$acl_libdirstem/)
6578                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6579                if test "$name" = 'iconv'; then
6580                  LIBICONV_PREFIX="$basedir"
6581                fi
6582                additional_includedir="$basedir/include"
6583                ;;
6584              */$acl_libdirstem2 | */$acl_libdirstem2/)
6585                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6586                if test "$name" = 'iconv'; then
6587                  LIBICONV_PREFIX="$basedir"
6588                fi
6589                additional_includedir="$basedir/include"
6590                ;;
6591            esac
6592            if test "X$additional_includedir" != "X"; then
6593                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6594                haveit=
6595                if test "X$additional_includedir" = "X/usr/local/include"; then
6596                  if test -n "$GCC"; then
6597                    case $host_os in
6598                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6599                    esac
6600                  fi
6601                fi
6602                if test -z "$haveit"; then
6603                  for x in $CPPFLAGS $INCICONV; do
6604
6605  acl_save_prefix="$prefix"
6606  prefix="$acl_final_prefix"
6607  acl_save_exec_prefix="$exec_prefix"
6608  exec_prefix="$acl_final_exec_prefix"
6609  eval x=\"$x\"
6610  exec_prefix="$acl_save_exec_prefix"
6611  prefix="$acl_save_prefix"
6612
6613                    if test "X$x" = "X-I$additional_includedir"; then
6614                      haveit=yes
6615                      break
6616                    fi
6617                  done
6618                  if test -z "$haveit"; then
6619                    if test -d "$additional_includedir"; then
6620                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6621                    fi
6622                  fi
6623                fi
6624              fi
6625            fi
6626                        if test -n "$found_la"; then
6627                                                        save_libdir="$libdir"
6628              case "$found_la" in
6629                */* | *\\*) . "$found_la" ;;
6630                *) . "./$found_la" ;;
6631              esac
6632              libdir="$save_libdir"
6633                            for dep in $dependency_libs; do
6634                case "$dep" in
6635                  -L*)
6636                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6637                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6638                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6639                      haveit=
6640                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6641                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6642                        if test -n "$GCC"; then
6643                          case $host_os in
6644                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6645                          esac
6646                        fi
6647                      fi
6648                      if test -z "$haveit"; then
6649                        haveit=
6650                        for x in $LDFLAGS $LIBICONV; do
6651
6652  acl_save_prefix="$prefix"
6653  prefix="$acl_final_prefix"
6654  acl_save_exec_prefix="$exec_prefix"
6655  exec_prefix="$acl_final_exec_prefix"
6656  eval x=\"$x\"
6657  exec_prefix="$acl_save_exec_prefix"
6658  prefix="$acl_save_prefix"
6659
6660                          if test "X$x" = "X-L$additional_libdir"; then
6661                            haveit=yes
6662                            break
6663                          fi
6664                        done
6665                        if test -z "$haveit"; then
6666                          if test -d "$additional_libdir"; then
6667                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6668                          fi
6669                        fi
6670                        haveit=
6671                        for x in $LDFLAGS $LTLIBICONV; do
6672
6673  acl_save_prefix="$prefix"
6674  prefix="$acl_final_prefix"
6675  acl_save_exec_prefix="$exec_prefix"
6676  exec_prefix="$acl_final_exec_prefix"
6677  eval x=\"$x\"
6678  exec_prefix="$acl_save_exec_prefix"
6679  prefix="$acl_save_prefix"
6680
6681                          if test "X$x" = "X-L$additional_libdir"; then
6682                            haveit=yes
6683                            break
6684                          fi
6685                        done
6686                        if test -z "$haveit"; then
6687                          if test -d "$additional_libdir"; then
6688                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6689                          fi
6690                        fi
6691                      fi
6692                    fi
6693                    ;;
6694                  -R*)
6695                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6696                    if test "$enable_rpath" != no; then
6697                                                                  haveit=
6698                      for x in $rpathdirs; do
6699                        if test "X$x" = "X$dir"; then
6700                          haveit=yes
6701                          break
6702                        fi
6703                      done
6704                      if test -z "$haveit"; then
6705                        rpathdirs="$rpathdirs $dir"
6706                      fi
6707                                                                  haveit=
6708                      for x in $ltrpathdirs; do
6709                        if test "X$x" = "X$dir"; then
6710                          haveit=yes
6711                          break
6712                        fi
6713                      done
6714                      if test -z "$haveit"; then
6715                        ltrpathdirs="$ltrpathdirs $dir"
6716                      fi
6717                    fi
6718                    ;;
6719                  -l*)
6720                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6721                    ;;
6722                  *.la)
6723                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6724                    ;;
6725                  *)
6726                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6727                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6728                    ;;
6729                esac
6730              done
6731            fi
6732          else
6733                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6734            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6735          fi
6736        fi
6737      fi
6738    done
6739  done
6740  if test "X$rpathdirs" != "X"; then
6741    if test -n "$acl_hardcode_libdir_separator"; then
6742                        alldirs=
6743      for found_dir in $rpathdirs; do
6744        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6745      done
6746            acl_save_libdir="$libdir"
6747      libdir="$alldirs"
6748      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6749      libdir="$acl_save_libdir"
6750      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6751    else
6752            for found_dir in $rpathdirs; do
6753        acl_save_libdir="$libdir"
6754        libdir="$found_dir"
6755        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6756        libdir="$acl_save_libdir"
6757        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6758      done
6759    fi
6760  fi
6761  if test "X$ltrpathdirs" != "X"; then
6762            for found_dir in $ltrpathdirs; do
6763      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6764    done
6765  fi
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778          am_save_CPPFLAGS="$CPPFLAGS"
6779
6780  for element in $INCICONV; do
6781    haveit=
6782    for x in $CPPFLAGS; do
6783
6784  acl_save_prefix="$prefix"
6785  prefix="$acl_final_prefix"
6786  acl_save_exec_prefix="$exec_prefix"
6787  exec_prefix="$acl_final_exec_prefix"
6788  eval x=\"$x\"
6789  exec_prefix="$acl_save_exec_prefix"
6790  prefix="$acl_save_prefix"
6791
6792      if test "X$x" = "X$element"; then
6793        haveit=yes
6794        break
6795      fi
6796    done
6797    if test -z "$haveit"; then
6798      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6799    fi
6800  done
6801
6802
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6804$as_echo_n "checking for iconv... " >&6; }
6805if ${am_cv_func_iconv+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808
6809    am_cv_func_iconv="no, consider installing GNU libiconv"
6810    am_cv_lib_iconv=no
6811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813
6814#include <stdlib.h>
6815#include <iconv.h>
6816
6817int
6818main ()
6819{
6820iconv_t cd = iconv_open("","");
6821           iconv(cd,NULL,NULL,NULL,NULL);
6822           iconv_close(cd);
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_link "$LINENO"; then :
6828  am_cv_func_iconv=yes
6829fi
6830rm -f core conftest.err conftest.$ac_objext \
6831    conftest$ac_exeext conftest.$ac_ext
6832    if test "$am_cv_func_iconv" != yes; then
6833      am_save_LIBS="$LIBS"
6834      LIBS="$LIBS $LIBICONV"
6835      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837
6838#include <stdlib.h>
6839#include <iconv.h>
6840
6841int
6842main ()
6843{
6844iconv_t cd = iconv_open("","");
6845             iconv(cd,NULL,NULL,NULL,NULL);
6846             iconv_close(cd);
6847  ;
6848  return 0;
6849}
6850_ACEOF
6851if ac_fn_c_try_link "$LINENO"; then :
6852  am_cv_lib_iconv=yes
6853        am_cv_func_iconv=yes
6854fi
6855rm -f core conftest.err conftest.$ac_objext \
6856    conftest$ac_exeext conftest.$ac_ext
6857      LIBS="$am_save_LIBS"
6858    fi
6859
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6862$as_echo "$am_cv_func_iconv" >&6; }
6863  if test "$am_cv_func_iconv" = yes; then
6864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6865$as_echo_n "checking for working iconv... " >&6; }
6866if ${am_cv_func_iconv_works+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869
6870                  am_save_LIBS="$LIBS"
6871      if test $am_cv_lib_iconv = yes; then
6872        LIBS="$LIBS $LIBICONV"
6873      fi
6874      am_cv_func_iconv_works=no
6875      for ac_iconv_const in '' 'const'; do
6876        if test "$cross_compiling" = yes; then :
6877  case "$host_os" in
6878             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6879             *)            am_cv_func_iconv_works="guessing yes" ;;
6880           esac
6881else
6882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883/* end confdefs.h.  */
6884
6885#include <iconv.h>
6886#include <string.h>
6887
6888#ifndef ICONV_CONST
6889# define ICONV_CONST $ac_iconv_const
6890#endif
6891
6892int
6893main ()
6894{
6895int result = 0;
6896  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6897     returns.  */
6898  {
6899    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6900    if (cd_utf8_to_88591 != (iconv_t)(-1))
6901      {
6902        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6903        char buf[10];
6904        ICONV_CONST char *inptr = input;
6905        size_t inbytesleft = strlen (input);
6906        char *outptr = buf;
6907        size_t outbytesleft = sizeof (buf);
6908        size_t res = iconv (cd_utf8_to_88591,
6909                            &inptr, &inbytesleft,
6910                            &outptr, &outbytesleft);
6911        if (res == 0)
6912          result |= 1;
6913        iconv_close (cd_utf8_to_88591);
6914      }
6915  }
6916  /* Test against Solaris 10 bug: Failures are not distinguishable from
6917     successful returns.  */
6918  {
6919    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6920    if (cd_ascii_to_88591 != (iconv_t)(-1))
6921      {
6922        static ICONV_CONST char input[] = "\263";
6923        char buf[10];
6924        ICONV_CONST char *inptr = input;
6925        size_t inbytesleft = strlen (input);
6926        char *outptr = buf;
6927        size_t outbytesleft = sizeof (buf);
6928        size_t res = iconv (cd_ascii_to_88591,
6929                            &inptr, &inbytesleft,
6930                            &outptr, &outbytesleft);
6931        if (res == 0)
6932          result |= 2;
6933        iconv_close (cd_ascii_to_88591);
6934      }
6935  }
6936  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6937  {
6938    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6939    if (cd_88591_to_utf8 != (iconv_t)(-1))
6940      {
6941        static ICONV_CONST char input[] = "\304";
6942        static char buf[2] = { (char)0xDE, (char)0xAD };
6943        ICONV_CONST char *inptr = input;
6944        size_t inbytesleft = 1;
6945        char *outptr = buf;
6946        size_t outbytesleft = 1;
6947        size_t res = iconv (cd_88591_to_utf8,
6948                            &inptr, &inbytesleft,
6949                            &outptr, &outbytesleft);
6950        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6951          result |= 4;
6952        iconv_close (cd_88591_to_utf8);
6953      }
6954  }
6955#if 0 /* This bug could be worked around by the caller.  */
6956  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6957  {
6958    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6959    if (cd_88591_to_utf8 != (iconv_t)(-1))
6960      {
6961        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6962        char buf[50];
6963        ICONV_CONST char *inptr = input;
6964        size_t inbytesleft = strlen (input);
6965        char *outptr = buf;
6966        size_t outbytesleft = sizeof (buf);
6967        size_t res = iconv (cd_88591_to_utf8,
6968                            &inptr, &inbytesleft,
6969                            &outptr, &outbytesleft);
6970        if ((int)res > 0)
6971          result |= 8;
6972        iconv_close (cd_88591_to_utf8);
6973      }
6974  }
6975#endif
6976  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6977     provided.  */
6978  if (/* Try standardized names.  */
6979      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6980      /* Try IRIX, OSF/1 names.  */
6981      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6982      /* Try AIX names.  */
6983      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6984      /* Try HP-UX names.  */
6985      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6986    result |= 16;
6987  return result;
6988
6989  ;
6990  return 0;
6991}
6992_ACEOF
6993if ac_fn_c_try_run "$LINENO"; then :
6994  am_cv_func_iconv_works=yes
6995fi
6996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6997  conftest.$ac_objext conftest.beam conftest.$ac_ext
6998fi
6999
7000        test "$am_cv_func_iconv_works" = no || break
7001      done
7002      LIBS="$am_save_LIBS"
7003
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7006$as_echo "$am_cv_func_iconv_works" >&6; }
7007    case "$am_cv_func_iconv_works" in
7008      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7009      *)   am_func_iconv=yes ;;
7010    esac
7011  else
7012    am_func_iconv=no am_cv_lib_iconv=no
7013  fi
7014  if test "$am_func_iconv" = yes; then
7015
7016$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7017
7018  fi
7019  if test "$am_cv_lib_iconv" = yes; then
7020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7021$as_echo_n "checking how to link with libiconv... " >&6; }
7022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7023$as_echo "$LIBICONV" >&6; }
7024  else
7025            CPPFLAGS="$am_save_CPPFLAGS"
7026    LIBICONV=
7027    LTLIBICONV=
7028  fi
7029
7030
7031
7032  if test "$am_cv_func_iconv" = yes; then
7033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7034$as_echo_n "checking for iconv declaration... " >&6; }
7035    if ${am_cv_proto_iconv+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038
7039      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041
7042#include <stdlib.h>
7043#include <iconv.h>
7044extern
7045#ifdef __cplusplus
7046"C"
7047#endif
7048#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
7049size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7050#else
7051size_t iconv();
7052#endif
7053
7054int
7055main ()
7056{
7057
7058  ;
7059  return 0;
7060}
7061_ACEOF
7062if ac_fn_c_try_compile "$LINENO"; then :
7063  am_cv_proto_iconv_arg1=""
7064else
7065  am_cv_proto_iconv_arg1="const"
7066fi
7067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7069fi
7070
7071    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7072    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7073         $am_cv_proto_iconv" >&5
7074$as_echo "
7075         $am_cv_proto_iconv" >&6; }
7076
7077cat >>confdefs.h <<_ACEOF
7078#define ICONV_CONST $am_cv_proto_iconv_arg1
7079_ACEOF
7080
7081
7082  fi
7083
7084
7085# use an external libmspack if requested
7086cabextract_external_libmspack=no
7087
7088# Check whether --with-external-libmspack was given.
7089if test "${with_external_libmspack+set}" = set; then :
7090  withval=$with_external_libmspack; cabextract_external_libmspack=$withval
7091fi
7092
7093
7094if test "z$cabextract_external_libmspack" != 'zno'; then
7095
7096
7097
7098
7099
7100
7101
7102if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7103	if test -n "$ac_tool_prefix"; then
7104  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if ${ac_cv_path_PKG_CONFIG+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  case $PKG_CONFIG in
7112  [\\/]* | ?:[\\/]*)
7113  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7114  ;;
7115  *)
7116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121    for ac_exec_ext in '' $ac_executable_extensions; do
7122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128  done
7129IFS=$as_save_IFS
7130
7131  ;;
7132esac
7133fi
7134PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7135if test -n "$PKG_CONFIG"; then
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7137$as_echo "$PKG_CONFIG" >&6; }
7138else
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140$as_echo "no" >&6; }
7141fi
7142
7143
7144fi
7145if test -z "$ac_cv_path_PKG_CONFIG"; then
7146  ac_pt_PKG_CONFIG=$PKG_CONFIG
7147  # Extract the first word of "pkg-config", so it can be a program name with args.
7148set dummy pkg-config; ac_word=$2
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
7151if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  case $ac_pt_PKG_CONFIG in
7155  [\\/]* | ?:[\\/]*)
7156  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7157  ;;
7158  *)
7159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  test -z "$as_dir" && as_dir=.
7164    for ac_exec_ext in '' $ac_executable_extensions; do
7165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168    break 2
7169  fi
7170done
7171  done
7172IFS=$as_save_IFS
7173
7174  ;;
7175esac
7176fi
7177ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7178if test -n "$ac_pt_PKG_CONFIG"; then
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7180$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7181else
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183$as_echo "no" >&6; }
7184fi
7185
7186  if test "x$ac_pt_PKG_CONFIG" = x; then
7187    PKG_CONFIG=""
7188  else
7189    case $cross_compiling:$ac_tool_warned in
7190yes:)
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193ac_tool_warned=yes ;;
7194esac
7195    PKG_CONFIG=$ac_pt_PKG_CONFIG
7196  fi
7197else
7198  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7199fi
7200
7201fi
7202if test -n "$PKG_CONFIG"; then
7203	_pkg_min_version=0.9.0
7204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7205$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7206	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7208$as_echo "yes" >&6; }
7209	else
7210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211$as_echo "no" >&6; }
7212		PKG_CONFIG=""
7213	fi
7214fi
7215
7216pkg_failed=no
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmspack" >&5
7218$as_echo_n "checking for libmspack... " >&6; }
7219
7220if test -n "$libmspack_CFLAGS"; then
7221    pkg_cv_libmspack_CFLAGS="$libmspack_CFLAGS"
7222 elif test -n "$PKG_CONFIG"; then
7223    if test -n "$PKG_CONFIG" && \
7224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack >= 0.8alpha\""; } >&5
7225  ($PKG_CONFIG --exists --print-errors "libmspack >= 0.8alpha") 2>&5
7226  ac_status=$?
7227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228  test $ac_status = 0; }; then
7229  pkg_cv_libmspack_CFLAGS=`$PKG_CONFIG --cflags "libmspack >= 0.8alpha" 2>/dev/null`
7230		      test "x$?" != "x0" && pkg_failed=yes
7231else
7232  pkg_failed=yes
7233fi
7234 else
7235    pkg_failed=untried
7236fi
7237if test -n "$libmspack_LIBS"; then
7238    pkg_cv_libmspack_LIBS="$libmspack_LIBS"
7239 elif test -n "$PKG_CONFIG"; then
7240    if test -n "$PKG_CONFIG" && \
7241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack >= 0.8alpha\""; } >&5
7242  ($PKG_CONFIG --exists --print-errors "libmspack >= 0.8alpha") 2>&5
7243  ac_status=$?
7244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245  test $ac_status = 0; }; then
7246  pkg_cv_libmspack_LIBS=`$PKG_CONFIG --libs "libmspack >= 0.8alpha" 2>/dev/null`
7247		      test "x$?" != "x0" && pkg_failed=yes
7248else
7249  pkg_failed=yes
7250fi
7251 else
7252    pkg_failed=untried
7253fi
7254
7255
7256
7257if test $pkg_failed = yes; then
7258   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260
7261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7262        _pkg_short_errors_supported=yes
7263else
7264        _pkg_short_errors_supported=no
7265fi
7266        if test $_pkg_short_errors_supported = yes; then
7267	        libmspack_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmspack >= 0.8alpha" 2>&1`
7268        else
7269	        libmspack_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmspack >= 0.8alpha" 2>&1`
7270        fi
7271	# Put the nasty error message in config.log where it belongs
7272	echo "$libmspack_PKG_ERRORS" >&5
7273
7274	as_fn_error $? "Package requirements (libmspack >= 0.8alpha) were not met:
7275
7276$libmspack_PKG_ERRORS
7277
7278Consider adjusting the PKG_CONFIG_PATH environment variable if you
7279installed software in a non-standard prefix.
7280
7281Alternatively, you may set the environment variables libmspack_CFLAGS
7282and libmspack_LIBS to avoid the need to call pkg-config.
7283See the pkg-config man page for more details." "$LINENO" 5
7284elif test $pkg_failed = untried; then
7285     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7289as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7290is in your PATH or set the PKG_CONFIG environment variable to the full
7291path to pkg-config.
7292
7293Alternatively, you may set the environment variables libmspack_CFLAGS
7294and libmspack_LIBS to avoid the need to call pkg-config.
7295See the pkg-config man page for more details.
7296
7297To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7298See \`config.log' for more details" "$LINENO" 5; }
7299else
7300	libmspack_CFLAGS=$pkg_cv_libmspack_CFLAGS
7301	libmspack_LIBS=$pkg_cv_libmspack_LIBS
7302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303$as_echo "yes" >&6; }
7304
7305fi
7306  ac_fn_c_check_header_mongrel "$LINENO" "mspack.h" "ac_cv_header_mspack_h" "$ac_includes_default"
7307if test "x$ac_cv_header_mspack_h" = xyes; then :
7308
7309else
7310  as_fn_error $? "Cannot find libmspack header" "$LINENO" 5
7311fi
7312
7313
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mspack_create_cab_decompressor in -lmspack" >&5
7315$as_echo_n "checking for mspack_create_cab_decompressor in -lmspack... " >&6; }
7316if ${ac_cv_lib_mspack_mspack_create_cab_decompressor+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  ac_check_lib_save_LIBS=$LIBS
7320LIBS="-lmspack  $LIBS"
7321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323
7324/* Override any GCC internal prototype to avoid an error.
7325   Use char because int might match the return type of a GCC
7326   builtin and then its argument prototype would still apply.  */
7327#ifdef __cplusplus
7328extern "C"
7329#endif
7330char mspack_create_cab_decompressor ();
7331int
7332main ()
7333{
7334return mspack_create_cab_decompressor ();
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"; then :
7340  ac_cv_lib_mspack_mspack_create_cab_decompressor=yes
7341else
7342  ac_cv_lib_mspack_mspack_create_cab_decompressor=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext \
7345    conftest$ac_exeext conftest.$ac_ext
7346LIBS=$ac_check_lib_save_LIBS
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mspack_mspack_create_cab_decompressor" >&5
7349$as_echo "$ac_cv_lib_mspack_mspack_create_cab_decompressor" >&6; }
7350if test "x$ac_cv_lib_mspack_mspack_create_cab_decompressor" = xyes; then :
7351  cat >>confdefs.h <<_ACEOF
7352#define HAVE_LIBMSPACK 1
7353_ACEOF
7354
7355  LIBS="-lmspack $LIBS"
7356
7357else
7358  as_fn_error $? "Cannot find libmspack library" "$LINENO" 5
7359fi
7360
7361fi
7362 if test "z$cabextract_external_libmspack" != 'zno'; then
7363  EXTERNAL_LIBMSPACK_TRUE=
7364  EXTERNAL_LIBMSPACK_FALSE='#'
7365else
7366  EXTERNAL_LIBMSPACK_TRUE='#'
7367  EXTERNAL_LIBMSPACK_FALSE=
7368fi
7369
7370
7371ac_config_files="$ac_config_files Makefile cabextract.spec test/testcase"
7372
7373cat >confcache <<\_ACEOF
7374# This file is a shell script that caches the results of configure
7375# tests run on this system so they can be shared between configure
7376# scripts and configure runs, see configure's option --config-cache.
7377# It is not useful on other systems.  If it contains results you don't
7378# want to keep, you may remove or edit it.
7379#
7380# config.status only pays attention to the cache file if you give it
7381# the --recheck option to rerun configure.
7382#
7383# `ac_cv_env_foo' variables (set or unset) will be overridden when
7384# loading this file, other *unset* `ac_cv_foo' will be assigned the
7385# following values.
7386
7387_ACEOF
7388
7389# The following way of writing the cache mishandles newlines in values,
7390# but we know of no workaround that is simple, portable, and efficient.
7391# So, we kill variables containing newlines.
7392# Ultrix sh set writes to stderr and can't be redirected directly,
7393# and sets the high bit in the cache file unless we assign to the vars.
7394(
7395  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7396    eval ac_val=\$$ac_var
7397    case $ac_val in #(
7398    *${as_nl}*)
7399      case $ac_var in #(
7400      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7401$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7402      esac
7403      case $ac_var in #(
7404      _ | IFS | as_nl) ;; #(
7405      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7406      *) { eval $ac_var=; unset $ac_var;} ;;
7407      esac ;;
7408    esac
7409  done
7410
7411  (set) 2>&1 |
7412    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7413    *${as_nl}ac_space=\ *)
7414      # `set' does not quote correctly, so add quotes: double-quote
7415      # substitution turns \\\\ into \\, and sed turns \\ into \.
7416      sed -n \
7417	"s/'/'\\\\''/g;
7418	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7419      ;; #(
7420    *)
7421      # `set' quotes correctly as required by POSIX, so do not add quotes.
7422      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7423      ;;
7424    esac |
7425    sort
7426) |
7427  sed '
7428     /^ac_cv_env_/b end
7429     t clear
7430     :clear
7431     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7432     t end
7433     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7434     :end' >>confcache
7435if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7436  if test -w "$cache_file"; then
7437    if test "x$cache_file" != "x/dev/null"; then
7438      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7439$as_echo "$as_me: updating cache $cache_file" >&6;}
7440      if test ! -f "$cache_file" || test -h "$cache_file"; then
7441	cat confcache >"$cache_file"
7442      else
7443        case $cache_file in #(
7444        */* | ?:*)
7445	  mv -f confcache "$cache_file"$$ &&
7446	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7447        *)
7448	  mv -f confcache "$cache_file" ;;
7449	esac
7450      fi
7451    fi
7452  else
7453    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7454$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7455  fi
7456fi
7457rm -f confcache
7458
7459test "x$prefix" = xNONE && prefix=$ac_default_prefix
7460# Let make expand exec_prefix.
7461test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7462
7463DEFS=-DHAVE_CONFIG_H
7464
7465ac_libobjs=
7466ac_ltlibobjs=
7467U=
7468for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7469  # 1. Remove the extension, and $U if already installed.
7470  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7471  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7472  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7473  #    will be set to the directory where LIBOBJS objects are built.
7474  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7475  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7476done
7477LIBOBJS=$ac_libobjs
7478
7479LTLIBOBJS=$ac_ltlibobjs
7480
7481
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7483$as_echo_n "checking that generated files are newer than configure... " >&6; }
7484   if test -n "$am_sleep_pid"; then
7485     # Hide warnings about reused PIDs.
7486     wait $am_sleep_pid 2>/dev/null
7487   fi
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7489$as_echo "done" >&6; }
7490 if test -n "$EXEEXT"; then
7491  am__EXEEXT_TRUE=
7492  am__EXEEXT_FALSE='#'
7493else
7494  am__EXEEXT_TRUE='#'
7495  am__EXEEXT_FALSE=
7496fi
7497
7498if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7499  as_fn_error $? "conditional \"AMDEP\" was never defined.
7500Usually this means the macro was only invoked conditionally." "$LINENO" 5
7501fi
7502if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7503  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7504Usually this means the macro was only invoked conditionally." "$LINENO" 5
7505fi
7506
7507if test -z "${EXTERNAL_LIBMSPACK_TRUE}" && test -z "${EXTERNAL_LIBMSPACK_FALSE}"; then
7508  as_fn_error $? "conditional \"EXTERNAL_LIBMSPACK\" was never defined.
7509Usually this means the macro was only invoked conditionally." "$LINENO" 5
7510fi
7511
7512: "${CONFIG_STATUS=./config.status}"
7513ac_write_fail=0
7514ac_clean_files_save=$ac_clean_files
7515ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7517$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7518as_write_fail=0
7519cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7520#! $SHELL
7521# Generated by $as_me.
7522# Run this file to recreate the current configuration.
7523# Compiler output produced by configure, useful for debugging
7524# configure, is in config.log if it exists.
7525
7526debug=false
7527ac_cs_recheck=false
7528ac_cs_silent=false
7529
7530SHELL=\${CONFIG_SHELL-$SHELL}
7531export SHELL
7532_ASEOF
7533cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7534## -------------------- ##
7535## M4sh Initialization. ##
7536## -------------------- ##
7537
7538# Be more Bourne compatible
7539DUALCASE=1; export DUALCASE # for MKS sh
7540if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7541  emulate sh
7542  NULLCMD=:
7543  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7544  # is contrary to our usage.  Disable this feature.
7545  alias -g '${1+"$@"}'='"$@"'
7546  setopt NO_GLOB_SUBST
7547else
7548  case `(set -o) 2>/dev/null` in #(
7549  *posix*) :
7550    set -o posix ;; #(
7551  *) :
7552     ;;
7553esac
7554fi
7555
7556
7557as_nl='
7558'
7559export as_nl
7560# Printing a long string crashes Solaris 7 /usr/bin/printf.
7561as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7562as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7563as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7564# Prefer a ksh shell builtin over an external printf program on Solaris,
7565# but without wasting forks for bash or zsh.
7566if test -z "$BASH_VERSION$ZSH_VERSION" \
7567    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7568  as_echo='print -r --'
7569  as_echo_n='print -rn --'
7570elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7571  as_echo='printf %s\n'
7572  as_echo_n='printf %s'
7573else
7574  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7575    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7576    as_echo_n='/usr/ucb/echo -n'
7577  else
7578    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7579    as_echo_n_body='eval
7580      arg=$1;
7581      case $arg in #(
7582      *"$as_nl"*)
7583	expr "X$arg" : "X\\(.*\\)$as_nl";
7584	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7585      esac;
7586      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7587    '
7588    export as_echo_n_body
7589    as_echo_n='sh -c $as_echo_n_body as_echo'
7590  fi
7591  export as_echo_body
7592  as_echo='sh -c $as_echo_body as_echo'
7593fi
7594
7595# The user is always right.
7596if test "${PATH_SEPARATOR+set}" != set; then
7597  PATH_SEPARATOR=:
7598  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7599    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7600      PATH_SEPARATOR=';'
7601  }
7602fi
7603
7604
7605# IFS
7606# We need space, tab and new line, in precisely that order.  Quoting is
7607# there to prevent editors from complaining about space-tab.
7608# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7609# splitting by setting IFS to empty value.)
7610IFS=" ""	$as_nl"
7611
7612# Find who we are.  Look in the path if we contain no directory separator.
7613as_myself=
7614case $0 in #((
7615  *[\\/]* ) as_myself=$0 ;;
7616  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619  IFS=$as_save_IFS
7620  test -z "$as_dir" && as_dir=.
7621    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7622  done
7623IFS=$as_save_IFS
7624
7625     ;;
7626esac
7627# We did not find ourselves, most probably we were run as `sh COMMAND'
7628# in which case we are not to be found in the path.
7629if test "x$as_myself" = x; then
7630  as_myself=$0
7631fi
7632if test ! -f "$as_myself"; then
7633  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7634  exit 1
7635fi
7636
7637# Unset variables that we do not need and which cause bugs (e.g. in
7638# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7639# suppresses any "Segmentation fault" message there.  '((' could
7640# trigger a bug in pdksh 5.2.14.
7641for as_var in BASH_ENV ENV MAIL MAILPATH
7642do eval test x\${$as_var+set} = xset \
7643  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7644done
7645PS1='$ '
7646PS2='> '
7647PS4='+ '
7648
7649# NLS nuisances.
7650LC_ALL=C
7651export LC_ALL
7652LANGUAGE=C
7653export LANGUAGE
7654
7655# CDPATH.
7656(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7657
7658
7659# as_fn_error STATUS ERROR [LINENO LOG_FD]
7660# ----------------------------------------
7661# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7662# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7663# script with STATUS, using 1 if that was 0.
7664as_fn_error ()
7665{
7666  as_status=$1; test $as_status -eq 0 && as_status=1
7667  if test "$4"; then
7668    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7669    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7670  fi
7671  $as_echo "$as_me: error: $2" >&2
7672  as_fn_exit $as_status
7673} # as_fn_error
7674
7675
7676# as_fn_set_status STATUS
7677# -----------------------
7678# Set $? to STATUS, without forking.
7679as_fn_set_status ()
7680{
7681  return $1
7682} # as_fn_set_status
7683
7684# as_fn_exit STATUS
7685# -----------------
7686# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7687as_fn_exit ()
7688{
7689  set +e
7690  as_fn_set_status $1
7691  exit $1
7692} # as_fn_exit
7693
7694# as_fn_unset VAR
7695# ---------------
7696# Portably unset VAR.
7697as_fn_unset ()
7698{
7699  { eval $1=; unset $1;}
7700}
7701as_unset=as_fn_unset
7702# as_fn_append VAR VALUE
7703# ----------------------
7704# Append the text in VALUE to the end of the definition contained in VAR. Take
7705# advantage of any shell optimizations that allow amortized linear growth over
7706# repeated appends, instead of the typical quadratic growth present in naive
7707# implementations.
7708if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7709  eval 'as_fn_append ()
7710  {
7711    eval $1+=\$2
7712  }'
7713else
7714  as_fn_append ()
7715  {
7716    eval $1=\$$1\$2
7717  }
7718fi # as_fn_append
7719
7720# as_fn_arith ARG...
7721# ------------------
7722# Perform arithmetic evaluation on the ARGs, and store the result in the
7723# global $as_val. Take advantage of shells that can avoid forks. The arguments
7724# must be portable across $(()) and expr.
7725if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7726  eval 'as_fn_arith ()
7727  {
7728    as_val=$(( $* ))
7729  }'
7730else
7731  as_fn_arith ()
7732  {
7733    as_val=`expr "$@" || test $? -eq 1`
7734  }
7735fi # as_fn_arith
7736
7737
7738if expr a : '\(a\)' >/dev/null 2>&1 &&
7739   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7740  as_expr=expr
7741else
7742  as_expr=false
7743fi
7744
7745if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7746  as_basename=basename
7747else
7748  as_basename=false
7749fi
7750
7751if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7752  as_dirname=dirname
7753else
7754  as_dirname=false
7755fi
7756
7757as_me=`$as_basename -- "$0" ||
7758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7759	 X"$0" : 'X\(//\)$' \| \
7760	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7761$as_echo X/"$0" |
7762    sed '/^.*\/\([^/][^/]*\)\/*$/{
7763	    s//\1/
7764	    q
7765	  }
7766	  /^X\/\(\/\/\)$/{
7767	    s//\1/
7768	    q
7769	  }
7770	  /^X\/\(\/\).*/{
7771	    s//\1/
7772	    q
7773	  }
7774	  s/.*/./; q'`
7775
7776# Avoid depending upon Character Ranges.
7777as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7778as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7779as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7780as_cr_digits='0123456789'
7781as_cr_alnum=$as_cr_Letters$as_cr_digits
7782
7783ECHO_C= ECHO_N= ECHO_T=
7784case `echo -n x` in #(((((
7785-n*)
7786  case `echo 'xy\c'` in
7787  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7788  xy)  ECHO_C='\c';;
7789  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7790       ECHO_T='	';;
7791  esac;;
7792*)
7793  ECHO_N='-n';;
7794esac
7795
7796rm -f conf$$ conf$$.exe conf$$.file
7797if test -d conf$$.dir; then
7798  rm -f conf$$.dir/conf$$.file
7799else
7800  rm -f conf$$.dir
7801  mkdir conf$$.dir 2>/dev/null
7802fi
7803if (echo >conf$$.file) 2>/dev/null; then
7804  if ln -s conf$$.file conf$$ 2>/dev/null; then
7805    as_ln_s='ln -s'
7806    # ... but there are two gotchas:
7807    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7808    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7809    # In both cases, we have to default to `cp -pR'.
7810    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7811      as_ln_s='cp -pR'
7812  elif ln conf$$.file conf$$ 2>/dev/null; then
7813    as_ln_s=ln
7814  else
7815    as_ln_s='cp -pR'
7816  fi
7817else
7818  as_ln_s='cp -pR'
7819fi
7820rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7821rmdir conf$$.dir 2>/dev/null
7822
7823
7824# as_fn_mkdir_p
7825# -------------
7826# Create "$as_dir" as a directory, including parents if necessary.
7827as_fn_mkdir_p ()
7828{
7829
7830  case $as_dir in #(
7831  -*) as_dir=./$as_dir;;
7832  esac
7833  test -d "$as_dir" || eval $as_mkdir_p || {
7834    as_dirs=
7835    while :; do
7836      case $as_dir in #(
7837      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7838      *) as_qdir=$as_dir;;
7839      esac
7840      as_dirs="'$as_qdir' $as_dirs"
7841      as_dir=`$as_dirname -- "$as_dir" ||
7842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7843	 X"$as_dir" : 'X\(//\)[^/]' \| \
7844	 X"$as_dir" : 'X\(//\)$' \| \
7845	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7846$as_echo X"$as_dir" |
7847    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7848	    s//\1/
7849	    q
7850	  }
7851	  /^X\(\/\/\)[^/].*/{
7852	    s//\1/
7853	    q
7854	  }
7855	  /^X\(\/\/\)$/{
7856	    s//\1/
7857	    q
7858	  }
7859	  /^X\(\/\).*/{
7860	    s//\1/
7861	    q
7862	  }
7863	  s/.*/./; q'`
7864      test -d "$as_dir" && break
7865    done
7866    test -z "$as_dirs" || eval "mkdir $as_dirs"
7867  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7868
7869
7870} # as_fn_mkdir_p
7871if mkdir -p . 2>/dev/null; then
7872  as_mkdir_p='mkdir -p "$as_dir"'
7873else
7874  test -d ./-p && rmdir ./-p
7875  as_mkdir_p=false
7876fi
7877
7878
7879# as_fn_executable_p FILE
7880# -----------------------
7881# Test if FILE is an executable regular file.
7882as_fn_executable_p ()
7883{
7884  test -f "$1" && test -x "$1"
7885} # as_fn_executable_p
7886as_test_x='test -x'
7887as_executable_p=as_fn_executable_p
7888
7889# Sed expression to map a string onto a valid CPP name.
7890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7891
7892# Sed expression to map a string onto a valid variable name.
7893as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7894
7895
7896exec 6>&1
7897## ----------------------------------- ##
7898## Main body of $CONFIG_STATUS script. ##
7899## ----------------------------------- ##
7900_ASEOF
7901test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7902
7903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7904# Save the log message, to keep $0 and so on meaningful, and to
7905# report actual input values of CONFIG_FILES etc. instead of their
7906# values after options handling.
7907ac_log="
7908This file was extended by cabextract $as_me 1.9.1, which was
7909generated by GNU Autoconf 2.69.  Invocation command line was
7910
7911  CONFIG_FILES    = $CONFIG_FILES
7912  CONFIG_HEADERS  = $CONFIG_HEADERS
7913  CONFIG_LINKS    = $CONFIG_LINKS
7914  CONFIG_COMMANDS = $CONFIG_COMMANDS
7915  $ $0 $@
7916
7917on `(hostname || uname -n) 2>/dev/null | sed 1q`
7918"
7919
7920_ACEOF
7921
7922case $ac_config_files in *"
7923"*) set x $ac_config_files; shift; ac_config_files=$*;;
7924esac
7925
7926case $ac_config_headers in *"
7927"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7928esac
7929
7930
7931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7932# Files that config.status was made for.
7933config_files="$ac_config_files"
7934config_headers="$ac_config_headers"
7935config_links="$ac_config_links"
7936config_commands="$ac_config_commands"
7937
7938_ACEOF
7939
7940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7941ac_cs_usage="\
7942\`$as_me' instantiates files and other configuration actions
7943from templates according to the current configuration.  Unless the files
7944and actions are specified as TAGs, all are instantiated by default.
7945
7946Usage: $0 [OPTION]... [TAG]...
7947
7948  -h, --help       print this help, then exit
7949  -V, --version    print version number and configuration settings, then exit
7950      --config     print configuration, then exit
7951  -q, --quiet, --silent
7952                   do not print progress messages
7953  -d, --debug      don't remove temporary files
7954      --recheck    update $as_me by reconfiguring in the same conditions
7955      --file=FILE[:TEMPLATE]
7956                   instantiate the configuration file FILE
7957      --header=FILE[:TEMPLATE]
7958                   instantiate the configuration header FILE
7959
7960Configuration files:
7961$config_files
7962
7963Configuration headers:
7964$config_headers
7965
7966Configuration links:
7967$config_links
7968
7969Configuration commands:
7970$config_commands
7971
7972Report bugs to <kyzer@cabextract.org.uk>."
7973
7974_ACEOF
7975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7976ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7977ac_cs_version="\\
7978cabextract config.status 1.9.1
7979configured by $0, generated by GNU Autoconf 2.69,
7980  with options \\"\$ac_cs_config\\"
7981
7982Copyright (C) 2012 Free Software Foundation, Inc.
7983This config.status script is free software; the Free Software Foundation
7984gives unlimited permission to copy, distribute and modify it."
7985
7986ac_pwd='$ac_pwd'
7987srcdir='$srcdir'
7988INSTALL='$INSTALL'
7989MKDIR_P='$MKDIR_P'
7990AWK='$AWK'
7991test -n "\$AWK" || AWK=awk
7992_ACEOF
7993
7994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7995# The default lists apply if the user does not specify any file.
7996ac_need_defaults=:
7997while test $# != 0
7998do
7999  case $1 in
8000  --*=?*)
8001    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8002    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8003    ac_shift=:
8004    ;;
8005  --*=)
8006    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8007    ac_optarg=
8008    ac_shift=:
8009    ;;
8010  *)
8011    ac_option=$1
8012    ac_optarg=$2
8013    ac_shift=shift
8014    ;;
8015  esac
8016
8017  case $ac_option in
8018  # Handling of the options.
8019  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8020    ac_cs_recheck=: ;;
8021  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8022    $as_echo "$ac_cs_version"; exit ;;
8023  --config | --confi | --conf | --con | --co | --c )
8024    $as_echo "$ac_cs_config"; exit ;;
8025  --debug | --debu | --deb | --de | --d | -d )
8026    debug=: ;;
8027  --file | --fil | --fi | --f )
8028    $ac_shift
8029    case $ac_optarg in
8030    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8031    '') as_fn_error $? "missing file argument" ;;
8032    esac
8033    as_fn_append CONFIG_FILES " '$ac_optarg'"
8034    ac_need_defaults=false;;
8035  --header | --heade | --head | --hea )
8036    $ac_shift
8037    case $ac_optarg in
8038    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8039    esac
8040    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8041    ac_need_defaults=false;;
8042  --he | --h)
8043    # Conflict between --help and --header
8044    as_fn_error $? "ambiguous option: \`$1'
8045Try \`$0 --help' for more information.";;
8046  --help | --hel | -h )
8047    $as_echo "$ac_cs_usage"; exit ;;
8048  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8049  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8050    ac_cs_silent=: ;;
8051
8052  # This is an error.
8053  -*) as_fn_error $? "unrecognized option: \`$1'
8054Try \`$0 --help' for more information." ;;
8055
8056  *) as_fn_append ac_config_targets " $1"
8057     ac_need_defaults=false ;;
8058
8059  esac
8060  shift
8061done
8062
8063ac_configure_extra_args=
8064
8065if $ac_cs_silent; then
8066  exec 6>/dev/null
8067  ac_configure_extra_args="$ac_configure_extra_args --silent"
8068fi
8069
8070_ACEOF
8071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8072if \$ac_cs_recheck; then
8073  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8074  shift
8075  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8076  CONFIG_SHELL='$SHELL'
8077  export CONFIG_SHELL
8078  exec "\$@"
8079fi
8080
8081_ACEOF
8082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8083exec 5>>config.log
8084{
8085  echo
8086  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8087## Running $as_me. ##
8088_ASBOX
8089  $as_echo "$ac_log"
8090} >&5
8091
8092_ACEOF
8093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8094#
8095# INIT-COMMANDS
8096#
8097AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8098
8099_ACEOF
8100
8101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8102
8103# Handling of arguments.
8104for ac_config_target in $ac_config_targets
8105do
8106  case $ac_config_target in
8107    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8108    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8109    "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
8110    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8111    "cabextract.spec") CONFIG_FILES="$CONFIG_FILES cabextract.spec" ;;
8112    "test/testcase") CONFIG_FILES="$CONFIG_FILES test/testcase" ;;
8113
8114  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8115  esac
8116done
8117
8118
8119# If the user did not use the arguments to specify the items to instantiate,
8120# then the envvar interface is used.  Set only those that are not.
8121# We use the long form for the default assignment because of an extremely
8122# bizarre bug on SunOS 4.1.3.
8123if $ac_need_defaults; then
8124  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8125  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8126  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8127  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8128fi
8129
8130# Have a temporary directory for convenience.  Make it in the build tree
8131# simply because there is no reason against having it here, and in addition,
8132# creating and moving files from /tmp can sometimes cause problems.
8133# Hook for its removal unless debugging.
8134# Note that there is a small window in which the directory will not be cleaned:
8135# after its creation but before its name has been assigned to `$tmp'.
8136$debug ||
8137{
8138  tmp= ac_tmp=
8139  trap 'exit_status=$?
8140  : "${ac_tmp:=$tmp}"
8141  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8142' 0
8143  trap 'as_fn_exit 1' 1 2 13 15
8144}
8145# Create a (secure) tmp directory for tmp files.
8146
8147{
8148  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8149  test -d "$tmp"
8150}  ||
8151{
8152  tmp=./conf$$-$RANDOM
8153  (umask 077 && mkdir "$tmp")
8154} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8155ac_tmp=$tmp
8156
8157# Set up the scripts for CONFIG_FILES section.
8158# No need to generate them if there are no CONFIG_FILES.
8159# This happens for instance with `./config.status config.h'.
8160if test -n "$CONFIG_FILES"; then
8161
8162
8163ac_cr=`echo X | tr X '\015'`
8164# On cygwin, bash can eat \r inside `` if the user requested igncr.
8165# But we know of no other shell where ac_cr would be empty at this
8166# point, so we can use a bashism as a fallback.
8167if test "x$ac_cr" = x; then
8168  eval ac_cr=\$\'\\r\'
8169fi
8170ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8171if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8172  ac_cs_awk_cr='\\r'
8173else
8174  ac_cs_awk_cr=$ac_cr
8175fi
8176
8177echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8178_ACEOF
8179
8180
8181{
8182  echo "cat >conf$$subs.awk <<_ACEOF" &&
8183  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8184  echo "_ACEOF"
8185} >conf$$subs.sh ||
8186  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8187ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8188ac_delim='%!_!# '
8189for ac_last_try in false false false false false :; do
8190  . ./conf$$subs.sh ||
8191    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8192
8193  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8194  if test $ac_delim_n = $ac_delim_num; then
8195    break
8196  elif $ac_last_try; then
8197    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8198  else
8199    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8200  fi
8201done
8202rm -f conf$$subs.sh
8203
8204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8205cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8206_ACEOF
8207sed -n '
8208h
8209s/^/S["/; s/!.*/"]=/
8210p
8211g
8212s/^[^!]*!//
8213:repl
8214t repl
8215s/'"$ac_delim"'$//
8216t delim
8217:nl
8218h
8219s/\(.\{148\}\)..*/\1/
8220t more1
8221s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8222p
8223n
8224b repl
8225:more1
8226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8227p
8228g
8229s/.\{148\}//
8230t nl
8231:delim
8232h
8233s/\(.\{148\}\)..*/\1/
8234t more2
8235s/["\\]/\\&/g; s/^/"/; s/$/"/
8236p
8237b
8238:more2
8239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8240p
8241g
8242s/.\{148\}//
8243t delim
8244' <conf$$subs.awk | sed '
8245/^[^""]/{
8246  N
8247  s/\n//
8248}
8249' >>$CONFIG_STATUS || ac_write_fail=1
8250rm -f conf$$subs.awk
8251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8252_ACAWK
8253cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8254  for (key in S) S_is_set[key] = 1
8255  FS = ""
8256
8257}
8258{
8259  line = $ 0
8260  nfields = split(line, field, "@")
8261  substed = 0
8262  len = length(field[1])
8263  for (i = 2; i < nfields; i++) {
8264    key = field[i]
8265    keylen = length(key)
8266    if (S_is_set[key]) {
8267      value = S[key]
8268      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8269      len += length(value) + length(field[++i])
8270      substed = 1
8271    } else
8272      len += 1 + keylen
8273  }
8274
8275  print line
8276}
8277
8278_ACAWK
8279_ACEOF
8280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8281if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8282  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8283else
8284  cat
8285fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8286  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8287_ACEOF
8288
8289# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8290# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8291# trailing colons and then remove the whole line if VPATH becomes empty
8292# (actually we leave an empty line to preserve line numbers).
8293if test "x$srcdir" = x.; then
8294  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8295h
8296s///
8297s/^/:/
8298s/[	 ]*$/:/
8299s/:\$(srcdir):/:/g
8300s/:\${srcdir}:/:/g
8301s/:@srcdir@:/:/g
8302s/^:*//
8303s/:*$//
8304x
8305s/\(=[	 ]*\).*/\1/
8306G
8307s/\n//
8308s/^[^=]*=[	 ]*$//
8309}'
8310fi
8311
8312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8313fi # test -n "$CONFIG_FILES"
8314
8315# Set up the scripts for CONFIG_HEADERS section.
8316# No need to generate them if there are no CONFIG_HEADERS.
8317# This happens for instance with `./config.status Makefile'.
8318if test -n "$CONFIG_HEADERS"; then
8319cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8320BEGIN {
8321_ACEOF
8322
8323# Transform confdefs.h into an awk script `defines.awk', embedded as
8324# here-document in config.status, that substitutes the proper values into
8325# config.h.in to produce config.h.
8326
8327# Create a delimiter string that does not exist in confdefs.h, to ease
8328# handling of long lines.
8329ac_delim='%!_!# '
8330for ac_last_try in false false :; do
8331  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8332  if test -z "$ac_tt"; then
8333    break
8334  elif $ac_last_try; then
8335    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8336  else
8337    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8338  fi
8339done
8340
8341# For the awk script, D is an array of macro values keyed by name,
8342# likewise P contains macro parameters if any.  Preserve backslash
8343# newline sequences.
8344
8345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8346sed -n '
8347s/.\{148\}/&'"$ac_delim"'/g
8348t rset
8349:rset
8350s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8351t def
8352d
8353:def
8354s/\\$//
8355t bsnl
8356s/["\\]/\\&/g
8357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8358D["\1"]=" \3"/p
8359s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8360d
8361:bsnl
8362s/["\\]/\\&/g
8363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8364D["\1"]=" \3\\\\\\n"\\/p
8365t cont
8366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8367t cont
8368d
8369:cont
8370n
8371s/.\{148\}/&'"$ac_delim"'/g
8372t clear
8373:clear
8374s/\\$//
8375t bsnlc
8376s/["\\]/\\&/g; s/^/"/; s/$/"/p
8377d
8378:bsnlc
8379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8380b cont
8381' <confdefs.h | sed '
8382s/'"$ac_delim"'/"\\\
8383"/g' >>$CONFIG_STATUS || ac_write_fail=1
8384
8385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8386  for (key in D) D_is_set[key] = 1
8387  FS = ""
8388}
8389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8390  line = \$ 0
8391  split(line, arg, " ")
8392  if (arg[1] == "#") {
8393    defundef = arg[2]
8394    mac1 = arg[3]
8395  } else {
8396    defundef = substr(arg[1], 2)
8397    mac1 = arg[2]
8398  }
8399  split(mac1, mac2, "(") #)
8400  macro = mac2[1]
8401  prefix = substr(line, 1, index(line, defundef) - 1)
8402  if (D_is_set[macro]) {
8403    # Preserve the white space surrounding the "#".
8404    print prefix "define", macro P[macro] D[macro]
8405    next
8406  } else {
8407    # Replace #undef with comments.  This is necessary, for example,
8408    # in the case of _POSIX_SOURCE, which is predefined and required
8409    # on some systems where configure will not decide to define it.
8410    if (defundef == "undef") {
8411      print "/*", prefix defundef, macro, "*/"
8412      next
8413    }
8414  }
8415}
8416{ print }
8417_ACAWK
8418_ACEOF
8419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8420  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8421fi # test -n "$CONFIG_HEADERS"
8422
8423
8424eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
8425shift
8426for ac_tag
8427do
8428  case $ac_tag in
8429  :[FHLC]) ac_mode=$ac_tag; continue;;
8430  esac
8431  case $ac_mode$ac_tag in
8432  :[FHL]*:*);;
8433  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8434  :[FH]-) ac_tag=-:-;;
8435  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8436  esac
8437  ac_save_IFS=$IFS
8438  IFS=:
8439  set x $ac_tag
8440  IFS=$ac_save_IFS
8441  shift
8442  ac_file=$1
8443  shift
8444
8445  case $ac_mode in
8446  :L) ac_source=$1;;
8447  :[FH])
8448    ac_file_inputs=
8449    for ac_f
8450    do
8451      case $ac_f in
8452      -) ac_f="$ac_tmp/stdin";;
8453      *) # Look for the file first in the build tree, then in the source tree
8454	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8455	 # because $ac_f cannot contain `:'.
8456	 test -f "$ac_f" ||
8457	   case $ac_f in
8458	   [\\/$]*) false;;
8459	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8460	   esac ||
8461	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8462      esac
8463      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8464      as_fn_append ac_file_inputs " '$ac_f'"
8465    done
8466
8467    # Let's still pretend it is `configure' which instantiates (i.e., don't
8468    # use $as_me), people would be surprised to read:
8469    #    /* config.h.  Generated by config.status.  */
8470    configure_input='Generated from '`
8471	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8472	`' by configure.'
8473    if test x"$ac_file" != x-; then
8474      configure_input="$ac_file.  $configure_input"
8475      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8476$as_echo "$as_me: creating $ac_file" >&6;}
8477    fi
8478    # Neutralize special characters interpreted by sed in replacement strings.
8479    case $configure_input in #(
8480    *\&* | *\|* | *\\* )
8481       ac_sed_conf_input=`$as_echo "$configure_input" |
8482       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8483    *) ac_sed_conf_input=$configure_input;;
8484    esac
8485
8486    case $ac_tag in
8487    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8488      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8489    esac
8490    ;;
8491  esac
8492
8493  ac_dir=`$as_dirname -- "$ac_file" ||
8494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8495	 X"$ac_file" : 'X\(//\)[^/]' \| \
8496	 X"$ac_file" : 'X\(//\)$' \| \
8497	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8498$as_echo X"$ac_file" |
8499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8500	    s//\1/
8501	    q
8502	  }
8503	  /^X\(\/\/\)[^/].*/{
8504	    s//\1/
8505	    q
8506	  }
8507	  /^X\(\/\/\)$/{
8508	    s//\1/
8509	    q
8510	  }
8511	  /^X\(\/\).*/{
8512	    s//\1/
8513	    q
8514	  }
8515	  s/.*/./; q'`
8516  as_dir="$ac_dir"; as_fn_mkdir_p
8517  ac_builddir=.
8518
8519case "$ac_dir" in
8520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8521*)
8522  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8523  # A ".." for each directory in $ac_dir_suffix.
8524  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8525  case $ac_top_builddir_sub in
8526  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8527  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8528  esac ;;
8529esac
8530ac_abs_top_builddir=$ac_pwd
8531ac_abs_builddir=$ac_pwd$ac_dir_suffix
8532# for backward compatibility:
8533ac_top_builddir=$ac_top_build_prefix
8534
8535case $srcdir in
8536  .)  # We are building in place.
8537    ac_srcdir=.
8538    ac_top_srcdir=$ac_top_builddir_sub
8539    ac_abs_top_srcdir=$ac_pwd ;;
8540  [\\/]* | ?:[\\/]* )  # Absolute name.
8541    ac_srcdir=$srcdir$ac_dir_suffix;
8542    ac_top_srcdir=$srcdir
8543    ac_abs_top_srcdir=$srcdir ;;
8544  *) # Relative name.
8545    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8546    ac_top_srcdir=$ac_top_build_prefix$srcdir
8547    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8548esac
8549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8550
8551
8552  case $ac_mode in
8553  :F)
8554  #
8555  # CONFIG_FILE
8556  #
8557
8558  case $INSTALL in
8559  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8560  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8561  esac
8562  ac_MKDIR_P=$MKDIR_P
8563  case $MKDIR_P in
8564  [\\/$]* | ?:[\\/]* ) ;;
8565  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8566  esac
8567_ACEOF
8568
8569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8570# If the template does not know about datarootdir, expand it.
8571# FIXME: This hack should be removed a few years after 2.60.
8572ac_datarootdir_hack=; ac_datarootdir_seen=
8573ac_sed_dataroot='
8574/datarootdir/ {
8575  p
8576  q
8577}
8578/@datadir@/p
8579/@docdir@/p
8580/@infodir@/p
8581/@localedir@/p
8582/@mandir@/p'
8583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8584*datarootdir*) ac_datarootdir_seen=yes;;
8585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8588_ACEOF
8589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8590  ac_datarootdir_hack='
8591  s&@datadir@&$datadir&g
8592  s&@docdir@&$docdir&g
8593  s&@infodir@&$infodir&g
8594  s&@localedir@&$localedir&g
8595  s&@mandir@&$mandir&g
8596  s&\\\${datarootdir}&$datarootdir&g' ;;
8597esac
8598_ACEOF
8599
8600# Neutralize VPATH when `$srcdir' = `.'.
8601# Shell code in configure.ac might set extrasub.
8602# FIXME: do we really want to maintain this feature?
8603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8604ac_sed_extra="$ac_vpsub
8605$extrasub
8606_ACEOF
8607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8608:t
8609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8610s|@configure_input@|$ac_sed_conf_input|;t t
8611s&@top_builddir@&$ac_top_builddir_sub&;t t
8612s&@top_build_prefix@&$ac_top_build_prefix&;t t
8613s&@srcdir@&$ac_srcdir&;t t
8614s&@abs_srcdir@&$ac_abs_srcdir&;t t
8615s&@top_srcdir@&$ac_top_srcdir&;t t
8616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8617s&@builddir@&$ac_builddir&;t t
8618s&@abs_builddir@&$ac_abs_builddir&;t t
8619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8620s&@INSTALL@&$ac_INSTALL&;t t
8621s&@MKDIR_P@&$ac_MKDIR_P&;t t
8622$ac_datarootdir_hack
8623"
8624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8625  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8626
8627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8628  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8629  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8630      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8632which seems to be undefined.  Please make sure it is defined" >&5
8633$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8634which seems to be undefined.  Please make sure it is defined" >&2;}
8635
8636  rm -f "$ac_tmp/stdin"
8637  case $ac_file in
8638  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8639  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8640  esac \
8641  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8642 ;;
8643  :H)
8644  #
8645  # CONFIG_HEADER
8646  #
8647  if test x"$ac_file" != x-; then
8648    {
8649      $as_echo "/* $configure_input  */" \
8650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8651    } >"$ac_tmp/config.h" \
8652      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8653    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8654      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8655$as_echo "$as_me: $ac_file is unchanged" >&6;}
8656    else
8657      rm -f "$ac_file"
8658      mv "$ac_tmp/config.h" "$ac_file" \
8659	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8660    fi
8661  else
8662    $as_echo "/* $configure_input  */" \
8663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8664      || as_fn_error $? "could not create -" "$LINENO" 5
8665  fi
8666# Compute "$ac_file"'s index in $config_headers.
8667_am_arg="$ac_file"
8668_am_stamp_count=1
8669for _am_header in $config_headers :; do
8670  case $_am_header in
8671    $_am_arg | $_am_arg:* )
8672      break ;;
8673    * )
8674      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8675  esac
8676done
8677echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8678$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8679	 X"$_am_arg" : 'X\(//\)[^/]' \| \
8680	 X"$_am_arg" : 'X\(//\)$' \| \
8681	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8682$as_echo X"$_am_arg" |
8683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8684	    s//\1/
8685	    q
8686	  }
8687	  /^X\(\/\/\)[^/].*/{
8688	    s//\1/
8689	    q
8690	  }
8691	  /^X\(\/\/\)$/{
8692	    s//\1/
8693	    q
8694	  }
8695	  /^X\(\/\).*/{
8696	    s//\1/
8697	    q
8698	  }
8699	  s/.*/./; q'`/stamp-h$_am_stamp_count
8700 ;;
8701  :L)
8702  #
8703  # CONFIG_LINK
8704  #
8705
8706  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
8707    :
8708  else
8709    # Prefer the file from the source tree if names are identical.
8710    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8711      ac_source=$srcdir/$ac_source
8712    fi
8713
8714    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8715$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8716
8717    if test ! -r "$ac_source"; then
8718      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8719    fi
8720    rm -f "$ac_file"
8721
8722    # Try a relative symlink, then a hard link, then a copy.
8723    case $ac_source in
8724    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8725	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8726    esac
8727    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8728      ln "$ac_source" "$ac_file" 2>/dev/null ||
8729      cp -p "$ac_source" "$ac_file" ||
8730      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8731  fi
8732 ;;
8733  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8734$as_echo "$as_me: executing $ac_file commands" >&6;}
8735 ;;
8736  esac
8737
8738
8739  case $ac_file$ac_mode in
8740    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8741  # Older Autoconf quotes --file arguments for eval, but not when files
8742  # are listed without --file.  Let's play safe and only enable the eval
8743  # if we detect the quoting.
8744  case $CONFIG_FILES in
8745  *\'*) eval set x "$CONFIG_FILES" ;;
8746  *)   set x $CONFIG_FILES ;;
8747  esac
8748  shift
8749  for mf
8750  do
8751    # Strip MF so we end up with the name of the file.
8752    mf=`echo "$mf" | sed -e 's/:.*$//'`
8753    # Check whether this is an Automake generated Makefile or not.
8754    # We used to match only the files named 'Makefile.in', but
8755    # some people rename them; so instead we look at the file content.
8756    # Grep'ing the first line is not enough: some people post-process
8757    # each Makefile.in and add a new line on top of each file to say so.
8758    # Grep'ing the whole file is not good either: AIX grep has a line
8759    # limit of 2048, but all sed's we know have understand at least 4000.
8760    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8761      dirpart=`$as_dirname -- "$mf" ||
8762$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8763	 X"$mf" : 'X\(//\)[^/]' \| \
8764	 X"$mf" : 'X\(//\)$' \| \
8765	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8766$as_echo X"$mf" |
8767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8768	    s//\1/
8769	    q
8770	  }
8771	  /^X\(\/\/\)[^/].*/{
8772	    s//\1/
8773	    q
8774	  }
8775	  /^X\(\/\/\)$/{
8776	    s//\1/
8777	    q
8778	  }
8779	  /^X\(\/\).*/{
8780	    s//\1/
8781	    q
8782	  }
8783	  s/.*/./; q'`
8784    else
8785      continue
8786    fi
8787    # Extract the definition of DEPDIR, am__include, and am__quote
8788    # from the Makefile without running 'make'.
8789    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8790    test -z "$DEPDIR" && continue
8791    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8792    test -z "$am__include" && continue
8793    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8794    # Find all dependency output files, they are included files with
8795    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8796    # simplest approach to changing $(DEPDIR) to its actual value in the
8797    # expansion.
8798    for file in `sed -n "
8799      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8800	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8801      # Make sure the directory exists.
8802      test -f "$dirpart/$file" && continue
8803      fdir=`$as_dirname -- "$file" ||
8804$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8805	 X"$file" : 'X\(//\)[^/]' \| \
8806	 X"$file" : 'X\(//\)$' \| \
8807	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8808$as_echo X"$file" |
8809    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8810	    s//\1/
8811	    q
8812	  }
8813	  /^X\(\/\/\)[^/].*/{
8814	    s//\1/
8815	    q
8816	  }
8817	  /^X\(\/\/\)$/{
8818	    s//\1/
8819	    q
8820	  }
8821	  /^X\(\/\).*/{
8822	    s//\1/
8823	    q
8824	  }
8825	  s/.*/./; q'`
8826      as_dir=$dirpart/$fdir; as_fn_mkdir_p
8827      # echo "creating $dirpart/$file"
8828      echo '# dummy' > "$dirpart/$file"
8829    done
8830  done
8831}
8832 ;;
8833
8834  esac
8835done # for ac_tag
8836
8837
8838as_fn_exit 0
8839_ACEOF
8840ac_clean_files=$ac_clean_files_save
8841
8842test $ac_write_fail = 0 ||
8843  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8844
8845
8846# configure is writing to config.log, and then calls config.status.
8847# config.status does its own redirection, appending to config.log.
8848# Unfortunately, on DOS this fails, as config.log is still kept open
8849# by configure, so config.status won't be able to write to it; its
8850# output is simply discarded.  So we exec the FD to /dev/null,
8851# effectively closing config.log, so it can be properly (re)opened and
8852# appended to by config.status.  When coming back to configure, we
8853# need to make the FD available again.
8854if test "$no_create" != yes; then
8855  ac_cs_success=:
8856  ac_config_status_args=
8857  test "$silent" = yes &&
8858    ac_config_status_args="$ac_config_status_args --quiet"
8859  exec 5>/dev/null
8860  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8861  exec 5>>config.log
8862  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8863  # would make configure fail if this is the last instruction.
8864  $ac_cs_success || as_fn_exit 1
8865fi
8866if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8868$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8869fi
8870
8871