1@%:@! /bin/sh
2@%:@ From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp .
3@%:@ Guess values for system-dependent variables and create Makefiles.
4@%:@ Generated by GNU Autoconf 2.65 for GNU make 3.81.
5@%:@
6@%:@ Report bugs to <bug-make@gnu.org>.
7@%:@
8@%:@
9@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11@%:@ Inc.
12@%:@
13@%:@
14@%:@ This configure script is free software; the Free Software Foundation
15@%:@ gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in @%:@(
31  *posix*) :
32    set -o posix ;; @%:@(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in @%:@(
64      *"$as_nl"*)
65	expr "X$arg" : "X\\(.*\\)$as_nl";
66	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""	$as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in @%:@((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in @%:@(
149  *posix*) :
150    set -o posix ;; @%:@(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in @%:@(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	BASH_ENV=/dev/null
221	ENV=/dev/null
222	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223	export CONFIG_SHELL
224	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253@%:@ as_fn_unset VAR
254@%:@ ---------------
255@%:@ Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262@%:@ as_fn_set_status STATUS
263@%:@ -----------------------
264@%:@ Set @S|@? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} @%:@ as_fn_set_status
269
270@%:@ as_fn_exit STATUS
271@%:@ -----------------
272@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} @%:@ as_fn_exit
279
280@%:@ as_fn_mkdir_p
281@%:@ -------------
282@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} @%:@ as_fn_mkdir_p
327@%:@ as_fn_append VAR VALUE
328@%:@ ----------------------
329@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
330@%:@ advantage of any shell optimizations that allow amortized linear growth over
331@%:@ repeated appends, instead of the typical quadratic growth present in naive
332@%:@ implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345@%:@ as_fn_arith ARG...
346@%:@ ------------------
347@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
348@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
349@%:@ must be portable across @S|@(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363@%:@ as_fn_error ERROR [LINENO LOG_FD]
364@%:@ ---------------------------------
365@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367@%:@ script with status @S|@?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} @%:@ as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in @%:@(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in @%:@(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533test -n "$DJDIR" || exec 7<&0 </dev/null
534exec 6>&1
535
536# Name of the host.
537# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538# so uname gets run too.
539ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541#
542# Initializations.
543#
544ac_default_prefix=/usr/local
545ac_clean_files=
546ac_config_libobj_dir=.
547LIB@&t@OBJS=
548cross_compiling=no
549subdirs=
550MFLAGS=
551MAKEFLAGS=
552
553# Identity of this package.
554PACKAGE_NAME='GNU make'
555PACKAGE_TARNAME='make'
556PACKAGE_VERSION='3.81'
557PACKAGE_STRING='GNU make 3.81'
558PACKAGE_BUGREPORT='bug-make@gnu.org'
559PACKAGE_URL='http://www.gnu.org/software/make/'
560
561ac_unique_file="vpath.c"
562# Factoring default headers for most tests.
563ac_includes_default="\
564#include <stdio.h>
565#ifdef HAVE_SYS_TYPES_H
566# include <sys/types.h>
567#endif
568#ifdef HAVE_SYS_STAT_H
569# include <sys/stat.h>
570#endif
571#ifdef STDC_HEADERS
572# include <stdlib.h>
573# include <stddef.h>
574#else
575# ifdef HAVE_STDLIB_H
576#  include <stdlib.h>
577# endif
578#endif
579#ifdef HAVE_STRING_H
580# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581#  include <memory.h>
582# endif
583# include <string.h>
584#endif
585#ifdef HAVE_STRINGS_H
586# include <strings.h>
587#endif
588#ifdef HAVE_INTTYPES_H
589# include <inttypes.h>
590#endif
591#ifdef HAVE_STDINT_H
592# include <stdint.h>
593#endif
594#ifdef HAVE_UNISTD_H
595# include <unistd.h>
596#endif"
597
598ac_subst_vars='LTLIBOBJS
599WINDOWSENV_FALSE
600WINDOWSENV_TRUE
601MAKE_HOST
602USE_LOCAL_GLOB_FALSE
603USE_LOCAL_GLOB_TRUE
604GLOBLIB
605GLOBINC
606USE_CUSTOMS_FALSE
607USE_CUSTOMS_TRUE
608REMOTE
609GETLOADAVG_LIBS
610KMEM_GROUP
611NEED_SETGID
612LIB@&t@OBJS
613ALLOCA
614POSUB
615LTLIBINTL
616LIBINTL
617INTLLIBS
618LTLIBICONV
619LIBICONV
620MSGMERGE
621XGETTEXT
622GMSGFMT
623MSGFMT
624USE_NLS
625MKINSTALLDIRS
626ANSI2KNR
627U
628EGREP
629GREP
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638PERL
639AR
640CPP
641RANLIB
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658am__untar
659am__tar
660AMTAR
661am__leading_dot
662SET_MAKE
663AWK
664mkdir_p
665INSTALL_STRIP_PROGRAM
666STRIP
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679target_alias
680host_alias
681build_alias
682LIBS
683ECHO_T
684ECHO_N
685ECHO_C
686DEFS
687mandir
688localedir
689libdir
690psdir
691pdfdir
692dvidir
693htmldir
694infodir
695docdir
696oldincludedir
697includedir
698localstatedir
699sharedstatedir
700sysconfdir
701datadir
702datarootdir
703libexecdir
704sbindir
705bindir
706program_transform_name
707prefix
708exec_prefix
709PACKAGE_URL
710PACKAGE_BUGREPORT
711PACKAGE_STRING
712PACKAGE_VERSION
713PACKAGE_TARNAME
714PACKAGE_NAME
715PATH_SEPARATOR
716SHELL'
717ac_subst_files='MAINT_MAKEFILE'
718ac_user_opts='
719enable_option_checking
720enable_dependency_tracking
721enable_nls
722with_gnu_ld
723enable_rpath
724with_libiconv_prefix
725with_libintl_prefix
726enable_largefile
727with_customs
728enable_case_insensitive_file_system
729enable_job_server
730with_dmalloc
731'
732      ac_precious_vars='build_alias
733host_alias
734target_alias
735CC
736CFLAGS
737LDFLAGS
738LIBS
739CPPFLAGS
740CPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
795  # If the previous option needs an argument, assign it.
796  if test -n "$ac_prev"; then
797    eval $ac_prev=\$ac_option
798    ac_prev=
799    continue
800  fi
801
802  case $ac_option in
803  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804  *)	ac_optarg=yes ;;
805  esac
806
807  # Accept the important Cygnus configure options, so we can diagnose typos.
808
809  case $ac_dashdash$ac_option in
810  --)
811    ac_dashdash=yes ;;
812
813  -bindir | --bindir | --bindi | --bind | --bin | --bi)
814    ac_prev=bindir ;;
815  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816    bindir=$ac_optarg ;;
817
818  -build | --build | --buil | --bui | --bu)
819    ac_prev=build_alias ;;
820  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821    build_alias=$ac_optarg ;;
822
823  -cache-file | --cache-file | --cache-fil | --cache-fi \
824  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825    ac_prev=cache_file ;;
826  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828    cache_file=$ac_optarg ;;
829
830  --config-cache | -C)
831    cache_file=config.cache ;;
832
833  -datadir | --datadir | --datadi | --datad)
834    ac_prev=datadir ;;
835  -datadir=* | --datadir=* | --datadi=* | --datad=*)
836    datadir=$ac_optarg ;;
837
838  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839  | --dataroo | --dataro | --datar)
840    ac_prev=datarootdir ;;
841  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843    datarootdir=$ac_optarg ;;
844
845  -disable-* | --disable-*)
846    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847    # Reject names that are not valid shell variable names.
848    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849      as_fn_error "invalid feature name: $ac_useropt"
850    ac_useropt_orig=$ac_useropt
851    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852    case $ac_user_opts in
853      *"
854"enable_$ac_useropt"
855"*) ;;
856      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857	 ac_unrecognized_sep=', ';;
858    esac
859    eval enable_$ac_useropt=no ;;
860
861  -docdir | --docdir | --docdi | --doc | --do)
862    ac_prev=docdir ;;
863  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864    docdir=$ac_optarg ;;
865
866  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867    ac_prev=dvidir ;;
868  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869    dvidir=$ac_optarg ;;
870
871  -enable-* | --enable-*)
872    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873    # Reject names that are not valid shell variable names.
874    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875      as_fn_error "invalid feature name: $ac_useropt"
876    ac_useropt_orig=$ac_useropt
877    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878    case $ac_user_opts in
879      *"
880"enable_$ac_useropt"
881"*) ;;
882      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883	 ac_unrecognized_sep=', ';;
884    esac
885    eval enable_$ac_useropt=\$ac_optarg ;;
886
887  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889  | --exec | --exe | --ex)
890    ac_prev=exec_prefix ;;
891  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893  | --exec=* | --exe=* | --ex=*)
894    exec_prefix=$ac_optarg ;;
895
896  -gas | --gas | --ga | --g)
897    # Obsolete; use --with-gas.
898    with_gas=yes ;;
899
900  -help | --help | --hel | --he | -h)
901    ac_init_help=long ;;
902  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903    ac_init_help=recursive ;;
904  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905    ac_init_help=short ;;
906
907  -host | --host | --hos | --ho)
908    ac_prev=host_alias ;;
909  -host=* | --host=* | --hos=* | --ho=*)
910    host_alias=$ac_optarg ;;
911
912  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913    ac_prev=htmldir ;;
914  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915  | --ht=*)
916    htmldir=$ac_optarg ;;
917
918  -includedir | --includedir | --includedi | --included | --include \
919  | --includ | --inclu | --incl | --inc)
920    ac_prev=includedir ;;
921  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922  | --includ=* | --inclu=* | --incl=* | --inc=*)
923    includedir=$ac_optarg ;;
924
925  -infodir | --infodir | --infodi | --infod | --info | --inf)
926    ac_prev=infodir ;;
927  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928    infodir=$ac_optarg ;;
929
930  -libdir | --libdir | --libdi | --libd)
931    ac_prev=libdir ;;
932  -libdir=* | --libdir=* | --libdi=* | --libd=*)
933    libdir=$ac_optarg ;;
934
935  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936  | --libexe | --libex | --libe)
937    ac_prev=libexecdir ;;
938  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939  | --libexe=* | --libex=* | --libe=*)
940    libexecdir=$ac_optarg ;;
941
942  -localedir | --localedir | --localedi | --localed | --locale)
943    ac_prev=localedir ;;
944  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945    localedir=$ac_optarg ;;
946
947  -localstatedir | --localstatedir | --localstatedi | --localstated \
948  | --localstate | --localstat | --localsta | --localst | --locals)
949    ac_prev=localstatedir ;;
950  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952    localstatedir=$ac_optarg ;;
953
954  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955    ac_prev=mandir ;;
956  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957    mandir=$ac_optarg ;;
958
959  -nfp | --nfp | --nf)
960    # Obsolete; use --without-fp.
961    with_fp=no ;;
962
963  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964  | --no-cr | --no-c | -n)
965    no_create=yes ;;
966
967  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969    no_recursion=yes ;;
970
971  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973  | --oldin | --oldi | --old | --ol | --o)
974    ac_prev=oldincludedir ;;
975  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978    oldincludedir=$ac_optarg ;;
979
980  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981    ac_prev=prefix ;;
982  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983    prefix=$ac_optarg ;;
984
985  -program-prefix | --program-prefix | --program-prefi | --program-pref \
986  | --program-pre | --program-pr | --program-p)
987    ac_prev=program_prefix ;;
988  -program-prefix=* | --program-prefix=* | --program-prefi=* \
989  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990    program_prefix=$ac_optarg ;;
991
992  -program-suffix | --program-suffix | --program-suffi | --program-suff \
993  | --program-suf | --program-su | --program-s)
994    ac_prev=program_suffix ;;
995  -program-suffix=* | --program-suffix=* | --program-suffi=* \
996  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997    program_suffix=$ac_optarg ;;
998
999  -program-transform-name | --program-transform-name \
1000  | --program-transform-nam | --program-transform-na \
1001  | --program-transform-n | --program-transform- \
1002  | --program-transform | --program-transfor \
1003  | --program-transfo | --program-transf \
1004  | --program-trans | --program-tran \
1005  | --progr-tra | --program-tr | --program-t)
1006    ac_prev=program_transform_name ;;
1007  -program-transform-name=* | --program-transform-name=* \
1008  | --program-transform-nam=* | --program-transform-na=* \
1009  | --program-transform-n=* | --program-transform-=* \
1010  | --program-transform=* | --program-transfor=* \
1011  | --program-transfo=* | --program-transf=* \
1012  | --program-trans=* | --program-tran=* \
1013  | --progr-tra=* | --program-tr=* | --program-t=*)
1014    program_transform_name=$ac_optarg ;;
1015
1016  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017    ac_prev=pdfdir ;;
1018  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019    pdfdir=$ac_optarg ;;
1020
1021  -psdir | --psdir | --psdi | --psd | --ps)
1022    ac_prev=psdir ;;
1023  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024    psdir=$ac_optarg ;;
1025
1026  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027  | -silent | --silent | --silen | --sile | --sil)
1028    silent=yes ;;
1029
1030  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031    ac_prev=sbindir ;;
1032  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033  | --sbi=* | --sb=*)
1034    sbindir=$ac_optarg ;;
1035
1036  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038  | --sharedst | --shareds | --shared | --share | --shar \
1039  | --sha | --sh)
1040    ac_prev=sharedstatedir ;;
1041  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044  | --sha=* | --sh=*)
1045    sharedstatedir=$ac_optarg ;;
1046
1047  -site | --site | --sit)
1048    ac_prev=site ;;
1049  -site=* | --site=* | --sit=*)
1050    site=$ac_optarg ;;
1051
1052  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053    ac_prev=srcdir ;;
1054  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055    srcdir=$ac_optarg ;;
1056
1057  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058  | --syscon | --sysco | --sysc | --sys | --sy)
1059    ac_prev=sysconfdir ;;
1060  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062    sysconfdir=$ac_optarg ;;
1063
1064  -target | --target | --targe | --targ | --tar | --ta | --t)
1065    ac_prev=target_alias ;;
1066  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067    target_alias=$ac_optarg ;;
1068
1069  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070    verbose=yes ;;
1071
1072  -version | --version | --versio | --versi | --vers | -V)
1073    ac_init_version=: ;;
1074
1075  -with-* | --with-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error "invalid package name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"with_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval with_$ac_useropt=\$ac_optarg ;;
1090
1091  -without-* | --without-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=no ;;
1106
1107  --x)
1108    # Obsolete; use --with-x.
1109    with_x=yes ;;
1110
1111  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112  | --x-incl | --x-inc | --x-in | --x-i)
1113    ac_prev=x_includes ;;
1114  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116    x_includes=$ac_optarg ;;
1117
1118  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120    ac_prev=x_libraries ;;
1121  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123    x_libraries=$ac_optarg ;;
1124
1125  -*) as_fn_error "unrecognized option: \`$ac_option'
1126Try \`$0 --help' for more information."
1127    ;;
1128
1129  *=*)
1130    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131    # Reject names that are not valid shell variable names.
1132    case $ac_envvar in #(
1133      '' | [0-9]* | *[!_$as_cr_alnum]* )
1134      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1135    esac
1136    eval $ac_envvar=\$ac_optarg
1137    export $ac_envvar ;;
1138
1139  *)
1140    # FIXME: should be removed in autoconf 3.0.
1141    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1145    ;;
1146
1147  esac
1148done
1149
1150if test -n "$ac_prev"; then
1151  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152  as_fn_error "missing argument to $ac_option"
1153fi
1154
1155if test -n "$ac_unrecognized_opts"; then
1156  case $enable_option_checking in
1157    no) ;;
1158    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1159    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160  esac
1161fi
1162
1163# Check all directory arguments for consistency.
1164for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165		datadir sysconfdir sharedstatedir localstatedir includedir \
1166		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167		libdir localedir mandir
1168do
1169  eval ac_val=\$$ac_var
1170  # Remove trailing slashes.
1171  case $ac_val in
1172    */ )
1173      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174      eval $ac_var=\$ac_val;;
1175  esac
1176  # Be sure to have absolute directory names.
1177  case $ac_val in
1178    [\\/$]* | ?:[\\/]* )  continue;;
1179    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180  esac
1181  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1182done
1183
1184# There might be people who depend on the old broken behavior: `$host'
1185# used to hold the argument of --host etc.
1186# FIXME: To remove some day.
1187build=$build_alias
1188host=$host_alias
1189target=$target_alias
1190
1191# FIXME: To remove some day.
1192if test "x$host_alias" != x; then
1193  if test "x$build_alias" = x; then
1194    cross_compiling=maybe
1195    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196    If a cross compiler is detected then cross compile mode will be used." >&2
1197  elif test "x$build_alias" != "x$host_alias"; then
1198    cross_compiling=yes
1199  fi
1200fi
1201
1202ac_tool_prefix=
1203test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205test "$silent" = yes && exec 6>/dev/null
1206
1207
1208ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209ac_ls_di=`ls -di .` &&
1210ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211  as_fn_error "working directory cannot be determined"
1212test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213  as_fn_error "pwd does not report name of working directory"
1214
1215
1216# Find the source files, if location was not specified.
1217if test -z "$srcdir"; then
1218  ac_srcdir_defaulted=yes
1219  # Try the directory containing this script, then the parent directory.
1220  ac_confdir=`$as_dirname -- "$as_myself" ||
1221$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222	 X"$as_myself" : 'X\(//\)[^/]' \| \
1223	 X"$as_myself" : 'X\(//\)$' \| \
1224	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225$as_echo X"$as_myself" |
1226    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227	    s//\1/
1228	    q
1229	  }
1230	  /^X\(\/\/\)[^/].*/{
1231	    s//\1/
1232	    q
1233	  }
1234	  /^X\(\/\/\)$/{
1235	    s//\1/
1236	    q
1237	  }
1238	  /^X\(\/\).*/{
1239	    s//\1/
1240	    q
1241	  }
1242	  s/.*/./; q'`
1243  srcdir=$ac_confdir
1244  if test ! -r "$srcdir/$ac_unique_file"; then
1245    srcdir=..
1246  fi
1247else
1248  ac_srcdir_defaulted=no
1249fi
1250if test ! -r "$srcdir/$ac_unique_file"; then
1251  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1253fi
1254ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255ac_abs_confdir=`(
1256	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1257	pwd)`
1258# When building in place, set srcdir=.
1259if test "$ac_abs_confdir" = "$ac_pwd"; then
1260  srcdir=.
1261fi
1262# Remove unnecessary trailing slashes from srcdir.
1263# Double slashes in file names in object file debugging info
1264# mess up M-x gdb in Emacs.
1265case $srcdir in
1266*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267esac
1268for ac_var in $ac_precious_vars; do
1269  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270  eval ac_env_${ac_var}_value=\$${ac_var}
1271  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273done
1274
1275#
1276# Report the --help message.
1277#
1278if test "$ac_init_help" = "long"; then
1279  # Omit some internal or obsolete options to make the list less imposing.
1280  # This message is too long to be a string in the A/UX 3.1 sh.
1281  cat <<_ACEOF
1282\`configure' configures GNU make 3.81 to adapt to many kinds of systems.
1283
1284Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287VAR=VALUE.  See below for descriptions of some of the useful variables.
1288
1289Defaults for the options are specified in brackets.
1290
1291Configuration:
1292  -h, --help              display this help and exit
1293      --help=short        display options specific to this package
1294      --help=recursive    display the short help of all the included packages
1295  -V, --version           display version information and exit
1296  -q, --quiet, --silent   do not print \`checking...' messages
1297      --cache-file=FILE   cache test results in FILE [disabled]
1298  -C, --config-cache      alias for \`--cache-file=config.cache'
1299  -n, --no-create         do not create output files
1300      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1301
1302Installation directories:
1303  --prefix=PREFIX         install architecture-independent files in PREFIX
1304                          @<:@@S|@ac_default_prefix@:>@
1305  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1306                          @<:@PREFIX@:>@
1307
1308By default, \`make install' will install all the files in
1309\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1310an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311for instance \`--prefix=\$HOME'.
1312
1313For better control, use the options below.
1314
1315Fine tuning of the installation directories:
1316  --bindir=DIR            user executables [EPREFIX/bin]
1317  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1318  --libexecdir=DIR        program executables [EPREFIX/libexec]
1319  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1320  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1321  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1322  --libdir=DIR            object code libraries [EPREFIX/lib]
1323  --includedir=DIR        C header files [PREFIX/include]
1324  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1325  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1326  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1327  --infodir=DIR           info documentation [DATAROOTDIR/info]
1328  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1329  --mandir=DIR            man documentation [DATAROOTDIR/man]
1330  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/make@:>@
1331  --htmldir=DIR           html documentation [DOCDIR]
1332  --dvidir=DIR            dvi documentation [DOCDIR]
1333  --pdfdir=DIR            pdf documentation [DOCDIR]
1334  --psdir=DIR             ps documentation [DOCDIR]
1335_ACEOF
1336
1337  cat <<\_ACEOF
1338
1339Program names:
1340  --program-prefix=PREFIX            prepend PREFIX to installed program names
1341  --program-suffix=SUFFIX            append SUFFIX to installed program names
1342  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1343
1344System types:
1345  --build=BUILD     configure for building on BUILD [guessed]
1346  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1347_ACEOF
1348fi
1349
1350if test -n "$ac_init_help"; then
1351  case $ac_init_help in
1352     short | recursive ) echo "Configuration of GNU make 3.81:";;
1353   esac
1354  cat <<\_ACEOF
1355
1356Optional Features:
1357  --disable-option-checking  ignore unrecognized --enable/--with options
1358  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1359  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1360  --disable-dependency-tracking  speeds up one-time build
1361  --enable-dependency-tracking   do not reject slow dependency extractors
1362  --disable-nls           do not use Native Language Support
1363  --disable-rpath         do not hardcode runtime library paths
1364  --disable-largefile     omit support for large files
1365  --enable-case-insensitive-file-system
1366                          enable case insensitive file system support
1367  --disable-job-server    disallow recursive make communication during -jN
1368
1369Optional Packages:
1370  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1371  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1372  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1373  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1374  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1375  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1376  --without-libintl-prefix     don't search for libintl in includedir and libdir
1377  --with-customs=DIR      enable remote jobs via Customs--see README.customs
1378  --with-dmalloc          use dmalloc, as in
1379			  http://www.dmalloc.com/dmalloc.tar.gz
1380
1381Some influential environment variables:
1382  CC          C compiler command
1383  CFLAGS      C compiler flags
1384  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385              nonstandard directory <lib dir>
1386  LIBS        libraries to pass to the linker, e.g. -l<library>
1387  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1388              you have headers in a nonstandard directory <include dir>
1389  CPP         C preprocessor
1390
1391Use these variables to override the choices made by `configure' or to help
1392it to find libraries and programs with nonstandard names/locations.
1393
1394Report bugs to <bug-make@gnu.org>.
1395GNU make home page: <http://www.gnu.org/software/make/>.
1396General help using GNU software: <http://www.gnu.org/gethelp/>.
1397_ACEOF
1398ac_status=$?
1399fi
1400
1401if test "$ac_init_help" = "recursive"; then
1402  # If there are subdirs, report their specific --help.
1403  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404    test -d "$ac_dir" ||
1405      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406      continue
1407    ac_builddir=.
1408
1409case "$ac_dir" in
1410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411*)
1412  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413  # A ".." for each directory in $ac_dir_suffix.
1414  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415  case $ac_top_builddir_sub in
1416  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418  esac ;;
1419esac
1420ac_abs_top_builddir=$ac_pwd
1421ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422# for backward compatibility:
1423ac_top_builddir=$ac_top_build_prefix
1424
1425case $srcdir in
1426  .)  # We are building in place.
1427    ac_srcdir=.
1428    ac_top_srcdir=$ac_top_builddir_sub
1429    ac_abs_top_srcdir=$ac_pwd ;;
1430  [\\/]* | ?:[\\/]* )  # Absolute name.
1431    ac_srcdir=$srcdir$ac_dir_suffix;
1432    ac_top_srcdir=$srcdir
1433    ac_abs_top_srcdir=$srcdir ;;
1434  *) # Relative name.
1435    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436    ac_top_srcdir=$ac_top_build_prefix$srcdir
1437    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438esac
1439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
1441    cd "$ac_dir" || { ac_status=$?; continue; }
1442    # Check for guested configure.
1443    if test -f "$ac_srcdir/configure.gnu"; then
1444      echo &&
1445      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446    elif test -f "$ac_srcdir/configure"; then
1447      echo &&
1448      $SHELL "$ac_srcdir/configure" --help=recursive
1449    else
1450      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451    fi || ac_status=$?
1452    cd "$ac_pwd" || { ac_status=$?; break; }
1453  done
1454fi
1455
1456test -n "$ac_init_help" && exit $ac_status
1457if $ac_init_version; then
1458  cat <<\_ACEOF
1459GNU make configure 3.81
1460generated by GNU Autoconf 2.65
1461
1462Copyright (C) 2009 Free Software Foundation, Inc.
1463This configure script is free software; the Free Software Foundation
1464gives unlimited permission to copy, distribute and modify it.
1465_ACEOF
1466  exit
1467fi
1468
1469## ------------------------ ##
1470## Autoconf initialization. ##
1471## ------------------------ ##
1472
1473@%:@ ac_fn_c_try_compile LINENO
1474@%:@ --------------------------
1475@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1476ac_fn_c_try_compile ()
1477{
1478  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479  rm -f conftest.$ac_objext
1480  if { { ac_try="$ac_compile"
1481case "(($ac_try" in
1482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483  *) ac_try_echo=$ac_try;;
1484esac
1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486$as_echo "$ac_try_echo"; } >&5
1487  (eval "$ac_compile") 2>conftest.err
1488  ac_status=$?
1489  if test -s conftest.err; then
1490    grep -v '^ *+' conftest.err >conftest.er1
1491    cat conftest.er1 >&5
1492    mv -f conftest.er1 conftest.err
1493  fi
1494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495  test $ac_status = 0; } && {
1496	 test -z "$ac_c_werror_flag" ||
1497	 test ! -s conftest.err
1498       } && test -s conftest.$ac_objext; then :
1499  ac_retval=0
1500else
1501  $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504	ac_retval=1
1505fi
1506  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507  as_fn_set_status $ac_retval
1508
1509} @%:@ ac_fn_c_try_compile
1510
1511@%:@ ac_fn_c_try_cpp LINENO
1512@%:@ ----------------------
1513@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1514ac_fn_c_try_cpp ()
1515{
1516  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517  if { { ac_try="$ac_cpp conftest.$ac_ext"
1518case "(($ac_try" in
1519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520  *) ac_try_echo=$ac_try;;
1521esac
1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523$as_echo "$ac_try_echo"; } >&5
1524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1525  ac_status=$?
1526  if test -s conftest.err; then
1527    grep -v '^ *+' conftest.err >conftest.er1
1528    cat conftest.er1 >&5
1529    mv -f conftest.er1 conftest.err
1530  fi
1531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532  test $ac_status = 0; } >/dev/null && {
1533	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1534	 test ! -s conftest.err
1535       }; then :
1536  ac_retval=0
1537else
1538  $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541    ac_retval=1
1542fi
1543  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1544  as_fn_set_status $ac_retval
1545
1546} @%:@ ac_fn_c_try_cpp
1547
1548@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1549@%:@ -------------------------------------------------------
1550@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1551@%:@ the include files in INCLUDES and setting the cache variable VAR
1552@%:@ accordingly.
1553ac_fn_c_check_header_mongrel ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558$as_echo_n "checking for $2... " >&6; }
1559if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1560  $as_echo_n "(cached) " >&6
1561fi
1562eval ac_res=\$$3
1563	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564$as_echo "$ac_res" >&6; }
1565else
1566  # Is the header compilable?
1567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1568$as_echo_n "checking $2 usability... " >&6; }
1569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570/* end confdefs.h.  */
1571$4
1572@%:@include <$2>
1573_ACEOF
1574if ac_fn_c_try_compile "$LINENO"; then :
1575  ac_header_compiler=yes
1576else
1577  ac_header_compiler=no
1578fi
1579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1581$as_echo "$ac_header_compiler" >&6; }
1582
1583# Is the header present?
1584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1585$as_echo_n "checking $2 presence... " >&6; }
1586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587/* end confdefs.h.  */
1588@%:@include <$2>
1589_ACEOF
1590if ac_fn_c_try_cpp "$LINENO"; then :
1591  ac_header_preproc=yes
1592else
1593  ac_header_preproc=no
1594fi
1595rm -f conftest.err conftest.$ac_ext
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1597$as_echo "$ac_header_preproc" >&6; }
1598
1599# So?  What about this header?
1600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601  yes:no: )
1602    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1603$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1604    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1606    ;;
1607  no:yes:* )
1608    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1609$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1610    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1611$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1613$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1615$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1616    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618( cat <<\_ASBOX
1619## ------------------------------- ##
1620## Report this to bug-make@gnu.org ##
1621## ------------------------------- ##
1622_ASBOX
1623     ) | sed "s/^/$as_me: WARNING:     /" >&2
1624    ;;
1625esac
1626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1629  $as_echo_n "(cached) " >&6
1630else
1631  eval "$3=\$ac_header_compiler"
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636fi
1637  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638
1639} @%:@ ac_fn_c_check_header_mongrel
1640
1641@%:@ ac_fn_c_try_run LINENO
1642@%:@ ----------------------
1643@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1644@%:@ that executables *can* be run.
1645ac_fn_c_try_run ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  if { { ac_try="$ac_link"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_link") 2>&5
1656  ac_status=$?
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659  { { case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_try") 2>&5
1666  ac_status=$?
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; }; }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: program exited with status $ac_status" >&5
1672       $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675       ac_retval=$ac_status
1676fi
1677  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679  as_fn_set_status $ac_retval
1680
1681} @%:@ ac_fn_c_try_run
1682
1683@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684@%:@ -------------------------------------------------------
1685@%:@ Tests whether HEADER exists and can be compiled using the include files in
1686@%:@ INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693  $as_echo_n "(cached) " >&6
1694else
1695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h.  */
1697$4
1698@%:@include <$2>
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701  eval "$3=yes"
1702else
1703  eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707eval ac_res=\$$3
1708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711
1712} @%:@ ac_fn_c_check_header_compile
1713
1714@%:@ ac_fn_c_try_link LINENO
1715@%:@ -----------------------
1716@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext conftest$ac_exeext
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest$ac_exeext && {
1740	 test "$cross_compiling" = yes ||
1741	 $as_test_x conftest$ac_exeext
1742       }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752  # interfere with the next link command; also delete a directory that is
1753  # left behind by Apple's compiler.  We do this before executing the actions.
1754  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756  as_fn_set_status $ac_retval
1757
1758} @%:@ ac_fn_c_try_link
1759
1760@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761@%:@ -------------------------------------------
1762@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1763@%:@ variable VAR accordingly.
1764ac_fn_c_check_type ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  eval "$3=no"
1773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775$4
1776int
1777main ()
1778{
1779if (sizeof ($2))
1780	 return 0;
1781  ;
1782  return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788$4
1789int
1790main ()
1791{
1792if (sizeof (($2)))
1793	    return 0;
1794  ;
1795  return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799
1800else
1801  eval "$3=yes"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} @%:@ ac_fn_c_check_type
1813
1814@%:@ ac_fn_c_check_func LINENO FUNC VAR
1815@%:@ ----------------------------------
1816@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1829#define $2 innocuous_$2
1830
1831/* System header to define __stub macros and hopefully few prototypes,
1832    which can conflict with char $2 (); below.
1833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834    <limits.h> exists even on freestanding compilers.  */
1835
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
1841
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845   Use char because int might match the return type of a GCC
1846   builtin and then its argument prototype would still apply.  */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852    to always fail with ENOSYS.  Some functions are actually named
1853    something starting with __ and the normal name is an alias.  */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main ()
1860{
1861return $2 ();
1862  ;
1863  return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"; then :
1867  eval "$3=yes"
1868else
1869  eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872    conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} @%:@ ac_fn_c_check_func
1880
1881@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1882@%:@ ----------------------------------------------------
1883@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
1884@%:@ INCLUDES, setting cache variable VAR accordingly.
1885ac_fn_c_check_member ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1889$as_echo_n "checking for $2.$3... " >&6; }
1890if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$5
1896int
1897main ()
1898{
1899static $2 ac_aggr;
1900if (ac_aggr.$3)
1901return 0;
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907  eval "$4=yes"
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$5
1912int
1913main ()
1914{
1915static $2 ac_aggr;
1916if (sizeof ac_aggr.$3)
1917return 0;
1918  ;
1919  return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923  eval "$4=yes"
1924else
1925  eval "$4=no"
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$4
1932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
1936} @%:@ ac_fn_c_check_member
1937
1938@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR
1939@%:@ ------------------------------------
1940@%:@ Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1941ac_fn_c_check_decl ()
1942{
1943  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1945$as_echo_n "checking whether $2 is declared... " >&6; }
1946if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947  $as_echo_n "(cached) " >&6
1948else
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952int
1953main ()
1954{
1955@%:@ifndef $2
1956  (void) $2;
1957@%:@endif
1958
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
1975} @%:@ ac_fn_c_check_decl
1976cat >config.log <<_ACEOF
1977This file contains any messages produced by compilers while
1978running configure, to aid debugging if configure makes a mistake.
1979
1980It was created by GNU make $as_me 3.81, which was
1981generated by GNU Autoconf 2.65.  Invocation command line was
1982
1983  $ $0 $@
1984
1985_ACEOF
1986exec 5>>config.log
1987{
1988cat <<_ASUNAME
1989## --------- ##
1990## Platform. ##
1991## --------- ##
1992
1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
2002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
2010_ASUNAME
2011
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015  IFS=$as_save_IFS
2016  test -z "$as_dir" && as_dir=.
2017    $as_echo "PATH: $as_dir"
2018  done
2019IFS=$as_save_IFS
2020
2021} >&5
2022
2023cat >&5 <<_ACEOF
2024
2025
2026## ----------- ##
2027## Core tests. ##
2028## ----------- ##
2029
2030_ACEOF
2031
2032
2033# Keep a trace of the command line.
2034# Strip out --no-create and --no-recursion so they do not pile up.
2035# Strip out --silent because we don't want to record it for future runs.
2036# Also quote any args containing shell meta-characters.
2037# Make two passes to allow for proper duplicate-argument suppression.
2038ac_configure_args=
2039ac_configure_args0=
2040ac_configure_args1=
2041ac_must_keep_next=false
2042for ac_pass in 1 2
2043do
2044  for ac_arg
2045  do
2046    case $ac_arg in
2047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049    | -silent | --silent | --silen | --sile | --sil)
2050      continue ;;
2051    *\'*)
2052      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053    esac
2054    case $ac_pass in
2055    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056    2)
2057      as_fn_append ac_configure_args1 " '$ac_arg'"
2058      if test $ac_must_keep_next = true; then
2059	ac_must_keep_next=false # Got value, back to normal.
2060      else
2061	case $ac_arg in
2062	  *=* | --config-cache | -C | -disable-* | --disable-* \
2063	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065	  | -with-* | --with-* | -without-* | --without-* | --x)
2066	    case "$ac_configure_args0 " in
2067	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068	    esac
2069	    ;;
2070	  -* ) ac_must_keep_next=true ;;
2071	esac
2072      fi
2073      as_fn_append ac_configure_args " '$ac_arg'"
2074      ;;
2075    esac
2076  done
2077done
2078{ ac_configure_args0=; unset ac_configure_args0;}
2079{ ac_configure_args1=; unset ac_configure_args1;}
2080
2081# When interrupted or exit'd, cleanup temporary files, and complete
2082# config.log.  We remove comments because anyway the quotes in there
2083# would cause problems or look ugly.
2084# WARNING: Use '\'' to represent an apostrophe within the trap.
2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086trap 'exit_status=$?
2087  # Save into config.log some information that might help in debugging.
2088  {
2089    echo
2090
2091    cat <<\_ASBOX
2092## ---------------- ##
2093## Cache variables. ##
2094## ---------------- ##
2095_ASBOX
2096    echo
2097    # The following way of writing the cache mishandles newlines in values,
2098(
2099  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100    eval ac_val=\$$ac_var
2101    case $ac_val in #(
2102    *${as_nl}*)
2103      case $ac_var in #(
2104      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106      esac
2107      case $ac_var in #(
2108      _ | IFS | as_nl) ;; #(
2109      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110      *) { eval $ac_var=; unset $ac_var;} ;;
2111      esac ;;
2112    esac
2113  done
2114  (set) 2>&1 |
2115    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116    *${as_nl}ac_space=\ *)
2117      sed -n \
2118	"s/'\''/'\''\\\\'\'''\''/g;
2119	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120      ;; #(
2121    *)
2122      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123      ;;
2124    esac |
2125    sort
2126)
2127    echo
2128
2129    cat <<\_ASBOX
2130## ----------------- ##
2131## Output variables. ##
2132## ----------------- ##
2133_ASBOX
2134    echo
2135    for ac_var in $ac_subst_vars
2136    do
2137      eval ac_val=\$$ac_var
2138      case $ac_val in
2139      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140      esac
2141      $as_echo "$ac_var='\''$ac_val'\''"
2142    done | sort
2143    echo
2144
2145    if test -n "$ac_subst_files"; then
2146      cat <<\_ASBOX
2147## ------------------- ##
2148## File substitutions. ##
2149## ------------------- ##
2150_ASBOX
2151      echo
2152      for ac_var in $ac_subst_files
2153      do
2154	eval ac_val=\$$ac_var
2155	case $ac_val in
2156	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157	esac
2158	$as_echo "$ac_var='\''$ac_val'\''"
2159      done | sort
2160      echo
2161    fi
2162
2163    if test -s confdefs.h; then
2164      cat <<\_ASBOX
2165## ----------- ##
2166## confdefs.h. ##
2167## ----------- ##
2168_ASBOX
2169      echo
2170      cat confdefs.h
2171      echo
2172    fi
2173    test "$ac_signal" != 0 &&
2174      $as_echo "$as_me: caught signal $ac_signal"
2175    $as_echo "$as_me: exit $exit_status"
2176  } >&5
2177  rm -f core *.core core.conftest.* &&
2178    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179    exit $exit_status
2180' 0
2181for ac_signal in 1 2 13 15; do
2182  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214@%:@define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
2217
2218# Let the site file select an alternate cache file if it wants to.
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223  ac_site_file1=$CONFIG_SITE
2224elif test "x$prefix" != xNONE; then
2225  ac_site_file1=$prefix/share/config.site
2226  ac_site_file2=$prefix/etc/config.site
2227else
2228  ac_site_file1=$ac_default_prefix/share/config.site
2229  ac_site_file2=$ac_default_prefix/etc/config.site
2230fi
2231for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232do
2233  test "x$ac_site_file" = xNONE && continue
2234  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2237    sed 's/^/| /' "$ac_site_file" >&5
2238    . "$ac_site_file"
2239  fi
2240done
2241
2242if test -r "$cache_file"; then
2243  # Some versions of bash will fail to source /dev/null (special files
2244  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2245  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247$as_echo "$as_me: loading cache $cache_file" >&6;}
2248    case $cache_file in
2249      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250      *)                      . "./$cache_file";;
2251    esac
2252  fi
2253else
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255$as_echo "$as_me: creating cache $cache_file" >&6;}
2256  >$cache_file
2257fi
2258
2259# Check that the precious variables saved in the cache have kept the same
2260# value.
2261ac_cache_corrupted=false
2262for ac_var in $ac_precious_vars; do
2263  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264  eval ac_new_set=\$ac_env_${ac_var}_set
2265  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266  eval ac_new_val=\$ac_env_${ac_var}_value
2267  case $ac_old_set,$ac_new_set in
2268    set,)
2269      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271      ac_cache_corrupted=: ;;
2272    ,set)
2273      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275      ac_cache_corrupted=: ;;
2276    ,);;
2277    *)
2278      if test "x$ac_old_val" != "x$ac_new_val"; then
2279	# differences in whitespace do not lead to failure.
2280	ac_old_val_w=`echo x $ac_old_val`
2281	ac_new_val_w=`echo x $ac_new_val`
2282	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285	  ac_cache_corrupted=:
2286	else
2287	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289	  eval $ac_var=\$ac_old_val
2290	fi
2291	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2292$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2293	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2294$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2295      fi;;
2296  esac
2297  # Pass precious variables to config.status.
2298  if test "$ac_new_set" = set; then
2299    case $ac_new_val in
2300    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301    *) ac_arg=$ac_var=$ac_new_val ;;
2302    esac
2303    case " $ac_configure_args " in
2304      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2305      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306    esac
2307  fi
2308done
2309if $ac_cache_corrupted; then
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315fi
2316## -------------------- ##
2317## Main body of script. ##
2318## -------------------- ##
2319
2320ac_ext=c
2321ac_cpp='$CPP $CPPFLAGS'
2322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329
2330
2331# Autoconf setup
2332ac_aux_dir=
2333for ac_dir in config "$srcdir"/config; do
2334  for ac_t in install-sh install.sh shtool; do
2335    if test -f "$ac_dir/$ac_t"; then
2336      ac_aux_dir=$ac_dir
2337      ac_install_sh="$ac_aux_dir/$ac_t -c"
2338      break 2
2339    fi
2340  done
2341done
2342if test -z "$ac_aux_dir"; then
2343  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2344fi
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2353
2354
2355
2356ac_config_headers="$ac_config_headers config.h"
2357
2358
2359# Automake setup
2360am__api_version="1.9"
2361# Find a good install program.  We prefer a C program (faster),
2362# so one script is as good as another.  But avoid the broken or
2363# incompatible versions:
2364# SysV /etc/install, /usr/sbin/install
2365# SunOS /usr/etc/install
2366# IRIX /sbin/install
2367# AIX /bin/install
2368# AmigaOS /C/install, which installs bootblocks on floppy discs
2369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2372# OS/2's system install, which has a completely different semantic
2373# ./install, which can be erroneously created by make from ./install.sh.
2374# Reject install programs that cannot install multiple files.
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2376$as_echo_n "checking for a BSD-compatible install... " >&6; }
2377if test -z "$INSTALL"; then
2378if test "${ac_cv_path_install+set}" = set; then :
2379  $as_echo_n "(cached) " >&6
2380else
2381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386    # Account for people who put trailing slashes in PATH elements.
2387case $as_dir/ in @%:@((
2388  ./ | .// | /[cC]/* | \
2389  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2390  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2391  /usr/ucb/* ) ;;
2392  *)
2393    # OSF1 and SCO ODT 3.0 have their own names for install.
2394    # Don't use installbsd from OSF since it installs stuff as root
2395    # by default.
2396    for ac_prog in ginstall scoinst install; do
2397      for ac_exec_ext in '' $ac_executable_extensions; do
2398	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2399	  if test $ac_prog = install &&
2400	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401	    # AIX install.  It has an incompatible calling convention.
2402	    :
2403	  elif test $ac_prog = install &&
2404	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2405	    # program-specific install script used by HP pwplus--don't use.
2406	    :
2407	  else
2408	    rm -rf conftest.one conftest.two conftest.dir
2409	    echo one > conftest.one
2410	    echo two > conftest.two
2411	    mkdir conftest.dir
2412	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2413	      test -s conftest.one && test -s conftest.two &&
2414	      test -s conftest.dir/conftest.one &&
2415	      test -s conftest.dir/conftest.two
2416	    then
2417	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2418	      break 3
2419	    fi
2420	  fi
2421	fi
2422      done
2423    done
2424    ;;
2425esac
2426
2427  done
2428IFS=$as_save_IFS
2429
2430rm -rf conftest.one conftest.two conftest.dir
2431
2432fi
2433  if test "${ac_cv_path_install+set}" = set; then
2434    INSTALL=$ac_cv_path_install
2435  else
2436    # As a last resort, use the slow shell script.  Don't cache a
2437    # value for INSTALL within a source directory, because that will
2438    # break other packages using the cache if that directory is
2439    # removed, or if the value is a relative name.
2440    INSTALL=$ac_install_sh
2441  fi
2442fi
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2444$as_echo "$INSTALL" >&6; }
2445
2446# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2447# It thinks the first close brace ends the variable substitution.
2448test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2449
2450test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2451
2452test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2453
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2455$as_echo_n "checking whether build environment is sane... " >&6; }
2456# Just in case
2457sleep 1
2458echo timestamp > conftest.file
2459# Do `set' in a subshell so we don't clobber the current shell's
2460# arguments.  Must try -L first in case configure is actually a
2461# symlink; some systems play weird games with the mod time of symlinks
2462# (eg FreeBSD returns the mod time of the symlink's containing
2463# directory).
2464if (
2465   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2466   if test "$*" = "X"; then
2467      # -L didn't work.
2468      set X `ls -t $srcdir/configure conftest.file`
2469   fi
2470   rm -f conftest.file
2471   if test "$*" != "X $srcdir/configure conftest.file" \
2472      && test "$*" != "X conftest.file $srcdir/configure"; then
2473
2474      # If neither matched, then we have a broken ls.  This can happen
2475      # if, for instance, CONFIG_SHELL is bash and it inherits a
2476      # broken ls alias from the environment.  This has actually
2477      # happened.  Such a system could not be considered "sane".
2478      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2479alias in your environment" "$LINENO" 5
2480   fi
2481
2482   test "$2" = conftest.file
2483   )
2484then
2485   # Ok.
2486   :
2487else
2488   as_fn_error "newly created file is older than distributed files!
2489Check your system clock" "$LINENO" 5
2490fi
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
2493test "$program_prefix" != NONE &&
2494  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2495# Use a double $ so make ignores it.
2496test "$program_suffix" != NONE &&
2497  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2498# Double any \ or $.
2499# By default was `s,x,x', remove it if useless.
2500ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2501program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2502
2503# expand $ac_aux_dir to an absolute path
2504am_aux_dir=`cd $ac_aux_dir && pwd`
2505
2506test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2507# Use eval to expand $SHELL
2508if eval "$MISSING --run true"; then
2509  am_missing_run="$MISSING --run "
2510else
2511  am_missing_run=
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2513$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2514fi
2515
2516if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2517  # We used to keeping the `.' as first argument, in order to
2518  # allow $(mkdir_p) to be used without argument.  As in
2519  #   $(mkdir_p) $(somedir)
2520  # where $(somedir) is conditionally defined.  However this is wrong
2521  # for two reasons:
2522  #  1. if the package is installed by a user who cannot write `.'
2523  #     make install will fail,
2524  #  2. the above comment should most certainly read
2525  #     $(mkdir_p) $(DESTDIR)$(somedir)
2526  #     so it does not work when $(somedir) is undefined and
2527  #     $(DESTDIR) is not.
2528  #  To support the latter case, we have to write
2529  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2530  #  so the `.' trick is pointless.
2531  mkdir_p='mkdir -p --'
2532else
2533  # On NextStep and OpenStep, the `mkdir' command does not
2534  # recognize any option.  It will interpret all options as
2535  # directories to create, and then abort because `.' already
2536  # exists.
2537  for d in ./-p ./--version;
2538  do
2539    test -d $d && rmdir $d
2540  done
2541  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2542  if test -f "$ac_aux_dir/mkinstalldirs"; then
2543    mkdir_p='$(mkinstalldirs)'
2544  else
2545    mkdir_p='$(install_sh) -d'
2546  fi
2547fi
2548
2549for ac_prog in gawk mawk nawk awk
2550do
2551  # Extract the first word of "$ac_prog", so it can be a program name with args.
2552set dummy $ac_prog; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if test "${ac_cv_prog_AWK+set}" = set; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$AWK"; then
2559  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568    ac_cv_prog_AWK="$ac_prog"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578AWK=$ac_cv_prog_AWK
2579if test -n "$AWK"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2581$as_echo "$AWK" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588  test -n "$AWK" && break
2589done
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2592$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2593set x ${MAKE-make}
2594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2595if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2596  $as_echo_n "(cached) " >&6
2597else
2598  cat >conftest.make <<\_ACEOF
2599SHELL = /bin/sh
2600all:
2601	@echo '@@@%%%=$(MAKE)=@@@%%%'
2602_ACEOF
2603# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2604case `${MAKE-make} -f conftest.make 2>/dev/null` in
2605  *@@@%%%=?*=@@@%%%*)
2606    eval ac_cv_prog_make_${ac_make}_set=yes;;
2607  *)
2608    eval ac_cv_prog_make_${ac_make}_set=no;;
2609esac
2610rm -f conftest.make
2611fi
2612if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614$as_echo "yes" >&6; }
2615  SET_MAKE=
2616else
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619  SET_MAKE="MAKE=${MAKE-make}"
2620fi
2621
2622rm -rf .tst 2>/dev/null
2623mkdir .tst 2>/dev/null
2624if test -d .tst; then
2625  am__leading_dot=.
2626else
2627  am__leading_dot=_
2628fi
2629rmdir .tst 2>/dev/null
2630
2631# test to see if srcdir already configured
2632if test "`cd $srcdir && pwd`" != "`pwd`" &&
2633   test -f $srcdir/config.status; then
2634  as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2635fi
2636
2637# test whether we have cygpath
2638if test -z "$CYGPATH_W"; then
2639  if (cygpath --version) >/dev/null 2>/dev/null; then
2640    CYGPATH_W='cygpath -w'
2641  else
2642    CYGPATH_W=echo
2643  fi
2644fi
2645
2646
2647# Define the identity of the package.
2648 PACKAGE='make'
2649 VERSION='3.81'
2650
2651
2652cat >>confdefs.h <<_ACEOF
2653@%:@define PACKAGE "$PACKAGE"
2654_ACEOF
2655
2656
2657cat >>confdefs.h <<_ACEOF
2658@%:@define VERSION "$VERSION"
2659_ACEOF
2660
2661# Some tools Automake needs.
2662
2663ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2664
2665
2666AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2667
2668
2669AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2670
2671
2672AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2673
2674
2675MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2676
2677install_sh=${install_sh-"$am_aux_dir/install-sh"}
2678
2679# Installed binaries are usually stripped using `strip' when the user
2680# run `make install-strip'.  However `strip' might not be the right
2681# tool to use in cross-compilation environments, therefore Automake
2682# will honor the `STRIP' environment variable to overrule this program.
2683if test "$cross_compiling" != no; then
2684  if test -n "$ac_tool_prefix"; then
2685  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}strip; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if test "${ac_cv_prog_STRIP+set}" = set; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$STRIP"; then
2693  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712STRIP=$ac_cv_prog_STRIP
2713if test -n "$STRIP"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2715$as_echo "$STRIP" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722fi
2723if test -z "$ac_cv_prog_STRIP"; then
2724  ac_ct_STRIP=$STRIP
2725  # Extract the first word of "strip", so it can be a program name with args.
2726set dummy strip; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  if test -n "$ac_ct_STRIP"; then
2733  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740    for ac_exec_ext in '' $ac_executable_extensions; do
2741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742    ac_cv_prog_ac_ct_STRIP="strip"
2743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747  done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2753if test -n "$ac_ct_STRIP"; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2755$as_echo "$ac_ct_STRIP" >&6; }
2756else
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761  if test "x$ac_ct_STRIP" = x; then
2762    STRIP=":"
2763  else
2764    case $cross_compiling:$ac_tool_warned in
2765yes:)
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770    STRIP=$ac_ct_STRIP
2771  fi
2772else
2773  STRIP="$ac_cv_prog_STRIP"
2774fi
2775
2776fi
2777INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2778
2779# We need awk for the "check" target.  The system "awk" is bad on
2780# some platforms.
2781# Always define AMTAR for backward compatibility.
2782
2783AMTAR=${AMTAR-"${am_missing_run}tar"}
2784
2785am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2786
2787
2788
2789
2790
2791
2792# Checks for programs.
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798if test -n "$ac_tool_prefix"; then
2799  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
2803if test "${ac_cv_prog_CC+set}" = set; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  if test -n "$CC"; then
2807  ac_cv_prog_CC="$CC" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821  done
2822IFS=$as_save_IFS
2823
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829$as_echo "$CC" >&6; }
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$ac_cv_prog_CC"; then
2838  ac_ct_CC=$CC
2839  # Extract the first word of "gcc", so it can be a program name with args.
2840set dummy gcc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$ac_ct_CC"; then
2847  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    ac_cv_prog_ac_ct_CC="gcc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869$as_echo "$ac_ct_CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875  if test "x$ac_ct_CC" = x; then
2876    CC=""
2877  else
2878    case $cross_compiling:$ac_tool_warned in
2879yes:)
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884    CC=$ac_ct_CC
2885  fi
2886else
2887  CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2891          if test -n "$ac_tool_prefix"; then
2892    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if test "${ac_cv_prog_CC+set}" = set; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$CC"; then
2900  ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909    ac_cv_prog_CC="${ac_tool_prefix}cc"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929  fi
2930fi
2931if test -z "$CC"; then
2932  # Extract the first word of "cc", so it can be a program name with args.
2933set dummy cc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if test "${ac_cv_prog_CC+set}" = set; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$CC"; then
2940  ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942  ac_prog_rejected=no
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951       ac_prog_rejected=yes
2952       continue
2953     fi
2954    ac_cv_prog_CC="cc"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962if test $ac_prog_rejected = yes; then
2963  # We found a bogon in the path, so make sure we never use it.
2964  set dummy $ac_cv_prog_CC
2965  shift
2966  if test $@%:@ != 0; then
2967    # We chose a different compiler from the bogus one.
2968    # However, it has the same basename, so the bogon will be chosen
2969    # first if we set CC to just the basename; use the full file name.
2970    shift
2971    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972  fi
2973fi
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986fi
2987if test -z "$CC"; then
2988  if test -n "$ac_tool_prefix"; then
2989  for ac_prog in cl.exe
2990  do
2991    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if test "${ac_cv_prog_CC+set}" = set; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$CC"; then
2999  ac_cv_prog_CC="$CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018CC=$ac_cv_prog_CC
3019if test -n "$CC"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021$as_echo "$CC" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028    test -n "$CC" && break
3029  done
3030fi
3031if test -z "$CC"; then
3032  ac_ct_CC=$CC
3033  for ac_prog in cl.exe
3034do
3035  # Extract the first word of "$ac_prog", so it can be a program name with args.
3036set dummy $ac_prog; ac_word=$2
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test -n "$ac_ct_CC"; then
3043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  test -z "$as_dir" && as_dir=.
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052    ac_cv_prog_ac_ct_CC="$ac_prog"
3053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063if test -n "$ac_ct_CC"; then
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065$as_echo "$ac_ct_CC" >&6; }
3066else
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072  test -n "$ac_ct_CC" && break
3073done
3074
3075  if test "x$ac_ct_CC" = x; then
3076    CC=""
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    CC=$ac_ct_CC
3085  fi
3086fi
3087
3088fi
3089
3090
3091test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093as_fn_error "no acceptable C compiler found in \$PATH
3094See \`config.log' for more details." "$LINENO" 5; }
3095
3096# Provide some information about the compiler.
3097$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3098set X $ac_compile
3099ac_compiler=$2
3100for ac_option in --version -v -V -qversion; do
3101  { { ac_try="$ac_compiler $ac_option >&5"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109  ac_status=$?
3110  if test -s conftest.err; then
3111    sed '10a\
3112... rest of stderr output deleted ...
3113         10q' conftest.err >conftest.er1
3114    cat conftest.er1 >&5
3115  fi
3116  rm -f conftest.er1 conftest.err
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }
3119done
3120
3121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132ac_clean_files_save=$ac_clean_files
3133ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134# Try to create an executable without -o first, disregard a.out.
3135# It will help us diagnose broken compilers, and finding out an intuition
3136# of exeext.
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3138$as_echo_n "checking whether the C compiler works... " >&6; }
3139ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140
3141# The possible output files:
3142ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3143
3144ac_rmfiles=
3145for ac_file in $ac_files
3146do
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150  esac
3151done
3152rm -f $ac_rmfiles
3153
3154if { { ac_try="$ac_link_default"
3155case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160$as_echo "$ac_try_echo"; } >&5
3161  (eval "$ac_link_default") 2>&5
3162  ac_status=$?
3163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164  test $ac_status = 0; }; then :
3165  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3168# so that the user can short-circuit this test for compilers unknown to
3169# Autoconf.
3170for ac_file in $ac_files ''
3171do
3172  test -f "$ac_file" || continue
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3175	;;
3176    [ab].out )
3177	# We found the default executable, but exeext='' is most
3178	# certainly right.
3179	break;;
3180    *.* )
3181	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182	then :; else
3183	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184	fi
3185	# We set ac_cv_exeext here because the later test for it is not
3186	# safe: cross compilers may not add the suffix if given an `-o'
3187	# argument, so we may need to know it at that point already.
3188	# Even if this section looks crufty: it has the advantage of
3189	# actually working.
3190	break;;
3191    * )
3192	break;;
3193  esac
3194done
3195test "$ac_cv_exeext" = no && ac_cv_exeext=
3196
3197else
3198  ac_file=''
3199fi
3200if test -z "$ac_file"; then :
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203$as_echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208{ as_fn_set_status 77
3209as_fn_error "C compiler cannot create executables
3210See \`config.log' for more details." "$LINENO" 5; }; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3216$as_echo_n "checking for C compiler default output file name... " >&6; }
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3218$as_echo "$ac_file" >&6; }
3219ac_exeext=$ac_cv_exeext
3220
3221rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3222ac_clean_files=$ac_clean_files_save
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3224$as_echo_n "checking for suffix of executables... " >&6; }
3225if { { ac_try="$ac_link"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232  (eval "$ac_link") 2>&5
3233  ac_status=$?
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }; then :
3236  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3237# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3238# work properly (i.e., refer to `conftest.exe'), while it won't with
3239# `rm'.
3240for ac_file in conftest.exe conftest conftest.*; do
3241  test -f "$ac_file" || continue
3242  case $ac_file in
3243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245	  break;;
3246    * ) break;;
3247  esac
3248done
3249else
3250  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252as_fn_error "cannot compute suffix of executables: cannot compile and link
3253See \`config.log' for more details." "$LINENO" 5; }
3254fi
3255rm -f conftest conftest$ac_cv_exeext
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3257$as_echo "$ac_cv_exeext" >&6; }
3258
3259rm -f conftest.$ac_ext
3260EXEEXT=$ac_cv_exeext
3261ac_exeext=$EXEEXT
3262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h.  */
3264@%:@include <stdio.h>
3265int
3266main ()
3267{
3268FILE *f = fopen ("conftest.out", "w");
3269 return ferror (f) || fclose (f) != 0;
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275ac_clean_files="$ac_clean_files conftest.out"
3276# Check that the compiler produces executables we can run.  If not, either
3277# the compiler is broken, or we cross compile.
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3279$as_echo_n "checking whether we are cross compiling... " >&6; }
3280if test "$cross_compiling" != yes; then
3281  { { ac_try="$ac_link"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
3288  (eval "$ac_link") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291  test $ac_status = 0; }
3292  if { ac_try='./conftest$ac_cv_exeext'
3293  { { case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_try") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }; }; then
3303    cross_compiling=no
3304  else
3305    if test "$cross_compiling" = maybe; then
3306	cross_compiling=yes
3307    else
3308	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310as_fn_error "cannot run C compiled programs.
3311If you meant to cross compile, use \`--host'.
3312See \`config.log' for more details." "$LINENO" 5; }
3313    fi
3314  fi
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3317$as_echo "$cross_compiling" >&6; }
3318
3319rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3320ac_clean_files=$ac_clean_files_save
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3322$as_echo_n "checking for suffix of object files... " >&6; }
3323if test "${ac_cv_objext+set}" = set; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337rm -f conftest.o conftest.obj
3338if { { ac_try="$ac_compile"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_compile") 2>&5
3346  ac_status=$?
3347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348  test $ac_status = 0; }; then :
3349  for ac_file in conftest.o conftest.obj conftest.*; do
3350  test -f "$ac_file" || continue;
3351  case $ac_file in
3352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3353    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3354       break;;
3355  esac
3356done
3357else
3358  $as_echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363as_fn_error "cannot compute suffix of object files: cannot compile
3364See \`config.log' for more details." "$LINENO" 5; }
3365fi
3366rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3369$as_echo "$ac_cv_objext" >&6; }
3370OBJEXT=$ac_cv_objext
3371ac_objext=$OBJEXT
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3373$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383#ifndef __GNUC__
3384       choke me
3385#endif
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_compiler_gnu=yes
3393else
3394  ac_compiler_gnu=no
3395fi
3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397ac_cv_c_compiler_gnu=$ac_compiler_gnu
3398
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3401$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3402if test $ac_compiler_gnu = yes; then
3403  GCC=yes
3404else
3405  GCC=
3406fi
3407ac_test_CFLAGS=${CFLAGS+set}
3408ac_save_CFLAGS=$CFLAGS
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3410$as_echo_n "checking whether $CC accepts -g... " >&6; }
3411if test "${ac_cv_prog_cc_g+set}" = set; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  ac_save_c_werror_flag=$ac_c_werror_flag
3415   ac_c_werror_flag=yes
3416   ac_cv_prog_cc_g=no
3417   CFLAGS="-g"
3418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h.  */
3420
3421int
3422main ()
3423{
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429if ac_fn_c_try_compile "$LINENO"; then :
3430  ac_cv_prog_cc_g=yes
3431else
3432  CFLAGS=""
3433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435
3436int
3437main ()
3438{
3439
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444if ac_fn_c_try_compile "$LINENO"; then :
3445
3446else
3447  ac_c_werror_flag=$ac_save_c_werror_flag
3448	 CFLAGS="-g"
3449	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"; then :
3461  ac_cv_prog_cc_g=yes
3462fi
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466fi
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468   ac_c_werror_flag=$ac_save_c_werror_flag
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3471$as_echo "$ac_cv_prog_cc_g" >&6; }
3472if test "$ac_test_CFLAGS" = set; then
3473  CFLAGS=$ac_save_CFLAGS
3474elif test $ac_cv_prog_cc_g = yes; then
3475  if test "$GCC" = yes; then
3476    CFLAGS="-g -O2"
3477  else
3478    CFLAGS="-g"
3479  fi
3480else
3481  if test "$GCC" = yes; then
3482    CFLAGS="-O2"
3483  else
3484    CFLAGS=
3485  fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3488$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3489if test "${ac_cv_prog_cc_c89+set}" = set; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  ac_cv_prog_cc_c89=no
3493ac_save_CC=$CC
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496#include <stdarg.h>
3497#include <stdio.h>
3498#include <sys/types.h>
3499#include <sys/stat.h>
3500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3501struct buf { int x; };
3502FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503static char *e (p, i)
3504     char **p;
3505     int i;
3506{
3507  return p[i];
3508}
3509static char *f (char * (*g) (char **, int), char **p, ...)
3510{
3511  char *s;
3512  va_list v;
3513  va_start (v,p);
3514  s = g (p, va_arg (v,int));
3515  va_end (v);
3516  return s;
3517}
3518
3519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3520   function prototypes and stuff, but not '\xHH' hex character constants.
3521   These don't provoke an error unfortunately, instead are silently treated
3522   as 'x'.  The following induces an error, until -std is added to get
3523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3524   array size at least.  It's necessary to write '\x00'==0 to get something
3525   that's true only with -std.  */
3526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529   inside strings and character constants.  */
3530#define FOO(x) 'x'
3531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532
3533int test (int i, double x);
3534struct s1 {int (*f) (int a);};
3535struct s2 {int (*f) (double a);};
3536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3537int argc;
3538char **argv;
3539int
3540main ()
3541{
3542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549do
3550  CC="$ac_save_CC $ac_arg"
3551  if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_c89=$ac_arg
3553fi
3554rm -f core conftest.err conftest.$ac_objext
3555  test "x$ac_cv_prog_cc_c89" != "xno" && break
3556done
3557rm -f conftest.$ac_ext
3558CC=$ac_save_CC
3559
3560fi
3561# AC_CACHE_VAL
3562case "x$ac_cv_prog_cc_c89" in
3563  x)
3564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565$as_echo "none needed" >&6; } ;;
3566  xno)
3567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568$as_echo "unsupported" >&6; } ;;
3569  *)
3570    CC="$CC $ac_cv_prog_cc_c89"
3571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573esac
3574if test "x$ac_cv_prog_cc_c89" != xno; then :
3575
3576fi
3577
3578ac_ext=c
3579ac_cpp='$CPP $CPPFLAGS'
3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583DEPDIR="${am__leading_dot}deps"
3584
3585ac_config_commands="$ac_config_commands depfiles"
3586
3587
3588am_make=${MAKE-make}
3589cat > confinc << 'END'
3590am__doit:
3591	@echo done
3592.PHONY: am__doit
3593END
3594# If we don't find an include directive, just comment out the code.
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3596$as_echo_n "checking for style of include used by $am_make... " >&6; }
3597am__include="#"
3598am__quote=
3599_am_result=none
3600# First try GNU make style include.
3601echo "include confinc" > confmf
3602# We grep out `Entering directory' and `Leaving directory'
3603# messages which can occur if `w' ends up in MAKEFLAGS.
3604# In particular we don't look at `^make:' because GNU make might
3605# be invoked under some other name (usually "gmake"), in which
3606# case it prints its new name instead of `make'.
3607if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3608   am__include=include
3609   am__quote=
3610   _am_result=GNU
3611fi
3612# Now try BSD make style include.
3613if test "$am__include" = "#"; then
3614   echo '.include "confinc"' > confmf
3615   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3616      am__include=.include
3617      am__quote="\""
3618      _am_result=BSD
3619   fi
3620fi
3621
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3624$as_echo "$_am_result" >&6; }
3625rm -f confinc confmf
3626
3627@%:@ Check whether --enable-dependency-tracking was given.
3628if test "${enable_dependency_tracking+set}" = set; then :
3629  enableval=$enable_dependency_tracking;
3630fi
3631
3632if test "x$enable_dependency_tracking" != xno; then
3633  am_depcomp="$ac_aux_dir/depcomp"
3634  AMDEPBACKSLASH='\'
3635fi
3636
3637
3638if test "x$enable_dependency_tracking" != xno; then
3639  AMDEP_TRUE=
3640  AMDEP_FALSE='#'
3641else
3642  AMDEP_TRUE='#'
3643  AMDEP_FALSE=
3644fi
3645
3646
3647
3648
3649depcc="$CC"   am_compiler_list=
3650
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3652$as_echo_n "checking dependency style of $depcc... " >&6; }
3653if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657  # We make a subdir and do the tests there.  Otherwise we can end up
3658  # making bogus files that we don't know about and never remove.  For
3659  # instance it was reported that on HP-UX the gcc test will end up
3660  # making a dummy file named `D' -- because `-MD' means `put the output
3661  # in D'.
3662  mkdir conftest.dir
3663  # Copy depcomp to subdir because otherwise we won't find it if we're
3664  # using a relative directory.
3665  cp "$am_depcomp" conftest.dir
3666  cd conftest.dir
3667  # We will build objects and dependencies in a subdirectory because
3668  # it helps to detect inapplicable dependency modes.  For instance
3669  # both Tru64's cc and ICC support -MD to output dependencies as a
3670  # side effect of compilation, but ICC will put the dependencies in
3671  # the current directory while Tru64 will put them in the object
3672  # directory.
3673  mkdir sub
3674
3675  am_cv_CC_dependencies_compiler_type=none
3676  if test "$am_compiler_list" = ""; then
3677     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678  fi
3679  for depmode in $am_compiler_list; do
3680    # Setup a source with many dependencies, because some compilers
3681    # like to wrap large dependency lists on column 80 (with \), and
3682    # we should not choose a depcomp mode which is confused by this.
3683    #
3684    # We need to recreate these files for each test, as the compiler may
3685    # overwrite some of them when testing with obscure command lines.
3686    # This happens at least with the AIX C compiler.
3687    : > sub/conftest.c
3688    for i in 1 2 3 4 5 6; do
3689      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691      # Solaris 8's {/usr,}/bin/sh.
3692      touch sub/conftst$i.h
3693    done
3694    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696    case $depmode in
3697    nosideeffect)
3698      # after this tag, mechanisms are not by side-effect, so they'll
3699      # only be used when explicitly requested
3700      if test "x$enable_dependency_tracking" = xyes; then
3701	continue
3702      else
3703	break
3704      fi
3705      ;;
3706    none) break ;;
3707    esac
3708    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709    # mode.  It turns out that the SunPro C++ compiler does not properly
3710    # handle `-M -o', and we need to detect this.
3711    if depmode=$depmode \
3712       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715         >/dev/null 2>conftest.err &&
3716       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719      # icc doesn't choke on unknown options, it will just issue warnings
3720      # or remarks (even with -Werror).  So we grep stderr for any message
3721      # that says an option was ignored or not supported.
3722      # When given -MP, icc 7.0 and 7.1 complain thusly:
3723      #   icc: Command line warning: ignoring option '-M'; no argument required
3724      # The diagnosis changed in icc 8.0:
3725      #   icc: Command line remark: option '-MP' not supported
3726      if (grep 'ignoring option' conftest.err ||
3727          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728        am_cv_CC_dependencies_compiler_type=$depmode
3729        break
3730      fi
3731    fi
3732  done
3733
3734  cd ..
3735  rm -rf conftest.dir
3736else
3737  am_cv_CC_dependencies_compiler_type=none
3738fi
3739
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3742$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3743CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745
3746
3747if
3748  test "x$enable_dependency_tracking" != xno \
3749  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750  am__fastdepCC_TRUE=
3751  am__fastdepCC_FALSE='#'
3752else
3753  am__fastdepCC_TRUE='#'
3754  am__fastdepCC_FALSE=
3755fi
3756
3757
3758
3759if test -n "$ac_tool_prefix"; then
3760  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3761set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_RANLIB+set}" = set; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -n "$RANLIB"; then
3768  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787RANLIB=$ac_cv_prog_RANLIB
3788if test -n "$RANLIB"; then
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3790$as_echo "$RANLIB" >&6; }
3791else
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
3794fi
3795
3796
3797fi
3798if test -z "$ac_cv_prog_RANLIB"; then
3799  ac_ct_RANLIB=$RANLIB
3800  # Extract the first word of "ranlib", so it can be a program name with args.
3801set dummy ranlib; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  if test -n "$ac_ct_RANLIB"; then
3808  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815    for ac_exec_ext in '' $ac_executable_extensions; do
3816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817    ac_cv_prog_ac_ct_RANLIB="ranlib"
3818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822  done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3828if test -n "$ac_ct_RANLIB"; then
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3830$as_echo "$ac_ct_RANLIB" >&6; }
3831else
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836  if test "x$ac_ct_RANLIB" = x; then
3837    RANLIB=":"
3838  else
3839    case $cross_compiling:$ac_tool_warned in
3840yes:)
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843ac_tool_warned=yes ;;
3844esac
3845    RANLIB=$ac_ct_RANLIB
3846  fi
3847else
3848  RANLIB="$ac_cv_prog_RANLIB"
3849fi
3850
3851ac_ext=c
3852ac_cpp='$CPP $CPPFLAGS'
3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3857$as_echo_n "checking how to run the C preprocessor... " >&6; }
3858# On Suns, sometimes $CPP names a directory.
3859if test -n "$CPP" && test -d "$CPP"; then
3860  CPP=
3861fi
3862if test -z "$CPP"; then
3863  if test "${ac_cv_prog_CPP+set}" = set; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866      # Double quotes because CPP needs to be expanded
3867    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3868    do
3869      ac_preproc_ok=false
3870for ac_c_preproc_warn_flag in '' yes
3871do
3872  # Use a header file that comes with gcc, so configuring glibc
3873  # with a fresh cross-compiler works.
3874  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875  # <limits.h> exists even on freestanding compilers.
3876  # On the NeXT, cc -E runs the code through the compiler's parser,
3877  # not just through cpp. "Syntax error" is here to catch this case.
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880@%:@ifdef __STDC__
3881@%:@ include <limits.h>
3882@%:@else
3883@%:@ include <assert.h>
3884@%:@endif
3885		     Syntax error
3886_ACEOF
3887if ac_fn_c_try_cpp "$LINENO"; then :
3888
3889else
3890  # Broken: fails on valid input.
3891continue
3892fi
3893rm -f conftest.err conftest.$ac_ext
3894
3895  # OK, works on sane cases.  Now check whether nonexistent headers
3896  # can be detected and how.
3897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899@%:@include <ac_nonexistent.h>
3900_ACEOF
3901if ac_fn_c_try_cpp "$LINENO"; then :
3902  # Broken: success on invalid input.
3903continue
3904else
3905  # Passes both tests.
3906ac_preproc_ok=:
3907break
3908fi
3909rm -f conftest.err conftest.$ac_ext
3910
3911done
3912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3913rm -f conftest.err conftest.$ac_ext
3914if $ac_preproc_ok; then :
3915  break
3916fi
3917
3918    done
3919    ac_cv_prog_CPP=$CPP
3920
3921fi
3922  CPP=$ac_cv_prog_CPP
3923else
3924  ac_cv_prog_CPP=$CPP
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3927$as_echo "$CPP" >&6; }
3928ac_preproc_ok=false
3929for ac_c_preproc_warn_flag in '' yes
3930do
3931  # Use a header file that comes with gcc, so configuring glibc
3932  # with a fresh cross-compiler works.
3933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934  # <limits.h> exists even on freestanding compilers.
3935  # On the NeXT, cc -E runs the code through the compiler's parser,
3936  # not just through cpp. "Syntax error" is here to catch this case.
3937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939@%:@ifdef __STDC__
3940@%:@ include <limits.h>
3941@%:@else
3942@%:@ include <assert.h>
3943@%:@endif
3944		     Syntax error
3945_ACEOF
3946if ac_fn_c_try_cpp "$LINENO"; then :
3947
3948else
3949  # Broken: fails on valid input.
3950continue
3951fi
3952rm -f conftest.err conftest.$ac_ext
3953
3954  # OK, works on sane cases.  Now check whether nonexistent headers
3955  # can be detected and how.
3956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958@%:@include <ac_nonexistent.h>
3959_ACEOF
3960if ac_fn_c_try_cpp "$LINENO"; then :
3961  # Broken: success on invalid input.
3962continue
3963else
3964  # Passes both tests.
3965ac_preproc_ok=:
3966break
3967fi
3968rm -f conftest.err conftest.$ac_ext
3969
3970done
3971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972rm -f conftest.err conftest.$ac_ext
3973if $ac_preproc_ok; then :
3974
3975else
3976  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978as_fn_error "C preprocessor \"$CPP\" fails sanity check
3979See \`config.log' for more details." "$LINENO" 5; }
3980fi
3981
3982ac_ext=c
3983ac_cpp='$CPP $CPPFLAGS'
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988# Extract the first word of "ar", so it can be a program name with args.
3989set dummy ar; ac_word=$2
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_AR+set}" = set; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -n "$AR"; then
3996  ac_cv_prog_AR="$AR" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005    ac_cv_prog_AR="ar"
4006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007    break 2
4008  fi
4009done
4010  done
4011IFS=$as_save_IFS
4012
4013  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4014fi
4015fi
4016AR=$ac_cv_prog_AR
4017if test -n "$AR"; then
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4019$as_echo "$AR" >&6; }
4020else
4021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023fi
4024
4025
4026# Perl is needed for the test suite (only)
4027# Extract the first word of "perl", so it can be a program name with args.
4028set dummy perl; ac_word=$2
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030$as_echo_n "checking for $ac_word... " >&6; }
4031if test "${ac_cv_prog_PERL+set}" = set; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  if test -n "$PERL"; then
4035  ac_cv_prog_PERL="$PERL" # Let the user override the test.
4036else
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040  IFS=$as_save_IFS
4041  test -z "$as_dir" && as_dir=.
4042    for ac_exec_ext in '' $ac_executable_extensions; do
4043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044    ac_cv_prog_PERL="perl"
4045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046    break 2
4047  fi
4048done
4049  done
4050IFS=$as_save_IFS
4051
4052  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
4053fi
4054fi
4055PERL=$ac_cv_prog_PERL
4056if test -n "$PERL"; then
4057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4058$as_echo "$PERL" >&6; }
4059else
4060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
4062fi
4063
4064
4065
4066# Specialized system macros
4067# Make sure we can run config.sub.
4068$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4069  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4072$as_echo_n "checking build system type... " >&6; }
4073if test "${ac_cv_build+set}" = set; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  ac_build_alias=$build_alias
4077test "x$ac_build_alias" = x &&
4078  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4079test "x$ac_build_alias" = x &&
4080  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4081ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4082  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4083
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4086$as_echo "$ac_cv_build" >&6; }
4087case $ac_cv_build in
4088*-*-*) ;;
4089*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4090esac
4091build=$ac_cv_build
4092ac_save_IFS=$IFS; IFS='-'
4093set x $ac_cv_build
4094shift
4095build_cpu=$1
4096build_vendor=$2
4097shift; shift
4098# Remember, the first character of IFS is used to create $*,
4099# except with old shells:
4100build_os=$*
4101IFS=$ac_save_IFS
4102case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4103
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4106$as_echo_n "checking host system type... " >&6; }
4107if test "${ac_cv_host+set}" = set; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  if test "x$host_alias" = x; then
4111  ac_cv_host=$ac_cv_build
4112else
4113  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4114    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4115fi
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4119$as_echo "$ac_cv_host" >&6; }
4120case $ac_cv_host in
4121*-*-*) ;;
4122*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4123esac
4124host=$ac_cv_host
4125ac_save_IFS=$IFS; IFS='-'
4126set x $ac_cv_host
4127shift
4128host_cpu=$1
4129host_vendor=$2
4130shift; shift
4131# Remember, the first character of IFS is used to create $*,
4132# except with old shells:
4133host_os=$*
4134IFS=$ac_save_IFS
4135case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4136
4137
4138
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4141$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4142if test "${ac_cv_path_GREP+set}" = set; then :
4143  $as_echo_n "(cached) " >&6
4144else
4145  if test -z "$GREP"; then
4146  ac_path_GREP_found=false
4147  # Loop through the user's path and test for each of PROGNAME-LIST
4148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153    for ac_prog in grep ggrep; do
4154    for ac_exec_ext in '' $ac_executable_extensions; do
4155      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4156      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4157# Check for GNU ac_path_GREP and select it if it is found.
4158  # Check for GNU $ac_path_GREP
4159case `"$ac_path_GREP" --version 2>&1` in
4160*GNU*)
4161  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4162*)
4163  ac_count=0
4164  $as_echo_n 0123456789 >"conftest.in"
4165  while :
4166  do
4167    cat "conftest.in" "conftest.in" >"conftest.tmp"
4168    mv "conftest.tmp" "conftest.in"
4169    cp "conftest.in" "conftest.nl"
4170    $as_echo 'GREP' >> "conftest.nl"
4171    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173    as_fn_arith $ac_count + 1 && ac_count=$as_val
4174    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4175      # Best one so far, save it but keep looking for a better one
4176      ac_cv_path_GREP="$ac_path_GREP"
4177      ac_path_GREP_max=$ac_count
4178    fi
4179    # 10*(2^10) chars as input seems more than enough
4180    test $ac_count -gt 10 && break
4181  done
4182  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183esac
4184
4185      $ac_path_GREP_found && break 3
4186    done
4187  done
4188  done
4189IFS=$as_save_IFS
4190  if test -z "$ac_cv_path_GREP"; then
4191    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192  fi
4193else
4194  ac_cv_path_GREP=$GREP
4195fi
4196
4197fi
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4199$as_echo "$ac_cv_path_GREP" >&6; }
4200 GREP="$ac_cv_path_GREP"
4201
4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4204$as_echo_n "checking for egrep... " >&6; }
4205if test "${ac_cv_path_EGREP+set}" = set; then :
4206  $as_echo_n "(cached) " >&6
4207else
4208  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4209   then ac_cv_path_EGREP="$GREP -E"
4210   else
4211     if test -z "$EGREP"; then
4212  ac_path_EGREP_found=false
4213  # Loop through the user's path and test for each of PROGNAME-LIST
4214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_prog in egrep; do
4220    for ac_exec_ext in '' $ac_executable_extensions; do
4221      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4222      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4223# Check for GNU ac_path_EGREP and select it if it is found.
4224  # Check for GNU $ac_path_EGREP
4225case `"$ac_path_EGREP" --version 2>&1` in
4226*GNU*)
4227  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4228*)
4229  ac_count=0
4230  $as_echo_n 0123456789 >"conftest.in"
4231  while :
4232  do
4233    cat "conftest.in" "conftest.in" >"conftest.tmp"
4234    mv "conftest.tmp" "conftest.in"
4235    cp "conftest.in" "conftest.nl"
4236    $as_echo 'EGREP' >> "conftest.nl"
4237    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239    as_fn_arith $ac_count + 1 && ac_count=$as_val
4240    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4241      # Best one so far, save it but keep looking for a better one
4242      ac_cv_path_EGREP="$ac_path_EGREP"
4243      ac_path_EGREP_max=$ac_count
4244    fi
4245    # 10*(2^10) chars as input seems more than enough
4246    test $ac_count -gt 10 && break
4247  done
4248  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249esac
4250
4251      $ac_path_EGREP_found && break 3
4252    done
4253  done
4254  done
4255IFS=$as_save_IFS
4256  if test -z "$ac_cv_path_EGREP"; then
4257    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258  fi
4259else
4260  ac_cv_path_EGREP=$EGREP
4261fi
4262
4263   fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4266$as_echo "$ac_cv_path_EGREP" >&6; }
4267 EGREP="$ac_cv_path_EGREP"
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4271$as_echo_n "checking for ANSI C header files... " >&6; }
4272if test "${ac_cv_header_stdc+set}" = set; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277#include <stdlib.h>
4278#include <stdarg.h>
4279#include <string.h>
4280#include <float.h>
4281
4282int
4283main ()
4284{
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290if ac_fn_c_try_compile "$LINENO"; then :
4291  ac_cv_header_stdc=yes
4292else
4293  ac_cv_header_stdc=no
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296
4297if test $ac_cv_header_stdc = yes; then
4298  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301#include <string.h>
4302
4303_ACEOF
4304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305  $EGREP "memchr" >/dev/null 2>&1; then :
4306
4307else
4308  ac_cv_header_stdc=no
4309fi
4310rm -f conftest*
4311
4312fi
4313
4314if test $ac_cv_header_stdc = yes; then
4315  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h.  */
4318#include <stdlib.h>
4319
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322  $EGREP "free" >/dev/null 2>&1; then :
4323
4324else
4325  ac_cv_header_stdc=no
4326fi
4327rm -f conftest*
4328
4329fi
4330
4331if test $ac_cv_header_stdc = yes; then
4332  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4333  if test "$cross_compiling" = yes; then :
4334  :
4335else
4336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <ctype.h>
4339#include <stdlib.h>
4340#if ((' ' & 0x0FF) == 0x020)
4341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343#else
4344# define ISLOWER(c) \
4345		   (('a' <= (c) && (c) <= 'i') \
4346		     || ('j' <= (c) && (c) <= 'r') \
4347		     || ('s' <= (c) && (c) <= 'z'))
4348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4349#endif
4350
4351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4352int
4353main ()
4354{
4355  int i;
4356  for (i = 0; i < 256; i++)
4357    if (XOR (islower (i), ISLOWER (i))
4358	|| toupper (i) != TOUPPER (i))
4359      return 2;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_c_try_run "$LINENO"; then :
4364
4365else
4366  ac_cv_header_stdc=no
4367fi
4368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4369  conftest.$ac_objext conftest.beam conftest.$ac_ext
4370fi
4371
4372fi
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4375$as_echo "$ac_cv_header_stdc" >&6; }
4376if test $ac_cv_header_stdc = yes; then
4377
4378$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4379
4380fi
4381
4382# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4384		  inttypes.h stdint.h unistd.h
4385do :
4386  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4388"
4389eval as_val=\$$as_ac_Header
4390   if test "x$as_val" = x""yes; then :
4391  cat >>confdefs.h <<_ACEOF
4392@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393_ACEOF
4394
4395fi
4396
4397done
4398
4399
4400
4401  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4402if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4403  MINIX=yes
4404else
4405  MINIX=
4406fi
4407
4408
4409  if test "$MINIX" = yes; then
4410
4411$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4412
4413
4414$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4415
4416
4417$as_echo "@%:@define _MINIX 1" >>confdefs.h
4418
4419  fi
4420
4421
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4423$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4424if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h.  */
4429
4430#	  define __EXTENSIONS__ 1
4431	  $ac_includes_default
4432int
4433main ()
4434{
4435
4436  ;
4437  return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"; then :
4441  ac_cv_safe_to_define___extensions__=yes
4442else
4443  ac_cv_safe_to_define___extensions__=no
4444fi
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4448$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4449  test $ac_cv_safe_to_define___extensions__ = yes &&
4450    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4451
4452  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4453
4454  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4455
4456  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4457
4458  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4459
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4463$as_echo_n "checking for library containing strerror... " >&6; }
4464if test "${ac_cv_search_strerror+set}" = set; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  ac_func_search_save_LIBS=$LIBS
4468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470
4471/* Override any GCC internal prototype to avoid an error.
4472   Use char because int might match the return type of a GCC
4473   builtin and then its argument prototype would still apply.  */
4474#ifdef __cplusplus
4475extern "C"
4476#endif
4477char strerror ();
4478int
4479main ()
4480{
4481return strerror ();
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486for ac_lib in '' cposix; do
4487  if test -z "$ac_lib"; then
4488    ac_res="none required"
4489  else
4490    ac_res=-l$ac_lib
4491    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4492  fi
4493  if ac_fn_c_try_link "$LINENO"; then :
4494  ac_cv_search_strerror=$ac_res
4495fi
4496rm -f core conftest.err conftest.$ac_objext \
4497    conftest$ac_exeext
4498  if test "${ac_cv_search_strerror+set}" = set; then :
4499  break
4500fi
4501done
4502if test "${ac_cv_search_strerror+set}" = set; then :
4503
4504else
4505  ac_cv_search_strerror=no
4506fi
4507rm conftest.$ac_ext
4508LIBS=$ac_func_search_save_LIBS
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4511$as_echo "$ac_cv_search_strerror" >&6; }
4512ac_res=$ac_cv_search_strerror
4513if test "$ac_res" != no; then :
4514  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4515
4516fi
4517
4518
4519
4520# Needed for ansi2knr
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4522$as_echo_n "checking for function prototypes... " >&6; }
4523if test "$ac_cv_prog_cc_c89" != no; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525$as_echo "yes" >&6; }
4526
4527$as_echo "@%:@define PROTOTYPES 1" >>confdefs.h
4528
4529
4530$as_echo "@%:@define __PROTOTYPES 1" >>confdefs.h
4531
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537
4538if test "$ac_cv_prog_cc_stdc" != no; then
4539  U= ANSI2KNR=
4540else
4541  U=_ ANSI2KNR=./ansi2knr
4542fi
4543# Ensure some checks needed by ansi2knr itself.
4544
4545for ac_header in string.h
4546do :
4547  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4548if test "x$ac_cv_header_string_h" = x""yes; then :
4549  cat >>confdefs.h <<_ACEOF
4550@%:@define HAVE_STRING_H 1
4551_ACEOF
4552
4553fi
4554
4555done
4556
4557
4558
4559# Enable gettext, in "external" mode.
4560
4561
4562
4563        MKINSTALLDIRS=
4564  if test -n "$ac_aux_dir"; then
4565    case "$ac_aux_dir" in
4566      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4567      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4568    esac
4569  fi
4570  if test -z "$MKINSTALLDIRS"; then
4571    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4572  fi
4573
4574
4575
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4577$as_echo_n "checking whether NLS is requested... " >&6; }
4578    @%:@ Check whether --enable-nls was given.
4579if test "${enable_nls+set}" = set; then :
4580  enableval=$enable_nls; USE_NLS=$enableval
4581else
4582  USE_NLS=yes
4583fi
4584
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4586$as_echo "$USE_NLS" >&6; }
4587
4588
4589
4590
4591
4592
4593# Prepare PATH_SEPARATOR.
4594# The user is always right.
4595if test "${PATH_SEPARATOR+set}" != set; then
4596  echo "#! /bin/sh" >conf$$.sh
4597  echo  "exit 0"   >>conf$$.sh
4598  chmod +x conf$$.sh
4599  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4600    PATH_SEPARATOR=';'
4601  else
4602    PATH_SEPARATOR=:
4603  fi
4604  rm -f conf$$.sh
4605fi
4606
4607# Find out how to test for executable files. Don't use a zero-byte file,
4608# as systems may use methods other than mode bits to determine executability.
4609cat >conf$$.file <<_ASEOF
4610#! /bin/sh
4611exit 0
4612_ASEOF
4613chmod +x conf$$.file
4614if test -x conf$$.file >/dev/null 2>&1; then
4615  ac_executable_p="test -x"
4616else
4617  ac_executable_p="test -f"
4618fi
4619rm -f conf$$.file
4620
4621# Extract the first word of "msgfmt", so it can be a program name with args.
4622set dummy msgfmt; ac_word=$2
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624$as_echo_n "checking for $ac_word... " >&6; }
4625if test "${ac_cv_path_MSGFMT+set}" = set; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  case "$MSGFMT" in
4629  [\\/]* | ?:[\\/]*)
4630    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4631    ;;
4632  *)
4633    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4634    for ac_dir in $PATH; do
4635      IFS="$ac_save_IFS"
4636      test -z "$ac_dir" && ac_dir=.
4637      for ac_exec_ext in '' $ac_executable_extensions; do
4638        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4639          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4640     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4641            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4642            break 2
4643          fi
4644        fi
4645      done
4646    done
4647    IFS="$ac_save_IFS"
4648  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4649    ;;
4650esac
4651fi
4652MSGFMT="$ac_cv_path_MSGFMT"
4653if test "$MSGFMT" != ":"; then
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4655$as_echo "$MSGFMT" >&6; }
4656else
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }
4659fi
4660
4661  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4662set dummy gmsgfmt; ac_word=$2
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664$as_echo_n "checking for $ac_word... " >&6; }
4665if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  case $GMSGFMT in
4669  [\\/]* | ?:[\\/]*)
4670  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4671  ;;
4672  *)
4673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678    for ac_exec_ext in '' $ac_executable_extensions; do
4679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685  done
4686IFS=$as_save_IFS
4687
4688  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4689  ;;
4690esac
4691fi
4692GMSGFMT=$ac_cv_path_GMSGFMT
4693if test -n "$GMSGFMT"; then
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4695$as_echo "$GMSGFMT" >&6; }
4696else
4697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699fi
4700
4701
4702
4703
4704# Prepare PATH_SEPARATOR.
4705# The user is always right.
4706if test "${PATH_SEPARATOR+set}" != set; then
4707  echo "#! /bin/sh" >conf$$.sh
4708  echo  "exit 0"   >>conf$$.sh
4709  chmod +x conf$$.sh
4710  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4711    PATH_SEPARATOR=';'
4712  else
4713    PATH_SEPARATOR=:
4714  fi
4715  rm -f conf$$.sh
4716fi
4717
4718# Find out how to test for executable files. Don't use a zero-byte file,
4719# as systems may use methods other than mode bits to determine executability.
4720cat >conf$$.file <<_ASEOF
4721#! /bin/sh
4722exit 0
4723_ASEOF
4724chmod +x conf$$.file
4725if test -x conf$$.file >/dev/null 2>&1; then
4726  ac_executable_p="test -x"
4727else
4728  ac_executable_p="test -f"
4729fi
4730rm -f conf$$.file
4731
4732# Extract the first word of "xgettext", so it can be a program name with args.
4733set dummy xgettext; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  case "$XGETTEXT" in
4740  [\\/]* | ?:[\\/]*)
4741    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4742    ;;
4743  *)
4744    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4745    for ac_dir in $PATH; do
4746      IFS="$ac_save_IFS"
4747      test -z "$ac_dir" && ac_dir=.
4748      for ac_exec_ext in '' $ac_executable_extensions; do
4749        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4750          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4751     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4752            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4753            break 2
4754          fi
4755        fi
4756      done
4757    done
4758    IFS="$ac_save_IFS"
4759  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4760    ;;
4761esac
4762fi
4763XGETTEXT="$ac_cv_path_XGETTEXT"
4764if test "$XGETTEXT" != ":"; then
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4766$as_echo "$XGETTEXT" >&6; }
4767else
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772    rm -f messages.po
4773
4774
4775# Prepare PATH_SEPARATOR.
4776# The user is always right.
4777if test "${PATH_SEPARATOR+set}" != set; then
4778  echo "#! /bin/sh" >conf$$.sh
4779  echo  "exit 0"   >>conf$$.sh
4780  chmod +x conf$$.sh
4781  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4782    PATH_SEPARATOR=';'
4783  else
4784    PATH_SEPARATOR=:
4785  fi
4786  rm -f conf$$.sh
4787fi
4788
4789# Find out how to test for executable files. Don't use a zero-byte file,
4790# as systems may use methods other than mode bits to determine executability.
4791cat >conf$$.file <<_ASEOF
4792#! /bin/sh
4793exit 0
4794_ASEOF
4795chmod +x conf$$.file
4796if test -x conf$$.file >/dev/null 2>&1; then
4797  ac_executable_p="test -x"
4798else
4799  ac_executable_p="test -f"
4800fi
4801rm -f conf$$.file
4802
4803# Extract the first word of "msgmerge", so it can be a program name with args.
4804set dummy msgmerge; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  case "$MSGMERGE" in
4811  [\\/]* | ?:[\\/]*)
4812    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4813    ;;
4814  *)
4815    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4816    for ac_dir in $PATH; do
4817      IFS="$ac_save_IFS"
4818      test -z "$ac_dir" && ac_dir=.
4819      for ac_exec_ext in '' $ac_executable_extensions; do
4820        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4821          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4822            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4823            break 2
4824          fi
4825        fi
4826      done
4827    done
4828    IFS="$ac_save_IFS"
4829  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4830    ;;
4831esac
4832fi
4833MSGMERGE="$ac_cv_path_MSGMERGE"
4834if test "$MSGMERGE" != ":"; then
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4836$as_echo "$MSGMERGE" >&6; }
4837else
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843      if test "$GMSGFMT" != ":"; then
4844            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4845       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4846      : ;
4847    else
4848      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4850$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4851      GMSGFMT=":"
4852    fi
4853  fi
4854
4855      if test "$XGETTEXT" != ":"; then
4856            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4857       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4858      : ;
4859    else
4860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
4861$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4862      XGETTEXT=":"
4863    fi
4864        rm -f messages.po
4865  fi
4866
4867  ac_config_commands="$ac_config_commands default-1"
4868
4869
4870
4871      if test "X$prefix" = "XNONE"; then
4872    acl_final_prefix="$ac_default_prefix"
4873  else
4874    acl_final_prefix="$prefix"
4875  fi
4876  if test "X$exec_prefix" = "XNONE"; then
4877    acl_final_exec_prefix='${prefix}'
4878  else
4879    acl_final_exec_prefix="$exec_prefix"
4880  fi
4881  acl_save_prefix="$prefix"
4882  prefix="$acl_final_prefix"
4883  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4884  prefix="$acl_save_prefix"
4885
4886
4887@%:@ Check whether --with-gnu-ld was given.
4888if test "${with_gnu_ld+set}" = set; then :
4889  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4890else
4891  with_gnu_ld=no
4892fi
4893
4894# Prepare PATH_SEPARATOR.
4895# The user is always right.
4896if test "${PATH_SEPARATOR+set}" != set; then
4897  echo "#! /bin/sh" >conf$$.sh
4898  echo  "exit 0"   >>conf$$.sh
4899  chmod +x conf$$.sh
4900  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4901    PATH_SEPARATOR=';'
4902  else
4903    PATH_SEPARATOR=:
4904  fi
4905  rm -f conf$$.sh
4906fi
4907ac_prog=ld
4908if test "$GCC" = yes; then
4909  # Check if gcc -print-prog-name=ld gives a path.
4910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4911$as_echo_n "checking for ld used by GCC... " >&6; }
4912  case $host in
4913  *-*-mingw*)
4914    # gcc leaves a trailing carriage return which upsets mingw
4915    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4916  *)
4917    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4918  esac
4919  case $ac_prog in
4920    # Accept absolute paths.
4921    [\\/]* | [A-Za-z]:[\\/]*)
4922      re_direlt='/[^/][^/]*/\.\./'
4923      # Canonicalize the path of ld
4924      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4925      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4926	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4927      done
4928      test -z "$LD" && LD="$ac_prog"
4929      ;;
4930  "")
4931    # If it fails, then pretend we aren't using GCC.
4932    ac_prog=ld
4933    ;;
4934  *)
4935    # If it is relative, then search for the first ld in PATH.
4936    with_gnu_ld=unknown
4937    ;;
4938  esac
4939elif test "$with_gnu_ld" = yes; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4941$as_echo_n "checking for GNU ld... " >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4944$as_echo_n "checking for non-GNU ld... " >&6; }
4945fi
4946if test "${acl_cv_path_LD+set}" = set; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  if test -z "$LD"; then
4950  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4951  for ac_dir in $PATH; do
4952    test -z "$ac_dir" && ac_dir=.
4953    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954      acl_cv_path_LD="$ac_dir/$ac_prog"
4955      # Check to see if the program is GNU ld.  I'd rather use --version,
4956      # but apparently some GNU ld's only accept -v.
4957      # Break only if it was the GNU/non-GNU ld that we prefer.
4958      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4959      *GNU* | *'with BFD'*)
4960	test "$with_gnu_ld" != no && break ;;
4961      *)
4962	test "$with_gnu_ld" != yes && break ;;
4963      esac
4964    fi
4965  done
4966  IFS="$ac_save_ifs"
4967else
4968  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4969fi
4970fi
4971
4972LD="$acl_cv_path_LD"
4973if test -n "$LD"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4975$as_echo "$LD" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4982$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4983if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4987case `$LD -v 2>&1 </dev/null` in
4988*GNU* | *'with BFD'*)
4989  acl_cv_prog_gnu_ld=yes ;;
4990*)
4991  acl_cv_prog_gnu_ld=no ;;
4992esac
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4995$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4996with_gnu_ld=$acl_cv_prog_gnu_ld
4997
4998
4999
5000                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5001$as_echo_n "checking for shared library run path origin... " >&6; }
5002if test "${acl_cv_rpath+set}" = set; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005
5006    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5007    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5008    . ./conftest.sh
5009    rm -f ./conftest.sh
5010    acl_cv_rpath=done
5011
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5014$as_echo "$acl_cv_rpath" >&6; }
5015  wl="$acl_cv_wl"
5016  libext="$acl_cv_libext"
5017  shlibext="$acl_cv_shlibext"
5018  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5019  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5020  hardcode_direct="$acl_cv_hardcode_direct"
5021  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5022    @%:@ Check whether --enable-rpath was given.
5023if test "${enable_rpath+set}" = set; then :
5024  enableval=$enable_rpath; :
5025else
5026  enable_rpath=yes
5027fi
5028
5029
5030
5031
5032
5033
5034
5035
5036    use_additional=yes
5037
5038  acl_save_prefix="$prefix"
5039  prefix="$acl_final_prefix"
5040  acl_save_exec_prefix="$exec_prefix"
5041  exec_prefix="$acl_final_exec_prefix"
5042
5043    eval additional_includedir=\"$includedir\"
5044    eval additional_libdir=\"$libdir\"
5045
5046  exec_prefix="$acl_save_exec_prefix"
5047  prefix="$acl_save_prefix"
5048
5049
5050@%:@ Check whether --with-libiconv-prefix was given.
5051if test "${with_libiconv_prefix+set}" = set; then :
5052  withval=$with_libiconv_prefix;
5053    if test "X$withval" = "Xno"; then
5054      use_additional=no
5055    else
5056      if test "X$withval" = "X"; then
5057
5058  acl_save_prefix="$prefix"
5059  prefix="$acl_final_prefix"
5060  acl_save_exec_prefix="$exec_prefix"
5061  exec_prefix="$acl_final_exec_prefix"
5062
5063          eval additional_includedir=\"$includedir\"
5064          eval additional_libdir=\"$libdir\"
5065
5066  exec_prefix="$acl_save_exec_prefix"
5067  prefix="$acl_save_prefix"
5068
5069      else
5070        additional_includedir="$withval/include"
5071        additional_libdir="$withval/lib"
5072      fi
5073    fi
5074
5075fi
5076
5077      LIBICONV=
5078  LTLIBICONV=
5079  INCICONV=
5080  rpathdirs=
5081  ltrpathdirs=
5082  names_already_handled=
5083  names_next_round='iconv '
5084  while test -n "$names_next_round"; do
5085    names_this_round="$names_next_round"
5086    names_next_round=
5087    for name in $names_this_round; do
5088      already_handled=
5089      for n in $names_already_handled; do
5090        if test "$n" = "$name"; then
5091          already_handled=yes
5092          break
5093        fi
5094      done
5095      if test -z "$already_handled"; then
5096        names_already_handled="$names_already_handled $name"
5097                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5098        eval value=\"\$HAVE_LIB$uppername\"
5099        if test -n "$value"; then
5100          if test "$value" = yes; then
5101            eval value=\"\$LIB$uppername\"
5102            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5103            eval value=\"\$LTLIB$uppername\"
5104            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5105          else
5106                                    :
5107          fi
5108        else
5109                              found_dir=
5110          found_la=
5111          found_so=
5112          found_a=
5113          if test $use_additional = yes; then
5114            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5115              found_dir="$additional_libdir"
5116              found_so="$additional_libdir/lib$name.$shlibext"
5117              if test -f "$additional_libdir/lib$name.la"; then
5118                found_la="$additional_libdir/lib$name.la"
5119              fi
5120            else
5121              if test -f "$additional_libdir/lib$name.$libext"; then
5122                found_dir="$additional_libdir"
5123                found_a="$additional_libdir/lib$name.$libext"
5124                if test -f "$additional_libdir/lib$name.la"; then
5125                  found_la="$additional_libdir/lib$name.la"
5126                fi
5127              fi
5128            fi
5129          fi
5130          if test "X$found_dir" = "X"; then
5131            for x in $LDFLAGS $LTLIBICONV; do
5132
5133  acl_save_prefix="$prefix"
5134  prefix="$acl_final_prefix"
5135  acl_save_exec_prefix="$exec_prefix"
5136  exec_prefix="$acl_final_exec_prefix"
5137  eval x=\"$x\"
5138  exec_prefix="$acl_save_exec_prefix"
5139  prefix="$acl_save_prefix"
5140
5141              case "$x" in
5142                -L*)
5143                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5144                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5145                    found_dir="$dir"
5146                    found_so="$dir/lib$name.$shlibext"
5147                    if test -f "$dir/lib$name.la"; then
5148                      found_la="$dir/lib$name.la"
5149                    fi
5150                  else
5151                    if test -f "$dir/lib$name.$libext"; then
5152                      found_dir="$dir"
5153                      found_a="$dir/lib$name.$libext"
5154                      if test -f "$dir/lib$name.la"; then
5155                        found_la="$dir/lib$name.la"
5156                      fi
5157                    fi
5158                  fi
5159                  ;;
5160              esac
5161              if test "X$found_dir" != "X"; then
5162                break
5163              fi
5164            done
5165          fi
5166          if test "X$found_dir" != "X"; then
5167                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5168            if test "X$found_so" != "X"; then
5169                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5170                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5171              else
5172                                                                                haveit=
5173                for x in $ltrpathdirs; do
5174                  if test "X$x" = "X$found_dir"; then
5175                    haveit=yes
5176                    break
5177                  fi
5178                done
5179                if test -z "$haveit"; then
5180                  ltrpathdirs="$ltrpathdirs $found_dir"
5181                fi
5182                                if test "$hardcode_direct" = yes; then
5183                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5184                else
5185                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5186                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5187                                                            haveit=
5188                    for x in $rpathdirs; do
5189                      if test "X$x" = "X$found_dir"; then
5190                        haveit=yes
5191                        break
5192                      fi
5193                    done
5194                    if test -z "$haveit"; then
5195                      rpathdirs="$rpathdirs $found_dir"
5196                    fi
5197                  else
5198                                                                                haveit=
5199                    for x in $LDFLAGS $LIBICONV; do
5200
5201  acl_save_prefix="$prefix"
5202  prefix="$acl_final_prefix"
5203  acl_save_exec_prefix="$exec_prefix"
5204  exec_prefix="$acl_final_exec_prefix"
5205  eval x=\"$x\"
5206  exec_prefix="$acl_save_exec_prefix"
5207  prefix="$acl_save_prefix"
5208
5209                      if test "X$x" = "X-L$found_dir"; then
5210                        haveit=yes
5211                        break
5212                      fi
5213                    done
5214                    if test -z "$haveit"; then
5215                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5216                    fi
5217                    if test "$hardcode_minus_L" != no; then
5218                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5219                    else
5220                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5221                    fi
5222                  fi
5223                fi
5224              fi
5225            else
5226              if test "X$found_a" != "X"; then
5227                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5228              else
5229                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5230              fi
5231            fi
5232                        additional_includedir=
5233            case "$found_dir" in
5234              */lib | */lib/)
5235                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5236                additional_includedir="$basedir/include"
5237                ;;
5238            esac
5239            if test "X$additional_includedir" != "X"; then
5240                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5241                haveit=
5242                if test "X$additional_includedir" = "X/usr/local/include"; then
5243                  if test -n "$GCC"; then
5244                    case $host_os in
5245                      linux*) haveit=yes;;
5246                    esac
5247                  fi
5248                fi
5249                if test -z "$haveit"; then
5250                  for x in $CPPFLAGS $INCICONV; do
5251
5252  acl_save_prefix="$prefix"
5253  prefix="$acl_final_prefix"
5254  acl_save_exec_prefix="$exec_prefix"
5255  exec_prefix="$acl_final_exec_prefix"
5256  eval x=\"$x\"
5257  exec_prefix="$acl_save_exec_prefix"
5258  prefix="$acl_save_prefix"
5259
5260                    if test "X$x" = "X-I$additional_includedir"; then
5261                      haveit=yes
5262                      break
5263                    fi
5264                  done
5265                  if test -z "$haveit"; then
5266                    if test -d "$additional_includedir"; then
5267                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5268                    fi
5269                  fi
5270                fi
5271              fi
5272            fi
5273                        if test -n "$found_la"; then
5274                                                        save_libdir="$libdir"
5275              case "$found_la" in
5276                */* | *\\*) . "$found_la" ;;
5277                *) . "./$found_la" ;;
5278              esac
5279              libdir="$save_libdir"
5280                            for dep in $dependency_libs; do
5281                case "$dep" in
5282                  -L*)
5283                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5284                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5285                      haveit=
5286                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5287                        if test -n "$GCC"; then
5288                          case $host_os in
5289                            linux*) haveit=yes;;
5290                          esac
5291                        fi
5292                      fi
5293                      if test -z "$haveit"; then
5294                        haveit=
5295                        for x in $LDFLAGS $LIBICONV; do
5296
5297  acl_save_prefix="$prefix"
5298  prefix="$acl_final_prefix"
5299  acl_save_exec_prefix="$exec_prefix"
5300  exec_prefix="$acl_final_exec_prefix"
5301  eval x=\"$x\"
5302  exec_prefix="$acl_save_exec_prefix"
5303  prefix="$acl_save_prefix"
5304
5305                          if test "X$x" = "X-L$additional_libdir"; then
5306                            haveit=yes
5307                            break
5308                          fi
5309                        done
5310                        if test -z "$haveit"; then
5311                          if test -d "$additional_libdir"; then
5312                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5313                          fi
5314                        fi
5315                        haveit=
5316                        for x in $LDFLAGS $LTLIBICONV; do
5317
5318  acl_save_prefix="$prefix"
5319  prefix="$acl_final_prefix"
5320  acl_save_exec_prefix="$exec_prefix"
5321  exec_prefix="$acl_final_exec_prefix"
5322  eval x=\"$x\"
5323  exec_prefix="$acl_save_exec_prefix"
5324  prefix="$acl_save_prefix"
5325
5326                          if test "X$x" = "X-L$additional_libdir"; then
5327                            haveit=yes
5328                            break
5329                          fi
5330                        done
5331                        if test -z "$haveit"; then
5332                          if test -d "$additional_libdir"; then
5333                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5334                          fi
5335                        fi
5336                      fi
5337                    fi
5338                    ;;
5339                  -R*)
5340                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5341                    if test "$enable_rpath" != no; then
5342                                                                  haveit=
5343                      for x in $rpathdirs; do
5344                        if test "X$x" = "X$dir"; then
5345                          haveit=yes
5346                          break
5347                        fi
5348                      done
5349                      if test -z "$haveit"; then
5350                        rpathdirs="$rpathdirs $dir"
5351                      fi
5352                                                                  haveit=
5353                      for x in $ltrpathdirs; do
5354                        if test "X$x" = "X$dir"; then
5355                          haveit=yes
5356                          break
5357                        fi
5358                      done
5359                      if test -z "$haveit"; then
5360                        ltrpathdirs="$ltrpathdirs $dir"
5361                      fi
5362                    fi
5363                    ;;
5364                  -l*)
5365                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5366                    ;;
5367                  *.la)
5368                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5369                    ;;
5370                  *)
5371                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5372                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5373                    ;;
5374                esac
5375              done
5376            fi
5377          else
5378                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5379            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5380          fi
5381        fi
5382      fi
5383    done
5384  done
5385  if test "X$rpathdirs" != "X"; then
5386    if test -n "$hardcode_libdir_separator"; then
5387                        alldirs=
5388      for found_dir in $rpathdirs; do
5389        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5390      done
5391            acl_save_libdir="$libdir"
5392      libdir="$alldirs"
5393      eval flag=\"$hardcode_libdir_flag_spec\"
5394      libdir="$acl_save_libdir"
5395      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5396    else
5397            for found_dir in $rpathdirs; do
5398        acl_save_libdir="$libdir"
5399        libdir="$found_dir"
5400        eval flag=\"$hardcode_libdir_flag_spec\"
5401        libdir="$acl_save_libdir"
5402        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5403      done
5404    fi
5405  fi
5406  if test "X$ltrpathdirs" != "X"; then
5407            for found_dir in $ltrpathdirs; do
5408      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5409    done
5410  fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5430$as_echo_n "checking whether NLS is requested... " >&6; }
5431    @%:@ Check whether --enable-nls was given.
5432if test "${enable_nls+set}" = set; then :
5433  enableval=$enable_nls; USE_NLS=$enableval
5434else
5435  USE_NLS=yes
5436fi
5437
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5439$as_echo "$USE_NLS" >&6; }
5440
5441
5442
5443
5444  LIBINTL=
5445  LTLIBINTL=
5446  POSUB=
5447
5448    if test "$USE_NLS" = "yes"; then
5449    gt_use_preinstalled_gnugettext=no
5450
5451
5452
5453
5454
5455
5456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5457$as_echo_n "checking for GNU gettext in libc... " >&6; }
5458if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463#include <libintl.h>
5464extern int _nl_msg_cat_cntr;
5465extern int *_nl_domain_bindings;
5466int
5467main ()
5468{
5469bindtextdomain ("", "");
5470return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5471  ;
5472  return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_link "$LINENO"; then :
5476  gt_cv_func_gnugettext1_libc=yes
5477else
5478  gt_cv_func_gnugettext1_libc=no
5479fi
5480rm -f core conftest.err conftest.$ac_objext \
5481    conftest$ac_exeext conftest.$ac_ext
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5484$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5485
5486        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5487
5488
5489
5490
5491
5492          am_save_CPPFLAGS="$CPPFLAGS"
5493
5494  for element in $INCICONV; do
5495    haveit=
5496    for x in $CPPFLAGS; do
5497
5498  acl_save_prefix="$prefix"
5499  prefix="$acl_final_prefix"
5500  acl_save_exec_prefix="$exec_prefix"
5501  exec_prefix="$acl_final_exec_prefix"
5502  eval x=\"$x\"
5503  exec_prefix="$acl_save_exec_prefix"
5504  prefix="$acl_save_prefix"
5505
5506      if test "X$x" = "X$element"; then
5507        haveit=yes
5508        break
5509      fi
5510    done
5511    if test -z "$haveit"; then
5512      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5513    fi
5514  done
5515
5516
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5518$as_echo_n "checking for iconv... " >&6; }
5519if test "${am_cv_func_iconv+set}" = set; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522
5523    am_cv_func_iconv="no, consider installing GNU libiconv"
5524    am_cv_lib_iconv=no
5525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527#include <stdlib.h>
5528#include <iconv.h>
5529int
5530main ()
5531{
5532iconv_t cd = iconv_open("","");
5533       iconv(cd,NULL,NULL,NULL,NULL);
5534       iconv_close(cd);
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539if ac_fn_c_try_link "$LINENO"; then :
5540  am_cv_func_iconv=yes
5541fi
5542rm -f core conftest.err conftest.$ac_objext \
5543    conftest$ac_exeext conftest.$ac_ext
5544    if test "$am_cv_func_iconv" != yes; then
5545      am_save_LIBS="$LIBS"
5546      LIBS="$LIBS $LIBICONV"
5547      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549#include <stdlib.h>
5550#include <iconv.h>
5551int
5552main ()
5553{
5554iconv_t cd = iconv_open("","");
5555         iconv(cd,NULL,NULL,NULL,NULL);
5556         iconv_close(cd);
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561if ac_fn_c_try_link "$LINENO"; then :
5562  am_cv_lib_iconv=yes
5563        am_cv_func_iconv=yes
5564fi
5565rm -f core conftest.err conftest.$ac_objext \
5566    conftest$ac_exeext conftest.$ac_ext
5567      LIBS="$am_save_LIBS"
5568    fi
5569
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5572$as_echo "$am_cv_func_iconv" >&6; }
5573  if test "$am_cv_func_iconv" = yes; then
5574
5575$as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
5576
5577  fi
5578  if test "$am_cv_lib_iconv" = yes; then
5579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5580$as_echo_n "checking how to link with libiconv... " >&6; }
5581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5582$as_echo "$LIBICONV" >&6; }
5583  else
5584            CPPFLAGS="$am_save_CPPFLAGS"
5585    LIBICONV=
5586    LTLIBICONV=
5587  fi
5588
5589
5590
5591
5592
5593
5594    use_additional=yes
5595
5596  acl_save_prefix="$prefix"
5597  prefix="$acl_final_prefix"
5598  acl_save_exec_prefix="$exec_prefix"
5599  exec_prefix="$acl_final_exec_prefix"
5600
5601    eval additional_includedir=\"$includedir\"
5602    eval additional_libdir=\"$libdir\"
5603
5604  exec_prefix="$acl_save_exec_prefix"
5605  prefix="$acl_save_prefix"
5606
5607
5608@%:@ Check whether --with-libintl-prefix was given.
5609if test "${with_libintl_prefix+set}" = set; then :
5610  withval=$with_libintl_prefix;
5611    if test "X$withval" = "Xno"; then
5612      use_additional=no
5613    else
5614      if test "X$withval" = "X"; then
5615
5616  acl_save_prefix="$prefix"
5617  prefix="$acl_final_prefix"
5618  acl_save_exec_prefix="$exec_prefix"
5619  exec_prefix="$acl_final_exec_prefix"
5620
5621          eval additional_includedir=\"$includedir\"
5622          eval additional_libdir=\"$libdir\"
5623
5624  exec_prefix="$acl_save_exec_prefix"
5625  prefix="$acl_save_prefix"
5626
5627      else
5628        additional_includedir="$withval/include"
5629        additional_libdir="$withval/lib"
5630      fi
5631    fi
5632
5633fi
5634
5635      LIBINTL=
5636  LTLIBINTL=
5637  INCINTL=
5638  rpathdirs=
5639  ltrpathdirs=
5640  names_already_handled=
5641  names_next_round='intl '
5642  while test -n "$names_next_round"; do
5643    names_this_round="$names_next_round"
5644    names_next_round=
5645    for name in $names_this_round; do
5646      already_handled=
5647      for n in $names_already_handled; do
5648        if test "$n" = "$name"; then
5649          already_handled=yes
5650          break
5651        fi
5652      done
5653      if test -z "$already_handled"; then
5654        names_already_handled="$names_already_handled $name"
5655                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5656        eval value=\"\$HAVE_LIB$uppername\"
5657        if test -n "$value"; then
5658          if test "$value" = yes; then
5659            eval value=\"\$LIB$uppername\"
5660            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5661            eval value=\"\$LTLIB$uppername\"
5662            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5663          else
5664                                    :
5665          fi
5666        else
5667                              found_dir=
5668          found_la=
5669          found_so=
5670          found_a=
5671          if test $use_additional = yes; then
5672            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5673              found_dir="$additional_libdir"
5674              found_so="$additional_libdir/lib$name.$shlibext"
5675              if test -f "$additional_libdir/lib$name.la"; then
5676                found_la="$additional_libdir/lib$name.la"
5677              fi
5678            else
5679              if test -f "$additional_libdir/lib$name.$libext"; then
5680                found_dir="$additional_libdir"
5681                found_a="$additional_libdir/lib$name.$libext"
5682                if test -f "$additional_libdir/lib$name.la"; then
5683                  found_la="$additional_libdir/lib$name.la"
5684                fi
5685              fi
5686            fi
5687          fi
5688          if test "X$found_dir" = "X"; then
5689            for x in $LDFLAGS $LTLIBINTL; do
5690
5691  acl_save_prefix="$prefix"
5692  prefix="$acl_final_prefix"
5693  acl_save_exec_prefix="$exec_prefix"
5694  exec_prefix="$acl_final_exec_prefix"
5695  eval x=\"$x\"
5696  exec_prefix="$acl_save_exec_prefix"
5697  prefix="$acl_save_prefix"
5698
5699              case "$x" in
5700                -L*)
5701                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5702                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5703                    found_dir="$dir"
5704                    found_so="$dir/lib$name.$shlibext"
5705                    if test -f "$dir/lib$name.la"; then
5706                      found_la="$dir/lib$name.la"
5707                    fi
5708                  else
5709                    if test -f "$dir/lib$name.$libext"; then
5710                      found_dir="$dir"
5711                      found_a="$dir/lib$name.$libext"
5712                      if test -f "$dir/lib$name.la"; then
5713                        found_la="$dir/lib$name.la"
5714                      fi
5715                    fi
5716                  fi
5717                  ;;
5718              esac
5719              if test "X$found_dir" != "X"; then
5720                break
5721              fi
5722            done
5723          fi
5724          if test "X$found_dir" != "X"; then
5725                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5726            if test "X$found_so" != "X"; then
5727                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5728                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5729              else
5730                                                                                haveit=
5731                for x in $ltrpathdirs; do
5732                  if test "X$x" = "X$found_dir"; then
5733                    haveit=yes
5734                    break
5735                  fi
5736                done
5737                if test -z "$haveit"; then
5738                  ltrpathdirs="$ltrpathdirs $found_dir"
5739                fi
5740                                if test "$hardcode_direct" = yes; then
5741                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5742                else
5743                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5744                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5745                                                            haveit=
5746                    for x in $rpathdirs; do
5747                      if test "X$x" = "X$found_dir"; then
5748                        haveit=yes
5749                        break
5750                      fi
5751                    done
5752                    if test -z "$haveit"; then
5753                      rpathdirs="$rpathdirs $found_dir"
5754                    fi
5755                  else
5756                                                                                haveit=
5757                    for x in $LDFLAGS $LIBINTL; do
5758
5759  acl_save_prefix="$prefix"
5760  prefix="$acl_final_prefix"
5761  acl_save_exec_prefix="$exec_prefix"
5762  exec_prefix="$acl_final_exec_prefix"
5763  eval x=\"$x\"
5764  exec_prefix="$acl_save_exec_prefix"
5765  prefix="$acl_save_prefix"
5766
5767                      if test "X$x" = "X-L$found_dir"; then
5768                        haveit=yes
5769                        break
5770                      fi
5771                    done
5772                    if test -z "$haveit"; then
5773                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5774                    fi
5775                    if test "$hardcode_minus_L" != no; then
5776                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5777                    else
5778                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5779                    fi
5780                  fi
5781                fi
5782              fi
5783            else
5784              if test "X$found_a" != "X"; then
5785                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5786              else
5787                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5788              fi
5789            fi
5790                        additional_includedir=
5791            case "$found_dir" in
5792              */lib | */lib/)
5793                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5794                additional_includedir="$basedir/include"
5795                ;;
5796            esac
5797            if test "X$additional_includedir" != "X"; then
5798                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5799                haveit=
5800                if test "X$additional_includedir" = "X/usr/local/include"; then
5801                  if test -n "$GCC"; then
5802                    case $host_os in
5803                      linux*) haveit=yes;;
5804                    esac
5805                  fi
5806                fi
5807                if test -z "$haveit"; then
5808                  for x in $CPPFLAGS $INCINTL; do
5809
5810  acl_save_prefix="$prefix"
5811  prefix="$acl_final_prefix"
5812  acl_save_exec_prefix="$exec_prefix"
5813  exec_prefix="$acl_final_exec_prefix"
5814  eval x=\"$x\"
5815  exec_prefix="$acl_save_exec_prefix"
5816  prefix="$acl_save_prefix"
5817
5818                    if test "X$x" = "X-I$additional_includedir"; then
5819                      haveit=yes
5820                      break
5821                    fi
5822                  done
5823                  if test -z "$haveit"; then
5824                    if test -d "$additional_includedir"; then
5825                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5826                    fi
5827                  fi
5828                fi
5829              fi
5830            fi
5831                        if test -n "$found_la"; then
5832                                                        save_libdir="$libdir"
5833              case "$found_la" in
5834                */* | *\\*) . "$found_la" ;;
5835                *) . "./$found_la" ;;
5836              esac
5837              libdir="$save_libdir"
5838                            for dep in $dependency_libs; do
5839                case "$dep" in
5840                  -L*)
5841                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5842                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5843                      haveit=
5844                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5845                        if test -n "$GCC"; then
5846                          case $host_os in
5847                            linux*) haveit=yes;;
5848                          esac
5849                        fi
5850                      fi
5851                      if test -z "$haveit"; then
5852                        haveit=
5853                        for x in $LDFLAGS $LIBINTL; do
5854
5855  acl_save_prefix="$prefix"
5856  prefix="$acl_final_prefix"
5857  acl_save_exec_prefix="$exec_prefix"
5858  exec_prefix="$acl_final_exec_prefix"
5859  eval x=\"$x\"
5860  exec_prefix="$acl_save_exec_prefix"
5861  prefix="$acl_save_prefix"
5862
5863                          if test "X$x" = "X-L$additional_libdir"; then
5864                            haveit=yes
5865                            break
5866                          fi
5867                        done
5868                        if test -z "$haveit"; then
5869                          if test -d "$additional_libdir"; then
5870                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5871                          fi
5872                        fi
5873                        haveit=
5874                        for x in $LDFLAGS $LTLIBINTL; do
5875
5876  acl_save_prefix="$prefix"
5877  prefix="$acl_final_prefix"
5878  acl_save_exec_prefix="$exec_prefix"
5879  exec_prefix="$acl_final_exec_prefix"
5880  eval x=\"$x\"
5881  exec_prefix="$acl_save_exec_prefix"
5882  prefix="$acl_save_prefix"
5883
5884                          if test "X$x" = "X-L$additional_libdir"; then
5885                            haveit=yes
5886                            break
5887                          fi
5888                        done
5889                        if test -z "$haveit"; then
5890                          if test -d "$additional_libdir"; then
5891                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5892                          fi
5893                        fi
5894                      fi
5895                    fi
5896                    ;;
5897                  -R*)
5898                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5899                    if test "$enable_rpath" != no; then
5900                                                                  haveit=
5901                      for x in $rpathdirs; do
5902                        if test "X$x" = "X$dir"; then
5903                          haveit=yes
5904                          break
5905                        fi
5906                      done
5907                      if test -z "$haveit"; then
5908                        rpathdirs="$rpathdirs $dir"
5909                      fi
5910                                                                  haveit=
5911                      for x in $ltrpathdirs; do
5912                        if test "X$x" = "X$dir"; then
5913                          haveit=yes
5914                          break
5915                        fi
5916                      done
5917                      if test -z "$haveit"; then
5918                        ltrpathdirs="$ltrpathdirs $dir"
5919                      fi
5920                    fi
5921                    ;;
5922                  -l*)
5923                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5924                    ;;
5925                  *.la)
5926                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5927                    ;;
5928                  *)
5929                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5930                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5931                    ;;
5932                esac
5933              done
5934            fi
5935          else
5936                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5937            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5938          fi
5939        fi
5940      fi
5941    done
5942  done
5943  if test "X$rpathdirs" != "X"; then
5944    if test -n "$hardcode_libdir_separator"; then
5945                        alldirs=
5946      for found_dir in $rpathdirs; do
5947        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5948      done
5949            acl_save_libdir="$libdir"
5950      libdir="$alldirs"
5951      eval flag=\"$hardcode_libdir_flag_spec\"
5952      libdir="$acl_save_libdir"
5953      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5954    else
5955            for found_dir in $rpathdirs; do
5956        acl_save_libdir="$libdir"
5957        libdir="$found_dir"
5958        eval flag=\"$hardcode_libdir_flag_spec\"
5959        libdir="$acl_save_libdir"
5960        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5961      done
5962    fi
5963  fi
5964  if test "X$ltrpathdirs" != "X"; then
5965            for found_dir in $ltrpathdirs; do
5966      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5967    done
5968  fi
5969
5970          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5971$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5972if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  gt_save_CPPFLAGS="$CPPFLAGS"
5976            CPPFLAGS="$CPPFLAGS $INCINTL"
5977            gt_save_LIBS="$LIBS"
5978            LIBS="$LIBS $LIBINTL"
5979                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981#include <libintl.h>
5982extern int _nl_msg_cat_cntr;
5983extern
5984#ifdef __cplusplus
5985"C"
5986#endif
5987const char *_nl_expand_alias ();
5988int
5989main ()
5990{
5991bindtextdomain ("", "");
5992return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  gt_cv_func_gnugettext1_libintl=yes
5999else
6000  gt_cv_func_gnugettext1_libintl=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6005              LIBS="$LIBS $LIBICONV"
6006              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008#include <libintl.h>
6009extern int _nl_msg_cat_cntr;
6010extern
6011#ifdef __cplusplus
6012"C"
6013#endif
6014const char *_nl_expand_alias ();
6015int
6016main ()
6017{
6018bindtextdomain ("", "");
6019return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_link "$LINENO"; then :
6025  LIBINTL="$LIBINTL $LIBICONV"
6026                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6027                gt_cv_func_gnugettext1_libintl=yes
6028
6029fi
6030rm -f core conftest.err conftest.$ac_objext \
6031    conftest$ac_exeext conftest.$ac_ext
6032            fi
6033            CPPFLAGS="$gt_save_CPPFLAGS"
6034            LIBS="$gt_save_LIBS"
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
6037$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
6038        fi
6039
6040                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6041           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6042                && test "$PACKAGE" != gettext-runtime \
6043                && test "$PACKAGE" != gettext-tools; }; then
6044          gt_use_preinstalled_gnugettext=yes
6045        else
6046                    LIBINTL=
6047          LTLIBINTL=
6048          INCINTL=
6049        fi
6050
6051
6052
6053    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6054       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6055
6056$as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
6057
6058    else
6059      USE_NLS=no
6060    fi
6061  fi
6062
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6064$as_echo_n "checking whether to use NLS... " >&6; }
6065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6066$as_echo "$USE_NLS" >&6; }
6067  if test "$USE_NLS" = "yes"; then
6068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6069$as_echo_n "checking where the gettext function comes from... " >&6; }
6070    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6071      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6072        gt_source="external libintl"
6073      else
6074        gt_source="libc"
6075      fi
6076    else
6077      gt_source="included intl directory"
6078    fi
6079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6080$as_echo "$gt_source" >&6; }
6081  fi
6082
6083  if test "$USE_NLS" = "yes"; then
6084
6085    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6086      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6087        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6088$as_echo_n "checking how to link with libintl... " >&6; }
6089        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6090$as_echo "$LIBINTL" >&6; }
6091
6092  for element in $INCINTL; do
6093    haveit=
6094    for x in $CPPFLAGS; do
6095
6096  acl_save_prefix="$prefix"
6097  prefix="$acl_final_prefix"
6098  acl_save_exec_prefix="$exec_prefix"
6099  exec_prefix="$acl_final_exec_prefix"
6100  eval x=\"$x\"
6101  exec_prefix="$acl_save_exec_prefix"
6102  prefix="$acl_save_prefix"
6103
6104      if test "X$x" = "X$element"; then
6105        haveit=yes
6106        break
6107      fi
6108    done
6109    if test -z "$haveit"; then
6110      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6111    fi
6112  done
6113
6114      fi
6115
6116
6117$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
6118
6119
6120$as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
6121
6122    fi
6123
6124        POSUB=po
6125  fi
6126
6127
6128
6129    INTLLIBS="$LIBINTL"
6130
6131
6132
6133
6134
6135
6136
6137# This test must come as early as possible after the compiler configuration
6138# tests, because the choice of the file model can (in principle) affect
6139# whether functions and headers are available, whether they work, etc.
6140@%:@ Check whether --enable-largefile was given.
6141if test "${enable_largefile+set}" = set; then :
6142  enableval=$enable_largefile;
6143fi
6144
6145if test "$enable_largefile" != no; then
6146
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6148$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6149if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  ac_cv_sys_largefile_CC=no
6153     if test "$GCC" != yes; then
6154       ac_save_CC=$CC
6155       while :; do
6156	 # IRIX 6.2 and later do not support large files by default,
6157	 # so use the C compiler's -n32 option if that helps.
6158	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160@%:@include <sys/types.h>
6161 /* Check that off_t can represent 2**63 - 1 correctly.
6162    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6163    since some C++ compilers masquerading as C compilers
6164    incorrectly reject 9223372036854775807.  */
6165@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6166  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6167		       && LARGE_OFF_T % 2147483647 == 1)
6168		      ? 1 : -1];
6169int
6170main ()
6171{
6172
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177	 if ac_fn_c_try_compile "$LINENO"; then :
6178  break
6179fi
6180rm -f core conftest.err conftest.$ac_objext
6181	 CC="$CC -n32"
6182	 if ac_fn_c_try_compile "$LINENO"; then :
6183  ac_cv_sys_largefile_CC=' -n32'; break
6184fi
6185rm -f core conftest.err conftest.$ac_objext
6186	 break
6187       done
6188       CC=$ac_save_CC
6189       rm -f conftest.$ac_ext
6190    fi
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6193$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6194  if test "$ac_cv_sys_largefile_CC" != no; then
6195    CC=$CC$ac_cv_sys_largefile_CC
6196  fi
6197
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6199$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6200if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  while :; do
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206@%:@include <sys/types.h>
6207 /* Check that off_t can represent 2**63 - 1 correctly.
6208    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6209    since some C++ compilers masquerading as C compilers
6210    incorrectly reject 9223372036854775807.  */
6211@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6212  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6213		       && LARGE_OFF_T % 2147483647 == 1)
6214		      ? 1 : -1];
6215int
6216main ()
6217{
6218
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223if ac_fn_c_try_compile "$LINENO"; then :
6224  ac_cv_sys_file_offset_bits=no; break
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229@%:@define _FILE_OFFSET_BITS 64
6230@%:@include <sys/types.h>
6231 /* Check that off_t can represent 2**63 - 1 correctly.
6232    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6233    since some C++ compilers masquerading as C compilers
6234    incorrectly reject 9223372036854775807.  */
6235@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6236  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6237		       && LARGE_OFF_T % 2147483647 == 1)
6238		      ? 1 : -1];
6239int
6240main ()
6241{
6242
6243  ;
6244  return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"; then :
6248  ac_cv_sys_file_offset_bits=64; break
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251  ac_cv_sys_file_offset_bits=unknown
6252  break
6253done
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6256$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6257case $ac_cv_sys_file_offset_bits in #(
6258  no | unknown) ;;
6259  *)
6260cat >>confdefs.h <<_ACEOF
6261@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6262_ACEOF
6263;;
6264esac
6265rm -rf conftest*
6266  if test $ac_cv_sys_file_offset_bits = unknown; then
6267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6268$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6269if test "${ac_cv_sys_large_files+set}" = set; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  while :; do
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275@%:@include <sys/types.h>
6276 /* Check that off_t can represent 2**63 - 1 correctly.
6277    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6278    since some C++ compilers masquerading as C compilers
6279    incorrectly reject 9223372036854775807.  */
6280@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6281  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6282		       && LARGE_OFF_T % 2147483647 == 1)
6283		      ? 1 : -1];
6284int
6285main ()
6286{
6287
6288  ;
6289  return 0;
6290}
6291_ACEOF
6292if ac_fn_c_try_compile "$LINENO"; then :
6293  ac_cv_sys_large_files=no; break
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298@%:@define _LARGE_FILES 1
6299@%:@include <sys/types.h>
6300 /* Check that off_t can represent 2**63 - 1 correctly.
6301    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6302    since some C++ compilers masquerading as C compilers
6303    incorrectly reject 9223372036854775807.  */
6304@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6305  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6306		       && LARGE_OFF_T % 2147483647 == 1)
6307		      ? 1 : -1];
6308int
6309main ()
6310{
6311
6312  ;
6313  return 0;
6314}
6315_ACEOF
6316if ac_fn_c_try_compile "$LINENO"; then :
6317  ac_cv_sys_large_files=1; break
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320  ac_cv_sys_large_files=unknown
6321  break
6322done
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6325$as_echo "$ac_cv_sys_large_files" >&6; }
6326case $ac_cv_sys_large_files in #(
6327  no | unknown) ;;
6328  *)
6329cat >>confdefs.h <<_ACEOF
6330@%:@define _LARGE_FILES $ac_cv_sys_large_files
6331_ACEOF
6332;;
6333esac
6334rm -rf conftest*
6335  fi
6336fi
6337
6338
6339# Checks for libraries.
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
6341$as_echo_n "checking for library containing getpwnam... " >&6; }
6342if test "${ac_cv_search_getpwnam+set}" = set; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  ac_func_search_save_LIBS=$LIBS
6346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348
6349/* Override any GCC internal prototype to avoid an error.
6350   Use char because int might match the return type of a GCC
6351   builtin and then its argument prototype would still apply.  */
6352#ifdef __cplusplus
6353extern "C"
6354#endif
6355char getpwnam ();
6356int
6357main ()
6358{
6359return getpwnam ();
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364for ac_lib in '' sun; do
6365  if test -z "$ac_lib"; then
6366    ac_res="none required"
6367  else
6368    ac_res=-l$ac_lib
6369    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6370  fi
6371  if ac_fn_c_try_link "$LINENO"; then :
6372  ac_cv_search_getpwnam=$ac_res
6373fi
6374rm -f core conftest.err conftest.$ac_objext \
6375    conftest$ac_exeext
6376  if test "${ac_cv_search_getpwnam+set}" = set; then :
6377  break
6378fi
6379done
6380if test "${ac_cv_search_getpwnam+set}" = set; then :
6381
6382else
6383  ac_cv_search_getpwnam=no
6384fi
6385rm conftest.$ac_ext
6386LIBS=$ac_func_search_save_LIBS
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
6389$as_echo "$ac_cv_search_getpwnam" >&6; }
6390ac_res=$ac_cv_search_getpwnam
6391if test "$ac_res" != no; then :
6392  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6393
6394fi
6395
6396
6397# Checks for header files.
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6399$as_echo_n "checking for ANSI C header files... " >&6; }
6400if test "${ac_cv_header_stdc+set}" = set; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405#include <stdlib.h>
6406#include <stdarg.h>
6407#include <string.h>
6408#include <float.h>
6409
6410int
6411main ()
6412{
6413
6414  ;
6415  return 0;
6416}
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"; then :
6419  ac_cv_header_stdc=yes
6420else
6421  ac_cv_header_stdc=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424
6425if test $ac_cv_header_stdc = yes; then
6426  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429#include <string.h>
6430
6431_ACEOF
6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433  $EGREP "memchr" >/dev/null 2>&1; then :
6434
6435else
6436  ac_cv_header_stdc=no
6437fi
6438rm -f conftest*
6439
6440fi
6441
6442if test $ac_cv_header_stdc = yes; then
6443  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446#include <stdlib.h>
6447
6448_ACEOF
6449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6450  $EGREP "free" >/dev/null 2>&1; then :
6451
6452else
6453  ac_cv_header_stdc=no
6454fi
6455rm -f conftest*
6456
6457fi
6458
6459if test $ac_cv_header_stdc = yes; then
6460  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6461  if test "$cross_compiling" = yes; then :
6462  :
6463else
6464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466#include <ctype.h>
6467#include <stdlib.h>
6468#if ((' ' & 0x0FF) == 0x020)
6469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6471#else
6472# define ISLOWER(c) \
6473		   (('a' <= (c) && (c) <= 'i') \
6474		     || ('j' <= (c) && (c) <= 'r') \
6475		     || ('s' <= (c) && (c) <= 'z'))
6476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6477#endif
6478
6479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6480int
6481main ()
6482{
6483  int i;
6484  for (i = 0; i < 256; i++)
6485    if (XOR (islower (i), ISLOWER (i))
6486	|| toupper (i) != TOUPPER (i))
6487      return 2;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_c_try_run "$LINENO"; then :
6492
6493else
6494  ac_cv_header_stdc=no
6495fi
6496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6497  conftest.$ac_objext conftest.beam conftest.$ac_ext
6498fi
6499
6500fi
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6503$as_echo "$ac_cv_header_stdc" >&6; }
6504if test $ac_cv_header_stdc = yes; then
6505
6506$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
6507
6508fi
6509
6510ac_header_dirent=no
6511for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6512  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6514$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h.  */
6520#include <sys/types.h>
6521#include <$ac_hdr>
6522
6523int
6524main ()
6525{
6526if ((DIR *) 0)
6527return 0;
6528  ;
6529  return 0;
6530}
6531_ACEOF
6532if ac_fn_c_try_compile "$LINENO"; then :
6533  eval "$as_ac_Header=yes"
6534else
6535  eval "$as_ac_Header=no"
6536fi
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538fi
6539eval ac_res=\$$as_ac_Header
6540	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6541$as_echo "$ac_res" >&6; }
6542eval as_val=\$$as_ac_Header
6543   if test "x$as_val" = x""yes; then :
6544  cat >>confdefs.h <<_ACEOF
6545@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6546_ACEOF
6547
6548ac_header_dirent=$ac_hdr; break
6549fi
6550
6551done
6552# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6553if test $ac_header_dirent = dirent.h; then
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6555$as_echo_n "checking for library containing opendir... " >&6; }
6556if test "${ac_cv_search_opendir+set}" = set; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  ac_func_search_save_LIBS=$LIBS
6560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562
6563/* Override any GCC internal prototype to avoid an error.
6564   Use char because int might match the return type of a GCC
6565   builtin and then its argument prototype would still apply.  */
6566#ifdef __cplusplus
6567extern "C"
6568#endif
6569char opendir ();
6570int
6571main ()
6572{
6573return opendir ();
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578for ac_lib in '' dir; do
6579  if test -z "$ac_lib"; then
6580    ac_res="none required"
6581  else
6582    ac_res=-l$ac_lib
6583    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6584  fi
6585  if ac_fn_c_try_link "$LINENO"; then :
6586  ac_cv_search_opendir=$ac_res
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext
6590  if test "${ac_cv_search_opendir+set}" = set; then :
6591  break
6592fi
6593done
6594if test "${ac_cv_search_opendir+set}" = set; then :
6595
6596else
6597  ac_cv_search_opendir=no
6598fi
6599rm conftest.$ac_ext
6600LIBS=$ac_func_search_save_LIBS
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6603$as_echo "$ac_cv_search_opendir" >&6; }
6604ac_res=$ac_cv_search_opendir
6605if test "$ac_res" != no; then :
6606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6607
6608fi
6609
6610else
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6612$as_echo_n "checking for library containing opendir... " >&6; }
6613if test "${ac_cv_search_opendir+set}" = set; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  ac_func_search_save_LIBS=$LIBS
6617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619
6620/* Override any GCC internal prototype to avoid an error.
6621   Use char because int might match the return type of a GCC
6622   builtin and then its argument prototype would still apply.  */
6623#ifdef __cplusplus
6624extern "C"
6625#endif
6626char opendir ();
6627int
6628main ()
6629{
6630return opendir ();
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635for ac_lib in '' x; do
6636  if test -z "$ac_lib"; then
6637    ac_res="none required"
6638  else
6639    ac_res=-l$ac_lib
6640    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6641  fi
6642  if ac_fn_c_try_link "$LINENO"; then :
6643  ac_cv_search_opendir=$ac_res
6644fi
6645rm -f core conftest.err conftest.$ac_objext \
6646    conftest$ac_exeext
6647  if test "${ac_cv_search_opendir+set}" = set; then :
6648  break
6649fi
6650done
6651if test "${ac_cv_search_opendir+set}" = set; then :
6652
6653else
6654  ac_cv_search_opendir=no
6655fi
6656rm conftest.$ac_ext
6657LIBS=$ac_func_search_save_LIBS
6658fi
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6660$as_echo "$ac_cv_search_opendir" >&6; }
6661ac_res=$ac_cv_search_opendir
6662if test "$ac_res" != no; then :
6663  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6664
6665fi
6666
6667fi
6668
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6670$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6671if test "${ac_cv_header_stat_broken+set}" = set; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675/* end confdefs.h.  */
6676#include <sys/types.h>
6677#include <sys/stat.h>
6678
6679#if defined S_ISBLK && defined S_IFDIR
6680extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6681#endif
6682
6683#if defined S_ISBLK && defined S_IFCHR
6684extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6685#endif
6686
6687#if defined S_ISLNK && defined S_IFREG
6688extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6689#endif
6690
6691#if defined S_ISSOCK && defined S_IFREG
6692extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6693#endif
6694
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"; then :
6697  ac_cv_header_stat_broken=no
6698else
6699  ac_cv_header_stat_broken=yes
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6704$as_echo "$ac_cv_header_stat_broken" >&6; }
6705if test $ac_cv_header_stat_broken = yes; then
6706
6707$as_echo "@%:@define STAT_MACROS_BROKEN 1" >>confdefs.h
6708
6709fi
6710
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6712$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6713if test "${ac_cv_header_time+set}" = set; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718#include <sys/types.h>
6719#include <sys/time.h>
6720#include <time.h>
6721
6722int
6723main ()
6724{
6725if ((struct tm *) 0)
6726return 0;
6727  ;
6728  return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"; then :
6732  ac_cv_header_time=yes
6733else
6734  ac_cv_header_time=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6739$as_echo "$ac_cv_header_time" >&6; }
6740if test $ac_cv_header_time = yes; then
6741
6742$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
6743
6744fi
6745
6746for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
6747		 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
6748do :
6749  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6751eval as_val=\$$as_ac_Header
6752   if test "x$as_val" = x""yes; then :
6753  cat >>confdefs.h <<_ACEOF
6754@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755_ACEOF
6756
6757fi
6758
6759done
6760
6761
6762# Set a flag if we have an ANSI C compiler
6763if test "$ac_cv_prog_cc_stdc" != no; then
6764
6765$as_echo "@%:@define HAVE_ANSI_COMPILER 1" >>confdefs.h
6766
6767fi
6768
6769
6770# Determine what kind of variadic function calls we support
6771for ac_header in stdarg.h varargs.h
6772do :
6773  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6774ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6775eval as_val=\$$as_ac_Header
6776   if test "x$as_val" = x""yes; then :
6777  cat >>confdefs.h <<_ACEOF
6778@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779_ACEOF
6780 break
6781fi
6782
6783done
6784
6785
6786if test "x$CC" != xcc; then
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6788$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6791$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6792fi
6793set dummy $CC; ac_cc=`$as_echo "$2" |
6794		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6795if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800
6801int
6802main ()
6803{
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809# Make sure it works both with $CC and with simple cc.
6810# We do the test twice because some compilers refuse to overwrite an
6811# existing .o file with -o, though they will create one.
6812ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6813rm -f conftest2.*
6814if { { case "(($ac_try" in
6815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816  *) ac_try_echo=$ac_try;;
6817esac
6818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6819$as_echo "$ac_try_echo"; } >&5
6820  (eval "$ac_try") 2>&5
6821  ac_status=$?
6822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823  test $ac_status = 0; } &&
6824   test -f conftest2.$ac_objext && { { case "(($ac_try" in
6825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826  *) ac_try_echo=$ac_try;;
6827esac
6828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6829$as_echo "$ac_try_echo"; } >&5
6830  (eval "$ac_try") 2>&5
6831  ac_status=$?
6832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833  test $ac_status = 0; };
6834then
6835  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6836  if test "x$CC" != xcc; then
6837    # Test first that cc exists at all.
6838    if { ac_try='cc -c conftest.$ac_ext >&5'
6839  { { case "(($ac_try" in
6840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841  *) ac_try_echo=$ac_try;;
6842esac
6843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6844$as_echo "$ac_try_echo"; } >&5
6845  (eval "$ac_try") 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; }; }; then
6849      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6850      rm -f conftest2.*
6851      if { { case "(($ac_try" in
6852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853  *) ac_try_echo=$ac_try;;
6854esac
6855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6856$as_echo "$ac_try_echo"; } >&5
6857  (eval "$ac_try") 2>&5
6858  ac_status=$?
6859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860  test $ac_status = 0; } &&
6861	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863  *) ac_try_echo=$ac_try;;
6864esac
6865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6866$as_echo "$ac_try_echo"; } >&5
6867  (eval "$ac_try") 2>&5
6868  ac_status=$?
6869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870  test $ac_status = 0; };
6871      then
6872	# cc works too.
6873	:
6874      else
6875	# cc exists but doesn't like -o.
6876	eval ac_cv_prog_cc_${ac_cc}_c_o=no
6877      fi
6878    fi
6879  fi
6880else
6881  eval ac_cv_prog_cc_${ac_cc}_c_o=no
6882fi
6883rm -f core conftest*
6884
6885fi
6886if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6888$as_echo "yes" >&6; }
6889else
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891$as_echo "no" >&6; }
6892
6893$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6894
6895fi
6896
6897# FIXME: we rely on the cache variable name because
6898# there is no other way.
6899set dummy $CC
6900ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6901if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6902   # Losing compiler, so override with the script.
6903   # FIXME: It is wrong to rewrite CC.
6904   # But if we don't then we get into trouble of one sort or another.
6905   # A longer-term fix would be to have automake use am__CC in this case,
6906   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6907   CC="$am_aux_dir/compile $CC"
6908fi
6909
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6911$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6912if test "${ac_cv_c_const+set}" = set; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917
6918int
6919main ()
6920{
6921/* FIXME: Include the comments suggested by Paul. */
6922#ifndef __cplusplus
6923  /* Ultrix mips cc rejects this.  */
6924  typedef int charset[2];
6925  const charset cs;
6926  /* SunOS 4.1.1 cc rejects this.  */
6927  char const *const *pcpcc;
6928  char **ppc;
6929  /* NEC SVR4.0.2 mips cc rejects this.  */
6930  struct point {int x, y;};
6931  static struct point const zero = {0,0};
6932  /* AIX XL C 1.02.0.0 rejects this.
6933     It does not let you subtract one const X* pointer from another in
6934     an arm of an if-expression whose if-part is not a constant
6935     expression */
6936  const char *g = "string";
6937  pcpcc = &g + (g ? g-g : 0);
6938  /* HPUX 7.0 cc rejects these. */
6939  ++pcpcc;
6940  ppc = (char**) pcpcc;
6941  pcpcc = (char const *const *) ppc;
6942  { /* SCO 3.2v4 cc rejects this.  */
6943    char *t;
6944    char const *s = 0 ? (char *) 0 : (char const *) 0;
6945
6946    *t++ = 0;
6947    if (s) return 0;
6948  }
6949  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6950    int x[] = {25, 17};
6951    const int *foo = &x[0];
6952    ++foo;
6953  }
6954  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6955    typedef const int *iptr;
6956    iptr p = 0;
6957    ++p;
6958  }
6959  { /* AIX XL C 1.02.0.0 rejects this saying
6960       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6961    struct s { int j; const int *ap[3]; };
6962    struct s *b; b->j = 5;
6963  }
6964  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6965    const int foo = 10;
6966    if (!foo) return 0;
6967  }
6968  return !cs[0] && !zero.x;
6969#endif
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"; then :
6976  ac_cv_c_const=yes
6977else
6978  ac_cv_c_const=no
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6983$as_echo "$ac_cv_c_const" >&6; }
6984if test $ac_cv_c_const = no; then
6985
6986$as_echo "@%:@define const /**/" >>confdefs.h
6987
6988fi
6989
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6991$as_echo_n "checking return type of signal handlers... " >&6; }
6992if test "${ac_cv_type_signal+set}" = set; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997#include <sys/types.h>
6998#include <signal.h>
6999
7000int
7001main ()
7002{
7003return *(signal (0, 0)) (0) == 1;
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009  ac_cv_type_signal=int
7010else
7011  ac_cv_type_signal=void
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7016$as_echo "$ac_cv_type_signal" >&6; }
7017
7018cat >>confdefs.h <<_ACEOF
7019@%:@define RETSIGTYPE $ac_cv_type_signal
7020_ACEOF
7021
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7024$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7025if test "${ac_cv_type_uid_t+set}" = set; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h.  */
7030#include <sys/types.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034  $EGREP "uid_t" >/dev/null 2>&1; then :
7035  ac_cv_type_uid_t=yes
7036else
7037  ac_cv_type_uid_t=no
7038fi
7039rm -f conftest*
7040
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7043$as_echo "$ac_cv_type_uid_t" >&6; }
7044if test $ac_cv_type_uid_t = no; then
7045
7046$as_echo "@%:@define uid_t int" >>confdefs.h
7047
7048
7049$as_echo "@%:@define gid_t int" >>confdefs.h
7050
7051fi
7052
7053ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7054if test "x$ac_cv_type_pid_t" = x""yes; then :
7055
7056else
7057
7058cat >>confdefs.h <<_ACEOF
7059@%:@define pid_t int
7060_ACEOF
7061
7062fi
7063
7064
7065# Find some definition for uintmax_t
7066
7067ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7068if test "x$ac_cv_type_uintmax_t" = x""yes; then :
7069
7070else
7071
7072  uintmax_t="unsigned long"
7073  ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
7074if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
7075  uintmax_t="unsigned long long"
7076fi
7077
7078
7079cat >>confdefs.h <<_ACEOF
7080@%:@define uintmax_t $uintmax_t
7081_ACEOF
7082
7083fi
7084
7085
7086# Find out whether our struct stat returns nanosecond resolution timestamps.
7087
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat.st_mtim" >&5
7089$as_echo_n "checking for nanoseconds field of struct stat.st_mtim... " >&6; }
7090if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  ac_save_CPPFLAGS="$CPPFLAGS"
7094    ac_cv_struct_st_mtim_nsec=no
7095    # tv_nsec -- the usual case
7096    # _tv_nsec -- Solaris 2.6, if
7097    #	(defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7098    #	 && !defined __EXTENSIONS__)
7099    # st__tim.tv_nsec -- UnixWare 2.1.2
7100    for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7101      CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104#include <sys/types.h>
7105#include <sys/stat.h>
7106
7107int
7108main ()
7109{
7110struct stat s; s.st_mtim.ST_MTIM_NSEC;
7111  ;
7112  return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"; then :
7116  ac_cv_struct_st_mtim_nsec=$ac_val; break
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119    done
7120    CPPFLAGS="$ac_save_CPPFLAGS"
7121
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
7124$as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7125
7126  if test $ac_cv_struct_st_mtim_nsec != no; then
7127
7128cat >>confdefs.h <<_ACEOF
7129@%:@define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7130_ACEOF
7131
7132  fi
7133
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
7136$as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
7137if test "${make_cv_file_timestamp_hi_res+set}" = set; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140
7141  make_cv_file_timestamp_hi_res=no
7142  if test "$ac_cv_struct_st_mtim_nsec" != no; then
7143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145
7146#	if HAVE_INTTYPES_H
7147#	 include <inttypes.h>
7148#	endif
7149int
7150main ()
7151{
7152char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7153  ;
7154  return 0;
7155}
7156_ACEOF
7157if ac_fn_c_try_compile "$LINENO"; then :
7158  make_cv_file_timestamp_hi_res=yes
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161  fi
7162fi
7163
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
7165$as_echo "$make_cv_file_timestamp_hi_res" >&6; }
7166if test "$make_cv_file_timestamp_hi_res" = yes; then
7167  val=1
7168else
7169  val=0
7170fi
7171
7172cat >>confdefs.h <<_ACEOF
7173@%:@define FILE_TIMESTAMP_HI_RES $val
7174_ACEOF
7175
7176
7177if test "$make_cv_file_timestamp_hi_res" = yes; then
7178  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7179  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7181$as_echo_n "checking for library containing clock_gettime... " >&6; }
7182if test "${ac_cv_search_clock_gettime+set}" = set; then :
7183  $as_echo_n "(cached) " >&6
7184else
7185  ac_func_search_save_LIBS=$LIBS
7186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188
7189/* Override any GCC internal prototype to avoid an error.
7190   Use char because int might match the return type of a GCC
7191   builtin and then its argument prototype would still apply.  */
7192#ifdef __cplusplus
7193extern "C"
7194#endif
7195char clock_gettime ();
7196int
7197main ()
7198{
7199return clock_gettime ();
7200  ;
7201  return 0;
7202}
7203_ACEOF
7204for ac_lib in '' rt posix4; do
7205  if test -z "$ac_lib"; then
7206    ac_res="none required"
7207  else
7208    ac_res=-l$ac_lib
7209    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7210  fi
7211  if ac_fn_c_try_link "$LINENO"; then :
7212  ac_cv_search_clock_gettime=$ac_res
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext
7216  if test "${ac_cv_search_clock_gettime+set}" = set; then :
7217  break
7218fi
7219done
7220if test "${ac_cv_search_clock_gettime+set}" = set; then :
7221
7222else
7223  ac_cv_search_clock_gettime=no
7224fi
7225rm conftest.$ac_ext
7226LIBS=$ac_func_search_save_LIBS
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7229$as_echo "$ac_cv_search_clock_gettime" >&6; }
7230ac_res=$ac_cv_search_clock_gettime
7231if test "$ac_res" != no; then :
7232  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7233
7234fi
7235
7236  if test "$ac_cv_search_clock_gettime" != no; then
7237
7238$as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7239
7240  fi
7241fi
7242
7243# Check for DOS-style pathnames.
7244
7245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
7246$as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
7247if test "${ac_cv_dos_paths+set}" = set; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250
7251        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253
7254#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__
7255neither MSDOS nor Windows nor OS2
7256#endif
7257
7258_ACEOF
7259if ac_fn_c_try_compile "$LINENO"; then :
7260  ac_cv_dos_paths=yes
7261else
7262  ac_cv_dos_paths=no
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
7268$as_echo "$ac_cv_dos_paths" >&6; }
7269
7270    if test x"$ac_cv_dos_paths" = xyes; then
7271
7272cat >>confdefs.h <<_ACEOF
7273@%:@define HAVE_DOS_PATHS 1
7274_ACEOF
7275
7276    fi
7277
7278
7279# See if we have a standard version of gettimeofday().  Since actual
7280# implementations can differ, just make sure we have the most common
7281# one.
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
7283$as_echo_n "checking for standard gettimeofday... " >&6; }
7284if test "${ac_cv_func_gettimeofday+set}" = set; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  ac_cv_func_gettimeofday=no
7288   if test "$cross_compiling" = yes; then :
7289  ac_cv_func_gettimeofday="no (cross-compiling)"
7290else
7291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293#include <sys/time.h>
7294                  int main ()
7295	          {
7296		    struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
7297		    exit (gettimeofday (&t, 0) != 0
7298		          || t.tv_sec < 0 || t.tv_usec < 0);
7299	          }
7300_ACEOF
7301if ac_fn_c_try_run "$LINENO"; then :
7302  ac_cv_func_gettimeofday=yes
7303else
7304  ac_cv_func_gettimeofday=no
7305fi
7306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7307  conftest.$ac_objext conftest.beam conftest.$ac_ext
7308fi
7309
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
7312$as_echo "$ac_cv_func_gettimeofday" >&6; }
7313if test "$ac_cv_func_gettimeofday" = yes; then
7314
7315$as_echo "@%:@define HAVE_GETTIMEOFDAY 1" >>confdefs.h
7316
7317fi
7318
7319for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
7320	        bsd_signal dup2 getcwd realpath sigsetmask sigaction \
7321                getgroups seteuid setegid setlinebuf setreuid setregid \
7322                getrlimit setrlimit setvbuf pipe strerror strsignal \
7323		lstat readlink atexit
7324do :
7325  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7326ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7327eval as_val=\$$as_ac_var
7328   if test "x$as_val" = x""yes; then :
7329  cat >>confdefs.h <<_ACEOF
7330@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7331_ACEOF
7332
7333fi
7334done
7335
7336
7337if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  ac_cv_func_setvbuf_reversed=no
7341fi
7342
7343
7344
7345# strcoll() is used by the GNU glob library
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7347$as_echo_n "checking for working strcoll... " >&6; }
7348if test "${ac_cv_func_strcoll_works+set}" = set; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test "$cross_compiling" = yes; then :
7352  ac_cv_func_strcoll_works=no
7353else
7354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356$ac_includes_default
7357int
7358main ()
7359{
7360return (strcoll ("abc", "def") >= 0 ||
7361	 strcoll ("ABC", "DEF") >= 0 ||
7362	 strcoll ("123", "456") >= 0)
7363  ;
7364  return 0;
7365}
7366_ACEOF
7367if ac_fn_c_try_run "$LINENO"; then :
7368  ac_cv_func_strcoll_works=yes
7369else
7370  ac_cv_func_strcoll_works=no
7371fi
7372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7373  conftest.$ac_objext conftest.beam conftest.$ac_ext
7374fi
7375
7376fi
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7378$as_echo "$ac_cv_func_strcoll_works" >&6; }
7379if test $ac_cv_func_strcoll_works = yes; then
7380
7381$as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
7382
7383fi
7384
7385
7386# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7387# for constant arguments.  Useless!
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7389$as_echo_n "checking for working alloca.h... " >&6; }
7390if test "${ac_cv_working_alloca_h+set}" = set; then :
7391  $as_echo_n "(cached) " >&6
7392else
7393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395@%:@include <alloca.h>
7396int
7397main ()
7398{
7399char *p = (char *) alloca (2 * sizeof (int));
7400			  if (p) return 0;
7401  ;
7402  return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_link "$LINENO"; then :
7406  ac_cv_working_alloca_h=yes
7407else
7408  ac_cv_working_alloca_h=no
7409fi
7410rm -f core conftest.err conftest.$ac_objext \
7411    conftest$ac_exeext conftest.$ac_ext
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7414$as_echo "$ac_cv_working_alloca_h" >&6; }
7415if test $ac_cv_working_alloca_h = yes; then
7416
7417$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
7418
7419fi
7420
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7422$as_echo_n "checking for alloca... " >&6; }
7423if test "${ac_cv_func_alloca_works+set}" = set; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428#ifdef __GNUC__
7429# define alloca __builtin_alloca
7430#else
7431# ifdef _MSC_VER
7432#  include <malloc.h>
7433#  define alloca _alloca
7434# else
7435#  ifdef HAVE_ALLOCA_H
7436#   include <alloca.h>
7437#  else
7438#   ifdef _AIX
7439 #pragma alloca
7440#   else
7441#    ifndef alloca /* predefined by HP cc +Olibcalls */
7442char *alloca ();
7443#    endif
7444#   endif
7445#  endif
7446# endif
7447#endif
7448
7449int
7450main ()
7451{
7452char *p = (char *) alloca (1);
7453				    if (p) return 0;
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_link "$LINENO"; then :
7459  ac_cv_func_alloca_works=yes
7460else
7461  ac_cv_func_alloca_works=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext \
7464    conftest$ac_exeext conftest.$ac_ext
7465fi
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7467$as_echo "$ac_cv_func_alloca_works" >&6; }
7468
7469if test $ac_cv_func_alloca_works = yes; then
7470
7471$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
7472
7473else
7474  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7475# that cause trouble.  Some versions do not even contain alloca or
7476# contain a buggy version.  If you still want to use their alloca,
7477# use ar to extract alloca.o from them instead of compiling alloca.c.
7478
7479ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7480
7481$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
7482
7483
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7485$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7486if test "${ac_cv_os_cray+set}" = set; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491#if defined CRAY && ! defined CRAY2
7492webecray
7493#else
7494wenotbecray
7495#endif
7496
7497_ACEOF
7498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7499  $EGREP "webecray" >/dev/null 2>&1; then :
7500  ac_cv_os_cray=yes
7501else
7502  ac_cv_os_cray=no
7503fi
7504rm -f conftest*
7505
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7508$as_echo "$ac_cv_os_cray" >&6; }
7509if test $ac_cv_os_cray = yes; then
7510  for ac_func in _getb67 GETB67 getb67; do
7511    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7512ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7513eval as_val=\$$as_ac_var
7514   if test "x$as_val" = x""yes; then :
7515
7516cat >>confdefs.h <<_ACEOF
7517@%:@define CRAY_STACKSEG_END $ac_func
7518_ACEOF
7519
7520    break
7521fi
7522
7523  done
7524fi
7525
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7527$as_echo_n "checking stack direction for C alloca... " >&6; }
7528if test "${ac_cv_c_stack_direction+set}" = set; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  if test "$cross_compiling" = yes; then :
7532  ac_cv_c_stack_direction=0
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536$ac_includes_default
7537int
7538find_stack_direction ()
7539{
7540  static char *addr = 0;
7541  auto char dummy;
7542  if (addr == 0)
7543    {
7544      addr = &dummy;
7545      return find_stack_direction ();
7546    }
7547  else
7548    return (&dummy > addr) ? 1 : -1;
7549}
7550
7551int
7552main ()
7553{
7554  return find_stack_direction () < 0;
7555}
7556_ACEOF
7557if ac_fn_c_try_run "$LINENO"; then :
7558  ac_cv_c_stack_direction=1
7559else
7560  ac_cv_c_stack_direction=-1
7561fi
7562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563  conftest.$ac_objext conftest.beam conftest.$ac_ext
7564fi
7565
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7568$as_echo "$ac_cv_c_stack_direction" >&6; }
7569cat >>confdefs.h <<_ACEOF
7570@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7571_ACEOF
7572
7573
7574fi
7575
7576for ac_header in vfork.h
7577do :
7578  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7579if test "x$ac_cv_header_vfork_h" = x""yes; then :
7580  cat >>confdefs.h <<_ACEOF
7581@%:@define HAVE_VFORK_H 1
7582_ACEOF
7583
7584fi
7585
7586done
7587
7588for ac_func in fork vfork
7589do :
7590  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7591ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7592eval as_val=\$$as_ac_var
7593   if test "x$as_val" = x""yes; then :
7594  cat >>confdefs.h <<_ACEOF
7595@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7596_ACEOF
7597
7598fi
7599done
7600
7601if test "x$ac_cv_func_fork" = xyes; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7603$as_echo_n "checking for working fork... " >&6; }
7604if test "${ac_cv_func_fork_works+set}" = set; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  if test "$cross_compiling" = yes; then :
7608  ac_cv_func_fork_works=cross
7609else
7610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h.  */
7612$ac_includes_default
7613int
7614main ()
7615{
7616
7617	  /* By Ruediger Kuhlmann. */
7618	  return fork () < 0;
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_c_try_run "$LINENO"; then :
7625  ac_cv_func_fork_works=yes
7626else
7627  ac_cv_func_fork_works=no
7628fi
7629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7630  conftest.$ac_objext conftest.beam conftest.$ac_ext
7631fi
7632
7633fi
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7635$as_echo "$ac_cv_func_fork_works" >&6; }
7636
7637else
7638  ac_cv_func_fork_works=$ac_cv_func_fork
7639fi
7640if test "x$ac_cv_func_fork_works" = xcross; then
7641  case $host in
7642    *-*-amigaos* | *-*-msdosdjgpp*)
7643      # Override, as these systems have only a dummy fork() stub
7644      ac_cv_func_fork_works=no
7645      ;;
7646    *)
7647      ac_cv_func_fork_works=yes
7648      ;;
7649  esac
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7651$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7652fi
7653ac_cv_func_vfork_works=$ac_cv_func_vfork
7654if test "x$ac_cv_func_vfork" = xyes; then
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7656$as_echo_n "checking for working vfork... " >&6; }
7657if test "${ac_cv_func_vfork_works+set}" = set; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  if test "$cross_compiling" = yes; then :
7661  ac_cv_func_vfork_works=cross
7662else
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665/* Thanks to Paul Eggert for this test.  */
7666$ac_includes_default
7667#include <sys/wait.h>
7668#ifdef HAVE_VFORK_H
7669# include <vfork.h>
7670#endif
7671/* On some sparc systems, changes by the child to local and incoming
7672   argument registers are propagated back to the parent.  The compiler
7673   is told about this with #include <vfork.h>, but some compilers
7674   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7675   static variable whose address is put into a register that is
7676   clobbered by the vfork.  */
7677static void
7678#ifdef __cplusplus
7679sparc_address_test (int arg)
7680# else
7681sparc_address_test (arg) int arg;
7682#endif
7683{
7684  static pid_t child;
7685  if (!child) {
7686    child = vfork ();
7687    if (child < 0) {
7688      perror ("vfork");
7689      _exit(2);
7690    }
7691    if (!child) {
7692      arg = getpid();
7693      write(-1, "", 0);
7694      _exit (arg);
7695    }
7696  }
7697}
7698
7699int
7700main ()
7701{
7702  pid_t parent = getpid ();
7703  pid_t child;
7704
7705  sparc_address_test (0);
7706
7707  child = vfork ();
7708
7709  if (child == 0) {
7710    /* Here is another test for sparc vfork register problems.  This
7711       test uses lots of local variables, at least as many local
7712       variables as main has allocated so far including compiler
7713       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7714       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7715       reuse the register of parent for one of the local variables,
7716       since it will think that parent can't possibly be used any more
7717       in this routine.  Assigning to the local variable will thus
7718       munge parent in the parent process.  */
7719    pid_t
7720      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7721      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7722    /* Convince the compiler that p..p7 are live; otherwise, it might
7723       use the same hardware register for all 8 local variables.  */
7724    if (p != p1 || p != p2 || p != p3 || p != p4
7725	|| p != p5 || p != p6 || p != p7)
7726      _exit(1);
7727
7728    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7729       from child file descriptors.  If the child closes a descriptor
7730       before it execs or exits, this munges the parent's descriptor
7731       as well.  Test for this by closing stdout in the child.  */
7732    _exit(close(fileno(stdout)) != 0);
7733  } else {
7734    int status;
7735    struct stat st;
7736
7737    while (wait(&status) != child)
7738      ;
7739    return (
7740	 /* Was there some problem with vforking?  */
7741	 child < 0
7742
7743	 /* Did the child fail?  (This shouldn't happen.)  */
7744	 || status
7745
7746	 /* Did the vfork/compiler bug occur?  */
7747	 || parent != getpid()
7748
7749	 /* Did the file descriptor bug occur?  */
7750	 || fstat(fileno(stdout), &st) != 0
7751	 );
7752  }
7753}
7754_ACEOF
7755if ac_fn_c_try_run "$LINENO"; then :
7756  ac_cv_func_vfork_works=yes
7757else
7758  ac_cv_func_vfork_works=no
7759fi
7760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7761  conftest.$ac_objext conftest.beam conftest.$ac_ext
7762fi
7763
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7766$as_echo "$ac_cv_func_vfork_works" >&6; }
7767
7768fi;
7769if test "x$ac_cv_func_fork_works" = xcross; then
7770  ac_cv_func_vfork_works=$ac_cv_func_vfork
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7772$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7773fi
7774
7775if test "x$ac_cv_func_vfork_works" = xyes; then
7776
7777$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
7778
7779else
7780
7781$as_echo "@%:@define vfork fork" >>confdefs.h
7782
7783fi
7784if test "x$ac_cv_func_fork_works" = xyes; then
7785
7786$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
7787
7788fi
7789
7790for ac_func in vprintf
7791do :
7792  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7793if test "x$ac_cv_func_vprintf" = x""yes; then :
7794  cat >>confdefs.h <<_ACEOF
7795@%:@define HAVE_VPRINTF 1
7796_ACEOF
7797
7798ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7799if test "x$ac_cv_func__doprnt" = x""yes; then :
7800
7801$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
7802
7803fi
7804
7805fi
7806done
7807
7808
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7810$as_echo_n "checking whether closedir returns void... " >&6; }
7811if test "${ac_cv_func_closedir_void+set}" = set; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  if test "$cross_compiling" = yes; then :
7815  ac_cv_func_closedir_void=yes
7816else
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819$ac_includes_default
7820#include <$ac_header_dirent>
7821#ifndef __cplusplus
7822int closedir ();
7823#endif
7824
7825int
7826main ()
7827{
7828return closedir (opendir (".")) != 0;
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_run "$LINENO"; then :
7834  ac_cv_func_closedir_void=no
7835else
7836  ac_cv_func_closedir_void=yes
7837fi
7838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7839  conftest.$ac_objext conftest.beam conftest.$ac_ext
7840fi
7841
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7844$as_echo "$ac_cv_func_closedir_void" >&6; }
7845if test $ac_cv_func_closedir_void = yes; then
7846
7847$as_echo "@%:@define CLOSEDIR_VOID 1" >>confdefs.h
7848
7849fi
7850
7851
7852ac_have_func=no # yes means we've found a way to get the load average.
7853
7854# Make sure getloadavg.c is where it belongs, at configure-time.
7855test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
7856  as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
7857
7858ac_save_LIBS=$LIBS
7859
7860# Check for getloadavg, but be sure not to touch the cache variable.
7861(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
7862if test "x$ac_cv_func_getloadavg" = x""yes; then :
7863  exit 0
7864else
7865  exit 1
7866fi
7867) && ac_have_func=yes
7868
7869# On HPUX9, an unprivileged user can get load averages through this function.
7870for ac_func in pstat_getdynamic
7871do :
7872  ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
7873if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
7874  cat >>confdefs.h <<_ACEOF
7875@%:@define HAVE_PSTAT_GETDYNAMIC 1
7876_ACEOF
7877
7878fi
7879done
7880
7881
7882# Solaris has libkstat which does not require root.
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
7884$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
7885if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  ac_check_lib_save_LIBS=$LIBS
7889LIBS="-lkstat  $LIBS"
7890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892
7893/* Override any GCC internal prototype to avoid an error.
7894   Use char because int might match the return type of a GCC
7895   builtin and then its argument prototype would still apply.  */
7896#ifdef __cplusplus
7897extern "C"
7898#endif
7899char kstat_open ();
7900int
7901main ()
7902{
7903return kstat_open ();
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908if ac_fn_c_try_link "$LINENO"; then :
7909  ac_cv_lib_kstat_kstat_open=yes
7910else
7911  ac_cv_lib_kstat_kstat_open=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext \
7914    conftest$ac_exeext conftest.$ac_ext
7915LIBS=$ac_check_lib_save_LIBS
7916fi
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
7918$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
7919if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
7920  cat >>confdefs.h <<_ACEOF
7921@%:@define HAVE_LIBKSTAT 1
7922_ACEOF
7923
7924  LIBS="-lkstat $LIBS"
7925
7926fi
7927
7928test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
7929
7930# Some systems with -lutil have (and need) -lkvm as well, some do not.
7931# On Solaris, -lkvm requires nlist from -lelf, so check that first
7932# to get the right answer into the cache.
7933# For kstat on solaris, we need libelf to force the definition of SVR4 below.
7934if test $ac_have_func = no; then
7935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
7936$as_echo_n "checking for elf_begin in -lelf... " >&6; }
7937if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  ac_check_lib_save_LIBS=$LIBS
7941LIBS="-lelf  $LIBS"
7942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944
7945/* Override any GCC internal prototype to avoid an error.
7946   Use char because int might match the return type of a GCC
7947   builtin and then its argument prototype would still apply.  */
7948#ifdef __cplusplus
7949extern "C"
7950#endif
7951char elf_begin ();
7952int
7953main ()
7954{
7955return elf_begin ();
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960if ac_fn_c_try_link "$LINENO"; then :
7961  ac_cv_lib_elf_elf_begin=yes
7962else
7963  ac_cv_lib_elf_elf_begin=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext \
7966    conftest$ac_exeext conftest.$ac_ext
7967LIBS=$ac_check_lib_save_LIBS
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
7970$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
7971if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
7972  LIBS="-lelf $LIBS"
7973fi
7974
7975fi
7976if test $ac_have_func = no; then
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
7978$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
7979if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  ac_check_lib_save_LIBS=$LIBS
7983LIBS="-lkvm  $LIBS"
7984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986
7987/* Override any GCC internal prototype to avoid an error.
7988   Use char because int might match the return type of a GCC
7989   builtin and then its argument prototype would still apply.  */
7990#ifdef __cplusplus
7991extern "C"
7992#endif
7993char kvm_open ();
7994int
7995main ()
7996{
7997return kvm_open ();
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003  ac_cv_lib_kvm_kvm_open=yes
8004else
8005  ac_cv_lib_kvm_kvm_open=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008    conftest$ac_exeext conftest.$ac_ext
8009LIBS=$ac_check_lib_save_LIBS
8010fi
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8012$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
8013if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
8014  LIBS="-lkvm $LIBS"
8015fi
8016
8017  # Check for the 4.4BSD definition of getloadavg.
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8019$as_echo_n "checking for getloadavg in -lutil... " >&6; }
8020if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  ac_check_lib_save_LIBS=$LIBS
8024LIBS="-lutil  $LIBS"
8025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027
8028/* Override any GCC internal prototype to avoid an error.
8029   Use char because int might match the return type of a GCC
8030   builtin and then its argument prototype would still apply.  */
8031#ifdef __cplusplus
8032extern "C"
8033#endif
8034char getloadavg ();
8035int
8036main ()
8037{
8038return getloadavg ();
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043if ac_fn_c_try_link "$LINENO"; then :
8044  ac_cv_lib_util_getloadavg=yes
8045else
8046  ac_cv_lib_util_getloadavg=no
8047fi
8048rm -f core conftest.err conftest.$ac_objext \
8049    conftest$ac_exeext conftest.$ac_ext
8050LIBS=$ac_check_lib_save_LIBS
8051fi
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8053$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
8054if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
8055  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8056fi
8057
8058fi
8059
8060if test $ac_have_func = no; then
8061  # There is a commonly available library for RS/6000 AIX.
8062  # Since it is not a standard part of AIX, it might be installed locally.
8063  ac_getloadavg_LIBS=$LIBS
8064  LIBS="-L/usr/local/lib $LIBS"
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8066$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
8067if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  ac_check_lib_save_LIBS=$LIBS
8071LIBS="-lgetloadavg  $LIBS"
8072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074
8075/* Override any GCC internal prototype to avoid an error.
8076   Use char because int might match the return type of a GCC
8077   builtin and then its argument prototype would still apply.  */
8078#ifdef __cplusplus
8079extern "C"
8080#endif
8081char getloadavg ();
8082int
8083main ()
8084{
8085return getloadavg ();
8086  ;
8087  return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_link "$LINENO"; then :
8091  ac_cv_lib_getloadavg_getloadavg=yes
8092else
8093  ac_cv_lib_getloadavg_getloadavg=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext \
8096    conftest$ac_exeext conftest.$ac_ext
8097LIBS=$ac_check_lib_save_LIBS
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8100$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8101if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
8102  LIBS="-lgetloadavg $LIBS"
8103else
8104  LIBS=$ac_getloadavg_LIBS
8105fi
8106
8107fi
8108
8109# Make sure it is really in the library, if we think we found it,
8110# otherwise set up the replacement function.
8111for ac_func in getloadavg
8112do :
8113  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8114if test "x$ac_cv_func_getloadavg" = x""yes; then :
8115  cat >>confdefs.h <<_ACEOF
8116@%:@define HAVE_GETLOADAVG 1
8117_ACEOF
8118
8119else
8120  case " $LIB@&t@OBJS " in
8121  *" getloadavg.$ac_objext "* ) ;;
8122  *) LIB@&t@OBJS="$LIB@&t@OBJS getloadavg.$ac_objext"
8123 ;;
8124esac
8125
8126
8127$as_echo "@%:@define C_GETLOADAVG 1" >>confdefs.h
8128
8129# Figure out what our getloadavg.c needs.
8130ac_have_func=no
8131ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8132if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
8133  ac_have_func=yes
8134
8135$as_echo "@%:@define DGUX 1" >>confdefs.h
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8138$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
8139if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
8140  $as_echo_n "(cached) " >&6
8141else
8142  ac_check_lib_save_LIBS=$LIBS
8143LIBS="-ldgc  $LIBS"
8144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146
8147/* Override any GCC internal prototype to avoid an error.
8148   Use char because int might match the return type of a GCC
8149   builtin and then its argument prototype would still apply.  */
8150#ifdef __cplusplus
8151extern "C"
8152#endif
8153char dg_sys_info ();
8154int
8155main ()
8156{
8157return dg_sys_info ();
8158  ;
8159  return 0;
8160}
8161_ACEOF
8162if ac_fn_c_try_link "$LINENO"; then :
8163  ac_cv_lib_dgc_dg_sys_info=yes
8164else
8165  ac_cv_lib_dgc_dg_sys_info=no
8166fi
8167rm -f core conftest.err conftest.$ac_objext \
8168    conftest$ac_exeext conftest.$ac_ext
8169LIBS=$ac_check_lib_save_LIBS
8170fi
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8172$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8173if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
8174  cat >>confdefs.h <<_ACEOF
8175@%:@define HAVE_LIBDGC 1
8176_ACEOF
8177
8178  LIBS="-ldgc $LIBS"
8179
8180fi
8181
8182fi
8183
8184
8185
8186ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8187if test "x$ac_cv_header_locale_h" = x""yes; then :
8188
8189fi
8190
8191
8192for ac_func in setlocale
8193do :
8194  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
8195if test "x$ac_cv_func_setlocale" = x""yes; then :
8196  cat >>confdefs.h <<_ACEOF
8197@%:@define HAVE_SETLOCALE 1
8198_ACEOF
8199
8200fi
8201done
8202
8203
8204# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8205# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
8206# Irix 4.0.5F has the header but not the library.
8207if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
8208  ac_have_func=yes
8209
8210$as_echo "@%:@define SVR4 1" >>confdefs.h
8211
8212fi
8213
8214if test $ac_have_func = no; then
8215  ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8216if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
8217  ac_have_func=yes
8218
8219$as_echo "@%:@define UMAX 1" >>confdefs.h
8220
8221
8222$as_echo "@%:@define UMAX4_3 1" >>confdefs.h
8223
8224fi
8225
8226
8227fi
8228
8229if test $ac_have_func = no; then
8230  ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8231if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
8232  ac_have_func=yes; $as_echo "@%:@define UMAX 1" >>confdefs.h
8233
8234fi
8235
8236
8237fi
8238
8239if test $ac_have_func = no; then
8240  for ac_header in mach/mach.h
8241do :
8242  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8243if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
8244  cat >>confdefs.h <<_ACEOF
8245@%:@define HAVE_MACH_MACH_H 1
8246_ACEOF
8247
8248fi
8249
8250done
8251
8252fi
8253
8254for ac_header in nlist.h
8255do :
8256  ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8257if test "x$ac_cv_header_nlist_h" = x""yes; then :
8258  cat >>confdefs.h <<_ACEOF
8259@%:@define HAVE_NLIST_H 1
8260_ACEOF
8261 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "@%:@include <nlist.h>
8262"
8263if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
8264
8265cat >>confdefs.h <<_ACEOF
8266@%:@define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
8267_ACEOF
8268
8269
8270$as_echo "@%:@define NLIST_NAME_UNION 1" >>confdefs.h
8271
8272fi
8273
8274
8275fi
8276
8277done
8278
8279fi
8280done
8281
8282
8283# Some definitions of getloadavg require that the program be installed setgid.
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
8285$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
8286if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
8292#ifdef LDAV_PRIVILEGED
8293Yowza Am I SETGID yet
8294@%:@endif
8295_ACEOF
8296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8297  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
8298  ac_cv_func_getloadavg_setgid=yes
8299else
8300  ac_cv_func_getloadavg_setgid=no
8301fi
8302rm -f conftest*
8303
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
8306$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
8307if test $ac_cv_func_getloadavg_setgid = yes; then
8308  NEED_SETGID=true
8309
8310$as_echo "@%:@define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
8311
8312else
8313  NEED_SETGID=false
8314fi
8315
8316if test $ac_cv_func_getloadavg_setgid = yes; then
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
8318$as_echo_n "checking group of /dev/kmem... " >&6; }
8319if test "${ac_cv_group_kmem+set}" = set; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
8323  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
8324  # If we got an error (system does not support symlinks), try without -L.
8325  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
8326  ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
8327    | sed -ne 's/[	 ][	 ]*/ /g;
8328	       s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
8329	       / /s/.* //;p;'`
8330
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
8333$as_echo "$ac_cv_group_kmem" >&6; }
8334  KMEM_GROUP=$ac_cv_group_kmem
8335fi
8336if test "x$ac_save_LIBS" = x; then
8337  GETLOADAVG_LIBS=$LIBS
8338else
8339  GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
8340fi
8341LIBS=$ac_save_LIBS
8342
8343
8344
8345# AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
8346# doesn't.  So, we will.
8347
8348if test "$ac_cv_header_nlist_h" = yes; then
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351#include <nlist.h>
8352int
8353main ()
8354{
8355struct nlist nl;
8356          nl.n_name = "string";
8357          return 0;
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_compile "$LINENO"; then :
8363  make_cv_nlist_struct=yes
8364else
8365  make_cv_nlist_struct=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368  if test "$make_cv_nlist_struct" = yes; then
8369
8370$as_echo "@%:@define NLIST_STRUCT 1" >>confdefs.h
8371
8372  fi
8373fi
8374
8375ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
8376#include <signal.h>
8377/* NetBSD declares sys_siglist in unistd.h.  */
8378#if HAVE_UNISTD_H
8379# include <unistd.h>
8380#endif
8381
8382"
8383if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8384  ac_have_decl=1
8385else
8386  ac_have_decl=0
8387fi
8388
8389cat >>confdefs.h <<_ACEOF
8390@%:@define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8391_ACEOF
8392ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
8393#include <signal.h>
8394/* NetBSD declares sys_siglist in unistd.h.  */
8395#if HAVE_UNISTD_H
8396# include <unistd.h>
8397#endif
8398
8399"
8400if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
8401  ac_have_decl=1
8402else
8403  ac_have_decl=0
8404fi
8405
8406cat >>confdefs.h <<_ACEOF
8407@%:@define HAVE_DECL__SYS_SIGLIST $ac_have_decl
8408_ACEOF
8409ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
8410#include <signal.h>
8411/* NetBSD declares sys_siglist in unistd.h.  */
8412#if HAVE_UNISTD_H
8413# include <unistd.h>
8414#endif
8415
8416"
8417if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8418  ac_have_decl=1
8419else
8420  ac_have_decl=0
8421fi
8422
8423cat >>confdefs.h <<_ACEOF
8424@%:@define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8425_ACEOF
8426
8427
8428
8429# Check out the wait reality.
8430for ac_header in sys/wait.h
8431do :
8432  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
8433if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
8434  cat >>confdefs.h <<_ACEOF
8435@%:@define HAVE_SYS_WAIT_H 1
8436_ACEOF
8437
8438fi
8439
8440done
8441
8442for ac_func in waitpid wait3
8443do :
8444  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8445ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8446eval as_val=\$$as_ac_var
8447   if test "x$as_val" = x""yes; then :
8448  cat >>confdefs.h <<_ACEOF
8449@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8450_ACEOF
8451
8452fi
8453done
8454
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
8456$as_echo_n "checking for union wait... " >&6; }
8457if test "${make_cv_union_wait+set}" = set; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462#include <sys/types.h>
8463#include <sys/wait.h>
8464int
8465main ()
8466{
8467union wait status; int pid; pid = wait (&status);
8468#ifdef WEXITSTATUS
8469/* Some POSIXoid systems have both the new-style macros and the old
8470   union wait type, and they do not work together.  If union wait
8471   conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
8472        if (WEXITSTATUS (status) != 0) pid = -1;
8473#ifdef WTERMSIG
8474        /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
8475        -- blow chunks here --
8476#endif
8477#endif
8478#ifdef HAVE_WAITPID
8479        /* Make sure union wait works with waitpid.  */
8480        pid = waitpid (-1, &status, 0);
8481#endif
8482
8483  ;
8484  return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_link "$LINENO"; then :
8488  make_cv_union_wait=yes
8489else
8490  make_cv_union_wait=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext \
8493    conftest$ac_exeext conftest.$ac_ext
8494fi
8495
8496if test "$make_cv_union_wait" = yes; then
8497
8498$as_echo "@%:@define HAVE_UNION_WAIT 1" >>confdefs.h
8499
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
8502$as_echo "$make_cv_union_wait" >&6; }
8503
8504
8505# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
8506if test "$PATH_SEPARATOR" = ';'; then
8507
8508$as_echo "@%:@define HAVE_DOS_PATHS 1" >>confdefs.h
8509
8510fi
8511
8512
8513# See if the user wants to use pmake's "customs" distributed build capability
8514
8515 REMOTE=stub
8516use_customs=false
8517
8518@%:@ Check whether --with-customs was given.
8519if test "${with_customs+set}" = set; then :
8520  withval=$with_customs; case $withval in
8521    n|no) : ;;
8522    *) make_cppflags="$CPPFLAGS"
8523       case $withval in
8524	 y|ye|yes) : ;;
8525	 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
8526	    make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
8527       esac
8528
8529cf_test_netlibs=no
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
8531$as_echo_n "checking for network libraries... " >&6; }
8532if test "${cf_cv_netlibs+set}" = set; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
8537$as_echo "working..." >&6; }
8538cf_cv_netlibs=""
8539cf_test_netlibs=yes
8540for ac_func in gethostname
8541do :
8542  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
8543if test "x$ac_cv_func_gethostname" = x""yes; then :
8544  cat >>confdefs.h <<_ACEOF
8545@%:@define HAVE_GETHOSTNAME 1
8546_ACEOF
8547
8548else
8549
8550
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
8552$as_echo_n "checking for gethostname in -lnsl... " >&6; }
8553if test "${ac_cv_lib_nsl_gethostname+set}" = set; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  ac_check_lib_save_LIBS=$LIBS
8557LIBS="-lnsl $cf_cv_netlibs $LIBS"
8558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560
8561/* Override any GCC internal prototype to avoid an error.
8562   Use char because int might match the return type of a GCC
8563   builtin and then its argument prototype would still apply.  */
8564#ifdef __cplusplus
8565extern "C"
8566#endif
8567char gethostname ();
8568int
8569main ()
8570{
8571return gethostname ();
8572  ;
8573  return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_link "$LINENO"; then :
8577  ac_cv_lib_nsl_gethostname=yes
8578else
8579  ac_cv_lib_nsl_gethostname=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext \
8582    conftest$ac_exeext conftest.$ac_ext
8583LIBS=$ac_check_lib_save_LIBS
8584fi
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
8586$as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
8587if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then :
8588
8589
8590cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8591
8592
8593cat >>confdefs.h <<_ACEOF
8594@%:@define HAVE_$cf_tr_func 1
8595_ACEOF
8596
8597	ac_cv_func_gethostname=yes
8598	cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8599else
8600
8601	ac_cv_func_gethostname=unknown
8602	unset ac_cv_func_gethostname 2>/dev/null
8603
8604
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
8606$as_echo_n "checking for gethostname in -lsocket... " >&6; }
8607if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  ac_check_lib_save_LIBS=$LIBS
8611LIBS="-lsocket $cf_cv_netlibs $LIBS"
8612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614
8615/* Override any GCC internal prototype to avoid an error.
8616   Use char because int might match the return type of a GCC
8617   builtin and then its argument prototype would still apply.  */
8618#ifdef __cplusplus
8619extern "C"
8620#endif
8621char gethostname ();
8622int
8623main ()
8624{
8625return gethostname ();
8626  ;
8627  return 0;
8628}
8629_ACEOF
8630if ac_fn_c_try_link "$LINENO"; then :
8631  ac_cv_lib_socket_gethostname=yes
8632else
8633  ac_cv_lib_socket_gethostname=no
8634fi
8635rm -f core conftest.err conftest.$ac_objext \
8636    conftest$ac_exeext conftest.$ac_ext
8637LIBS=$ac_check_lib_save_LIBS
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
8640$as_echo "$ac_cv_lib_socket_gethostname" >&6; }
8641if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
8642
8643
8644cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8645
8646
8647cat >>confdefs.h <<_ACEOF
8648@%:@define HAVE_$cf_tr_func 1
8649_ACEOF
8650
8651	ac_cv_func_gethostname=yes
8652	cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8653else
8654
8655	ac_cv_func_gethostname=unknown
8656	unset ac_cv_func_gethostname 2>/dev/null
8657
8658fi
8659
8660
8661fi
8662
8663
8664fi
8665done
8666
8667#
8668# FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
8669# I don't know the entrypoints - 97/7/22 TD
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
8671$as_echo_n "checking for main in -linet... " >&6; }
8672if test "${ac_cv_lib_inet_main+set}" = set; then :
8673  $as_echo_n "(cached) " >&6
8674else
8675  ac_check_lib_save_LIBS=$LIBS
8676LIBS="-linet  $LIBS"
8677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679
8680
8681int
8682main ()
8683{
8684return main ();
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_c_try_link "$LINENO"; then :
8690  ac_cv_lib_inet_main=yes
8691else
8692  ac_cv_lib_inet_main=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext \
8695    conftest$ac_exeext conftest.$ac_ext
8696LIBS=$ac_check_lib_save_LIBS
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
8699$as_echo "$ac_cv_lib_inet_main" >&6; }
8700if test "x$ac_cv_lib_inet_main" = x""yes; then :
8701  cf_cv_netlibs="-linet $cf_cv_netlibs"
8702fi
8703
8704#
8705if test "$ac_cv_func_lsocket" != no ; then
8706for ac_func in socket
8707do :
8708  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
8709if test "x$ac_cv_func_socket" = x""yes; then :
8710  cat >>confdefs.h <<_ACEOF
8711@%:@define HAVE_SOCKET 1
8712_ACEOF
8713
8714else
8715
8716
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8718$as_echo_n "checking for socket in -lsocket... " >&6; }
8719if test "${ac_cv_lib_socket_socket+set}" = set; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  ac_check_lib_save_LIBS=$LIBS
8723LIBS="-lsocket $cf_cv_netlibs $LIBS"
8724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726
8727/* Override any GCC internal prototype to avoid an error.
8728   Use char because int might match the return type of a GCC
8729   builtin and then its argument prototype would still apply.  */
8730#ifdef __cplusplus
8731extern "C"
8732#endif
8733char socket ();
8734int
8735main ()
8736{
8737return socket ();
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"; then :
8743  ac_cv_lib_socket_socket=yes
8744else
8745  ac_cv_lib_socket_socket=no
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748    conftest$ac_exeext conftest.$ac_ext
8749LIBS=$ac_check_lib_save_LIBS
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8752$as_echo "$ac_cv_lib_socket_socket" >&6; }
8753if test "x$ac_cv_lib_socket_socket" = x""yes; then :
8754
8755
8756cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8757
8758
8759cat >>confdefs.h <<_ACEOF
8760@%:@define HAVE_$cf_tr_func 1
8761_ACEOF
8762
8763	ac_cv_func_socket=yes
8764	cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8765else
8766
8767	ac_cv_func_socket=unknown
8768	unset ac_cv_func_socket 2>/dev/null
8769
8770
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
8772$as_echo_n "checking for socket in -lbsd... " >&6; }
8773if test "${ac_cv_lib_bsd_socket+set}" = set; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  ac_check_lib_save_LIBS=$LIBS
8777LIBS="-lbsd $cf_cv_netlibs $LIBS"
8778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h.  */
8780
8781/* Override any GCC internal prototype to avoid an error.
8782   Use char because int might match the return type of a GCC
8783   builtin and then its argument prototype would still apply.  */
8784#ifdef __cplusplus
8785extern "C"
8786#endif
8787char socket ();
8788int
8789main ()
8790{
8791return socket ();
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"; then :
8797  ac_cv_lib_bsd_socket=yes
8798else
8799  ac_cv_lib_bsd_socket=no
8800fi
8801rm -f core conftest.err conftest.$ac_objext \
8802    conftest$ac_exeext conftest.$ac_ext
8803LIBS=$ac_check_lib_save_LIBS
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
8806$as_echo "$ac_cv_lib_bsd_socket" >&6; }
8807if test "x$ac_cv_lib_bsd_socket" = x""yes; then :
8808
8809
8810cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8811
8812
8813cat >>confdefs.h <<_ACEOF
8814@%:@define HAVE_$cf_tr_func 1
8815_ACEOF
8816
8817	ac_cv_func_socket=yes
8818	cf_cv_netlibs="-lbsd $cf_cv_netlibs"
8819else
8820
8821	ac_cv_func_socket=unknown
8822	unset ac_cv_func_socket 2>/dev/null
8823
8824fi
8825
8826
8827fi
8828
8829
8830fi
8831done
8832
8833fi
8834#
8835for ac_func in gethostbyname
8836do :
8837  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8838if test "x$ac_cv_func_gethostbyname" = x""yes; then :
8839  cat >>confdefs.h <<_ACEOF
8840@%:@define HAVE_GETHOSTBYNAME 1
8841_ACEOF
8842
8843else
8844
8845
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8847$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8848if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  ac_check_lib_save_LIBS=$LIBS
8852LIBS="-lnsl $cf_cv_netlibs $LIBS"
8853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854/* end confdefs.h.  */
8855
8856/* Override any GCC internal prototype to avoid an error.
8857   Use char because int might match the return type of a GCC
8858   builtin and then its argument prototype would still apply.  */
8859#ifdef __cplusplus
8860extern "C"
8861#endif
8862char gethostbyname ();
8863int
8864main ()
8865{
8866return gethostbyname ();
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"; then :
8872  ac_cv_lib_nsl_gethostbyname=yes
8873else
8874  ac_cv_lib_nsl_gethostbyname=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext \
8877    conftest$ac_exeext conftest.$ac_ext
8878LIBS=$ac_check_lib_save_LIBS
8879fi
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8881$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8882if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
8883
8884
8885cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
8886
8887
8888cat >>confdefs.h <<_ACEOF
8889@%:@define HAVE_$cf_tr_func 1
8890_ACEOF
8891
8892	ac_cv_func_gethostbyname=yes
8893	cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8894else
8895
8896	ac_cv_func_gethostbyname=unknown
8897	unset ac_cv_func_gethostbyname 2>/dev/null
8898
8899fi
8900
8901
8902fi
8903done
8904
8905#
8906for ac_func in strcasecmp
8907do :
8908  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8909if test "x$ac_cv_func_strcasecmp" = x""yes; then :
8910  cat >>confdefs.h <<_ACEOF
8911@%:@define HAVE_STRCASECMP 1
8912_ACEOF
8913
8914else
8915
8916
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8918$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8919if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
8920  $as_echo_n "(cached) " >&6
8921else
8922  ac_check_lib_save_LIBS=$LIBS
8923LIBS="-lresolv $cf_cv_netlibs $LIBS"
8924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926
8927/* Override any GCC internal prototype to avoid an error.
8928   Use char because int might match the return type of a GCC
8929   builtin and then its argument prototype would still apply.  */
8930#ifdef __cplusplus
8931extern "C"
8932#endif
8933char strcasecmp ();
8934int
8935main ()
8936{
8937return strcasecmp ();
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_link "$LINENO"; then :
8943  ac_cv_lib_resolv_strcasecmp=yes
8944else
8945  ac_cv_lib_resolv_strcasecmp=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext \
8948    conftest$ac_exeext conftest.$ac_ext
8949LIBS=$ac_check_lib_save_LIBS
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8952$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8953if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
8954
8955
8956cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
8957
8958
8959cat >>confdefs.h <<_ACEOF
8960@%:@define HAVE_$cf_tr_func 1
8961_ACEOF
8962
8963	ac_cv_func_strcasecmp=yes
8964	cf_cv_netlibs="-lresolv $cf_cv_netlibs"
8965else
8966
8967	ac_cv_func_strcasecmp=unknown
8968	unset ac_cv_func_strcasecmp 2>/dev/null
8969
8970fi
8971
8972
8973fi
8974done
8975
8976
8977fi
8978
8979LIBS="$LIBS $cf_cv_netlibs"
8980test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
8981
8982       ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
8983if test "x$ac_cv_header_customs_h" = x""yes; then :
8984  use_customs=true
8985		         REMOTE=cstms
8986			 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
8987else
8988  with_customs=no
8989			 CPPFLAGS="$make_cppflags" make_badcust=yes
8990fi
8991
8992
8993       ;;
8994  esac
8995fi
8996
8997# Tell automake about this, so it can include the right .c files.
8998
8999
9000if test "$use_customs" = true; then
9001  USE_CUSTOMS_TRUE=
9002  USE_CUSTOMS_FALSE='#'
9003else
9004  USE_CUSTOMS_TRUE='#'
9005  USE_CUSTOMS_FALSE=
9006fi
9007
9008
9009# See if the user asked to handle case insensitive file systems.
9010
9011
9012@%:@ Check whether --enable-case-insensitive-file-system was given.
9013if test "${enable_case_insensitive_file_system+set}" = set; then :
9014  enableval=$enable_case_insensitive_file_system; case_insensitive_fs="yes" $as_echo "@%:@define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
9015
9016else
9017  case_insensitive_fs="no"
9018fi
9019
9020
9021# See if we can handle the job server feature, and if the user wants it.
9022
9023@%:@ Check whether --enable-job-server was given.
9024if test "${enable_job_server+set}" = set; then :
9025  enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
9026else
9027  make_cv_job_server="yes"
9028fi
9029
9030
9031has_wait_nohang=yes
9032case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
9033  no/no) has_wait_nohang=no ;;
9034esac
9035
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
9037$as_echo_n "checking for SA_RESTART... " >&6; }
9038if test "${make_cv_sa_restart+set}" = set; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044#include <signal.h>
9045int
9046main ()
9047{
9048return SA_RESTART;
9049  ;
9050  return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"; then :
9054  make_cv_sa_restart=yes
9055else
9056  make_cv_sa_restart=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
9061$as_echo "$make_cv_sa_restart" >&6; }
9062
9063if test "$make_cv_sa_restart" != no; then
9064
9065$as_echo "@%:@define HAVE_SA_RESTART 1" >>confdefs.h
9066
9067fi
9068
9069# enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled,
9070# but do it after HAVE_SA_RESTART has been defined.
9071case "$host_os" in
9072  os2*) make_cv_sa_restart=yes ;;
9073esac
9074
9075case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
9076  yes/yes/yes/yes/yes)
9077
9078$as_echo "@%:@define MAKE_JOBSERVER 1" >>confdefs.h
9079;;
9080esac
9081
9082# if we have both lstat() and readlink() then we can support symlink
9083# timechecks.
9084case "$ac_cv_func_lstat/$ac_cv_func_readlink" in
9085  yes/yes)
9086
9087$as_echo "@%:@define MAKE_SYMLINKS 1" >>confdefs.h
9088;;
9089esac
9090
9091# Find the SCCS commands, so we can include them in our default rules.
9092
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
9094$as_echo_n "checking for location of SCCS get command... " >&6; }
9095if test "${make_cv_path_sccs_get+set}" = set; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098
9099if test -f /usr/sccs/get; then
9100  make_cv_path_sccs_get=/usr/sccs/get
9101else
9102  make_cv_path_sccs_get=get
9103fi
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
9106$as_echo "$make_cv_path_sccs_get" >&6; }
9107
9108cat >>confdefs.h <<_ACEOF
9109@%:@define SCCS_GET "$make_cv_path_sccs_get"
9110_ACEOF
9111
9112
9113ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
9114if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
9115   test -f s.conftest; then
9116  # We successfully created an SCCS file.
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
9118$as_echo_n "checking if SCCS get command understands -G... " >&6; }
9119if test "${make_cv_sys_get_minus_G+set}" = set; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122
9123    if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
9124       test -f conftoast; then
9125       make_cv_sys_get_minus_G=yes
9126    else
9127       make_cv_sys_get_minus_G=no
9128    fi
9129fi
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
9131$as_echo "$make_cv_sys_get_minus_G" >&6; }
9132  case "$make_cv_sys_get_minus_G" in
9133    yes)
9134$as_echo "@%:@define SCCS_GET_MINUS_G 1" >>confdefs.h
9135;;
9136  esac
9137fi
9138rm -f s.conftest conftoast
9139
9140# Check the system to see if it provides GNU glob.  If not, use our
9141# local version.
9142
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
9144$as_echo_n "checking if system libc has GNU glob... " >&6; }
9145if test "${make_cv_sys_gnu_glob+set}" = set; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151
9152#include <features.h>
9153#include <glob.h>
9154#include <fnmatch.h>
9155
9156#define GLOB_INTERFACE_VERSION 1
9157#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
9158# include <gnu-versions.h>
9159# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
9160   gnu glob
9161# endif
9162#endif
9163
9164_ACEOF
9165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9166  $EGREP "gnu glob" >/dev/null 2>&1; then :
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9168$as_echo "yes" >&6; }
9169make_cv_sys_gnu_glob=yes
9170else
9171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; using local copy" >&5
9172$as_echo "no; using local copy" >&6; }
9173 GLOBINC='-I$(srcdir)/glob'
9174 GLOBLIB=glob/libglob.a
9175make_cv_sys_gnu_glob=no
9176fi
9177rm -f conftest*
9178
9179fi
9180
9181# Tell automake about this, so it can build the right .c files.
9182
9183
9184if test "$make_cv_sys_gnu_glob" = no; then
9185  USE_LOCAL_GLOB_TRUE=
9186  USE_LOCAL_GLOB_FALSE='#'
9187else
9188  USE_LOCAL_GLOB_TRUE='#'
9189  USE_LOCAL_GLOB_FALSE=
9190fi
9191
9192
9193# Let the makefile know what our build host is
9194
9195
9196cat >>confdefs.h <<_ACEOF
9197@%:@define MAKE_HOST "$host"
9198_ACEOF
9199
9200MAKE_HOST="$host"
9201
9202
9203w32_target_env=no
9204
9205
9206if false; then
9207  WINDOWSENV_TRUE=
9208  WINDOWSENV_FALSE='#'
9209else
9210  WINDOWSENV_TRUE='#'
9211  WINDOWSENV_FALSE=
9212fi
9213
9214
9215case "$host" in
9216  *-*-mingw32)
9217
9218
9219if true; then
9220  WINDOWSENV_TRUE=
9221  WINDOWSENV_FALSE='#'
9222else
9223  WINDOWSENV_TRUE='#'
9224  WINDOWSENV_FALSE=
9225fi
9226
9227    w32_target_env=yes
9228
9229$as_echo "@%:@define WINDOWS32 1" >>confdefs.h
9230
9231
9232$as_echo "@%:@define HAVE_DOS_PATHS 1" >>confdefs.h
9233
9234    ;;
9235esac
9236
9237# Include the Maintainer's Makefile section, if it's here.
9238
9239MAINT_MAKEFILE=/dev/null
9240if test -r "$srcdir/maintMakefile"; then
9241  MAINT_MAKEFILE="$srcdir/maintMakefile"
9242fi
9243
9244
9245# Allow building with dmalloc
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
9247$as_echo_n "checking if malloc debugging is wanted... " >&6; }
9248
9249@%:@ Check whether --with-dmalloc was given.
9250if test "${with_dmalloc+set}" = set; then :
9251  withval=$with_dmalloc; if test "$withval" = yes; then
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9253$as_echo "yes" >&6; }
9254
9255$as_echo "@%:@define WITH_DMALLOC 1" >>confdefs.h
9256
9257  LIBS="$LIBS -ldmalloc"
9258  LDFLAGS="$LDFLAGS -g"
9259else
9260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
9262fi
9263else
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
9266fi
9267
9268
9269
9270# Forcibly disable SET_MAKE.  If it's set it breaks things like the test
9271# scripts, etc.
9272SET_MAKE=
9273
9274# Sanity check and inform the user of what we found
9275
9276case "$make_badcust" in
9277  yes) echo
9278       echo "WARNING: --with-customs specified but no customs.h could be found;"
9279       echo "         disabling Customs support."
9280       echo ;;
9281esac
9282
9283case "$with_customs" in
9284  ""|n|no|y|ye|yes) ;;
9285  *) if test -f "$with_customs/lib/libcustoms.a"; then
9286       :
9287     else
9288       echo
9289       echo "WARNING: '$with_customs/lib' does not appear to contain the"
9290       echo "         Customs library.  You must build and install Customs"
9291       echo "         before compiling GNU make."
9292       echo
9293     fi ;;
9294esac
9295
9296case "$has_wait_nohang" in
9297  no) echo
9298      echo "WARNING: Your system has neither waitpid() nor wait3()."
9299      echo "         Without one of these, signal handling is unreliable."
9300      echo "         You should be aware that running GNU make with -j"
9301      echo "         could result in erratic behavior."
9302      echo ;;
9303esac
9304
9305case "$make_cv_job_server/$user_job_server" in
9306  no/yes) echo
9307	  echo "WARNING: Make job server requires a POSIX-ish system that"
9308	  echo "         supports the pipe(), sigaction(), and either"
9309          echo "         waitpid() or wait3() functions.  Your system doesn't"
9310	  echo "         appear to provide one or more of those."
9311	  echo "         Disabling job server support."
9312          echo ;;
9313esac
9314
9315
9316# Specify what files are to be created.
9317ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"
9318
9319
9320# OK, do it!
9321
9322cat >confcache <<\_ACEOF
9323# This file is a shell script that caches the results of configure
9324# tests run on this system so they can be shared between configure
9325# scripts and configure runs, see configure's option --config-cache.
9326# It is not useful on other systems.  If it contains results you don't
9327# want to keep, you may remove or edit it.
9328#
9329# config.status only pays attention to the cache file if you give it
9330# the --recheck option to rerun configure.
9331#
9332# `ac_cv_env_foo' variables (set or unset) will be overridden when
9333# loading this file, other *unset* `ac_cv_foo' will be assigned the
9334# following values.
9335
9336_ACEOF
9337
9338# The following way of writing the cache mishandles newlines in values,
9339# but we know of no workaround that is simple, portable, and efficient.
9340# So, we kill variables containing newlines.
9341# Ultrix sh set writes to stderr and can't be redirected directly,
9342# and sets the high bit in the cache file unless we assign to the vars.
9343(
9344  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9345    eval ac_val=\$$ac_var
9346    case $ac_val in #(
9347    *${as_nl}*)
9348      case $ac_var in #(
9349      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9351      esac
9352      case $ac_var in #(
9353      _ | IFS | as_nl) ;; #(
9354      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9355      *) { eval $ac_var=; unset $ac_var;} ;;
9356      esac ;;
9357    esac
9358  done
9359
9360  (set) 2>&1 |
9361    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9362    *${as_nl}ac_space=\ *)
9363      # `set' does not quote correctly, so add quotes: double-quote
9364      # substitution turns \\\\ into \\, and sed turns \\ into \.
9365      sed -n \
9366	"s/'/'\\\\''/g;
9367	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9368      ;; #(
9369    *)
9370      # `set' quotes correctly as required by POSIX, so do not add quotes.
9371      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9372      ;;
9373    esac |
9374    sort
9375) |
9376  sed '
9377     /^ac_cv_env_/b end
9378     t clear
9379     :clear
9380     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9381     t end
9382     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9383     :end' >>confcache
9384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9385  if test -w "$cache_file"; then
9386    test "x$cache_file" != "x/dev/null" &&
9387      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9388$as_echo "$as_me: updating cache $cache_file" >&6;}
9389    cat confcache >$cache_file
9390  else
9391    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9392$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9393  fi
9394fi
9395rm -f confcache
9396
9397test "x$prefix" = xNONE && prefix=$ac_default_prefix
9398# Let make expand exec_prefix.
9399test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9400
9401DEFS=-DHAVE_CONFIG_H
9402
9403ac_libobjs=
9404ac_ltlibobjs=
9405for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
9406  # 1. Remove the extension, and $U if already installed.
9407  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9408  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9409  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9410  #    will be set to the directory where LIBOBJS objects are built.
9411  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9412  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9413done
9414LIB@&t@OBJS=$ac_libobjs
9415
9416LTLIBOBJS=$ac_ltlibobjs
9417
9418
9419if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9420  as_fn_error "conditional \"AMDEP\" was never defined.
9421Usually this means the macro was only invoked conditionally." "$LINENO" 5
9422fi
9423if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9424  as_fn_error "conditional \"am__fastdepCC\" was never defined.
9425Usually this means the macro was only invoked conditionally." "$LINENO" 5
9426fi
9427if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
9428  as_fn_error "conditional \"USE_CUSTOMS\" was never defined.
9429Usually this means the macro was only invoked conditionally." "$LINENO" 5
9430fi
9431if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
9432  as_fn_error "conditional \"USE_LOCAL_GLOB\" was never defined.
9433Usually this means the macro was only invoked conditionally." "$LINENO" 5
9434fi
9435if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9436  as_fn_error "conditional \"WINDOWSENV\" was never defined.
9437Usually this means the macro was only invoked conditionally." "$LINENO" 5
9438fi
9439if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9440  as_fn_error "conditional \"WINDOWSENV\" was never defined.
9441Usually this means the macro was only invoked conditionally." "$LINENO" 5
9442fi
9443
9444: ${CONFIG_STATUS=./config.status}
9445ac_write_fail=0
9446ac_clean_files_save=$ac_clean_files
9447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9449$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9450as_write_fail=0
9451cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9452#! $SHELL
9453# Generated by $as_me.
9454# Run this file to recreate the current configuration.
9455# Compiler output produced by configure, useful for debugging
9456# configure, is in config.log if it exists.
9457
9458debug=false
9459ac_cs_recheck=false
9460ac_cs_silent=false
9461
9462SHELL=\${CONFIG_SHELL-$SHELL}
9463export SHELL
9464_ASEOF
9465cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9466## -------------------- ##
9467## M4sh Initialization. ##
9468## -------------------- ##
9469
9470# Be more Bourne compatible
9471DUALCASE=1; export DUALCASE # for MKS sh
9472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9473  emulate sh
9474  NULLCMD=:
9475  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9476  # is contrary to our usage.  Disable this feature.
9477  alias -g '${1+"$@"}'='"$@"'
9478  setopt NO_GLOB_SUBST
9479else
9480  case `(set -o) 2>/dev/null` in @%:@(
9481  *posix*) :
9482    set -o posix ;; @%:@(
9483  *) :
9484     ;;
9485esac
9486fi
9487
9488
9489as_nl='
9490'
9491export as_nl
9492# Printing a long string crashes Solaris 7 /usr/bin/printf.
9493as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9494as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9495as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9496# Prefer a ksh shell builtin over an external printf program on Solaris,
9497# but without wasting forks for bash or zsh.
9498if test -z "$BASH_VERSION$ZSH_VERSION" \
9499    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9500  as_echo='print -r --'
9501  as_echo_n='print -rn --'
9502elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9503  as_echo='printf %s\n'
9504  as_echo_n='printf %s'
9505else
9506  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9507    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9508    as_echo_n='/usr/ucb/echo -n'
9509  else
9510    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9511    as_echo_n_body='eval
9512      arg=$1;
9513      case $arg in @%:@(
9514      *"$as_nl"*)
9515	expr "X$arg" : "X\\(.*\\)$as_nl";
9516	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9517      esac;
9518      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9519    '
9520    export as_echo_n_body
9521    as_echo_n='sh -c $as_echo_n_body as_echo'
9522  fi
9523  export as_echo_body
9524  as_echo='sh -c $as_echo_body as_echo'
9525fi
9526
9527# The user is always right.
9528if test "${PATH_SEPARATOR+set}" != set; then
9529  PATH_SEPARATOR=:
9530  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9531    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9532      PATH_SEPARATOR=';'
9533  }
9534fi
9535
9536
9537# IFS
9538# We need space, tab and new line, in precisely that order.  Quoting is
9539# there to prevent editors from complaining about space-tab.
9540# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9541# splitting by setting IFS to empty value.)
9542IFS=" ""	$as_nl"
9543
9544# Find who we are.  Look in the path if we contain no directory separator.
9545case $0 in @%:@((
9546  *[\\/]* ) as_myself=$0 ;;
9547  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548for as_dir in $PATH
9549do
9550  IFS=$as_save_IFS
9551  test -z "$as_dir" && as_dir=.
9552    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9553  done
9554IFS=$as_save_IFS
9555
9556     ;;
9557esac
9558# We did not find ourselves, most probably we were run as `sh COMMAND'
9559# in which case we are not to be found in the path.
9560if test "x$as_myself" = x; then
9561  as_myself=$0
9562fi
9563if test ! -f "$as_myself"; then
9564  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9565  exit 1
9566fi
9567
9568# Unset variables that we do not need and which cause bugs (e.g. in
9569# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9570# suppresses any "Segmentation fault" message there.  '((' could
9571# trigger a bug in pdksh 5.2.14.
9572for as_var in BASH_ENV ENV MAIL MAILPATH
9573do eval test x\${$as_var+set} = xset \
9574  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9575done
9576PS1='$ '
9577PS2='> '
9578PS4='+ '
9579
9580# NLS nuisances.
9581LC_ALL=C
9582export LC_ALL
9583LANGUAGE=C
9584export LANGUAGE
9585
9586# CDPATH.
9587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9588
9589
9590@%:@ as_fn_error ERROR [LINENO LOG_FD]
9591@%:@ ---------------------------------
9592@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9593@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9594@%:@ script with status @S|@?, using 1 if that was 0.
9595as_fn_error ()
9596{
9597  as_status=$?; test $as_status -eq 0 && as_status=1
9598  if test "$3"; then
9599    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9600    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9601  fi
9602  $as_echo "$as_me: error: $1" >&2
9603  as_fn_exit $as_status
9604} @%:@ as_fn_error
9605
9606
9607@%:@ as_fn_set_status STATUS
9608@%:@ -----------------------
9609@%:@ Set @S|@? to STATUS, without forking.
9610as_fn_set_status ()
9611{
9612  return $1
9613} @%:@ as_fn_set_status
9614
9615@%:@ as_fn_exit STATUS
9616@%:@ -----------------
9617@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9618as_fn_exit ()
9619{
9620  set +e
9621  as_fn_set_status $1
9622  exit $1
9623} @%:@ as_fn_exit
9624
9625@%:@ as_fn_unset VAR
9626@%:@ ---------------
9627@%:@ Portably unset VAR.
9628as_fn_unset ()
9629{
9630  { eval $1=; unset $1;}
9631}
9632as_unset=as_fn_unset
9633@%:@ as_fn_append VAR VALUE
9634@%:@ ----------------------
9635@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
9636@%:@ advantage of any shell optimizations that allow amortized linear growth over
9637@%:@ repeated appends, instead of the typical quadratic growth present in naive
9638@%:@ implementations.
9639if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9640  eval 'as_fn_append ()
9641  {
9642    eval $1+=\$2
9643  }'
9644else
9645  as_fn_append ()
9646  {
9647    eval $1=\$$1\$2
9648  }
9649fi # as_fn_append
9650
9651@%:@ as_fn_arith ARG...
9652@%:@ ------------------
9653@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
9654@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
9655@%:@ must be portable across @S|@(()) and expr.
9656if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9657  eval 'as_fn_arith ()
9658  {
9659    as_val=$(( $* ))
9660  }'
9661else
9662  as_fn_arith ()
9663  {
9664    as_val=`expr "$@" || test $? -eq 1`
9665  }
9666fi # as_fn_arith
9667
9668
9669if expr a : '\(a\)' >/dev/null 2>&1 &&
9670   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9671  as_expr=expr
9672else
9673  as_expr=false
9674fi
9675
9676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9677  as_basename=basename
9678else
9679  as_basename=false
9680fi
9681
9682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9683  as_dirname=dirname
9684else
9685  as_dirname=false
9686fi
9687
9688as_me=`$as_basename -- "$0" ||
9689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9690	 X"$0" : 'X\(//\)$' \| \
9691	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9692$as_echo X/"$0" |
9693    sed '/^.*\/\([^/][^/]*\)\/*$/{
9694	    s//\1/
9695	    q
9696	  }
9697	  /^X\/\(\/\/\)$/{
9698	    s//\1/
9699	    q
9700	  }
9701	  /^X\/\(\/\).*/{
9702	    s//\1/
9703	    q
9704	  }
9705	  s/.*/./; q'`
9706
9707# Avoid depending upon Character Ranges.
9708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9711as_cr_digits='0123456789'
9712as_cr_alnum=$as_cr_Letters$as_cr_digits
9713
9714ECHO_C= ECHO_N= ECHO_T=
9715case `echo -n x` in @%:@(((((
9716-n*)
9717  case `echo 'xy\c'` in
9718  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9719  xy)  ECHO_C='\c';;
9720  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9721       ECHO_T='	';;
9722  esac;;
9723*)
9724  ECHO_N='-n';;
9725esac
9726
9727rm -f conf$$ conf$$.exe conf$$.file
9728if test -d conf$$.dir; then
9729  rm -f conf$$.dir/conf$$.file
9730else
9731  rm -f conf$$.dir
9732  mkdir conf$$.dir 2>/dev/null
9733fi
9734if (echo >conf$$.file) 2>/dev/null; then
9735  if ln -s conf$$.file conf$$ 2>/dev/null; then
9736    as_ln_s='ln -s'
9737    # ... but there are two gotchas:
9738    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9739    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9740    # In both cases, we have to default to `cp -p'.
9741    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9742      as_ln_s='cp -p'
9743  elif ln conf$$.file conf$$ 2>/dev/null; then
9744    as_ln_s=ln
9745  else
9746    as_ln_s='cp -p'
9747  fi
9748else
9749  as_ln_s='cp -p'
9750fi
9751rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9752rmdir conf$$.dir 2>/dev/null
9753
9754
9755@%:@ as_fn_mkdir_p
9756@%:@ -------------
9757@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
9758as_fn_mkdir_p ()
9759{
9760
9761  case $as_dir in #(
9762  -*) as_dir=./$as_dir;;
9763  esac
9764  test -d "$as_dir" || eval $as_mkdir_p || {
9765    as_dirs=
9766    while :; do
9767      case $as_dir in #(
9768      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9769      *) as_qdir=$as_dir;;
9770      esac
9771      as_dirs="'$as_qdir' $as_dirs"
9772      as_dir=`$as_dirname -- "$as_dir" ||
9773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9774	 X"$as_dir" : 'X\(//\)[^/]' \| \
9775	 X"$as_dir" : 'X\(//\)$' \| \
9776	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9777$as_echo X"$as_dir" |
9778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9779	    s//\1/
9780	    q
9781	  }
9782	  /^X\(\/\/\)[^/].*/{
9783	    s//\1/
9784	    q
9785	  }
9786	  /^X\(\/\/\)$/{
9787	    s//\1/
9788	    q
9789	  }
9790	  /^X\(\/\).*/{
9791	    s//\1/
9792	    q
9793	  }
9794	  s/.*/./; q'`
9795      test -d "$as_dir" && break
9796    done
9797    test -z "$as_dirs" || eval "mkdir $as_dirs"
9798  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9799
9800
9801} @%:@ as_fn_mkdir_p
9802if mkdir -p . 2>/dev/null; then
9803  as_mkdir_p='mkdir -p "$as_dir"'
9804else
9805  test -d ./-p && rmdir ./-p
9806  as_mkdir_p=false
9807fi
9808
9809if test -x / >/dev/null 2>&1; then
9810  as_test_x='test -x'
9811else
9812  if ls -dL / >/dev/null 2>&1; then
9813    as_ls_L_option=L
9814  else
9815    as_ls_L_option=
9816  fi
9817  as_test_x='
9818    eval sh -c '\''
9819      if test -d "$1"; then
9820	test -d "$1/.";
9821      else
9822	case $1 in @%:@(
9823	-*)set "./$1";;
9824	esac;
9825	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
9826	???[sx]*):;;*)false;;esac;fi
9827    '\'' sh
9828  '
9829fi
9830as_executable_p=$as_test_x
9831
9832# Sed expression to map a string onto a valid CPP name.
9833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9834
9835# Sed expression to map a string onto a valid variable name.
9836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9837
9838
9839exec 6>&1
9840## ----------------------------------- ##
9841## Main body of $CONFIG_STATUS script. ##
9842## ----------------------------------- ##
9843_ASEOF
9844test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9845
9846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9847# Save the log message, to keep $0 and so on meaningful, and to
9848# report actual input values of CONFIG_FILES etc. instead of their
9849# values after options handling.
9850ac_log="
9851This file was extended by GNU make $as_me 3.81, which was
9852generated by GNU Autoconf 2.65.  Invocation command line was
9853
9854  CONFIG_FILES    = $CONFIG_FILES
9855  CONFIG_HEADERS  = $CONFIG_HEADERS
9856  CONFIG_LINKS    = $CONFIG_LINKS
9857  CONFIG_COMMANDS = $CONFIG_COMMANDS
9858  $ $0 $@
9859
9860on `(hostname || uname -n) 2>/dev/null | sed 1q`
9861"
9862
9863_ACEOF
9864
9865case $ac_config_files in *"
9866"*) set x $ac_config_files; shift; ac_config_files=$*;;
9867esac
9868
9869case $ac_config_headers in *"
9870"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9871esac
9872
9873
9874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9875# Files that config.status was made for.
9876config_files="$ac_config_files"
9877config_headers="$ac_config_headers"
9878config_commands="$ac_config_commands"
9879
9880_ACEOF
9881
9882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9883ac_cs_usage="\
9884\`$as_me' instantiates files and other configuration actions
9885from templates according to the current configuration.  Unless the files
9886and actions are specified as TAGs, all are instantiated by default.
9887
9888Usage: $0 [OPTION]... [TAG]...
9889
9890  -h, --help       print this help, then exit
9891  -V, --version    print version number and configuration settings, then exit
9892      --config     print configuration, then exit
9893  -q, --quiet, --silent
9894                   do not print progress messages
9895  -d, --debug      don't remove temporary files
9896      --recheck    update $as_me by reconfiguring in the same conditions
9897      --file=FILE[:TEMPLATE]
9898                   instantiate the configuration file FILE
9899      --header=FILE[:TEMPLATE]
9900                   instantiate the configuration header FILE
9901
9902Configuration files:
9903$config_files
9904
9905Configuration headers:
9906$config_headers
9907
9908Configuration commands:
9909$config_commands
9910
9911Report bugs to <bug-make@gnu.org>.
9912GNU make home page: <http://www.gnu.org/software/make/>.
9913General help using GNU software: <http://www.gnu.org/gethelp/>."
9914
9915_ACEOF
9916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9917ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9918ac_cs_version="\\
9919GNU make config.status 3.81
9920configured by $0, generated by GNU Autoconf 2.65,
9921  with options \\"\$ac_cs_config\\"
9922
9923Copyright (C) 2009 Free Software Foundation, Inc.
9924This config.status script is free software; the Free Software Foundation
9925gives unlimited permission to copy, distribute and modify it."
9926
9927ac_pwd='$ac_pwd'
9928srcdir='$srcdir'
9929INSTALL='$INSTALL'
9930AWK='$AWK'
9931test -n "\$AWK" || AWK=awk
9932_ACEOF
9933
9934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9935# The default lists apply if the user does not specify any file.
9936ac_need_defaults=:
9937while test $# != 0
9938do
9939  case $1 in
9940  --*=*)
9941    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9942    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9943    ac_shift=:
9944    ;;
9945  *)
9946    ac_option=$1
9947    ac_optarg=$2
9948    ac_shift=shift
9949    ;;
9950  esac
9951
9952  case $ac_option in
9953  # Handling of the options.
9954  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9955    ac_cs_recheck=: ;;
9956  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9957    $as_echo "$ac_cs_version"; exit ;;
9958  --config | --confi | --conf | --con | --co | --c )
9959    $as_echo "$ac_cs_config"; exit ;;
9960  --debug | --debu | --deb | --de | --d | -d )
9961    debug=: ;;
9962  --file | --fil | --fi | --f )
9963    $ac_shift
9964    case $ac_optarg in
9965    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9966    esac
9967    as_fn_append CONFIG_FILES " '$ac_optarg'"
9968    ac_need_defaults=false;;
9969  --header | --heade | --head | --hea )
9970    $ac_shift
9971    case $ac_optarg in
9972    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9973    esac
9974    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9975    ac_need_defaults=false;;
9976  --he | --h)
9977    # Conflict between --help and --header
9978    as_fn_error "ambiguous option: \`$1'
9979Try \`$0 --help' for more information.";;
9980  --help | --hel | -h )
9981    $as_echo "$ac_cs_usage"; exit ;;
9982  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9983  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9984    ac_cs_silent=: ;;
9985
9986  # This is an error.
9987  -*) as_fn_error "unrecognized option: \`$1'
9988Try \`$0 --help' for more information." ;;
9989
9990  *) as_fn_append ac_config_targets " $1"
9991     ac_need_defaults=false ;;
9992
9993  esac
9994  shift
9995done
9996
9997ac_configure_extra_args=
9998
9999if $ac_cs_silent; then
10000  exec 6>/dev/null
10001  ac_configure_extra_args="$ac_configure_extra_args --silent"
10002fi
10003
10004_ACEOF
10005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10006if \$ac_cs_recheck; then
10007  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10008  shift
10009  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10010  CONFIG_SHELL='$SHELL'
10011  export CONFIG_SHELL
10012  exec "\$@"
10013fi
10014
10015_ACEOF
10016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10017exec 5>>config.log
10018{
10019  echo
10020  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10021@%:@@%:@ Running $as_me. @%:@@%:@
10022_ASBOX
10023  $as_echo "$ac_log"
10024} >&5
10025
10026_ACEOF
10027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10028#
10029# INIT-COMMANDS
10030#
10031AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10032# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10033    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10034    # from automake.
10035    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10036    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10037    LINGUAS="${LINGUAS-%UNSET%}"
10038
10039
10040_ACEOF
10041
10042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10043
10044# Handling of arguments.
10045for ac_config_target in $ac_config_targets
10046do
10047  case $ac_config_target in
10048    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10049    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10050    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10051    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10052    "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
10053    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10054    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
10055    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10056    "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
10057
10058  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10059  esac
10060done
10061
10062
10063# If the user did not use the arguments to specify the items to instantiate,
10064# then the envvar interface is used.  Set only those that are not.
10065# We use the long form for the default assignment because of an extremely
10066# bizarre bug on SunOS 4.1.3.
10067if $ac_need_defaults; then
10068  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10069  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10070  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10071fi
10072
10073# Have a temporary directory for convenience.  Make it in the build tree
10074# simply because there is no reason against having it here, and in addition,
10075# creating and moving files from /tmp can sometimes cause problems.
10076# Hook for its removal unless debugging.
10077# Note that there is a small window in which the directory will not be cleaned:
10078# after its creation but before its name has been assigned to `$tmp'.
10079$debug ||
10080{
10081  tmp=
10082  trap 'exit_status=$?
10083  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10084' 0
10085  trap 'as_fn_exit 1' 1 2 13 15
10086}
10087# Create a (secure) tmp directory for tmp files.
10088
10089{
10090  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10091  test -n "$tmp" && test -d "$tmp"
10092}  ||
10093{
10094  tmp=./conf$$-$RANDOM
10095  (umask 077 && mkdir "$tmp")
10096} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10097
10098# Set up the scripts for CONFIG_FILES section.
10099# No need to generate them if there are no CONFIG_FILES.
10100# This happens for instance with `./config.status config.h'.
10101if test -n "$CONFIG_FILES"; then
10102
10103if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
10104  ac_cs_awk_getline=:
10105  ac_cs_awk_pipe_init=
10106  ac_cs_awk_read_file='
10107      while ((getline aline < (F[key])) > 0)
10108	print(aline)
10109      close(F[key])'
10110  ac_cs_awk_pipe_fini=
10111else
10112  ac_cs_awk_getline=false
10113  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
10114  ac_cs_awk_read_file='
10115      print "|#_!!_#|"
10116      print "cat " F[key] " &&"
10117      '$ac_cs_awk_pipe_init
10118  # The final `:' finishes the AND list.
10119  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
10120fi
10121ac_cr=`echo X | tr X '\015'`
10122# On cygwin, bash can eat \r inside `` if the user requested igncr.
10123# But we know of no other shell where ac_cr would be empty at this
10124# point, so we can use a bashism as a fallback.
10125if test "x$ac_cr" = x; then
10126  eval ac_cr=\$\'\\r\'
10127fi
10128ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10129if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10130  ac_cs_awk_cr='\r'
10131else
10132  ac_cs_awk_cr=$ac_cr
10133fi
10134
10135echo 'BEGIN {' >"$tmp/subs1.awk" &&
10136_ACEOF
10137
10138# Create commands to substitute file output variables.
10139{
10140  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
10141  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
10142  echo "$ac_subst_files" | sed 's/.*/F@<:@"&"@:>@="$&"/' &&
10143  echo "_ACAWK" &&
10144  echo "_ACEOF"
10145} >conf$$files.sh &&
10146. ./conf$$files.sh ||
10147  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10148rm -f conf$$files.sh
10149
10150{
10151  echo "cat >conf$$subs.awk <<_ACEOF" &&
10152  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10153  echo "_ACEOF"
10154} >conf$$subs.sh ||
10155  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10156ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10157ac_delim='%!_!# '
10158for ac_last_try in false false false false false :; do
10159  . ./conf$$subs.sh ||
10160    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10161
10162  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10163  if test $ac_delim_n = $ac_delim_num; then
10164    break
10165  elif $ac_last_try; then
10166    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10167  else
10168    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10169  fi
10170done
10171rm -f conf$$subs.sh
10172
10173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10174cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10175_ACEOF
10176sed -n '
10177h
10178s/^/S["/; s/!.*/"]=/
10179p
10180g
10181s/^[^!]*!//
10182:repl
10183t repl
10184s/'"$ac_delim"'$//
10185t delim
10186:nl
10187h
10188s/\(.\{148\}\)..*/\1/
10189t more1
10190s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10191p
10192n
10193b repl
10194:more1
10195s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10196p
10197g
10198s/.\{148\}//
10199t nl
10200:delim
10201h
10202s/\(.\{148\}\)..*/\1/
10203t more2
10204s/["\\]/\\&/g; s/^/"/; s/$/"/
10205p
10206b
10207:more2
10208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10209p
10210g
10211s/.\{148\}//
10212t delim
10213' <conf$$subs.awk | sed '
10214/^[^""]/{
10215  N
10216  s/\n//
10217}
10218' >>$CONFIG_STATUS || ac_write_fail=1
10219rm -f conf$$subs.awk
10220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10221_ACAWK
10222cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10223  for (key in S) S_is_set[key] = 1
10224  FS = ""
10225  \$ac_cs_awk_pipe_init
10226}
10227{
10228  line = $ 0
10229  nfields = split(line, field, "@")
10230  substed = 0
10231  len = length(field[1])
10232  for (i = 2; i < nfields; i++) {
10233    key = field[i]
10234    keylen = length(key)
10235    if (S_is_set[key]) {
10236      value = S[key]
10237      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10238      len += length(value) + length(field[++i])
10239      substed = 1
10240    } else
10241      len += 1 + keylen
10242  }
10243  if (nfields == 3 && !substed) {
10244    key = field[2]
10245    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
10246      \$ac_cs_awk_read_file
10247      next
10248    }
10249  }
10250  print line
10251}
10252\$ac_cs_awk_pipe_fini
10253_ACAWK
10254_ACEOF
10255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10256if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10257  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10258else
10259  cat
10260fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10261  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10262_ACEOF
10263
10264# VPATH may cause trouble with some makes, so we remove $(srcdir),
10265# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10266# trailing colons and then remove the whole line if VPATH becomes empty
10267# (actually we leave an empty line to preserve line numbers).
10268if test "x$srcdir" = x.; then
10269  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10270s/:*\$(srcdir):*/:/
10271s/:*\${srcdir}:*/:/
10272s/:*@srcdir@:*/:/
10273s/^\([^=]*=[	 ]*\):*/\1/
10274s/:*$//
10275s/^[^=]*=[	 ]*$//
10276}'
10277fi
10278
10279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10280fi # test -n "$CONFIG_FILES"
10281
10282# Set up the scripts for CONFIG_HEADERS section.
10283# No need to generate them if there are no CONFIG_HEADERS.
10284# This happens for instance with `./config.status Makefile'.
10285if test -n "$CONFIG_HEADERS"; then
10286cat >"$tmp/defines.awk" <<\_ACAWK ||
10287BEGIN {
10288_ACEOF
10289
10290# Transform confdefs.h into an awk script `defines.awk', embedded as
10291# here-document in config.status, that substitutes the proper values into
10292# config.h.in to produce config.h.
10293
10294# Create a delimiter string that does not exist in confdefs.h, to ease
10295# handling of long lines.
10296ac_delim='%!_!# '
10297for ac_last_try in false false :; do
10298  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10299  if test -z "$ac_t"; then
10300    break
10301  elif $ac_last_try; then
10302    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10303  else
10304    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10305  fi
10306done
10307
10308# For the awk script, D is an array of macro values keyed by name,
10309# likewise P contains macro parameters if any.  Preserve backslash
10310# newline sequences.
10311
10312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10313sed -n '
10314s/.\{148\}/&'"$ac_delim"'/g
10315t rset
10316:rset
10317s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10318t def
10319d
10320:def
10321s/\\$//
10322t bsnl
10323s/["\\]/\\&/g
10324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10325D["\1"]=" \3"/p
10326s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10327d
10328:bsnl
10329s/["\\]/\\&/g
10330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10331D["\1"]=" \3\\\\\\n"\\/p
10332t cont
10333s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10334t cont
10335d
10336:cont
10337n
10338s/.\{148\}/&'"$ac_delim"'/g
10339t clear
10340:clear
10341s/\\$//
10342t bsnlc
10343s/["\\]/\\&/g; s/^/"/; s/$/"/p
10344d
10345:bsnlc
10346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10347b cont
10348' <confdefs.h | sed '
10349s/'"$ac_delim"'/"\\\
10350"/g' >>$CONFIG_STATUS || ac_write_fail=1
10351
10352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10353  for (key in D) D_is_set[key] = 1
10354  FS = ""
10355}
10356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10357  line = \$ 0
10358  split(line, arg, " ")
10359  if (arg[1] == "#") {
10360    defundef = arg[2]
10361    mac1 = arg[3]
10362  } else {
10363    defundef = substr(arg[1], 2)
10364    mac1 = arg[2]
10365  }
10366  split(mac1, mac2, "(") #)
10367  macro = mac2[1]
10368  prefix = substr(line, 1, index(line, defundef) - 1)
10369  if (D_is_set[macro]) {
10370    # Preserve the white space surrounding the "#".
10371    print prefix "define", macro P[macro] D[macro]
10372    next
10373  } else {
10374    # Replace #undef with comments.  This is necessary, for example,
10375    # in the case of _POSIX_SOURCE, which is predefined and required
10376    # on some systems where configure will not decide to define it.
10377    if (defundef == "undef") {
10378      print "/*", prefix defundef, macro, "*/"
10379      next
10380    }
10381  }
10382}
10383{ print }
10384_ACAWK
10385_ACEOF
10386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10387  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10388fi # test -n "$CONFIG_HEADERS"
10389
10390
10391eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10392shift
10393for ac_tag
10394do
10395  case $ac_tag in
10396  :[FHLC]) ac_mode=$ac_tag; continue;;
10397  esac
10398  case $ac_mode$ac_tag in
10399  :[FHL]*:*);;
10400  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10401  :[FH]-) ac_tag=-:-;;
10402  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10403  esac
10404  ac_save_IFS=$IFS
10405  IFS=:
10406  set x $ac_tag
10407  IFS=$ac_save_IFS
10408  shift
10409  ac_file=$1
10410  shift
10411
10412  case $ac_mode in
10413  :L) ac_source=$1;;
10414  :[FH])
10415    ac_file_inputs=
10416    for ac_f
10417    do
10418      case $ac_f in
10419      -) ac_f="$tmp/stdin";;
10420      *) # Look for the file first in the build tree, then in the source tree
10421	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10422	 # because $ac_f cannot contain `:'.
10423	 test -f "$ac_f" ||
10424	   case $ac_f in
10425	   [\\/$]*) false;;
10426	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10427	   esac ||
10428	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10429      esac
10430      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10431      as_fn_append ac_file_inputs " '$ac_f'"
10432    done
10433
10434    # Let's still pretend it is `configure' which instantiates (i.e., don't
10435    # use $as_me), people would be surprised to read:
10436    #    /* config.h.  Generated by config.status.  */
10437    configure_input='Generated from '`
10438	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10439	`' by configure.'
10440    if test x"$ac_file" != x-; then
10441      configure_input="$ac_file.  $configure_input"
10442      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10443$as_echo "$as_me: creating $ac_file" >&6;}
10444    fi
10445    # Neutralize special characters interpreted by sed in replacement strings.
10446    case $configure_input in #(
10447    *\&* | *\|* | *\\* )
10448       ac_sed_conf_input=`$as_echo "$configure_input" |
10449       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10450    *) ac_sed_conf_input=$configure_input;;
10451    esac
10452
10453    case $ac_tag in
10454    *:-:* | *:-) cat >"$tmp/stdin" \
10455      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10456    esac
10457    ;;
10458  esac
10459
10460  ac_dir=`$as_dirname -- "$ac_file" ||
10461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10462	 X"$ac_file" : 'X\(//\)[^/]' \| \
10463	 X"$ac_file" : 'X\(//\)$' \| \
10464	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10465$as_echo X"$ac_file" |
10466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10467	    s//\1/
10468	    q
10469	  }
10470	  /^X\(\/\/\)[^/].*/{
10471	    s//\1/
10472	    q
10473	  }
10474	  /^X\(\/\/\)$/{
10475	    s//\1/
10476	    q
10477	  }
10478	  /^X\(\/\).*/{
10479	    s//\1/
10480	    q
10481	  }
10482	  s/.*/./; q'`
10483  as_dir="$ac_dir"; as_fn_mkdir_p
10484  ac_builddir=.
10485
10486case "$ac_dir" in
10487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10488*)
10489  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10490  # A ".." for each directory in $ac_dir_suffix.
10491  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10492  case $ac_top_builddir_sub in
10493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10495  esac ;;
10496esac
10497ac_abs_top_builddir=$ac_pwd
10498ac_abs_builddir=$ac_pwd$ac_dir_suffix
10499# for backward compatibility:
10500ac_top_builddir=$ac_top_build_prefix
10501
10502case $srcdir in
10503  .)  # We are building in place.
10504    ac_srcdir=.
10505    ac_top_srcdir=$ac_top_builddir_sub
10506    ac_abs_top_srcdir=$ac_pwd ;;
10507  [\\/]* | ?:[\\/]* )  # Absolute name.
10508    ac_srcdir=$srcdir$ac_dir_suffix;
10509    ac_top_srcdir=$srcdir
10510    ac_abs_top_srcdir=$srcdir ;;
10511  *) # Relative name.
10512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10513    ac_top_srcdir=$ac_top_build_prefix$srcdir
10514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10515esac
10516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10517
10518
10519  case $ac_mode in
10520  :F)
10521  #
10522  # CONFIG_FILE
10523  #
10524
10525  case $INSTALL in
10526  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10527  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10528  esac
10529_ACEOF
10530
10531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10532# If the template does not know about datarootdir, expand it.
10533# FIXME: This hack should be removed a few years after 2.60.
10534ac_datarootdir_hack=; ac_datarootdir_seen=
10535ac_sed_dataroot='
10536/datarootdir/ {
10537  p
10538  q
10539}
10540/@datadir@/p
10541/@docdir@/p
10542/@infodir@/p
10543/@localedir@/p
10544/@mandir@/p'
10545case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10546*datarootdir*) ac_datarootdir_seen=yes;;
10547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10548  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10549$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10550_ACEOF
10551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10552  ac_datarootdir_hack='
10553  s&@datadir@&$datadir&g
10554  s&@docdir@&$docdir&g
10555  s&@infodir@&$infodir&g
10556  s&@localedir@&$localedir&g
10557  s&@mandir@&$mandir&g
10558  s&\\\${datarootdir}&$datarootdir&g' ;;
10559esac
10560_ACEOF
10561
10562# Neutralize VPATH when `$srcdir' = `.'.
10563# Shell code in configure.ac might set extrasub.
10564# FIXME: do we really want to maintain this feature?
10565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10566ac_sed_extra="$ac_vpsub
10567$extrasub
10568_ACEOF
10569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10570:t
10571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10572s|@configure_input@|$ac_sed_conf_input|;t t
10573s&@top_builddir@&$ac_top_builddir_sub&;t t
10574s&@top_build_prefix@&$ac_top_build_prefix&;t t
10575s&@srcdir@&$ac_srcdir&;t t
10576s&@abs_srcdir@&$ac_abs_srcdir&;t t
10577s&@top_srcdir@&$ac_top_srcdir&;t t
10578s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10579s&@builddir@&$ac_builddir&;t t
10580s&@abs_builddir@&$ac_abs_builddir&;t t
10581s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10582s&@INSTALL@&$ac_INSTALL&;t t
10583$ac_datarootdir_hack
10584"
10585eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
10586if $ac_cs_awk_getline; then
10587  $AWK -f "$tmp/subs.awk"
10588else
10589  $AWK -f "$tmp/subs.awk" | $SHELL
10590fi >$tmp/out \
10591  || as_fn_error "could not create $ac_file" "$LINENO" 5
10592
10593test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10594  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10595  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10597which seems to be undefined.  Please make sure it is defined." >&5
10598$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10599which seems to be undefined.  Please make sure it is defined." >&2;}
10600
10601  rm -f "$tmp/stdin"
10602  case $ac_file in
10603  -) cat "$tmp/out" && rm -f "$tmp/out";;
10604  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10605  esac \
10606  || as_fn_error "could not create $ac_file" "$LINENO" 5
10607 ;;
10608  :H)
10609  #
10610  # CONFIG_HEADER
10611  #
10612  if test x"$ac_file" != x-; then
10613    {
10614      $as_echo "/* $configure_input  */" \
10615      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10616    } >"$tmp/config.h" \
10617      || as_fn_error "could not create $ac_file" "$LINENO" 5
10618    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10619      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10620$as_echo "$as_me: $ac_file is unchanged" >&6;}
10621    else
10622      rm -f "$ac_file"
10623      mv "$tmp/config.h" "$ac_file" \
10624	|| as_fn_error "could not create $ac_file" "$LINENO" 5
10625    fi
10626  else
10627    $as_echo "/* $configure_input  */" \
10628      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10629      || as_fn_error "could not create -" "$LINENO" 5
10630  fi
10631# Compute "$ac_file"'s index in $config_headers.
10632_am_stamp_count=1
10633for _am_header in $config_headers :; do
10634  case $_am_header in
10635    "$ac_file" | "$ac_file":* )
10636      break ;;
10637    * )
10638      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10639  esac
10640done
10641echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10643	 X"$ac_file" : 'X\(//\)[^/]' \| \
10644	 X"$ac_file" : 'X\(//\)$' \| \
10645	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10646$as_echo X"$ac_file" |
10647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10648	    s//\1/
10649	    q
10650	  }
10651	  /^X\(\/\/\)[^/].*/{
10652	    s//\1/
10653	    q
10654	  }
10655	  /^X\(\/\/\)$/{
10656	    s//\1/
10657	    q
10658	  }
10659	  /^X\(\/\).*/{
10660	    s//\1/
10661	    q
10662	  }
10663	  s/.*/./; q'`/stamp-h$_am_stamp_count
10664 ;;
10665
10666  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10667$as_echo "$as_me: executing $ac_file commands" >&6;}
10668 ;;
10669  esac
10670
10671
10672  case $ac_file$ac_mode in
10673    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10674  # Strip MF so we end up with the name of the file.
10675  mf=`echo "$mf" | sed -e 's/:.*$//'`
10676  # Check whether this is an Automake generated Makefile or not.
10677  # We used to match only the files named `Makefile.in', but
10678  # some people rename them; so instead we look at the file content.
10679  # Grep'ing the first line is not enough: some people post-process
10680  # each Makefile.in and add a new line on top of each file to say so.
10681  # So let's grep whole file.
10682  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10683    dirpart=`$as_dirname -- "$mf" ||
10684$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10685	 X"$mf" : 'X\(//\)[^/]' \| \
10686	 X"$mf" : 'X\(//\)$' \| \
10687	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10688$as_echo X"$mf" |
10689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10690	    s//\1/
10691	    q
10692	  }
10693	  /^X\(\/\/\)[^/].*/{
10694	    s//\1/
10695	    q
10696	  }
10697	  /^X\(\/\/\)$/{
10698	    s//\1/
10699	    q
10700	  }
10701	  /^X\(\/\).*/{
10702	    s//\1/
10703	    q
10704	  }
10705	  s/.*/./; q'`
10706  else
10707    continue
10708  fi
10709  # Extract the definition of DEPDIR, am__include, and am__quote
10710  # from the Makefile without running `make'.
10711  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10712  test -z "$DEPDIR" && continue
10713  am__include=`sed -n 's/^am__include = //p' < "$mf"`
10714  test -z "am__include" && continue
10715  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10716  # When using ansi2knr, U may be empty or an underscore; expand it
10717  U=`sed -n 's/^U = //p' < "$mf"`
10718  # Find all dependency output files, they are included files with
10719  # $(DEPDIR) in their names.  We invoke sed twice because it is the
10720  # simplest approach to changing $(DEPDIR) to its actual value in the
10721  # expansion.
10722  for file in `sed -n "
10723    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10724       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10725    # Make sure the directory exists.
10726    test -f "$dirpart/$file" && continue
10727    fdir=`$as_dirname -- "$file" ||
10728$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10729	 X"$file" : 'X\(//\)[^/]' \| \
10730	 X"$file" : 'X\(//\)$' \| \
10731	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10732$as_echo X"$file" |
10733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10734	    s//\1/
10735	    q
10736	  }
10737	  /^X\(\/\/\)[^/].*/{
10738	    s//\1/
10739	    q
10740	  }
10741	  /^X\(\/\/\)$/{
10742	    s//\1/
10743	    q
10744	  }
10745	  /^X\(\/\).*/{
10746	    s//\1/
10747	    q
10748	  }
10749	  s/.*/./; q'`
10750    as_dir=$dirpart/$fdir; as_fn_mkdir_p
10751    # echo "creating $dirpart/$file"
10752    echo '# dummy' > "$dirpart/$file"
10753  done
10754done
10755 ;;
10756    "default-1":C)
10757    for ac_file in $CONFIG_FILES; do
10758      # Support "outfile[:infile[:infile...]]"
10759      case "$ac_file" in
10760        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10761      esac
10762      # PO directories have a Makefile.in generated from Makefile.in.in.
10763      case "$ac_file" in */Makefile.in)
10764        # Adjust a relative srcdir.
10765        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10766        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10767        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10768        # In autoconf-2.13 it is called $ac_given_srcdir.
10769        # In autoconf-2.50 it is called $srcdir.
10770        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10771        case "$ac_given_srcdir" in
10772          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10773          /*) top_srcdir="$ac_given_srcdir" ;;
10774          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10775        esac
10776        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10777          rm -f "$ac_dir/POTFILES"
10778          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10779          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10780          POMAKEFILEDEPS="POTFILES.in"
10781          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10782          # on $ac_dir but don't depend on user-specified configuration
10783          # parameters.
10784          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10785            # The LINGUAS file contains the set of available languages.
10786            if test -n "$OBSOLETE_ALL_LINGUAS"; then
10787              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10788            fi
10789            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10790            # Hide the ALL_LINGUAS assigment from automake.
10791            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10792            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10793          else
10794            # The set of available languages was given in configure.in.
10795            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10796          fi
10797          # Compute POFILES
10798          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10799          # Compute UPDATEPOFILES
10800          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10801          # Compute DUMMYPOFILES
10802          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10803          # Compute GMOFILES
10804          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10805          case "$ac_given_srcdir" in
10806            .) srcdirpre= ;;
10807            *) srcdirpre='$(srcdir)/' ;;
10808          esac
10809          POFILES=
10810          UPDATEPOFILES=
10811          DUMMYPOFILES=
10812          GMOFILES=
10813          for lang in $ALL_LINGUAS; do
10814            POFILES="$POFILES $srcdirpre$lang.po"
10815            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10816            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10817            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10818          done
10819          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10820          # environment variable.
10821          INST_LINGUAS=
10822          if test -n "$ALL_LINGUAS"; then
10823            for presentlang in $ALL_LINGUAS; do
10824              useit=no
10825              if test "%UNSET%" != "$LINGUAS"; then
10826                desiredlanguages="$LINGUAS"
10827              else
10828                desiredlanguages="$ALL_LINGUAS"
10829              fi
10830              for desiredlang in $desiredlanguages; do
10831                # Use the presentlang catalog if desiredlang is
10832                #   a. equal to presentlang, or
10833                #   b. a variant of presentlang (because in this case,
10834                #      presentlang can be used as a fallback for messages
10835                #      which are not translated in the desiredlang catalog).
10836                case "$desiredlang" in
10837                  "$presentlang"*) useit=yes;;
10838                esac
10839              done
10840              if test $useit = yes; then
10841                INST_LINGUAS="$INST_LINGUAS $presentlang"
10842              fi
10843            done
10844          fi
10845          CATALOGS=
10846          if test -n "$INST_LINGUAS"; then
10847            for lang in $INST_LINGUAS; do
10848              CATALOGS="$CATALOGS $lang.gmo"
10849            done
10850          fi
10851          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10852          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10853          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10854            if test -f "$f"; then
10855              case "$f" in
10856                *.orig | *.bak | *~) ;;
10857                *) cat "$f" >> "$ac_dir/Makefile" ;;
10858              esac
10859            fi
10860          done
10861        fi
10862        ;;
10863      esac
10864    done ;;
10865
10866  esac
10867done # for ac_tag
10868
10869
10870as_fn_exit 0
10871_ACEOF
10872ac_clean_files=$ac_clean_files_save
10873
10874test $ac_write_fail = 0 ||
10875  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10876
10877
10878# configure is writing to config.log, and then calls config.status.
10879# config.status does its own redirection, appending to config.log.
10880# Unfortunately, on DOS this fails, as config.log is still kept open
10881# by configure, so config.status won't be able to write to it; its
10882# output is simply discarded.  So we exec the FD to /dev/null,
10883# effectively closing config.log, so it can be properly (re)opened and
10884# appended to by config.status.  When coming back to configure, we
10885# need to make the FD available again.
10886if test "$no_create" != yes; then
10887  ac_cs_success=:
10888  ac_config_status_args=
10889  test "$silent" = yes &&
10890    ac_config_status_args="$ac_config_status_args --quiet"
10891  exec 5>/dev/null
10892  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10893  exec 5>>config.log
10894  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10895  # would make configure fail if this is the last instruction.
10896  $ac_cs_success || as_fn_exit $?
10897fi
10898if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10900$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10901fi
10902
10903
10904# We only generate the build.sh if we have a build.sh.in; we won't have
10905# one before we've created a distribution.
10906if test -f "$srcdir/build.sh.in"; then
10907  ./config.status --file build.sh
10908  chmod +x build.sh
10909fi
10910
10911