bc6269126a927270c1cb6f8f8822c29da1e0947e
[platform/upstream/make.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.2.1.
4 #
5 # Report bugs to <bug-make@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.2.1'
584 PACKAGE_STRING='GNU make 4.2.1'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
587
588 ac_unique_file="vpath.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 WINDOWSENV_FALSE
630 WINDOWSENV_TRUE
631 MAKE_HOST
632 USE_LOCAL_GLOB_FALSE
633 USE_LOCAL_GLOB_TRUE
634 GLOBLIB
635 GLOBINC
636 AM_LDFLAGS
637 USE_CUSTOMS_FALSE
638 USE_CUSTOMS_TRUE
639 REMOTE
640 GETLOADAVG_LIBS
641 KMEM_GROUP
642 NEED_SETGID
643 LIBOBJS
644 HAVE_GUILE_FALSE
645 HAVE_GUILE_TRUE
646 GUILE_LIBS
647 GUILE_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 ALLOCA
652 POSUB
653 LTLIBINTL
654 LIBINTL
655 INTLLIBS
656 LTLIBICONV
657 LIBICONV
658 INTL_MACOSX_LIBS
659 XGETTEXT_EXTRA_OPTIONS
660 MSGMERGE
661 XGETTEXT_015
662 XGETTEXT
663 GMSGFMT_015
664 MSGFMT_015
665 GMSGFMT
666 MSGFMT
667 GETTEXT_MACRO_VERSION
668 USE_NLS
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 ac_ct_AR
679 PERL
680 AR
681 RANLIB
682 EGREP
683 GREP
684 CPP
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files='MAINT_MAKEFILE'
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_nls
774 with_gnu_ld
775 enable_rpath
776 with_libiconv_prefix
777 with_libintl_prefix
778 enable_largefile
779 with_guile
780 with_customs
781 enable_case_insensitive_file_system
782 enable_job_server
783 enable_load
784 with_dmalloc
785 '
786       ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 CPP
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 GUILE_CFLAGS
799 GUILE_LIBS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *=)   ac_optarg= ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -runstatedir | --runstatedir | --runstatedi | --runstated \
1092   | --runstate | --runstat | --runsta | --runst | --runs \
1093   | --run | --ru | --r)
1094     ac_prev=runstatedir ;;
1095   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097   | --run=* | --ru=* | --r=*)
1098     runstatedir=$ac_optarg ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=no ;;
1176
1177   --x)
1178     # Obsolete; use --with-x.
1179     with_x=yes ;;
1180
1181   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182   | --x-incl | --x-inc | --x-in | --x-i)
1183     ac_prev=x_includes ;;
1184   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186     x_includes=$ac_optarg ;;
1187
1188   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190     ac_prev=x_libraries ;;
1191   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193     x_libraries=$ac_optarg ;;
1194
1195   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197     ;;
1198
1199   *=*)
1200     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201     # Reject names that are not valid shell variable names.
1202     case $ac_envvar in #(
1203       '' | [0-9]* | *[!_$as_cr_alnum]* )
1204       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205     esac
1206     eval $ac_envvar=\$ac_optarg
1207     export $ac_envvar ;;
1208
1209   *)
1210     # FIXME: should be removed in autoconf 3.0.
1211     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215     ;;
1216
1217   esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222   as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226   case $enable_option_checking in
1227     no) ;;
1228     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230   esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235                 datadir sysconfdir sharedstatedir localstatedir includedir \
1236                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237                 libdir localedir mandir runstatedir
1238 do
1239   eval ac_val=\$$ac_var
1240   # Remove trailing slashes.
1241   case $ac_val in
1242     */ )
1243       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244       eval $ac_var=\$ac_val;;
1245   esac
1246   # Be sure to have absolute directory names.
1247   case $ac_val in
1248     [\\/$]* | ?:[\\/]* )  continue;;
1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250   esac
1251   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263   if test "x$build_alias" = x; then
1264     cross_compiling=maybe
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures GNU make 4.2.1 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking ...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391   --libdir=DIR            object code libraries [EPREFIX/lib]
1392   --includedir=DIR        C header files [PREFIX/include]
1393   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396   --infodir=DIR           info documentation [DATAROOTDIR/info]
1397   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398   --mandir=DIR            man documentation [DATAROOTDIR/man]
1399   --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
1400   --htmldir=DIR           html documentation [DOCDIR]
1401   --dvidir=DIR            dvi documentation [DOCDIR]
1402   --pdfdir=DIR            pdf documentation [DOCDIR]
1403   --psdir=DIR             ps documentation [DOCDIR]
1404 _ACEOF
1405
1406   cat <<\_ACEOF
1407
1408 Program names:
1409   --program-prefix=PREFIX            prepend PREFIX to installed program names
1410   --program-suffix=SUFFIX            append SUFFIX to installed program names
1411   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1412
1413 System types:
1414   --build=BUILD     configure for building on BUILD [guessed]
1415   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of GNU make 4.2.1:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --enable-silent-rules   less verbose build output (undo: "make V=1")
1430   --disable-silent-rules  verbose build output (undo: "make V=0")
1431   --enable-dependency-tracking
1432                           do not reject slow dependency extractors
1433   --disable-dependency-tracking
1434                           speeds up one-time build
1435   --disable-nls           do not use Native Language Support
1436   --disable-rpath         do not hardcode runtime library paths
1437   --disable-largefile     omit support for large files
1438   --enable-case-insensitive-file-system
1439                           assume file systems are case insensitive
1440   --disable-job-server    disallow recursive make communication during -jN
1441   --disable-load          disable support for the 'load' operation
1442
1443 Optional Packages:
1444   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1448   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1449   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1450   --without-libintl-prefix     don't search for libintl in includedir and libdir
1451   --with-guile            Support GNU Guile for embedded scripting
1452   --with-customs=DIR      enable remote jobs via Customs--see README.customs
1453   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1454
1455 Some influential environment variables:
1456   CC          C compiler command
1457   CFLAGS      C compiler flags
1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459               nonstandard directory <lib dir>
1460   LIBS        libraries to pass to the linker, e.g. -l<library>
1461   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CPP         C preprocessor
1464   PKG_CONFIG  path to pkg-config utility
1465   PKG_CONFIG_PATH
1466               directories to add to pkg-config's search path
1467   PKG_CONFIG_LIBDIR
1468               path overriding pkg-config's built-in search path
1469   GUILE_CFLAGS
1470               C compiler flags for GUILE, overriding pkg-config
1471   GUILE_LIBS  linker flags for GUILE, overriding pkg-config
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <bug-make@gnu.org>.
1477 GNU make home page: <http://www.gnu.org/software/make/>.
1478 General help using GNU software: <http://www.gnu.org/gethelp/>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484   # If there are subdirs, report their specific --help.
1485   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486     test -d "$ac_dir" ||
1487       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488       continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 GNU make configure 4.2.1
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548   exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561   rm -f conftest.$ac_objext
1562   if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565   *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569   (eval "$ac_compile") 2>conftest.err
1570   ac_status=$?
1571   if test -s conftest.err; then
1572     grep -v '^ *+' conftest.err >conftest.er1
1573     cat conftest.er1 >&5
1574     mv -f conftest.er1 conftest.err
1575   fi
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } && {
1578          test -z "$ac_c_werror_flag" ||
1579          test ! -s conftest.err
1580        } && test -s conftest.$ac_objext; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586         ac_retval=1
1587 fi
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589   as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1597 {
1598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599   if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } > conftest.i && {
1615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        }; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623     ac_retval=1
1624 fi
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626   as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_cpp
1629
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_header_mongrel ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   if eval \${$3+:} false; then :
1639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642   $as_echo_n "(cached) " >&6
1643 fi
1644 eval ac_res=\$$3
1645                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 else
1648   # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h.  */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657   ac_header_compiler=yes
1658 else
1659   ac_header_compiler=no
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1664
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h.  */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673   ac_header_preproc=yes
1674 else
1675   ac_header_preproc=no
1676 fi
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1680
1681 # So?  What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683   yes:no: )
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688     ;;
1689   no:yes:* )
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ( $as_echo "## ------------------------------- ##
1701 ## Report this to bug-make@gnu.org ##
1702 ## ------------------------------- ##"
1703      ) | sed "s/^/$as_me: WARNING:     /" >&2
1704     ;;
1705 esac
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   eval "$3=\$ac_header_compiler"
1712 fi
1713 eval ac_res=\$$3
1714                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 fi
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_mongrel
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_link") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739   { { case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_try") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; }; }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: program exited with status $ac_status" >&5
1752        $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=$ac_status
1756 fi
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773   $as_echo_n "(cached) " >&6
1774 else
1775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h.  */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781   eval "$3=yes"
1782 else
1783   eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext conftest$ac_exeext
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest$ac_exeext && {
1820          test "$cross_compiling" = yes ||
1821          test -x conftest$ac_exeext
1822        }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828         ac_retval=1
1829 fi
1830   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832   # interfere with the next link command; also delete a directory that is
1833   # left behind by Apple's compiler.  We do this before executing the actions.
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841 # -------------------------------------------
1842 # Tests whether TYPE exists after having included INCLUDES, setting cache
1843 # variable VAR accordingly.
1844 ac_fn_c_check_type ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   eval "$3=no"
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 $4
1856 int
1857 main ()
1858 {
1859 if (sizeof ($2))
1860          return 0;
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 int
1870 main ()
1871 {
1872 if (sizeof (($2)))
1873             return 0;
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879
1880 else
1881   eval "$3=yes"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_type
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1909 #define $2 innocuous_$2
1910
1911 /* System header to define __stub macros and hopefully few prototypes,
1912     which can conflict with char $2 (); below.
1913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914     <limits.h> exists even on freestanding compilers.  */
1915
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1921
1922 #undef $2
1923
1924 /* Override any GCC internal prototype to avoid an error.
1925    Use char because int might match the return type of a GCC
1926    builtin and then its argument prototype would still apply.  */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932     to always fail with ENOSYS.  Some functions are actually named
1933     something starting with __ and the normal name is an alias.  */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1937
1938 int
1939 main ()
1940 {
1941 return $2 ();
1942   ;
1943   return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947   eval "$3=yes"
1948 else
1949   eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext \
1952     conftest$ac_exeext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_func
1960
1961 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1962 # ---------------------------------------------
1963 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 # accordingly.
1965 ac_fn_c_check_decl ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   as_decl_name=`echo $2|sed 's/ *(.*//'`
1969   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1971 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1972 if eval \${$3+:} false; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $4
1978 int
1979 main ()
1980 {
1981 #ifndef $as_decl_name
1982 #ifdef __cplusplus
1983   (void) $as_decl_use;
1984 #else
1985   (void) $as_decl_name;
1986 #endif
1987 #endif
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994   eval "$3=yes"
1995 else
1996   eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_decl
2006
2007 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2008 # ----------------------------------------------------
2009 # Tries to find if the field MEMBER exists in type AGGR, after including
2010 # INCLUDES, setting cache variable VAR accordingly.
2011 ac_fn_c_check_member ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2015 $as_echo_n "checking for $2.$3... " >&6; }
2016 if eval \${$4+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $5
2022 int
2023 main ()
2024 {
2025 static $2 ac_aggr;
2026 if (ac_aggr.$3)
2027 return 0;
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$4=yes"
2034 else
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $5
2038 int
2039 main ()
2040 {
2041 static $2 ac_aggr;
2042 if (sizeof ac_aggr.$3)
2043 return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   eval "$4=yes"
2050 else
2051   eval "$4=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 eval ac_res=\$$4
2058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_member
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by GNU make $as_me 4.2.1, which was
2068 generated by GNU Autoconf 2.69.  Invocation command line was
2069
2070   $ $0 $@
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2088
2089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104     $as_echo "PATH: $as_dir"
2105   done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131   for ac_arg
2132   do
2133     case $ac_arg in
2134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136     | -silent | --silent | --silen | --sile | --sil)
2137       continue ;;
2138     *\'*)
2139       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140     esac
2141     case $ac_pass in
2142     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2143     2)
2144       as_fn_append ac_configure_args1 " '$ac_arg'"
2145       if test $ac_must_keep_next = true; then
2146         ac_must_keep_next=false # Got value, back to normal.
2147       else
2148         case $ac_arg in
2149           *=* | --config-cache | -C | -disable-* | --disable-* \
2150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152           | -with-* | --with-* | -without-* | --without-* | --x)
2153             case "$ac_configure_args0 " in
2154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155             esac
2156             ;;
2157           -* ) ac_must_keep_next=true ;;
2158         esac
2159       fi
2160       as_fn_append ac_configure_args " '$ac_arg'"
2161       ;;
2162     esac
2163   done
2164 done
2165 { ac_configure_args0=; unset ac_configure_args0;}
2166 { ac_configure_args1=; unset ac_configure_args1;}
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log.  We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174   # Save into config.log some information that might help in debugging.
2175   {
2176     echo
2177
2178     $as_echo "## ---------------- ##
2179 ## Cache variables. ##
2180 ## ---------------- ##"
2181     echo
2182     # The following way of writing the cache mishandles newlines in values,
2183 (
2184   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185     eval ac_val=\$$ac_var
2186     case $ac_val in #(
2187     *${as_nl}*)
2188       case $ac_var in #(
2189       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2191       esac
2192       case $ac_var in #(
2193       _ | IFS | as_nl) ;; #(
2194       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195       *) { eval $ac_var=; unset $ac_var;} ;;
2196       esac ;;
2197     esac
2198   done
2199   (set) 2>&1 |
2200     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201     *${as_nl}ac_space=\ *)
2202       sed -n \
2203         "s/'\''/'\''\\\\'\'''\''/g;
2204           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2205       ;; #(
2206     *)
2207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208       ;;
2209     esac |
2210     sort
2211 )
2212     echo
2213
2214     $as_echo "## ----------------- ##
2215 ## Output variables. ##
2216 ## ----------------- ##"
2217     echo
2218     for ac_var in $ac_subst_vars
2219     do
2220       eval ac_val=\$$ac_var
2221       case $ac_val in
2222       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223       esac
2224       $as_echo "$ac_var='\''$ac_val'\''"
2225     done | sort
2226     echo
2227
2228     if test -n "$ac_subst_files"; then
2229       $as_echo "## ------------------- ##
2230 ## File substitutions. ##
2231 ## ------------------- ##"
2232       echo
2233       for ac_var in $ac_subst_files
2234       do
2235         eval ac_val=\$$ac_var
2236         case $ac_val in
2237         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238         esac
2239         $as_echo "$ac_var='\''$ac_val'\''"
2240       done | sort
2241       echo
2242     fi
2243
2244     if test -s confdefs.h; then
2245       $as_echo "## ----------- ##
2246 ## confdefs.h. ##
2247 ## ----------- ##"
2248       echo
2249       cat confdefs.h
2250       echo
2251     fi
2252     test "$ac_signal" != 0 &&
2253       $as_echo "$as_me: caught signal $ac_signal"
2254     $as_echo "$as_me: exit $exit_status"
2255   } >&5
2256   rm -f core *.core core.conftest.* &&
2257     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2258     exit $exit_status
2259 ' 0
2260 for ac_signal in 1 2 13 15; do
2261   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2262 done
2263 ac_signal=0
2264
2265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2266 rm -f -r conftest* confdefs.h
2267
2268 $as_echo "/* confdefs.h */" > confdefs.h
2269
2270 # Predefined preprocessor variables.
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_NAME "$PACKAGE_NAME"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_STRING "$PACKAGE_STRING"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_URL "$PACKAGE_URL"
2294 _ACEOF
2295
2296
2297 # Let the site file select an alternate cache file if it wants to.
2298 # Prefer an explicitly selected file to automatically selected ones.
2299 ac_site_file1=NONE
2300 ac_site_file2=NONE
2301 if test -n "$CONFIG_SITE"; then
2302   # We do not want a PATH search for config.site.
2303   case $CONFIG_SITE in #((
2304     -*)  ac_site_file1=./$CONFIG_SITE;;
2305     */*) ac_site_file1=$CONFIG_SITE;;
2306     *)   ac_site_file1=./$CONFIG_SITE;;
2307   esac
2308 elif test "x$prefix" != xNONE; then
2309   ac_site_file1=$prefix/share/config.site
2310   ac_site_file2=$prefix/etc/config.site
2311 else
2312   ac_site_file1=$ac_default_prefix/share/config.site
2313   ac_site_file2=$ac_default_prefix/etc/config.site
2314 fi
2315 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2316 do
2317   test "x$ac_site_file" = xNONE && continue
2318   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321     sed 's/^/| /' "$ac_site_file" >&5
2322     . "$ac_site_file" \
2323       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 as_fn_error $? "failed to load site script $ac_site_file
2326 See \`config.log' for more details" "$LINENO" 5; }
2327   fi
2328 done
2329
2330 if test -r "$cache_file"; then
2331   # Some versions of bash will fail to source /dev/null (special files
2332   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2333   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335 $as_echo "$as_me: loading cache $cache_file" >&6;}
2336     case $cache_file in
2337       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338       *)                      . "./$cache_file";;
2339     esac
2340   fi
2341 else
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343 $as_echo "$as_me: creating cache $cache_file" >&6;}
2344   >$cache_file
2345 fi
2346
2347 gt_needs="$gt_needs "
2348 # Check that the precious variables saved in the cache have kept the same
2349 # value.
2350 ac_cache_corrupted=false
2351 for ac_var in $ac_precious_vars; do
2352   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353   eval ac_new_set=\$ac_env_${ac_var}_set
2354   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355   eval ac_new_val=\$ac_env_${ac_var}_value
2356   case $ac_old_set,$ac_new_set in
2357     set,)
2358       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2360       ac_cache_corrupted=: ;;
2361     ,set)
2362       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364       ac_cache_corrupted=: ;;
2365     ,);;
2366     *)
2367       if test "x$ac_old_val" != "x$ac_new_val"; then
2368         # differences in whitespace do not lead to failure.
2369         ac_old_val_w=`echo x $ac_old_val`
2370         ac_new_val_w=`echo x $ac_new_val`
2371         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374           ac_cache_corrupted=:
2375         else
2376           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378           eval $ac_var=\$ac_old_val
2379         fi
2380         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2381 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2382         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2383 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2384       fi;;
2385   esac
2386   # Pass precious variables to config.status.
2387   if test "$ac_new_set" = set; then
2388     case $ac_new_val in
2389     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390     *) ac_arg=$ac_var=$ac_new_val ;;
2391     esac
2392     case " $ac_configure_args " in
2393       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2394       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2395     esac
2396   fi
2397 done
2398 if $ac_cache_corrupted; then
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2403   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2404 fi
2405 ## -------------------- ##
2406 ## Main body of script. ##
2407 ## -------------------- ##
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
2417
2418
2419 # Autoconf setup
2420 ac_aux_dir=
2421 for ac_dir in config "$srcdir"/config; do
2422   if test -f "$ac_dir/install-sh"; then
2423     ac_aux_dir=$ac_dir
2424     ac_install_sh="$ac_aux_dir/install-sh -c"
2425     break
2426   elif test -f "$ac_dir/install.sh"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/install.sh -c"
2429     break
2430   elif test -f "$ac_dir/shtool"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/shtool install -c"
2433     break
2434   fi
2435 done
2436 if test -z "$ac_aux_dir"; then
2437   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2438 fi
2439
2440 # These three variables are undocumented and unsupported,
2441 # and are intended to be withdrawn in a future Autoconf release.
2442 # They can cause serious problems if a builder's source tree is in a directory
2443 # whose full name contains unusual characters.
2444 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2445 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2446 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2447
2448
2449
2450 ac_config_headers="$ac_config_headers config.h"
2451
2452
2453 # Automake setup
2454 # We have to enable "foreign" because ChangeLog is auto-generated
2455 # We cannot enable -Werror because gettext 0.18.1 has invalid content
2456 # When we update gettext to 0.18.3 or better we can add it again.
2457 am__api_version='1.15'
2458
2459 # Find a good install program.  We prefer a C program (faster),
2460 # so one script is as good as another.  But avoid the broken or
2461 # incompatible versions:
2462 # SysV /etc/install, /usr/sbin/install
2463 # SunOS /usr/etc/install
2464 # IRIX /sbin/install
2465 # AIX /bin/install
2466 # AmigaOS /C/install, which installs bootblocks on floppy discs
2467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2470 # OS/2's system install, which has a completely different semantic
2471 # ./install, which can be erroneously created by make from ./install.sh.
2472 # Reject install programs that cannot install multiple files.
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2474 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2475 if test -z "$INSTALL"; then
2476 if ${ac_cv_path_install+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484     # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in #((
2486   ./ | .// | /[cC]/* | \
2487   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2489   /usr/ucb/* ) ;;
2490   *)
2491     # OSF1 and SCO ODT 3.0 have their own names for install.
2492     # Don't use installbsd from OSF since it installs stuff as root
2493     # by default.
2494     for ac_prog in ginstall scoinst install; do
2495       for ac_exec_ext in '' $ac_executable_extensions; do
2496         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2497           if test $ac_prog = install &&
2498             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499             # AIX install.  It has an incompatible calling convention.
2500             :
2501           elif test $ac_prog = install &&
2502             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503             # program-specific install script used by HP pwplus--don't use.
2504             :
2505           else
2506             rm -rf conftest.one conftest.two conftest.dir
2507             echo one > conftest.one
2508             echo two > conftest.two
2509             mkdir conftest.dir
2510             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2511               test -s conftest.one && test -s conftest.two &&
2512               test -s conftest.dir/conftest.one &&
2513               test -s conftest.dir/conftest.two
2514             then
2515               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516               break 3
2517             fi
2518           fi
2519         fi
2520       done
2521     done
2522     ;;
2523 esac
2524
2525   done
2526 IFS=$as_save_IFS
2527
2528 rm -rf conftest.one conftest.two conftest.dir
2529
2530 fi
2531   if test "${ac_cv_path_install+set}" = set; then
2532     INSTALL=$ac_cv_path_install
2533   else
2534     # As a last resort, use the slow shell script.  Don't cache a
2535     # value for INSTALL within a source directory, because that will
2536     # break other packages using the cache if that directory is
2537     # removed, or if the value is a relative name.
2538     INSTALL=$ac_install_sh
2539   fi
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2542 $as_echo "$INSTALL" >&6; }
2543
2544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2545 # It thinks the first close brace ends the variable substitution.
2546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2547
2548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2549
2550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2553 $as_echo_n "checking whether build environment is sane... " >&6; }
2554 # Reject unsafe characters in $srcdir or the absolute working directory
2555 # name.  Accept space and tab only in the latter.
2556 am_lf='
2557 '
2558 case `pwd` in
2559   *[\\\"\#\$\&\'\`$am_lf]*)
2560     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2561 esac
2562 case $srcdir in
2563   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2564     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2565 esac
2566
2567 # Do 'set' in a subshell so we don't clobber the current shell's
2568 # arguments.  Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573    am_has_slept=no
2574    for am_try in 1 2; do
2575      echo "timestamp, slept: $am_has_slept" > conftest.file
2576      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2577      if test "$*" = "X"; then
2578         # -L didn't work.
2579         set X `ls -t "$srcdir/configure" conftest.file`
2580      fi
2581      if test "$*" != "X $srcdir/configure conftest.file" \
2582         && test "$*" != "X conftest.file $srcdir/configure"; then
2583
2584         # If neither matched, then we have a broken ls.  This can happen
2585         # if, for instance, CONFIG_SHELL is bash and it inherits a
2586         # broken ls alias from the environment.  This has actually
2587         # happened.  Such a system could not be considered "sane".
2588         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2589   alias in your environment" "$LINENO" 5
2590      fi
2591      if test "$2" = conftest.file || test $am_try -eq 2; then
2592        break
2593      fi
2594      # Just in case.
2595      sleep 1
2596      am_has_slept=yes
2597    done
2598    test "$2" = conftest.file
2599    )
2600 then
2601    # Ok.
2602    :
2603 else
2604    as_fn_error $? "newly created file is older than distributed files!
2605 Check your system clock" "$LINENO" 5
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 # If we didn't sleep, we still need to ensure time stamps of config.status and
2610 # generated files are strictly newer.
2611 am_sleep_pid=
2612 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2613   ( sleep 1 ) &
2614   am_sleep_pid=$!
2615 fi
2616
2617 rm -f conftest.file
2618
2619 test "$program_prefix" != NONE &&
2620   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2624 # Double any \ or $.
2625 # By default was `s,x,x', remove it if useless.
2626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2628
2629 # Expand $ac_aux_dir to an absolute path.
2630 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2631
2632 if test x"${MISSING+set}" != xset; then
2633   case $am_aux_dir in
2634   *\ * | *\     *)
2635     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2636   *)
2637     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2638   esac
2639 fi
2640 # Use eval to expand $SHELL
2641 if eval "$MISSING --is-lightweight"; then
2642   am_missing_run="$MISSING "
2643 else
2644   am_missing_run=
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2646 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2647 fi
2648
2649 if test x"${install_sh+set}" != xset; then
2650   case $am_aux_dir in
2651   *\ * | *\     *)
2652     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2653   *)
2654     install_sh="\${SHELL} $am_aux_dir/install-sh"
2655   esac
2656 fi
2657
2658 # Installed binaries are usually stripped using 'strip' when the user
2659 # run "make install-strip".  However 'strip' might not be the right
2660 # tool to use in cross-compilation environments, therefore Automake
2661 # will honor the 'STRIP' environment variable to overrule this program.
2662 if test "$cross_compiling" != no; then
2663   if test -n "$ac_tool_prefix"; then
2664   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}strip; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_STRIP+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   if test -n "$STRIP"; then
2672   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     for ac_exec_ext in '' $ac_executable_extensions; do
2680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683     break 2
2684   fi
2685 done
2686   done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 STRIP=$ac_cv_prog_STRIP
2692 if test -n "$STRIP"; then
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2694 $as_echo "$STRIP" >&6; }
2695 else
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701 fi
2702 if test -z "$ac_cv_prog_STRIP"; then
2703   ac_ct_STRIP=$STRIP
2704   # Extract the first word of "strip", so it can be a program name with args.
2705 set dummy strip; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   if test -n "$ac_ct_STRIP"; then
2712   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_exec_ext in '' $ac_executable_extensions; do
2720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721     ac_cv_prog_ac_ct_STRIP="strip"
2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2732 if test -n "$ac_ct_STRIP"; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2734 $as_echo "$ac_ct_STRIP" >&6; }
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740   if test "x$ac_ct_STRIP" = x; then
2741     STRIP=":"
2742   else
2743     case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2748 esac
2749     STRIP=$ac_ct_STRIP
2750   fi
2751 else
2752   STRIP="$ac_cv_prog_STRIP"
2753 fi
2754
2755 fi
2756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2760 if test -z "$MKDIR_P"; then
2761   if ${ac_cv_path_mkdir+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769     for ac_prog in mkdir gmkdir; do
2770          for ac_exec_ext in '' $ac_executable_extensions; do
2771            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2772            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2773              'mkdir (GNU coreutils) '* | \
2774              'mkdir (coreutils) '* | \
2775              'mkdir (fileutils) '4.1*)
2776                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2777                break 3;;
2778            esac
2779          done
2780        done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785
2786   test -d ./--version && rmdir ./--version
2787   if test "${ac_cv_path_mkdir+set}" = set; then
2788     MKDIR_P="$ac_cv_path_mkdir -p"
2789   else
2790     # As a last resort, use the slow shell script.  Don't cache a
2791     # value for MKDIR_P within a source directory, because that will
2792     # break other packages using the cache if that directory is
2793     # removed, or if the value is a relative name.
2794     MKDIR_P="$ac_install_sh -d"
2795   fi
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2798 $as_echo "$MKDIR_P" >&6; }
2799
2800 for ac_prog in gawk mawk nawk awk
2801 do
2802   # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_AWK+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$AWK"; then
2810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_exec_ext in '' $ac_executable_extensions; do
2818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819     ac_cv_prog_AWK="$ac_prog"
2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824   done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 AWK=$ac_cv_prog_AWK
2830 if test -n "$AWK"; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2832 $as_echo "$AWK" >&6; }
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839   test -n "$AWK" && break
2840 done
2841
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2843 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844 set x ${MAKE-make}
2845 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   cat >conftest.make <<\_ACEOF
2850 SHELL = /bin/sh
2851 all:
2852         @echo '@@@%%%=$(MAKE)=@@@%%%'
2853 _ACEOF
2854 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2855 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856   *@@@%%%=?*=@@@%%%*)
2857     eval ac_cv_prog_make_${ac_make}_set=yes;;
2858   *)
2859     eval ac_cv_prog_make_${ac_make}_set=no;;
2860 esac
2861 rm -f conftest.make
2862 fi
2863 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865 $as_echo "yes" >&6; }
2866   SET_MAKE=
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870   SET_MAKE="MAKE=${MAKE-make}"
2871 fi
2872
2873 rm -rf .tst 2>/dev/null
2874 mkdir .tst 2>/dev/null
2875 if test -d .tst; then
2876   am__leading_dot=.
2877 else
2878   am__leading_dot=_
2879 fi
2880 rmdir .tst 2>/dev/null
2881
2882 # Check whether --enable-silent-rules was given.
2883 if test "${enable_silent_rules+set}" = set; then :
2884   enableval=$enable_silent_rules;
2885 fi
2886
2887 case $enable_silent_rules in # (((
2888   yes) AM_DEFAULT_VERBOSITY=0;;
2889    no) AM_DEFAULT_VERBOSITY=1;;
2890     *) AM_DEFAULT_VERBOSITY=1;;
2891 esac
2892 am_make=${MAKE-make}
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2894 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2895 if ${am_cv_make_support_nested_variables+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if $as_echo 'TRUE=$(BAR$(V))
2899 BAR0=false
2900 BAR1=true
2901 V=1
2902 am__doit:
2903         @$(TRUE)
2904 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2905   am_cv_make_support_nested_variables=yes
2906 else
2907   am_cv_make_support_nested_variables=no
2908 fi
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2911 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2912 if test $am_cv_make_support_nested_variables = yes; then
2913     AM_V='$(V)'
2914   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2915 else
2916   AM_V=$AM_DEFAULT_VERBOSITY
2917   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2918 fi
2919 AM_BACKSLASH='\'
2920
2921 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2922   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2923   # is not polluted with repeated "-I."
2924   am__isrc=' -I$(srcdir)'
2925   # test to see if srcdir already configured
2926   if test -f $srcdir/config.status; then
2927     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2928   fi
2929 fi
2930
2931 # test whether we have cygpath
2932 if test -z "$CYGPATH_W"; then
2933   if (cygpath --version) >/dev/null 2>/dev/null; then
2934     CYGPATH_W='cygpath -w'
2935   else
2936     CYGPATH_W=echo
2937   fi
2938 fi
2939
2940
2941 # Define the identity of the package.
2942  PACKAGE='make'
2943  VERSION='4.2.1'
2944
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE "$PACKAGE"
2948 _ACEOF
2949
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define VERSION "$VERSION"
2953 _ACEOF
2954
2955 # Some tools Automake needs.
2956
2957 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2958
2959
2960 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2961
2962
2963 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2964
2965
2966 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2967
2968
2969 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2970
2971 # For better backward compatibility.  To be removed once Automake 1.9.x
2972 # dies out for good.  For more background, see:
2973 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2974 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2975 mkdir_p='$(MKDIR_P)'
2976
2977 # We need awk for the "check" target (and possibly the TAP driver).  The
2978 # system "awk" is bad on some platforms.
2979 # Always define AMTAR for backward compatibility.  Yes, it's still used
2980 # in the wild :-(  We should find a proper way to deprecate it ...
2981 AMTAR='$${TAR-tar}'
2982
2983
2984 # We'll loop over all known methods to create a tar archive until one works.
2985 _am_tools='gnutar  pax cpio none'
2986
2987 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2988
2989
2990
2991
2992
2993
2994 # POSIX will say in a future version that running "rm -f" with no argument
2995 # is OK; and we want to be able to make that assumption in our Makefile
2996 # recipes.  So use an aggressive probe to check that the usage we want is
2997 # actually supported "in the wild" to an acceptable degree.
2998 # See automake bug#10828.
2999 # To make any issue more visible, cause the running configure to be aborted
3000 # by default if the 'rm' program in use doesn't match our expectations; the
3001 # user can still override this though.
3002 if rm -f && rm -fr && rm -rf; then : OK; else
3003   cat >&2 <<'END'
3004 Oops!
3005
3006 Your 'rm' program seems unable to run without file operands specified
3007 on the command line, even when the '-f' option is present.  This is contrary
3008 to the behaviour of most rm programs out there, and not conforming with
3009 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3010
3011 Please tell bug-automake@gnu.org about your system, including the value
3012 of your $PATH and any error possibly output before this message.  This
3013 can help us improve future automake versions.
3014
3015 END
3016   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3017     echo 'Configuration will proceed anyway, since you have set the' >&2
3018     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3019     echo >&2
3020   else
3021     cat >&2 <<'END'
3022 Aborting the configuration process, to ensure you take notice of the issue.
3023
3024 You can download and install GNU coreutils to get an 'rm' implementation
3025 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3026
3027 If you want to complete the configuration process using your problematic
3028 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3029 to "yes", and re-run configure.
3030
3031 END
3032     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3033   fi
3034 fi
3035
3036
3037 # Checks for programs.
3038 DEPDIR="${am__leading_dot}deps"
3039
3040 ac_config_commands="$ac_config_commands depfiles"
3041
3042
3043 am_make=${MAKE-make}
3044 cat > confinc << 'END'
3045 am__doit:
3046         @echo this is the am__doit target
3047 .PHONY: am__doit
3048 END
3049 # If we don't find an include directive, just comment out the code.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3052 am__include="#"
3053 am__quote=
3054 _am_result=none
3055 # First try GNU make style include.
3056 echo "include confinc" > confmf
3057 # Ignore all kinds of additional output from 'make'.
3058 case `$am_make -s -f confmf 2> /dev/null` in #(
3059 *the\ am__doit\ target*)
3060   am__include=include
3061   am__quote=
3062   _am_result=GNU
3063   ;;
3064 esac
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067    echo '.include "confinc"' > confmf
3068    case `$am_make -s -f confmf 2> /dev/null` in #(
3069    *the\ am__doit\ target*)
3070      am__include=.include
3071      am__quote="\""
3072      _am_result=BSD
3073      ;;
3074    esac
3075 fi
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3079 $as_echo "$_am_result" >&6; }
3080 rm -f confinc confmf
3081
3082 # Check whether --enable-dependency-tracking was given.
3083 if test "${enable_dependency_tracking+set}" = set; then :
3084   enableval=$enable_dependency_tracking;
3085 fi
3086
3087 if test "x$enable_dependency_tracking" != xno; then
3088   am_depcomp="$ac_aux_dir/depcomp"
3089   AMDEPBACKSLASH='\'
3090   am__nodep='_no'
3091 fi
3092  if test "x$enable_dependency_tracking" != xno; then
3093   AMDEP_TRUE=
3094   AMDEP_FALSE='#'
3095 else
3096   AMDEP_TRUE='#'
3097   AMDEP_FALSE=
3098 fi
3099
3100
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 if test -n "$ac_tool_prefix"; then
3107   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test -n "$CC"; then
3115   ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     for ac_exec_ext in '' $ac_executable_extensions; do
3123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126     break 2
3127   fi
3128 done
3129   done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 fi
3145 if test -z "$ac_cv_prog_CC"; then
3146   ac_ct_CC=$CC
3147   # Extract the first word of "gcc", so it can be a program name with args.
3148 set dummy gcc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   if test -n "$ac_ct_CC"; then
3155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_exec_ext in '' $ac_executable_extensions; do
3163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164     ac_cv_prog_ac_ct_CC="gcc"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183   if test "x$ac_ct_CC" = x; then
3184     CC=""
3185   else
3186     case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3191 esac
3192     CC=$ac_ct_CC
3193   fi
3194 else
3195   CC="$ac_cv_prog_CC"
3196 fi
3197
3198 if test -z "$CC"; then
3199           if test -n "$ac_tool_prefix"; then
3200     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}cc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if test -n "$CC"; then
3208   ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_CC="${ac_tool_prefix}cc"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237   fi
3238 fi
3239 if test -z "$CC"; then
3240   # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$CC"; then
3248   ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250   ac_prog_rejected=no
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259        ac_prog_rejected=yes
3260        continue
3261      fi
3262     ac_cv_prog_CC="cc"
3263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264     break 2
3265   fi
3266 done
3267   done
3268 IFS=$as_save_IFS
3269
3270 if test $ac_prog_rejected = yes; then
3271   # We found a bogon in the path, so make sure we never use it.
3272   set dummy $ac_cv_prog_CC
3273   shift
3274   if test $# != 0; then
3275     # We chose a different compiler from the bogus one.
3276     # However, it has the same basename, so the bogon will be chosen
3277     # first if we set CC to just the basename; use the full file name.
3278     shift
3279     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3280   fi
3281 fi
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$CC"; then
3296   if test -n "$ac_tool_prefix"; then
3297   for ac_prog in cl.exe
3298   do
3299     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$CC"; then
3307   ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336     test -n "$CC" && break
3337   done
3338 fi
3339 if test -z "$CC"; then
3340   ac_ct_CC=$CC
3341   for ac_prog in cl.exe
3342 do
3343   # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy $ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$ac_ct_CC"; then
3351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_CC="$ac_prog"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380   test -n "$ac_ct_CC" && break
3381 done
3382
3383   if test "x$ac_ct_CC" = x; then
3384     CC=""
3385   else
3386     case $cross_compiling:$ac_tool_warned in
3387 yes:)
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392     CC=$ac_ct_CC
3393   fi
3394 fi
3395
3396 fi
3397
3398
3399 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "no acceptable C compiler found in \$PATH
3402 See \`config.log' for more details" "$LINENO" 5; }
3403
3404 # Provide some information about the compiler.
3405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3406 set X $ac_compile
3407 ac_compiler=$2
3408 for ac_option in --version -v -V -qversion; do
3409   { { ac_try="$ac_compiler $ac_option >&5"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3417   ac_status=$?
3418   if test -s conftest.err; then
3419     sed '10a\
3420 ... rest of stderr output deleted ...
3421          10q' conftest.err >conftest.er1
3422     cat conftest.er1 >&5
3423   fi
3424   rm -f conftest.er1 conftest.err
3425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426   test $ac_status = 0; }
3427 done
3428
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 ac_clean_files_save=$ac_clean_files
3441 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3442 # Try to create an executable without -o first, disregard a.out.
3443 # It will help us diagnose broken compilers, and finding out an intuition
3444 # of exeext.
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3446 $as_echo_n "checking whether the C compiler works... " >&6; }
3447 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3448
3449 # The possible output files:
3450 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3451
3452 ac_rmfiles=
3453 for ac_file in $ac_files
3454 do
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3458   esac
3459 done
3460 rm -f $ac_rmfiles
3461
3462 if { { ac_try="$ac_link_default"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469   (eval "$ac_link_default") 2>&5
3470   ac_status=$?
3471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472   test $ac_status = 0; }; then :
3473   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3474 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3475 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3476 # so that the user can short-circuit this test for compilers unknown to
3477 # Autoconf.
3478 for ac_file in $ac_files ''
3479 do
3480   test -f "$ac_file" || continue
3481   case $ac_file in
3482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3483         ;;
3484     [ab].out )
3485         # We found the default executable, but exeext='' is most
3486         # certainly right.
3487         break;;
3488     *.* )
3489         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3490         then :; else
3491            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492         fi
3493         # We set ac_cv_exeext here because the later test for it is not
3494         # safe: cross compilers may not add the suffix if given an `-o'
3495         # argument, so we may need to know it at that point already.
3496         # Even if this section looks crufty: it has the advantage of
3497         # actually working.
3498         break;;
3499     * )
3500         break;;
3501   esac
3502 done
3503 test "$ac_cv_exeext" = no && ac_cv_exeext=
3504
3505 else
3506   ac_file=''
3507 fi
3508 if test -z "$ac_file"; then :
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error 77 "C compiler cannot create executables
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3520 $as_echo "yes" >&6; }
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3523 $as_echo_n "checking for C compiler default output file name... " >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3525 $as_echo "$ac_file" >&6; }
3526 ac_exeext=$ac_cv_exeext
3527
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3531 $as_echo_n "checking for suffix of executables... " >&6; }
3532 if { { ac_try="$ac_link"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539   (eval "$ac_link") 2>&5
3540   ac_status=$?
3541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542   test $ac_status = 0; }; then :
3543   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3544 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3545 # work properly (i.e., refer to `conftest.exe'), while it won't with
3546 # `rm'.
3547 for ac_file in conftest.exe conftest conftest.*; do
3548   test -f "$ac_file" || continue
3549   case $ac_file in
3550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552           break;;
3553     * ) break;;
3554   esac
3555 done
3556 else
3557   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562 rm -f conftest conftest$ac_cv_exeext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3565
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571 #include <stdio.h>
3572 int
3573 main ()
3574 {
3575 FILE *f = fopen ("conftest.out", "w");
3576  return ferror (f) || fclose (f) != 0;
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 ac_clean_files="$ac_clean_files conftest.out"
3583 # Check that the compiler produces executables we can run.  If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 if test "$cross_compiling" != yes; then
3588   { { ac_try="$ac_link"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595   (eval "$ac_link") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598   test $ac_status = 0; }
3599   if { ac_try='./conftest$ac_cv_exeext'
3600   { { case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609   test $ac_status = 0; }; }; then
3610     cross_compiling=no
3611   else
3612     if test "$cross_compiling" = maybe; then
3613         cross_compiling=yes
3614     else
3615         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details" "$LINENO" 5; }
3620     fi
3621   fi
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3624 $as_echo "$cross_compiling" >&6; }
3625
3626 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3627 ac_clean_files=$ac_clean_files_save
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3629 $as_echo_n "checking for suffix of object files... " >&6; }
3630 if ${ac_cv_objext+:} false; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 rm -f conftest.o conftest.obj
3645 if { { ac_try="$ac_compile"
3646 case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652   (eval "$ac_compile") 2>&5
3653   ac_status=$?
3654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655   test $ac_status = 0; }; then :
3656   for ac_file in conftest.o conftest.obj conftest.*; do
3657   test -f "$ac_file" || continue;
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3660     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3661        break;;
3662   esac
3663 done
3664 else
3665   $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot compute suffix of object files: cannot compile
3671 See \`config.log' for more details" "$LINENO" 5; }
3672 fi
3673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3676 $as_echo "$ac_cv_objext" >&6; }
3677 OBJEXT=$ac_cv_objext
3678 ac_objext=$OBJEXT
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3681 if ${ac_cv_c_compiler_gnu+:} false; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686
3687 int
3688 main ()
3689 {
3690 #ifndef __GNUC__
3691        choke me
3692 #endif
3693
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699   ac_compiler_gnu=yes
3700 else
3701   ac_compiler_gnu=no
3702 fi
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3705
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3709 if test $ac_compiler_gnu = yes; then
3710   GCC=yes
3711 else
3712   GCC=
3713 fi
3714 ac_test_CFLAGS=${CFLAGS+set}
3715 ac_save_CFLAGS=$CFLAGS
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3718 if ${ac_cv_prog_cc_g+:} false; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   ac_save_c_werror_flag=$ac_c_werror_flag
3722    ac_c_werror_flag=yes
3723    ac_cv_prog_cc_g=no
3724    CFLAGS="-g"
3725    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h.  */
3727
3728 int
3729 main ()
3730 {
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737   ac_cv_prog_cc_g=yes
3738 else
3739   CFLAGS=""
3740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742
3743 int
3744 main ()
3745 {
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752
3753 else
3754   ac_c_werror_flag=$ac_save_c_werror_flag
3755          CFLAGS="-g"
3756          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_g=yes
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775    ac_c_werror_flag=$ac_save_c_werror_flag
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3778 $as_echo "$ac_cv_prog_cc_g" >&6; }
3779 if test "$ac_test_CFLAGS" = set; then
3780   CFLAGS=$ac_save_CFLAGS
3781 elif test $ac_cv_prog_cc_g = yes; then
3782   if test "$GCC" = yes; then
3783     CFLAGS="-g -O2"
3784   else
3785     CFLAGS="-g"
3786   fi
3787 else
3788   if test "$GCC" = yes; then
3789     CFLAGS="-O2"
3790   else
3791     CFLAGS=
3792   fi
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3795 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3796 if ${ac_cv_prog_cc_c89+:} false; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   ac_cv_prog_cc_c89=no
3800 ac_save_CC=$CC
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h.  */
3803 #include <stdarg.h>
3804 #include <stdio.h>
3805 struct stat;
3806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3807 struct buf { int x; };
3808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3809 static char *e (p, i)
3810      char **p;
3811      int i;
3812 {
3813   return p[i];
3814 }
3815 static char *f (char * (*g) (char **, int), char **p, ...)
3816 {
3817   char *s;
3818   va_list v;
3819   va_start (v,p);
3820   s = g (p, va_arg (v,int));
3821   va_end (v);
3822   return s;
3823 }
3824
3825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3826    function prototypes and stuff, but not '\xHH' hex character constants.
3827    These don't provoke an error unfortunately, instead are silently treated
3828    as 'x'.  The following induces an error, until -std is added to get
3829    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3830    array size at least.  It's necessary to write '\x00'==0 to get something
3831    that's true only with -std.  */
3832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3833
3834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3835    inside strings and character constants.  */
3836 #define FOO(x) 'x'
3837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3838
3839 int test (int i, double x);
3840 struct s1 {int (*f) (int a);};
3841 struct s2 {int (*f) (double a);};
3842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3843 int argc;
3844 char **argv;
3845 int
3846 main ()
3847 {
3848 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3854         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3855 do
3856   CC="$ac_save_CC $ac_arg"
3857   if ac_fn_c_try_compile "$LINENO"; then :
3858   ac_cv_prog_cc_c89=$ac_arg
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext
3861   test "x$ac_cv_prog_cc_c89" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3865
3866 fi
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c89" in
3869   x)
3870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872   xno)
3873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3875   *)
3876     CC="$CC $ac_cv_prog_cc_c89"
3877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3879 esac
3880 if test "x$ac_cv_prog_cc_c89" != xno; then :
3881
3882 fi
3883
3884 ac_ext=c
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3896 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3897 if ${am_cv_prog_cc_c_o+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h.  */
3902
3903 int
3904 main ()
3905 {
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911   # Make sure it works both with $CC and with simple cc.
3912   # Following AC_PROG_CC_C_O, we do the test twice because some
3913   # compilers refuse to overwrite an existing .o file with -o,
3914   # though they will create one.
3915   am_cv_prog_cc_c_o=yes
3916   for am_i in 1 2; do
3917     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3918    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3919    ac_status=$?
3920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921    (exit $ac_status); } \
3922          && test -f conftest2.$ac_objext; then
3923       : OK
3924     else
3925       am_cv_prog_cc_c_o=no
3926       break
3927     fi
3928   done
3929   rm -f core conftest*
3930   unset am_i
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3933 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3934 if test "$am_cv_prog_cc_c_o" != yes; then
3935    # Losing compiler, so override with the script.
3936    # FIXME: It is wrong to rewrite CC.
3937    # But if we don't then we get into trouble of one sort or another.
3938    # A longer-term fix would be to have automake use am__CC in this case,
3939    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3940    CC="$am_aux_dir/compile $CC"
3941 fi
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947
3948
3949 depcc="$CC"   am_compiler_list=
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3952 $as_echo_n "checking dependency style of $depcc... " >&6; }
3953 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3957   # We make a subdir and do the tests there.  Otherwise we can end up
3958   # making bogus files that we don't know about and never remove.  For
3959   # instance it was reported that on HP-UX the gcc test will end up
3960   # making a dummy file named 'D' -- because '-MD' means "put the output
3961   # in D".
3962   rm -rf conftest.dir
3963   mkdir conftest.dir
3964   # Copy depcomp to subdir because otherwise we won't find it if we're
3965   # using a relative directory.
3966   cp "$am_depcomp" conftest.dir
3967   cd conftest.dir
3968   # We will build objects and dependencies in a subdirectory because
3969   # it helps to detect inapplicable dependency modes.  For instance
3970   # both Tru64's cc and ICC support -MD to output dependencies as a
3971   # side effect of compilation, but ICC will put the dependencies in
3972   # the current directory while Tru64 will put them in the object
3973   # directory.
3974   mkdir sub
3975
3976   am_cv_CC_dependencies_compiler_type=none
3977   if test "$am_compiler_list" = ""; then
3978      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3979   fi
3980   am__universal=false
3981   case " $depcc " in #(
3982      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3983      esac
3984
3985   for depmode in $am_compiler_list; do
3986     # Setup a source with many dependencies, because some compilers
3987     # like to wrap large dependency lists on column 80 (with \), and
3988     # we should not choose a depcomp mode which is confused by this.
3989     #
3990     # We need to recreate these files for each test, as the compiler may
3991     # overwrite some of them when testing with obscure command lines.
3992     # This happens at least with the AIX C compiler.
3993     : > sub/conftest.c
3994     for i in 1 2 3 4 5 6; do
3995       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3996       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3997       # Solaris 10 /bin/sh.
3998       echo '/* dummy */' > sub/conftst$i.h
3999     done
4000     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4001
4002     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4003     # mode.  It turns out that the SunPro C++ compiler does not properly
4004     # handle '-M -o', and we need to detect this.  Also, some Intel
4005     # versions had trouble with output in subdirs.
4006     am__obj=sub/conftest.${OBJEXT-o}
4007     am__minus_obj="-o $am__obj"
4008     case $depmode in
4009     gcc)
4010       # This depmode causes a compiler race in universal mode.
4011       test "$am__universal" = false || continue
4012       ;;
4013     nosideeffect)
4014       # After this tag, mechanisms are not by side-effect, so they'll
4015       # only be used when explicitly requested.
4016       if test "x$enable_dependency_tracking" = xyes; then
4017         continue
4018       else
4019         break
4020       fi
4021       ;;
4022     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4023       # This compiler won't grok '-c -o', but also, the minuso test has
4024       # not run yet.  These depmodes are late enough in the game, and
4025       # so weak that their functioning should not be impacted.
4026       am__obj=conftest.${OBJEXT-o}
4027       am__minus_obj=
4028       ;;
4029     none) break ;;
4030     esac
4031     if depmode=$depmode \
4032        source=sub/conftest.c object=$am__obj \
4033        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4034        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4035          >/dev/null 2>conftest.err &&
4036        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4037        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4038        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4039        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4040       # icc doesn't choke on unknown options, it will just issue warnings
4041       # or remarks (even with -Werror).  So we grep stderr for any message
4042       # that says an option was ignored or not supported.
4043       # When given -MP, icc 7.0 and 7.1 complain thusly:
4044       #   icc: Command line warning: ignoring option '-M'; no argument required
4045       # The diagnosis changed in icc 8.0:
4046       #   icc: Command line remark: option '-MP' not supported
4047       if (grep 'ignoring option' conftest.err ||
4048           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4049         am_cv_CC_dependencies_compiler_type=$depmode
4050         break
4051       fi
4052     fi
4053   done
4054
4055   cd ..
4056   rm -rf conftest.dir
4057 else
4058   am_cv_CC_dependencies_compiler_type=none
4059 fi
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4063 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4065
4066  if
4067   test "x$enable_dependency_tracking" != xno \
4068   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4069   am__fastdepCC_TRUE=
4070   am__fastdepCC_FALSE='#'
4071 else
4072   am__fastdepCC_TRUE='#'
4073   am__fastdepCC_FALSE=
4074 fi
4075
4076
4077
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4085 # On Suns, sometimes $CPP names a directory.
4086 if test -n "$CPP" && test -d "$CPP"; then
4087   CPP=
4088 fi
4089 if test -z "$CPP"; then
4090   if ${ac_cv_prog_CPP+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093       # Double quotes because CPP needs to be expanded
4094     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4095     do
4096       ac_preproc_ok=false
4097 for ac_c_preproc_warn_flag in '' yes
4098 do
4099   # Use a header file that comes with gcc, so configuring glibc
4100   # with a fresh cross-compiler works.
4101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102   # <limits.h> exists even on freestanding compilers.
4103   # On the NeXT, cc -E runs the code through the compiler's parser,
4104   # not just through cpp. "Syntax error" is here to catch this case.
4105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107 #ifdef __STDC__
4108 # include <limits.h>
4109 #else
4110 # include <assert.h>
4111 #endif
4112                      Syntax error
4113 _ACEOF
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115
4116 else
4117   # Broken: fails on valid input.
4118 continue
4119 fi
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122   # OK, works on sane cases.  Now check whether nonexistent headers
4123   # can be detected and how.
4124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #include <ac_nonexistent.h>
4127 _ACEOF
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129   # Broken: success on invalid input.
4130 continue
4131 else
4132   # Passes both tests.
4133 ac_preproc_ok=:
4134 break
4135 fi
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4137
4138 done
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.$ac_ext
4141 if $ac_preproc_ok; then :
4142   break
4143 fi
4144
4145     done
4146     ac_cv_prog_CPP=$CPP
4147
4148 fi
4149   CPP=$ac_cv_prog_CPP
4150 else
4151   ac_cv_prog_CPP=$CPP
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154 $as_echo "$CPP" >&6; }
4155 ac_preproc_ok=false
4156 for ac_c_preproc_warn_flag in '' yes
4157 do
4158   # Use a header file that comes with gcc, so configuring glibc
4159   # with a fresh cross-compiler works.
4160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161   # <limits.h> exists even on freestanding compilers.
4162   # On the NeXT, cc -E runs the code through the compiler's parser,
4163   # not just through cpp. "Syntax error" is here to catch this case.
4164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #ifdef __STDC__
4167 # include <limits.h>
4168 #else
4169 # include <assert.h>
4170 #endif
4171                      Syntax error
4172 _ACEOF
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174
4175 else
4176   # Broken: fails on valid input.
4177 continue
4178 fi
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4180
4181   # OK, works on sane cases.  Now check whether nonexistent headers
4182   # can be detected and how.
4183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h.  */
4185 #include <ac_nonexistent.h>
4186 _ACEOF
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4188   # Broken: success on invalid input.
4189 continue
4190 else
4191   # Passes both tests.
4192 ac_preproc_ok=:
4193 break
4194 fi
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4196
4197 done
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then :
4201
4202 else
4203   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details" "$LINENO" 5; }
4207 fi
4208
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if ${ac_cv_path_GREP+:} false; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -z "$GREP"; then
4222   ac_path_GREP_found=false
4223   # Loop through the user's path and test for each of PROGNAME-LIST
4224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_prog in grep ggrep; do
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232       as_fn_executable_p "$ac_path_GREP" || continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234   # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4236 *GNU*)
4237   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4238 *)
4239   ac_count=0
4240   $as_echo_n 0123456789 >"conftest.in"
4241   while :
4242   do
4243     cat "conftest.in" "conftest.in" >"conftest.tmp"
4244     mv "conftest.tmp" "conftest.in"
4245     cp "conftest.in" "conftest.nl"
4246     $as_echo 'GREP' >> "conftest.nl"
4247     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249     as_fn_arith $ac_count + 1 && ac_count=$as_val
4250     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251       # Best one so far, save it but keep looking for a better one
4252       ac_cv_path_GREP="$ac_path_GREP"
4253       ac_path_GREP_max=$ac_count
4254     fi
4255     # 10*(2^10) chars as input seems more than enough
4256     test $ac_count -gt 10 && break
4257   done
4258   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 esac
4260
4261       $ac_path_GREP_found && break 3
4262     done
4263   done
4264   done
4265 IFS=$as_save_IFS
4266   if test -z "$ac_cv_path_GREP"; then
4267     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4268   fi
4269 else
4270   ac_cv_path_GREP=$GREP
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276  GREP="$ac_cv_path_GREP"
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if ${ac_cv_path_EGREP+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285    then ac_cv_path_EGREP="$GREP -E"
4286    else
4287      if test -z "$EGREP"; then
4288   ac_path_EGREP_found=false
4289   # Loop through the user's path and test for each of PROGNAME-LIST
4290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295     for ac_prog in egrep; do
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298       as_fn_executable_p "$ac_path_EGREP" || continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300   # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4302 *GNU*)
4303   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4304 *)
4305   ac_count=0
4306   $as_echo_n 0123456789 >"conftest.in"
4307   while :
4308   do
4309     cat "conftest.in" "conftest.in" >"conftest.tmp"
4310     mv "conftest.tmp" "conftest.in"
4311     cp "conftest.in" "conftest.nl"
4312     $as_echo 'EGREP' >> "conftest.nl"
4313     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315     as_fn_arith $ac_count + 1 && ac_count=$as_val
4316     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317       # Best one so far, save it but keep looking for a better one
4318       ac_cv_path_EGREP="$ac_path_EGREP"
4319       ac_path_EGREP_max=$ac_count
4320     fi
4321     # 10*(2^10) chars as input seems more than enough
4322     test $ac_count -gt 10 && break
4323   done
4324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 esac
4326
4327       $ac_path_EGREP_found && break 3
4328     done
4329   done
4330   done
4331 IFS=$as_save_IFS
4332   if test -z "$ac_cv_path_EGREP"; then
4333     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334   fi
4335 else
4336   ac_cv_path_EGREP=$EGREP
4337 fi
4338
4339    fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343  EGREP="$ac_cv_path_EGREP"
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if ${ac_cv_header_stdc+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367   ac_cv_header_stdc=yes
4368 else
4369   ac_cv_header_stdc=no
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372
4373 if test $ac_cv_header_stdc = yes; then
4374   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #include <string.h>
4378
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381   $EGREP "memchr" >/dev/null 2>&1; then :
4382
4383 else
4384   ac_cv_header_stdc=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389
4390 if test $ac_cv_header_stdc = yes; then
4391   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394 #include <stdlib.h>
4395
4396 _ACEOF
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398   $EGREP "free" >/dev/null 2>&1; then :
4399
4400 else
4401   ac_cv_header_stdc=no
4402 fi
4403 rm -f conftest*
4404
4405 fi
4406
4407 if test $ac_cv_header_stdc = yes; then
4408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409   if test "$cross_compiling" = yes; then :
4410   :
4411 else
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #include <ctype.h>
4415 #include <stdlib.h>
4416 #if ((' ' & 0x0FF) == 0x020)
4417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4419 #else
4420 # define ISLOWER(c) \
4421                    (('a' <= (c) && (c) <= 'i') \
4422                      || ('j' <= (c) && (c) <= 'r') \
4423                      || ('s' <= (c) && (c) <= 'z'))
4424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4425 #endif
4426
4427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4428 int
4429 main ()
4430 {
4431   int i;
4432   for (i = 0; i < 256; i++)
4433     if (XOR (islower (i), ISLOWER (i))
4434         || toupper (i) != TOUPPER (i))
4435       return 2;
4436   return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_run "$LINENO"; then :
4440
4441 else
4442   ac_cv_header_stdc=no
4443 fi
4444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4445   conftest.$ac_objext conftest.beam conftest.$ac_ext
4446 fi
4447
4448 fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4451 $as_echo "$ac_cv_header_stdc" >&6; }
4452 if test $ac_cv_header_stdc = yes; then
4453
4454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4455
4456 fi
4457
4458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4460                   inttypes.h stdint.h unistd.h
4461 do :
4462   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4464 "
4465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4466   cat >>confdefs.h <<_ACEOF
4467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4468 _ACEOF
4469
4470 fi
4471
4472 done
4473
4474
4475
4476   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4477 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4478   MINIX=yes
4479 else
4480   MINIX=
4481 fi
4482
4483
4484   if test "$MINIX" = yes; then
4485
4486 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4487
4488
4489 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4490
4491
4492 $as_echo "#define _MINIX 1" >>confdefs.h
4493
4494   fi
4495
4496
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4498 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4499 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 #         define __EXTENSIONS__ 1
4506           $ac_includes_default
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516   ac_cv_safe_to_define___extensions__=yes
4517 else
4518   ac_cv_safe_to_define___extensions__=no
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4523 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4524   test $ac_cv_safe_to_define___extensions__ = yes &&
4525     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4526
4527   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4528
4529   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4530
4531   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4532
4533   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4534
4535
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_CC+:} false; then :
4547   $as_echo_n "(cached) " >&6
4548 else
4549   if test -n "$CC"; then
4550   ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555   IFS=$as_save_IFS
4556   test -z "$as_dir" && as_dir=.
4557     for ac_exec_ext in '' $ac_executable_extensions; do
4558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561     break 2
4562   fi
4563 done
4564   done
4565 IFS=$as_save_IFS
4566
4567 fi
4568 fi
4569 CC=$ac_cv_prog_CC
4570 if test -n "$CC"; then
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4572 $as_echo "$CC" >&6; }
4573 else
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4578
4579 fi
4580 if test -z "$ac_cv_prog_CC"; then
4581   ac_ct_CC=$CC
4582   # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if test -n "$ac_ct_CC"; then
4590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     ac_cv_prog_ac_ct_CC="gcc"
4600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604   done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4612 $as_echo "$ac_ct_CC" >&6; }
4613 else
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618   if test "x$ac_ct_CC" = x; then
4619     CC=""
4620   else
4621     case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627     CC=$ac_ct_CC
4628   fi
4629 else
4630   CC="$ac_cv_prog_CC"
4631 fi
4632
4633 if test -z "$CC"; then
4634           if test -n "$ac_tool_prefix"; then
4635     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}cc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_CC+:} false; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642   if test -n "$CC"; then
4643   ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652     ac_cv_prog_CC="${ac_tool_prefix}cc"
4653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657   done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672   fi
4673 fi
4674 if test -z "$CC"; then
4675   # Extract the first word of "cc", so it can be a program name with args.
4676 set dummy cc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_CC+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -n "$CC"; then
4683   ac_cv_prog_CC="$CC" # Let the user override the test.
4684 else
4685   ac_prog_rejected=no
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4694        ac_prog_rejected=yes
4695        continue
4696      fi
4697     ac_cv_prog_CC="cc"
4698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702   done
4703 IFS=$as_save_IFS
4704
4705 if test $ac_prog_rejected = yes; then
4706   # We found a bogon in the path, so make sure we never use it.
4707   set dummy $ac_cv_prog_CC
4708   shift
4709   if test $# != 0; then
4710     # We chose a different compiler from the bogus one.
4711     # However, it has the same basename, so the bogon will be chosen
4712     # first if we set CC to just the basename; use the full file name.
4713     shift
4714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4715   fi
4716 fi
4717 fi
4718 fi
4719 CC=$ac_cv_prog_CC
4720 if test -n "$CC"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729 fi
4730 if test -z "$CC"; then
4731   if test -n "$ac_tool_prefix"; then
4732   for ac_prog in cl.exe
4733   do
4734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_CC+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$CC"; then
4742   ac_cv_prog_CC="$CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 CC=$ac_cv_prog_CC
4762 if test -n "$CC"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 $as_echo "$CC" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771     test -n "$CC" && break
4772   done
4773 fi
4774 if test -z "$CC"; then
4775   ac_ct_CC=$CC
4776   for ac_prog in cl.exe
4777 do
4778   # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test -n "$ac_ct_CC"; then
4786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_prog_ac_ct_CC="$ac_prog"
4796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800   done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4806 if test -n "$ac_ct_CC"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4808 $as_echo "$ac_ct_CC" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815   test -n "$ac_ct_CC" && break
4816 done
4817
4818   if test "x$ac_ct_CC" = x; then
4819     CC=""
4820   else
4821     case $cross_compiling:$ac_tool_warned in
4822 yes:)
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4826 esac
4827     CC=$ac_ct_CC
4828   fi
4829 fi
4830
4831 fi
4832
4833
4834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4836 as_fn_error $? "no acceptable C compiler found in \$PATH
4837 See \`config.log' for more details" "$LINENO" 5; }
4838
4839 # Provide some information about the compiler.
4840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4841 set X $ac_compile
4842 ac_compiler=$2
4843 for ac_option in --version -v -V -qversion; do
4844   { { ac_try="$ac_compiler $ac_option >&5"
4845 case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4852   ac_status=$?
4853   if test -s conftest.err; then
4854     sed '10a\
4855 ... rest of stderr output deleted ...
4856          10q' conftest.err >conftest.er1
4857     cat conftest.er1 >&5
4858   fi
4859   rm -f conftest.er1 conftest.err
4860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861   test $ac_status = 0; }
4862 done
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4866 if ${ac_cv_c_compiler_gnu+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h.  */
4871
4872 int
4873 main ()
4874 {
4875 #ifndef __GNUC__
4876        choke me
4877 #endif
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   ac_compiler_gnu=yes
4885 else
4886   ac_compiler_gnu=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4890
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4894 if test $ac_compiler_gnu = yes; then
4895   GCC=yes
4896 else
4897   GCC=
4898 fi
4899 ac_test_CFLAGS=${CFLAGS+set}
4900 ac_save_CFLAGS=$CFLAGS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4903 if ${ac_cv_prog_cc_g+:} false; then :
4904   $as_echo_n "(cached) " >&6
4905 else
4906   ac_save_c_werror_flag=$ac_c_werror_flag
4907    ac_c_werror_flag=yes
4908    ac_cv_prog_cc_g=no
4909    CFLAGS="-g"
4910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h.  */
4912
4913 int
4914 main ()
4915 {
4916
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922   ac_cv_prog_cc_g=yes
4923 else
4924   CFLAGS=""
4925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h.  */
4927
4928 int
4929 main ()
4930 {
4931
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937
4938 else
4939   ac_c_werror_flag=$ac_save_c_werror_flag
4940          CFLAGS="-g"
4941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h.  */
4943
4944 int
4945 main ()
4946 {
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953   ac_cv_prog_cc_g=yes
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960    ac_c_werror_flag=$ac_save_c_werror_flag
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4963 $as_echo "$ac_cv_prog_cc_g" >&6; }
4964 if test "$ac_test_CFLAGS" = set; then
4965   CFLAGS=$ac_save_CFLAGS
4966 elif test $ac_cv_prog_cc_g = yes; then
4967   if test "$GCC" = yes; then
4968     CFLAGS="-g -O2"
4969   else
4970     CFLAGS="-g"
4971   fi
4972 else
4973   if test "$GCC" = yes; then
4974     CFLAGS="-O2"
4975   else
4976     CFLAGS=
4977   fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4981 if ${ac_cv_prog_cc_c89+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   ac_cv_prog_cc_c89=no
4985 ac_save_CC=$CC
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h.  */
4988 #include <stdarg.h>
4989 #include <stdio.h>
4990 struct stat;
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
4995      char **p;
4996      int i;
4997 {
4998   return p[i];
4999 }
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5001 {
5002   char *s;
5003   va_list v;
5004   va_start (v,p);
5005   s = g (p, va_arg (v,int));
5006   va_end (v);
5007   return s;
5008 }
5009
5010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5011    function prototypes and stuff, but not '\xHH' hex character constants.
5012    These don't provoke an error unfortunately, instead are silently treated
5013    as 'x'.  The following induces an error, until -std is added to get
5014    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5015    array size at least.  It's necessary to write '\x00'==0 to get something
5016    that's true only with -std.  */
5017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5018
5019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020    inside strings and character constants.  */
5021 #define FOO(x) 'x'
5022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5023
5024 int test (int i, double x);
5025 struct s1 {int (*f) (int a);};
5026 struct s2 {int (*f) (double a);};
5027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5028 int argc;
5029 char **argv;
5030 int
5031 main ()
5032 {
5033 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5040 do
5041   CC="$ac_save_CC $ac_arg"
5042   if ac_fn_c_try_compile "$LINENO"; then :
5043   ac_cv_prog_cc_c89=$ac_arg
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext
5046   test "x$ac_cv_prog_cc_c89" != "xno" && break
5047 done
5048 rm -f conftest.$ac_ext
5049 CC=$ac_save_CC
5050
5051 fi
5052 # AC_CACHE_VAL
5053 case "x$ac_cv_prog_cc_c89" in
5054   x)
5055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056 $as_echo "none needed" >&6; } ;;
5057   xno)
5058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5059 $as_echo "unsupported" >&6; } ;;
5060   *)
5061     CC="$CC $ac_cv_prog_cc_c89"
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5064 esac
5065 if test "x$ac_cv_prog_cc_c89" != xno; then :
5066
5067 fi
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 ac_ext=c
5076 ac_cpp='$CPP $CPPFLAGS'
5077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5081 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5082 if ${am_cv_prog_cc_c_o+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h.  */
5087
5088 int
5089 main ()
5090 {
5091
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096   # Make sure it works both with $CC and with simple cc.
5097   # Following AC_PROG_CC_C_O, we do the test twice because some
5098   # compilers refuse to overwrite an existing .o file with -o,
5099   # though they will create one.
5100   am_cv_prog_cc_c_o=yes
5101   for am_i in 1 2; do
5102     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5103    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5104    ac_status=$?
5105    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106    (exit $ac_status); } \
5107          && test -f conftest2.$ac_objext; then
5108       : OK
5109     else
5110       am_cv_prog_cc_c_o=no
5111       break
5112     fi
5113   done
5114   rm -f core conftest*
5115   unset am_i
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5118 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5119 if test "$am_cv_prog_cc_c_o" != yes; then
5120    # Losing compiler, so override with the script.
5121    # FIXME: It is wrong to rewrite CC.
5122    # But if we don't then we get into trouble of one sort or another.
5123    # A longer-term fix would be to have automake use am__CC in this case,
5124    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5125    CC="$am_aux_dir/compile $CC"
5126 fi
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133
5134 depcc="$CC"   am_compiler_list=
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5137 $as_echo_n "checking dependency style of $depcc... " >&6; }
5138 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5142   # We make a subdir and do the tests there.  Otherwise we can end up
5143   # making bogus files that we don't know about and never remove.  For
5144   # instance it was reported that on HP-UX the gcc test will end up
5145   # making a dummy file named 'D' -- because '-MD' means "put the output
5146   # in D".
5147   rm -rf conftest.dir
5148   mkdir conftest.dir
5149   # Copy depcomp to subdir because otherwise we won't find it if we're
5150   # using a relative directory.
5151   cp "$am_depcomp" conftest.dir
5152   cd conftest.dir
5153   # We will build objects and dependencies in a subdirectory because
5154   # it helps to detect inapplicable dependency modes.  For instance
5155   # both Tru64's cc and ICC support -MD to output dependencies as a
5156   # side effect of compilation, but ICC will put the dependencies in
5157   # the current directory while Tru64 will put them in the object
5158   # directory.
5159   mkdir sub
5160
5161   am_cv_CC_dependencies_compiler_type=none
5162   if test "$am_compiler_list" = ""; then
5163      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164   fi
5165   am__universal=false
5166   case " $depcc " in #(
5167      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5168      esac
5169
5170   for depmode in $am_compiler_list; do
5171     # Setup a source with many dependencies, because some compilers
5172     # like to wrap large dependency lists on column 80 (with \), and
5173     # we should not choose a depcomp mode which is confused by this.
5174     #
5175     # We need to recreate these files for each test, as the compiler may
5176     # overwrite some of them when testing with obscure command lines.
5177     # This happens at least with the AIX C compiler.
5178     : > sub/conftest.c
5179     for i in 1 2 3 4 5 6; do
5180       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5181       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5182       # Solaris 10 /bin/sh.
5183       echo '/* dummy */' > sub/conftst$i.h
5184     done
5185     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5186
5187     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5188     # mode.  It turns out that the SunPro C++ compiler does not properly
5189     # handle '-M -o', and we need to detect this.  Also, some Intel
5190     # versions had trouble with output in subdirs.
5191     am__obj=sub/conftest.${OBJEXT-o}
5192     am__minus_obj="-o $am__obj"
5193     case $depmode in
5194     gcc)
5195       # This depmode causes a compiler race in universal mode.
5196       test "$am__universal" = false || continue
5197       ;;
5198     nosideeffect)
5199       # After this tag, mechanisms are not by side-effect, so they'll
5200       # only be used when explicitly requested.
5201       if test "x$enable_dependency_tracking" = xyes; then
5202         continue
5203       else
5204         break
5205       fi
5206       ;;
5207     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5208       # This compiler won't grok '-c -o', but also, the minuso test has
5209       # not run yet.  These depmodes are late enough in the game, and
5210       # so weak that their functioning should not be impacted.
5211       am__obj=conftest.${OBJEXT-o}
5212       am__minus_obj=
5213       ;;
5214     none) break ;;
5215     esac
5216     if depmode=$depmode \
5217        source=sub/conftest.c object=$am__obj \
5218        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5219        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5220          >/dev/null 2>conftest.err &&
5221        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5222        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5223        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5224        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5225       # icc doesn't choke on unknown options, it will just issue warnings
5226       # or remarks (even with -Werror).  So we grep stderr for any message
5227       # that says an option was ignored or not supported.
5228       # When given -MP, icc 7.0 and 7.1 complain thusly:
5229       #   icc: Command line warning: ignoring option '-M'; no argument required
5230       # The diagnosis changed in icc 8.0:
5231       #   icc: Command line remark: option '-MP' not supported
5232       if (grep 'ignoring option' conftest.err ||
5233           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5234         am_cv_CC_dependencies_compiler_type=$depmode
5235         break
5236       fi
5237     fi
5238   done
5239
5240   cd ..
5241   rm -rf conftest.dir
5242 else
5243   am_cv_CC_dependencies_compiler_type=none
5244 fi
5245
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250
5251  if
5252   test "x$enable_dependency_tracking" != xno \
5253   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5254   am__fastdepCC_TRUE=
5255   am__fastdepCC_FALSE='#'
5256 else
5257   am__fastdepCC_TRUE='#'
5258   am__fastdepCC_FALSE=
5259 fi
5260
5261
5262
5263 if test -n "$ac_tool_prefix"; then
5264   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_RANLIB+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   if test -n "$RANLIB"; then
5272   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279     for ac_exec_ext in '' $ac_executable_extensions; do
5280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283     break 2
5284   fi
5285 done
5286   done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 RANLIB=$ac_cv_prog_RANLIB
5292 if test -n "$RANLIB"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5294 $as_echo "$RANLIB" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 fi
5302 if test -z "$ac_cv_prog_RANLIB"; then
5303   ac_ct_RANLIB=$RANLIB
5304   # Extract the first word of "ranlib", so it can be a program name with args.
5305 set dummy ranlib; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   if test -n "$ac_ct_RANLIB"; then
5312   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319     for ac_exec_ext in '' $ac_executable_extensions; do
5320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_prog_ac_ct_RANLIB="ranlib"
5322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326   done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5332 if test -n "$ac_ct_RANLIB"; then
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5334 $as_echo "$ac_ct_RANLIB" >&6; }
5335 else
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340   if test "x$ac_ct_RANLIB" = x; then
5341     RANLIB=":"
5342   else
5343     case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349     RANLIB=$ac_ct_RANLIB
5350   fi
5351 else
5352   RANLIB="$ac_cv_prog_RANLIB"
5353 fi
5354
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5362 # On Suns, sometimes $CPP names a directory.
5363 if test -n "$CPP" && test -d "$CPP"; then
5364   CPP=
5365 fi
5366 if test -z "$CPP"; then
5367   if ${ac_cv_prog_CPP+:} false; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370       # Double quotes because CPP needs to be expanded
5371     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5372     do
5373       ac_preproc_ok=false
5374 for ac_c_preproc_warn_flag in '' yes
5375 do
5376   # Use a header file that comes with gcc, so configuring glibc
5377   # with a fresh cross-compiler works.
5378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379   # <limits.h> exists even on freestanding compilers.
5380   # On the NeXT, cc -E runs the code through the compiler's parser,
5381   # not just through cpp. "Syntax error" is here to catch this case.
5382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h.  */
5384 #ifdef __STDC__
5385 # include <limits.h>
5386 #else
5387 # include <assert.h>
5388 #endif
5389                      Syntax error
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392
5393 else
5394   # Broken: fails on valid input.
5395 continue
5396 fi
5397 rm -f conftest.err conftest.i conftest.$ac_ext
5398
5399   # OK, works on sane cases.  Now check whether nonexistent headers
5400   # can be detected and how.
5401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h.  */
5403 #include <ac_nonexistent.h>
5404 _ACEOF
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406   # Broken: success on invalid input.
5407 continue
5408 else
5409   # Passes both tests.
5410 ac_preproc_ok=:
5411 break
5412 fi
5413 rm -f conftest.err conftest.i conftest.$ac_ext
5414
5415 done
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.i conftest.err conftest.$ac_ext
5418 if $ac_preproc_ok; then :
5419   break
5420 fi
5421
5422     done
5423     ac_cv_prog_CPP=$CPP
5424
5425 fi
5426   CPP=$ac_cv_prog_CPP
5427 else
5428   ac_cv_prog_CPP=$CPP
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5431 $as_echo "$CPP" >&6; }
5432 ac_preproc_ok=false
5433 for ac_c_preproc_warn_flag in '' yes
5434 do
5435   # Use a header file that comes with gcc, so configuring glibc
5436   # with a fresh cross-compiler works.
5437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438   # <limits.h> exists even on freestanding compilers.
5439   # On the NeXT, cc -E runs the code through the compiler's parser,
5440   # not just through cpp. "Syntax error" is here to catch this case.
5441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h.  */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448                      Syntax error
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452 else
5453   # Broken: fails on valid input.
5454 continue
5455 fi
5456 rm -f conftest.err conftest.i conftest.$ac_ext
5457
5458   # OK, works on sane cases.  Now check whether nonexistent headers
5459   # can be detected and how.
5460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h.  */
5462 #include <ac_nonexistent.h>
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5465   # Broken: success on invalid input.
5466 continue
5467 else
5468   # Passes both tests.
5469 ac_preproc_ok=:
5470 break
5471 fi
5472 rm -f conftest.err conftest.i conftest.$ac_ext
5473
5474 done
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.i conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then :
5478
5479 else
5480   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5482 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5483 See \`config.log' for more details" "$LINENO" 5; }
5484 fi
5485
5486 ac_ext=c
5487 ac_cpp='$CPP $CPPFLAGS'
5488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5491
5492 # Extract the first word of "ar", so it can be a program name with args.
5493 set dummy ar; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_AR+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$AR"; then
5500   ac_cv_prog_AR="$AR" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509     ac_cv_prog_AR="ar"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5518 fi
5519 fi
5520 AR=$ac_cv_prog_AR
5521 if test -n "$AR"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5523 $as_echo "$AR" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 # Perl is needed for the test suite (only)
5531 # Extract the first word of "perl", so it can be a program name with args.
5532 set dummy perl; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_PERL+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -n "$PERL"; then
5539   ac_cv_prog_PERL="$PERL" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544   IFS=$as_save_IFS
5545   test -z "$as_dir" && as_dir=.
5546     for ac_exec_ext in '' $ac_executable_extensions; do
5547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548     ac_cv_prog_PERL="perl"
5549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550     break 2
5551   fi
5552 done
5553   done
5554 IFS=$as_save_IFS
5555
5556   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
5557 fi
5558 fi
5559 PERL=$ac_cv_prog_PERL
5560 if test -n "$PERL"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5562 $as_echo "$PERL" >&6; }
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569
5570 # Needed for w32/Makefile.am
5571 if test -n "$ac_tool_prefix"; then
5572   for ac_prog in ar lib "link -lib"
5573   do
5574     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_AR+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$AR"; then
5582   ac_cv_prog_AR="$AR" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 AR=$ac_cv_prog_AR
5602 if test -n "$AR"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5604 $as_echo "$AR" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611     test -n "$AR" && break
5612   done
5613 fi
5614 if test -z "$AR"; then
5615   ac_ct_AR=$AR
5616   for ac_prog in ar lib "link -lib"
5617 do
5618   # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if test -n "$ac_ct_AR"; then
5626   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635     ac_cv_prog_ac_ct_AR="$ac_prog"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640   done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646 if test -n "$ac_ct_AR"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648 $as_echo "$ac_ct_AR" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655   test -n "$ac_ct_AR" && break
5656 done
5657
5658   if test "x$ac_ct_AR" = x; then
5659     AR="false"
5660   else
5661     case $cross_compiling:$ac_tool_warned in
5662 yes:)
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667     AR=$ac_ct_AR
5668   fi
5669 fi
5670
5671 : ${AR=ar}
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5674 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5675 if ${am_cv_ar_interface+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   ac_ext=c
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684    am_cv_ar_interface=ar
5685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h.  */
5687 int some_variable = 0;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5691       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5692   (eval $am_ar_try) 2>&5
5693   ac_status=$?
5694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695   test $ac_status = 0; }
5696       if test "$ac_status" -eq 0; then
5697         am_cv_ar_interface=ar
5698       else
5699         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5700         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5701   (eval $am_ar_try) 2>&5
5702   ac_status=$?
5703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704   test $ac_status = 0; }
5705         if test "$ac_status" -eq 0; then
5706           am_cv_ar_interface=lib
5707         else
5708           am_cv_ar_interface=unknown
5709         fi
5710       fi
5711       rm -f conftest.lib libconftest.a
5712
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715    ac_ext=c
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5723 $as_echo "$am_cv_ar_interface" >&6; }
5724
5725 case $am_cv_ar_interface in
5726 ar)
5727   ;;
5728 lib)
5729   # Microsoft lib, so override with the ar-lib wrapper script.
5730   # FIXME: It is wrong to rewrite AR.
5731   # But if we don't then we get into trouble of one sort or another.
5732   # A longer-term fix would be to have automake use am__AR in this case,
5733   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5734   # similar.
5735   AR="$am_aux_dir/ar-lib $AR"
5736   ;;
5737 unknown)
5738   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5739   ;;
5740 esac
5741
5742
5743 # Specialized system macros
5744 # Make sure we can run config.sub.
5745 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5746   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5749 $as_echo_n "checking build system type... " >&6; }
5750 if ${ac_cv_build+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   ac_build_alias=$build_alias
5754 test "x$ac_build_alias" = x &&
5755   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5756 test "x$ac_build_alias" = x &&
5757   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5758 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5759   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5760
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5763 $as_echo "$ac_cv_build" >&6; }
5764 case $ac_cv_build in
5765 *-*-*) ;;
5766 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5767 esac
5768 build=$ac_cv_build
5769 ac_save_IFS=$IFS; IFS='-'
5770 set x $ac_cv_build
5771 shift
5772 build_cpu=$1
5773 build_vendor=$2
5774 shift; shift
5775 # Remember, the first character of IFS is used to create $*,
5776 # except with old shells:
5777 build_os=$*
5778 IFS=$ac_save_IFS
5779 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5780
5781
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5783 $as_echo_n "checking host system type... " >&6; }
5784 if ${ac_cv_host+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787   if test "x$host_alias" = x; then
5788   ac_cv_host=$ac_cv_build
5789 else
5790   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5791     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5792 fi
5793
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5796 $as_echo "$ac_cv_host" >&6; }
5797 case $ac_cv_host in
5798 *-*-*) ;;
5799 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5800 esac
5801 host=$ac_cv_host
5802 ac_save_IFS=$IFS; IFS='-'
5803 set x $ac_cv_host
5804 shift
5805 host_cpu=$1
5806 host_vendor=$2
5807 shift; shift
5808 # Remember, the first character of IFS is used to create $*,
5809 # except with old shells:
5810 host_os=$*
5811 IFS=$ac_save_IFS
5812 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5813
5814
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5817 $as_echo_n "checking for library containing strerror... " >&6; }
5818 if ${ac_cv_search_strerror+:} false; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821   ac_func_search_save_LIBS=$LIBS
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h.  */
5824
5825 /* Override any GCC internal prototype to avoid an error.
5826    Use char because int might match the return type of a GCC
5827    builtin and then its argument prototype would still apply.  */
5828 #ifdef __cplusplus
5829 extern "C"
5830 #endif
5831 char strerror ();
5832 int
5833 main ()
5834 {
5835 return strerror ();
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 for ac_lib in '' cposix; do
5841   if test -z "$ac_lib"; then
5842     ac_res="none required"
5843   else
5844     ac_res=-l$ac_lib
5845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5846   fi
5847   if ac_fn_c_try_link "$LINENO"; then :
5848   ac_cv_search_strerror=$ac_res
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851     conftest$ac_exeext
5852   if ${ac_cv_search_strerror+:} false; then :
5853   break
5854 fi
5855 done
5856 if ${ac_cv_search_strerror+:} false; then :
5857
5858 else
5859   ac_cv_search_strerror=no
5860 fi
5861 rm conftest.$ac_ext
5862 LIBS=$ac_func_search_save_LIBS
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5865 $as_echo "$ac_cv_search_strerror" >&6; }
5866 ac_res=$ac_cv_search_strerror
5867 if test "$ac_res" != no; then :
5868   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5869
5870 fi
5871
5872
5873
5874 # Enable gettext, in "external" mode.
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5877 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5878 if ${ac_cv_path_SED+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5882      for ac_i in 1 2 3 4 5 6 7; do
5883        ac_script="$ac_script$as_nl$ac_script"
5884      done
5885      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5886      { ac_script=; unset ac_script;}
5887      if test -z "$SED"; then
5888   ac_path_SED_found=false
5889   # Loop through the user's path and test for each of PROGNAME-LIST
5890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893   IFS=$as_save_IFS
5894   test -z "$as_dir" && as_dir=.
5895     for ac_prog in sed gsed; do
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5898       as_fn_executable_p "$ac_path_SED" || continue
5899 # Check for GNU ac_path_SED and select it if it is found.
5900   # Check for GNU $ac_path_SED
5901 case `"$ac_path_SED" --version 2>&1` in
5902 *GNU*)
5903   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5904 *)
5905   ac_count=0
5906   $as_echo_n 0123456789 >"conftest.in"
5907   while :
5908   do
5909     cat "conftest.in" "conftest.in" >"conftest.tmp"
5910     mv "conftest.tmp" "conftest.in"
5911     cp "conftest.in" "conftest.nl"
5912     $as_echo '' >> "conftest.nl"
5913     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5915     as_fn_arith $ac_count + 1 && ac_count=$as_val
5916     if test $ac_count -gt ${ac_path_SED_max-0}; then
5917       # Best one so far, save it but keep looking for a better one
5918       ac_cv_path_SED="$ac_path_SED"
5919       ac_path_SED_max=$ac_count
5920     fi
5921     # 10*(2^10) chars as input seems more than enough
5922     test $ac_count -gt 10 && break
5923   done
5924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5925 esac
5926
5927       $ac_path_SED_found && break 3
5928     done
5929   done
5930   done
5931 IFS=$as_save_IFS
5932   if test -z "$ac_cv_path_SED"; then
5933     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5934   fi
5935 else
5936   ac_cv_path_SED=$SED
5937 fi
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5941 $as_echo "$ac_cv_path_SED" >&6; }
5942  SED="$ac_cv_path_SED"
5943   rm -f conftest.sed
5944
5945
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5947 $as_echo_n "checking whether NLS is requested... " >&6; }
5948     # Check whether --enable-nls was given.
5949 if test "${enable_nls+set}" = set; then :
5950   enableval=$enable_nls; USE_NLS=$enableval
5951 else
5952   USE_NLS=yes
5953 fi
5954
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5956 $as_echo "$USE_NLS" >&6; }
5957
5958
5959
5960
5961       GETTEXT_MACRO_VERSION=0.19
5962
5963
5964
5965
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5970   # contains only /bin. Note that ksh looks also at the FPATH variable,
5971   # so we have to set that as well for the test.
5972   PATH_SEPARATOR=:
5973   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5974     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5975            || PATH_SEPARATOR=';'
5976        }
5977 fi
5978
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5982 #! /bin/sh
5983 exit 0
5984 _ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987   ac_executable_p="test -x"
5988 else
5989   ac_executable_p="test -f"
5990 fi
5991 rm -f conf$$.file
5992
5993 # Extract the first word of "msgfmt", so it can be a program name with args.
5994 set dummy msgfmt; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_path_MSGFMT+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   case "$MSGFMT" in
6001   [\\/]* | ?:[\\/]*)
6002     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6003     ;;
6004   *)
6005     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006     for ac_dir in $PATH; do
6007       IFS="$ac_save_IFS"
6008       test -z "$ac_dir" && ac_dir=.
6009       for ac_exec_ext in '' $ac_executable_extensions; do
6010         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6012           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6013      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6014             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6015             break 2
6016           fi
6017         fi
6018       done
6019     done
6020     IFS="$ac_save_IFS"
6021   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6022     ;;
6023 esac
6024 fi
6025 MSGFMT="$ac_cv_path_MSGFMT"
6026 if test "$MSGFMT" != ":"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6028 $as_echo "$MSGFMT" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6035 set dummy gmsgfmt; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_path_GMSGFMT+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   case $GMSGFMT in
6042   [\\/]* | ?:[\\/]*)
6043   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6044   ;;
6045   *)
6046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051     for ac_exec_ext in '' $ac_executable_extensions; do
6052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058   done
6059 IFS=$as_save_IFS
6060
6061   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6062   ;;
6063 esac
6064 fi
6065 GMSGFMT=$ac_cv_path_GMSGFMT
6066 if test -n "$GMSGFMT"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6068 $as_echo "$GMSGFMT" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075
6076     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6077     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6078     *) MSGFMT_015=$MSGFMT ;;
6079   esac
6080
6081   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6082     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6083     *) GMSGFMT_015=$GMSGFMT ;;
6084   esac
6085
6086
6087
6088 # Prepare PATH_SEPARATOR.
6089 # The user is always right.
6090 if test "${PATH_SEPARATOR+set}" != set; then
6091   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6092   # contains only /bin. Note that ksh looks also at the FPATH variable,
6093   # so we have to set that as well for the test.
6094   PATH_SEPARATOR=:
6095   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6096     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6097            || PATH_SEPARATOR=';'
6098        }
6099 fi
6100
6101 # Find out how to test for executable files. Don't use a zero-byte file,
6102 # as systems may use methods other than mode bits to determine executability.
6103 cat >conf$$.file <<_ASEOF
6104 #! /bin/sh
6105 exit 0
6106 _ASEOF
6107 chmod +x conf$$.file
6108 if test -x conf$$.file >/dev/null 2>&1; then
6109   ac_executable_p="test -x"
6110 else
6111   ac_executable_p="test -f"
6112 fi
6113 rm -f conf$$.file
6114
6115 # Extract the first word of "xgettext", so it can be a program name with args.
6116 set dummy xgettext; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_XGETTEXT+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   case "$XGETTEXT" in
6123   [\\/]* | ?:[\\/]*)
6124     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6125     ;;
6126   *)
6127     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6128     for ac_dir in $PATH; do
6129       IFS="$ac_save_IFS"
6130       test -z "$ac_dir" && ac_dir=.
6131       for ac_exec_ext in '' $ac_executable_extensions; do
6132         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6133           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6134           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6135      (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
6136             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6137             break 2
6138           fi
6139         fi
6140       done
6141     done
6142     IFS="$ac_save_IFS"
6143   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6144     ;;
6145 esac
6146 fi
6147 XGETTEXT="$ac_cv_path_XGETTEXT"
6148 if test "$XGETTEXT" != ":"; then
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6150 $as_echo "$XGETTEXT" >&6; }
6151 else
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156     rm -f messages.po
6157
6158     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6159     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6160     *) XGETTEXT_015=$XGETTEXT ;;
6161   esac
6162
6163
6164
6165 # Prepare PATH_SEPARATOR.
6166 # The user is always right.
6167 if test "${PATH_SEPARATOR+set}" != set; then
6168   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6169   # contains only /bin. Note that ksh looks also at the FPATH variable,
6170   # so we have to set that as well for the test.
6171   PATH_SEPARATOR=:
6172   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6173     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6174            || PATH_SEPARATOR=';'
6175        }
6176 fi
6177
6178 # Find out how to test for executable files. Don't use a zero-byte file,
6179 # as systems may use methods other than mode bits to determine executability.
6180 cat >conf$$.file <<_ASEOF
6181 #! /bin/sh
6182 exit 0
6183 _ASEOF
6184 chmod +x conf$$.file
6185 if test -x conf$$.file >/dev/null 2>&1; then
6186   ac_executable_p="test -x"
6187 else
6188   ac_executable_p="test -f"
6189 fi
6190 rm -f conf$$.file
6191
6192 # Extract the first word of "msgmerge", so it can be a program name with args.
6193 set dummy msgmerge; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_MSGMERGE+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   case "$MSGMERGE" in
6200   [\\/]* | ?:[\\/]*)
6201     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6202     ;;
6203   *)
6204     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6205     for ac_dir in $PATH; do
6206       IFS="$ac_save_IFS"
6207       test -z "$ac_dir" && ac_dir=.
6208       for ac_exec_ext in '' $ac_executable_extensions; do
6209         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6210           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6211           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6212             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6213             break 2
6214           fi
6215         fi
6216       done
6217     done
6218     IFS="$ac_save_IFS"
6219   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6220     ;;
6221 esac
6222 fi
6223 MSGMERGE="$ac_cv_path_MSGMERGE"
6224 if test "$MSGMERGE" != ":"; then
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6226 $as_echo "$MSGMERGE" >&6; }
6227 else
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233         test -n "$localedir" || localedir='${datadir}/locale'
6234
6235
6236     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6237
6238
6239   ac_config_commands="$ac_config_commands po-directories"
6240
6241
6242
6243       if test "X$prefix" = "XNONE"; then
6244     acl_final_prefix="$ac_default_prefix"
6245   else
6246     acl_final_prefix="$prefix"
6247   fi
6248   if test "X$exec_prefix" = "XNONE"; then
6249     acl_final_exec_prefix='${prefix}'
6250   else
6251     acl_final_exec_prefix="$exec_prefix"
6252   fi
6253   acl_save_prefix="$prefix"
6254   prefix="$acl_final_prefix"
6255   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6256   prefix="$acl_save_prefix"
6257
6258
6259
6260 # Check whether --with-gnu-ld was given.
6261 if test "${with_gnu_ld+set}" = set; then :
6262   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6263 else
6264   with_gnu_ld=no
6265 fi
6266
6267 # Prepare PATH_SEPARATOR.
6268 # The user is always right.
6269 if test "${PATH_SEPARATOR+set}" != set; then
6270   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6271   # contains only /bin. Note that ksh looks also at the FPATH variable,
6272   # so we have to set that as well for the test.
6273   PATH_SEPARATOR=:
6274   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6275     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6276            || PATH_SEPARATOR=';'
6277        }
6278 fi
6279
6280 ac_prog=ld
6281 if test "$GCC" = yes; then
6282   # Check if gcc -print-prog-name=ld gives a path.
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6284 $as_echo_n "checking for ld used by $CC... " >&6; }
6285   case $host in
6286   *-*-mingw*)
6287     # gcc leaves a trailing carriage return which upsets mingw
6288     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6289   *)
6290     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6291   esac
6292   case $ac_prog in
6293     # Accept absolute paths.
6294     [\\/]* | ?:[\\/]*)
6295       re_direlt='/[^/][^/]*/\.\./'
6296       # Canonicalize the pathname of ld
6297       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6298       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6299         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6300       done
6301       test -z "$LD" && LD="$ac_prog"
6302       ;;
6303   "")
6304     # If it fails, then pretend we aren't using GCC.
6305     ac_prog=ld
6306     ;;
6307   *)
6308     # If it is relative, then search for the first ld in PATH.
6309     with_gnu_ld=unknown
6310     ;;
6311   esac
6312 elif test "$with_gnu_ld" = yes; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6314 $as_echo_n "checking for GNU ld... " >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6317 $as_echo_n "checking for non-GNU ld... " >&6; }
6318 fi
6319 if ${acl_cv_path_LD+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   if test -z "$LD"; then
6323   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6324   for ac_dir in $PATH; do
6325     IFS="$acl_save_ifs"
6326     test -z "$ac_dir" && ac_dir=.
6327     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6328       acl_cv_path_LD="$ac_dir/$ac_prog"
6329       # Check to see if the program is GNU ld.  I'd rather use --version,
6330       # but apparently some variants of GNU ld only accept -v.
6331       # Break only if it was the GNU/non-GNU ld that we prefer.
6332       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6333       *GNU* | *'with BFD'*)
6334         test "$with_gnu_ld" != no && break
6335         ;;
6336       *)
6337         test "$with_gnu_ld" != yes && break
6338         ;;
6339       esac
6340     fi
6341   done
6342   IFS="$acl_save_ifs"
6343 else
6344   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6345 fi
6346 fi
6347
6348 LD="$acl_cv_path_LD"
6349 if test -n "$LD"; then
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6351 $as_echo "$LD" >&6; }
6352 else
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6359 if ${acl_cv_prog_gnu_ld+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6363 case `$LD -v 2>&1 </dev/null` in
6364 *GNU* | *'with BFD'*)
6365   acl_cv_prog_gnu_ld=yes
6366   ;;
6367 *)
6368   acl_cv_prog_gnu_ld=no
6369   ;;
6370 esac
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6373 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6374 with_gnu_ld=$acl_cv_prog_gnu_ld
6375
6376
6377
6378
6379                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6380 $as_echo_n "checking for shared library run path origin... " >&6; }
6381 if ${acl_cv_rpath+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384
6385     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6386     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6387     . ./conftest.sh
6388     rm -f ./conftest.sh
6389     acl_cv_rpath=done
6390
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6393 $as_echo "$acl_cv_rpath" >&6; }
6394   wl="$acl_cv_wl"
6395   acl_libext="$acl_cv_libext"
6396   acl_shlibext="$acl_cv_shlibext"
6397   acl_libname_spec="$acl_cv_libname_spec"
6398   acl_library_names_spec="$acl_cv_library_names_spec"
6399   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6400   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6401   acl_hardcode_direct="$acl_cv_hardcode_direct"
6402   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6403     # Check whether --enable-rpath was given.
6404 if test "${enable_rpath+set}" = set; then :
6405   enableval=$enable_rpath; :
6406 else
6407   enable_rpath=yes
6408 fi
6409
6410
6411
6412
6413   acl_libdirstem=lib
6414   acl_libdirstem2=
6415   case "$host_os" in
6416     solaris*)
6417                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6418 $as_echo_n "checking for 64-bit host... " >&6; }
6419 if ${gl_cv_solaris_64bit+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424
6425 #ifdef _LP64
6426 sixtyfour bits
6427 #endif
6428
6429 _ACEOF
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6432   gl_cv_solaris_64bit=yes
6433 else
6434   gl_cv_solaris_64bit=no
6435 fi
6436 rm -f conftest*
6437
6438
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6441 $as_echo "$gl_cv_solaris_64bit" >&6; }
6442       if test $gl_cv_solaris_64bit = yes; then
6443         acl_libdirstem=lib/64
6444         case "$host_cpu" in
6445           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6446           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6447         esac
6448       fi
6449       ;;
6450     *)
6451       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6452       if test -n "$searchpath"; then
6453         acl_save_IFS="${IFS=    }"; IFS=":"
6454         for searchdir in $searchpath; do
6455           if test -d "$searchdir"; then
6456             case "$searchdir" in
6457               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6458               */../ | */.. )
6459                 # Better ignore directories of this form. They are misleading.
6460                 ;;
6461               *) searchdir=`cd "$searchdir" && pwd`
6462                  case "$searchdir" in
6463                    */lib64 ) acl_libdirstem=lib64 ;;
6464                  esac ;;
6465             esac
6466           fi
6467         done
6468         IFS="$acl_save_IFS"
6469       fi
6470       ;;
6471   esac
6472   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485     use_additional=yes
6486
6487   acl_save_prefix="$prefix"
6488   prefix="$acl_final_prefix"
6489   acl_save_exec_prefix="$exec_prefix"
6490   exec_prefix="$acl_final_exec_prefix"
6491
6492     eval additional_includedir=\"$includedir\"
6493     eval additional_libdir=\"$libdir\"
6494
6495   exec_prefix="$acl_save_exec_prefix"
6496   prefix="$acl_save_prefix"
6497
6498
6499 # Check whether --with-libiconv-prefix was given.
6500 if test "${with_libiconv_prefix+set}" = set; then :
6501   withval=$with_libiconv_prefix;
6502     if test "X$withval" = "Xno"; then
6503       use_additional=no
6504     else
6505       if test "X$withval" = "X"; then
6506
6507   acl_save_prefix="$prefix"
6508   prefix="$acl_final_prefix"
6509   acl_save_exec_prefix="$exec_prefix"
6510   exec_prefix="$acl_final_exec_prefix"
6511
6512           eval additional_includedir=\"$includedir\"
6513           eval additional_libdir=\"$libdir\"
6514
6515   exec_prefix="$acl_save_exec_prefix"
6516   prefix="$acl_save_prefix"
6517
6518       else
6519         additional_includedir="$withval/include"
6520         additional_libdir="$withval/$acl_libdirstem"
6521         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6522            && ! test -d "$withval/$acl_libdirstem"; then
6523           additional_libdir="$withval/$acl_libdirstem2"
6524         fi
6525       fi
6526     fi
6527
6528 fi
6529
6530       LIBICONV=
6531   LTLIBICONV=
6532   INCICONV=
6533   LIBICONV_PREFIX=
6534       HAVE_LIBICONV=
6535   rpathdirs=
6536   ltrpathdirs=
6537   names_already_handled=
6538   names_next_round='iconv '
6539   while test -n "$names_next_round"; do
6540     names_this_round="$names_next_round"
6541     names_next_round=
6542     for name in $names_this_round; do
6543       already_handled=
6544       for n in $names_already_handled; do
6545         if test "$n" = "$name"; then
6546           already_handled=yes
6547           break
6548         fi
6549       done
6550       if test -z "$already_handled"; then
6551         names_already_handled="$names_already_handled $name"
6552                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6553         eval value=\"\$HAVE_LIB$uppername\"
6554         if test -n "$value"; then
6555           if test "$value" = yes; then
6556             eval value=\"\$LIB$uppername\"
6557             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6558             eval value=\"\$LTLIB$uppername\"
6559             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6560           else
6561                                     :
6562           fi
6563         else
6564                               found_dir=
6565           found_la=
6566           found_so=
6567           found_a=
6568           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6569           if test -n "$acl_shlibext"; then
6570             shrext=".$acl_shlibext"             # typically: shrext=.so
6571           else
6572             shrext=
6573           fi
6574           if test $use_additional = yes; then
6575             dir="$additional_libdir"
6576                                     if test -n "$acl_shlibext"; then
6577               if test -f "$dir/$libname$shrext"; then
6578                 found_dir="$dir"
6579                 found_so="$dir/$libname$shrext"
6580               else
6581                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6582                   ver=`(cd "$dir" && \
6583                         for f in "$libname$shrext".*; do echo "$f"; done \
6584                         | sed -e "s,^$libname$shrext\\\\.,," \
6585                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6586                         | sed 1q ) 2>/dev/null`
6587                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6588                     found_dir="$dir"
6589                     found_so="$dir/$libname$shrext.$ver"
6590                   fi
6591                 else
6592                   eval library_names=\"$acl_library_names_spec\"
6593                   for f in $library_names; do
6594                     if test -f "$dir/$f"; then
6595                       found_dir="$dir"
6596                       found_so="$dir/$f"
6597                       break
6598                     fi
6599                   done
6600                 fi
6601               fi
6602             fi
6603                         if test "X$found_dir" = "X"; then
6604               if test -f "$dir/$libname.$acl_libext"; then
6605                 found_dir="$dir"
6606                 found_a="$dir/$libname.$acl_libext"
6607               fi
6608             fi
6609             if test "X$found_dir" != "X"; then
6610               if test -f "$dir/$libname.la"; then
6611                 found_la="$dir/$libname.la"
6612               fi
6613             fi
6614           fi
6615           if test "X$found_dir" = "X"; then
6616             for x in $LDFLAGS $LTLIBICONV; do
6617
6618   acl_save_prefix="$prefix"
6619   prefix="$acl_final_prefix"
6620   acl_save_exec_prefix="$exec_prefix"
6621   exec_prefix="$acl_final_exec_prefix"
6622   eval x=\"$x\"
6623   exec_prefix="$acl_save_exec_prefix"
6624   prefix="$acl_save_prefix"
6625
6626               case "$x" in
6627                 -L*)
6628                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6629                                     if test -n "$acl_shlibext"; then
6630                     if test -f "$dir/$libname$shrext"; then
6631                       found_dir="$dir"
6632                       found_so="$dir/$libname$shrext"
6633                     else
6634                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6635                         ver=`(cd "$dir" && \
6636                               for f in "$libname$shrext".*; do echo "$f"; done \
6637                               | sed -e "s,^$libname$shrext\\\\.,," \
6638                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6639                               | sed 1q ) 2>/dev/null`
6640                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6641                           found_dir="$dir"
6642                           found_so="$dir/$libname$shrext.$ver"
6643                         fi
6644                       else
6645                         eval library_names=\"$acl_library_names_spec\"
6646                         for f in $library_names; do
6647                           if test -f "$dir/$f"; then
6648                             found_dir="$dir"
6649                             found_so="$dir/$f"
6650                             break
6651                           fi
6652                         done
6653                       fi
6654                     fi
6655                   fi
6656                                     if test "X$found_dir" = "X"; then
6657                     if test -f "$dir/$libname.$acl_libext"; then
6658                       found_dir="$dir"
6659                       found_a="$dir/$libname.$acl_libext"
6660                     fi
6661                   fi
6662                   if test "X$found_dir" != "X"; then
6663                     if test -f "$dir/$libname.la"; then
6664                       found_la="$dir/$libname.la"
6665                     fi
6666                   fi
6667                   ;;
6668               esac
6669               if test "X$found_dir" != "X"; then
6670                 break
6671               fi
6672             done
6673           fi
6674           if test "X$found_dir" != "X"; then
6675                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6676             if test "X$found_so" != "X"; then
6677                                                         if test "$enable_rpath" = no \
6678                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6679                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6680                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6681               else
6682                                                                                 haveit=
6683                 for x in $ltrpathdirs; do
6684                   if test "X$x" = "X$found_dir"; then
6685                     haveit=yes
6686                     break
6687                   fi
6688                 done
6689                 if test -z "$haveit"; then
6690                   ltrpathdirs="$ltrpathdirs $found_dir"
6691                 fi
6692                                 if test "$acl_hardcode_direct" = yes; then
6693                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6694                 else
6695                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6696                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6697                                                             haveit=
6698                     for x in $rpathdirs; do
6699                       if test "X$x" = "X$found_dir"; then
6700                         haveit=yes
6701                         break
6702                       fi
6703                     done
6704                     if test -z "$haveit"; then
6705                       rpathdirs="$rpathdirs $found_dir"
6706                     fi
6707                   else
6708                                                                                 haveit=
6709                     for x in $LDFLAGS $LIBICONV; do
6710
6711   acl_save_prefix="$prefix"
6712   prefix="$acl_final_prefix"
6713   acl_save_exec_prefix="$exec_prefix"
6714   exec_prefix="$acl_final_exec_prefix"
6715   eval x=\"$x\"
6716   exec_prefix="$acl_save_exec_prefix"
6717   prefix="$acl_save_prefix"
6718
6719                       if test "X$x" = "X-L$found_dir"; then
6720                         haveit=yes
6721                         break
6722                       fi
6723                     done
6724                     if test -z "$haveit"; then
6725                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6726                     fi
6727                     if test "$acl_hardcode_minus_L" != no; then
6728                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6729                     else
6730                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6731                     fi
6732                   fi
6733                 fi
6734               fi
6735             else
6736               if test "X$found_a" != "X"; then
6737                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6738               else
6739                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6740               fi
6741             fi
6742                         additional_includedir=
6743             case "$found_dir" in
6744               */$acl_libdirstem | */$acl_libdirstem/)
6745                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6746                 if test "$name" = 'iconv'; then
6747                   LIBICONV_PREFIX="$basedir"
6748                 fi
6749                 additional_includedir="$basedir/include"
6750                 ;;
6751               */$acl_libdirstem2 | */$acl_libdirstem2/)
6752                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6753                 if test "$name" = 'iconv'; then
6754                   LIBICONV_PREFIX="$basedir"
6755                 fi
6756                 additional_includedir="$basedir/include"
6757                 ;;
6758             esac
6759             if test "X$additional_includedir" != "X"; then
6760                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6761                 haveit=
6762                 if test "X$additional_includedir" = "X/usr/local/include"; then
6763                   if test -n "$GCC"; then
6764                     case $host_os in
6765                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6766                     esac
6767                   fi
6768                 fi
6769                 if test -z "$haveit"; then
6770                   for x in $CPPFLAGS $INCICONV; do
6771
6772   acl_save_prefix="$prefix"
6773   prefix="$acl_final_prefix"
6774   acl_save_exec_prefix="$exec_prefix"
6775   exec_prefix="$acl_final_exec_prefix"
6776   eval x=\"$x\"
6777   exec_prefix="$acl_save_exec_prefix"
6778   prefix="$acl_save_prefix"
6779
6780                     if test "X$x" = "X-I$additional_includedir"; then
6781                       haveit=yes
6782                       break
6783                     fi
6784                   done
6785                   if test -z "$haveit"; then
6786                     if test -d "$additional_includedir"; then
6787                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6788                     fi
6789                   fi
6790                 fi
6791               fi
6792             fi
6793                         if test -n "$found_la"; then
6794                                                         save_libdir="$libdir"
6795               case "$found_la" in
6796                 */* | *\\*) . "$found_la" ;;
6797                 *) . "./$found_la" ;;
6798               esac
6799               libdir="$save_libdir"
6800                             for dep in $dependency_libs; do
6801                 case "$dep" in
6802                   -L*)
6803                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6804                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6805                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6806                       haveit=
6807                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6808                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6809                         if test -n "$GCC"; then
6810                           case $host_os in
6811                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6812                           esac
6813                         fi
6814                       fi
6815                       if test -z "$haveit"; then
6816                         haveit=
6817                         for x in $LDFLAGS $LIBICONV; do
6818
6819   acl_save_prefix="$prefix"
6820   prefix="$acl_final_prefix"
6821   acl_save_exec_prefix="$exec_prefix"
6822   exec_prefix="$acl_final_exec_prefix"
6823   eval x=\"$x\"
6824   exec_prefix="$acl_save_exec_prefix"
6825   prefix="$acl_save_prefix"
6826
6827                           if test "X$x" = "X-L$additional_libdir"; then
6828                             haveit=yes
6829                             break
6830                           fi
6831                         done
6832                         if test -z "$haveit"; then
6833                           if test -d "$additional_libdir"; then
6834                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6835                           fi
6836                         fi
6837                         haveit=
6838                         for x in $LDFLAGS $LTLIBICONV; do
6839
6840   acl_save_prefix="$prefix"
6841   prefix="$acl_final_prefix"
6842   acl_save_exec_prefix="$exec_prefix"
6843   exec_prefix="$acl_final_exec_prefix"
6844   eval x=\"$x\"
6845   exec_prefix="$acl_save_exec_prefix"
6846   prefix="$acl_save_prefix"
6847
6848                           if test "X$x" = "X-L$additional_libdir"; then
6849                             haveit=yes
6850                             break
6851                           fi
6852                         done
6853                         if test -z "$haveit"; then
6854                           if test -d "$additional_libdir"; then
6855                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6856                           fi
6857                         fi
6858                       fi
6859                     fi
6860                     ;;
6861                   -R*)
6862                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6863                     if test "$enable_rpath" != no; then
6864                                                                   haveit=
6865                       for x in $rpathdirs; do
6866                         if test "X$x" = "X$dir"; then
6867                           haveit=yes
6868                           break
6869                         fi
6870                       done
6871                       if test -z "$haveit"; then
6872                         rpathdirs="$rpathdirs $dir"
6873                       fi
6874                                                                   haveit=
6875                       for x in $ltrpathdirs; do
6876                         if test "X$x" = "X$dir"; then
6877                           haveit=yes
6878                           break
6879                         fi
6880                       done
6881                       if test -z "$haveit"; then
6882                         ltrpathdirs="$ltrpathdirs $dir"
6883                       fi
6884                     fi
6885                     ;;
6886                   -l*)
6887                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6888                     ;;
6889                   *.la)
6890                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6891                     ;;
6892                   *)
6893                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6894                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6895                     ;;
6896                 esac
6897               done
6898             fi
6899           else
6900                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6901             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6902           fi
6903         fi
6904       fi
6905     done
6906   done
6907   if test "X$rpathdirs" != "X"; then
6908     if test -n "$acl_hardcode_libdir_separator"; then
6909                         alldirs=
6910       for found_dir in $rpathdirs; do
6911         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6912       done
6913             acl_save_libdir="$libdir"
6914       libdir="$alldirs"
6915       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6916       libdir="$acl_save_libdir"
6917       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6918     else
6919             for found_dir in $rpathdirs; do
6920         acl_save_libdir="$libdir"
6921         libdir="$found_dir"
6922         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6923         libdir="$acl_save_libdir"
6924         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6925       done
6926     fi
6927   fi
6928   if test "X$ltrpathdirs" != "X"; then
6929             for found_dir in $ltrpathdirs; do
6930       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6931     done
6932   fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6965 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6966 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   gt_save_LIBS="$LIBS"
6970      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973 #include <CoreFoundation/CFPreferences.h>
6974 int
6975 main ()
6976 {
6977 CFPreferencesCopyAppValue(NULL, NULL)
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_link "$LINENO"; then :
6983   gt_cv_func_CFPreferencesCopyAppValue=yes
6984 else
6985   gt_cv_func_CFPreferencesCopyAppValue=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext \
6988     conftest$ac_exeext conftest.$ac_ext
6989      LIBS="$gt_save_LIBS"
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6992 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6993   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6994
6995 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6996
6997   fi
6998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6999 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7000 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   gt_save_LIBS="$LIBS"
7004      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7005      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h.  */
7007 #include <CoreFoundation/CFLocale.h>
7008 int
7009 main ()
7010 {
7011 CFLocaleCopyCurrent();
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017   gt_cv_func_CFLocaleCopyCurrent=yes
7018 else
7019   gt_cv_func_CFLocaleCopyCurrent=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022     conftest$ac_exeext conftest.$ac_ext
7023      LIBS="$gt_save_LIBS"
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7026 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7027   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7028
7029 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7030
7031   fi
7032   INTL_MACOSX_LIBS=
7033   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7034     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7035   fi
7036
7037
7038
7039
7040
7041
7042   LIBINTL=
7043   LTLIBINTL=
7044   POSUB=
7045
7046     case " $gt_needs " in
7047     *" need-formatstring-macros "*) gt_api_version=3 ;;
7048     *" need-ngettext "*) gt_api_version=2 ;;
7049     *) gt_api_version=1 ;;
7050   esac
7051   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7052   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7053
7054     if test "$USE_NLS" = "yes"; then
7055     gt_use_preinstalled_gnugettext=no
7056
7057
7058         if test $gt_api_version -ge 3; then
7059           gt_revision_test_code='
7060 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7061 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7062 #endif
7063 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7064 '
7065         else
7066           gt_revision_test_code=
7067         fi
7068         if test $gt_api_version -ge 2; then
7069           gt_expression_test_code=' + * ngettext ("", "", 0)'
7070         else
7071           gt_expression_test_code=
7072         fi
7073
7074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7075 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7076 if eval \${$gt_func_gnugettext_libc+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h.  */
7081
7082 #include <libintl.h>
7083 $gt_revision_test_code
7084 extern int _nl_msg_cat_cntr;
7085 extern int *_nl_domain_bindings;
7086
7087 int
7088 main ()
7089 {
7090
7091 bindtextdomain ("", "");
7092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 if ac_fn_c_try_link "$LINENO"; then :
7099   eval "$gt_func_gnugettext_libc=yes"
7100 else
7101   eval "$gt_func_gnugettext_libc=no"
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext \
7104     conftest$ac_exeext conftest.$ac_ext
7105 fi
7106 eval ac_res=\$$gt_func_gnugettext_libc
7107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7108 $as_echo "$ac_res" >&6; }
7109
7110         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7111
7112
7113
7114
7115
7116           am_save_CPPFLAGS="$CPPFLAGS"
7117
7118   for element in $INCICONV; do
7119     haveit=
7120     for x in $CPPFLAGS; do
7121
7122   acl_save_prefix="$prefix"
7123   prefix="$acl_final_prefix"
7124   acl_save_exec_prefix="$exec_prefix"
7125   exec_prefix="$acl_final_exec_prefix"
7126   eval x=\"$x\"
7127   exec_prefix="$acl_save_exec_prefix"
7128   prefix="$acl_save_prefix"
7129
7130       if test "X$x" = "X$element"; then
7131         haveit=yes
7132         break
7133       fi
7134     done
7135     if test -z "$haveit"; then
7136       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7137     fi
7138   done
7139
7140
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7142 $as_echo_n "checking for iconv... " >&6; }
7143 if ${am_cv_func_iconv+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146
7147     am_cv_func_iconv="no, consider installing GNU libiconv"
7148     am_cv_lib_iconv=no
7149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151
7152 #include <stdlib.h>
7153 #include <iconv.h>
7154
7155 int
7156 main ()
7157 {
7158 iconv_t cd = iconv_open("","");
7159            iconv(cd,NULL,NULL,NULL,NULL);
7160            iconv_close(cd);
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166   am_cv_func_iconv=yes
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext \
7169     conftest$ac_exeext conftest.$ac_ext
7170     if test "$am_cv_func_iconv" != yes; then
7171       am_save_LIBS="$LIBS"
7172       LIBS="$LIBS $LIBICONV"
7173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175
7176 #include <stdlib.h>
7177 #include <iconv.h>
7178
7179 int
7180 main ()
7181 {
7182 iconv_t cd = iconv_open("","");
7183              iconv(cd,NULL,NULL,NULL,NULL);
7184              iconv_close(cd);
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190   am_cv_lib_iconv=yes
7191         am_cv_func_iconv=yes
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext \
7194     conftest$ac_exeext conftest.$ac_ext
7195       LIBS="$am_save_LIBS"
7196     fi
7197
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7200 $as_echo "$am_cv_func_iconv" >&6; }
7201   if test "$am_cv_func_iconv" = yes; then
7202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7203 $as_echo_n "checking for working iconv... " >&6; }
7204 if ${am_cv_func_iconv_works+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207
7208                   am_save_LIBS="$LIBS"
7209       if test $am_cv_lib_iconv = yes; then
7210         LIBS="$LIBS $LIBICONV"
7211       fi
7212       am_cv_func_iconv_works=no
7213       for ac_iconv_const in '' 'const'; do
7214         if test "$cross_compiling" = yes; then :
7215   case "$host_os" in
7216              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7217              *)            am_cv_func_iconv_works="guessing yes" ;;
7218            esac
7219 else
7220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222
7223 #include <iconv.h>
7224 #include <string.h>
7225
7226 #ifndef ICONV_CONST
7227 # define ICONV_CONST $ac_iconv_const
7228 #endif
7229
7230 int
7231 main ()
7232 {
7233 int result = 0;
7234   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7235      returns.  */
7236   {
7237     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7238     if (cd_utf8_to_88591 != (iconv_t)(-1))
7239       {
7240         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7241         char buf[10];
7242         ICONV_CONST char *inptr = input;
7243         size_t inbytesleft = strlen (input);
7244         char *outptr = buf;
7245         size_t outbytesleft = sizeof (buf);
7246         size_t res = iconv (cd_utf8_to_88591,
7247                             &inptr, &inbytesleft,
7248                             &outptr, &outbytesleft);
7249         if (res == 0)
7250           result |= 1;
7251         iconv_close (cd_utf8_to_88591);
7252       }
7253   }
7254   /* Test against Solaris 10 bug: Failures are not distinguishable from
7255      successful returns.  */
7256   {
7257     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7258     if (cd_ascii_to_88591 != (iconv_t)(-1))
7259       {
7260         static ICONV_CONST char input[] = "\263";
7261         char buf[10];
7262         ICONV_CONST char *inptr = input;
7263         size_t inbytesleft = strlen (input);
7264         char *outptr = buf;
7265         size_t outbytesleft = sizeof (buf);
7266         size_t res = iconv (cd_ascii_to_88591,
7267                             &inptr, &inbytesleft,
7268                             &outptr, &outbytesleft);
7269         if (res == 0)
7270           result |= 2;
7271         iconv_close (cd_ascii_to_88591);
7272       }
7273   }
7274   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
7275   {
7276     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7277     if (cd_88591_to_utf8 != (iconv_t)(-1))
7278       {
7279         static ICONV_CONST char input[] = "\304";
7280         static char buf[2] = { (char)0xDE, (char)0xAD };
7281         ICONV_CONST char *inptr = input;
7282         size_t inbytesleft = 1;
7283         char *outptr = buf;
7284         size_t outbytesleft = 1;
7285         size_t res = iconv (cd_88591_to_utf8,
7286                             &inptr, &inbytesleft,
7287                             &outptr, &outbytesleft);
7288         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7289           result |= 4;
7290         iconv_close (cd_88591_to_utf8);
7291       }
7292   }
7293 #if 0 /* This bug could be worked around by the caller.  */
7294   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7295   {
7296     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7297     if (cd_88591_to_utf8 != (iconv_t)(-1))
7298       {
7299         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7300         char buf[50];
7301         ICONV_CONST char *inptr = input;
7302         size_t inbytesleft = strlen (input);
7303         char *outptr = buf;
7304         size_t outbytesleft = sizeof (buf);
7305         size_t res = iconv (cd_88591_to_utf8,
7306                             &inptr, &inbytesleft,
7307                             &outptr, &outbytesleft);
7308         if ((int)res > 0)
7309           result |= 8;
7310         iconv_close (cd_88591_to_utf8);
7311       }
7312   }
7313 #endif
7314   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7315      provided.  */
7316   if (/* Try standardized names.  */
7317       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7318       /* Try IRIX, OSF/1 names.  */
7319       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7320       /* Try AIX names.  */
7321       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7322       /* Try HP-UX names.  */
7323       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7324     result |= 16;
7325   return result;
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_run "$LINENO"; then :
7332   am_cv_func_iconv_works=yes
7333 fi
7334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7335   conftest.$ac_objext conftest.beam conftest.$ac_ext
7336 fi
7337
7338         test "$am_cv_func_iconv_works" = no || break
7339       done
7340       LIBS="$am_save_LIBS"
7341
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7344 $as_echo "$am_cv_func_iconv_works" >&6; }
7345     case "$am_cv_func_iconv_works" in
7346       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7347       *)   am_func_iconv=yes ;;
7348     esac
7349   else
7350     am_func_iconv=no am_cv_lib_iconv=no
7351   fi
7352   if test "$am_func_iconv" = yes; then
7353
7354 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7355
7356   fi
7357   if test "$am_cv_lib_iconv" = yes; then
7358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7359 $as_echo_n "checking how to link with libiconv... " >&6; }
7360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7361 $as_echo "$LIBICONV" >&6; }
7362   else
7363             CPPFLAGS="$am_save_CPPFLAGS"
7364     LIBICONV=
7365     LTLIBICONV=
7366   fi
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378     use_additional=yes
7379
7380   acl_save_prefix="$prefix"
7381   prefix="$acl_final_prefix"
7382   acl_save_exec_prefix="$exec_prefix"
7383   exec_prefix="$acl_final_exec_prefix"
7384
7385     eval additional_includedir=\"$includedir\"
7386     eval additional_libdir=\"$libdir\"
7387
7388   exec_prefix="$acl_save_exec_prefix"
7389   prefix="$acl_save_prefix"
7390
7391
7392 # Check whether --with-libintl-prefix was given.
7393 if test "${with_libintl_prefix+set}" = set; then :
7394   withval=$with_libintl_prefix;
7395     if test "X$withval" = "Xno"; then
7396       use_additional=no
7397     else
7398       if test "X$withval" = "X"; then
7399
7400   acl_save_prefix="$prefix"
7401   prefix="$acl_final_prefix"
7402   acl_save_exec_prefix="$exec_prefix"
7403   exec_prefix="$acl_final_exec_prefix"
7404
7405           eval additional_includedir=\"$includedir\"
7406           eval additional_libdir=\"$libdir\"
7407
7408   exec_prefix="$acl_save_exec_prefix"
7409   prefix="$acl_save_prefix"
7410
7411       else
7412         additional_includedir="$withval/include"
7413         additional_libdir="$withval/$acl_libdirstem"
7414         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7415            && ! test -d "$withval/$acl_libdirstem"; then
7416           additional_libdir="$withval/$acl_libdirstem2"
7417         fi
7418       fi
7419     fi
7420
7421 fi
7422
7423       LIBINTL=
7424   LTLIBINTL=
7425   INCINTL=
7426   LIBINTL_PREFIX=
7427       HAVE_LIBINTL=
7428   rpathdirs=
7429   ltrpathdirs=
7430   names_already_handled=
7431   names_next_round='intl '
7432   while test -n "$names_next_round"; do
7433     names_this_round="$names_next_round"
7434     names_next_round=
7435     for name in $names_this_round; do
7436       already_handled=
7437       for n in $names_already_handled; do
7438         if test "$n" = "$name"; then
7439           already_handled=yes
7440           break
7441         fi
7442       done
7443       if test -z "$already_handled"; then
7444         names_already_handled="$names_already_handled $name"
7445                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7446         eval value=\"\$HAVE_LIB$uppername\"
7447         if test -n "$value"; then
7448           if test "$value" = yes; then
7449             eval value=\"\$LIB$uppername\"
7450             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7451             eval value=\"\$LTLIB$uppername\"
7452             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7453           else
7454                                     :
7455           fi
7456         else
7457                               found_dir=
7458           found_la=
7459           found_so=
7460           found_a=
7461           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7462           if test -n "$acl_shlibext"; then
7463             shrext=".$acl_shlibext"             # typically: shrext=.so
7464           else
7465             shrext=
7466           fi
7467           if test $use_additional = yes; then
7468             dir="$additional_libdir"
7469                                     if test -n "$acl_shlibext"; then
7470               if test -f "$dir/$libname$shrext"; then
7471                 found_dir="$dir"
7472                 found_so="$dir/$libname$shrext"
7473               else
7474                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7475                   ver=`(cd "$dir" && \
7476                         for f in "$libname$shrext".*; do echo "$f"; done \
7477                         | sed -e "s,^$libname$shrext\\\\.,," \
7478                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7479                         | sed 1q ) 2>/dev/null`
7480                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7481                     found_dir="$dir"
7482                     found_so="$dir/$libname$shrext.$ver"
7483                   fi
7484                 else
7485                   eval library_names=\"$acl_library_names_spec\"
7486                   for f in $library_names; do
7487                     if test -f "$dir/$f"; then
7488                       found_dir="$dir"
7489                       found_so="$dir/$f"
7490                       break
7491                     fi
7492                   done
7493                 fi
7494               fi
7495             fi
7496                         if test "X$found_dir" = "X"; then
7497               if test -f "$dir/$libname.$acl_libext"; then
7498                 found_dir="$dir"
7499                 found_a="$dir/$libname.$acl_libext"
7500               fi
7501             fi
7502             if test "X$found_dir" != "X"; then
7503               if test -f "$dir/$libname.la"; then
7504                 found_la="$dir/$libname.la"
7505               fi
7506             fi
7507           fi
7508           if test "X$found_dir" = "X"; then
7509             for x in $LDFLAGS $LTLIBINTL; do
7510
7511   acl_save_prefix="$prefix"
7512   prefix="$acl_final_prefix"
7513   acl_save_exec_prefix="$exec_prefix"
7514   exec_prefix="$acl_final_exec_prefix"
7515   eval x=\"$x\"
7516   exec_prefix="$acl_save_exec_prefix"
7517   prefix="$acl_save_prefix"
7518
7519               case "$x" in
7520                 -L*)
7521                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7522                                     if test -n "$acl_shlibext"; then
7523                     if test -f "$dir/$libname$shrext"; then
7524                       found_dir="$dir"
7525                       found_so="$dir/$libname$shrext"
7526                     else
7527                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7528                         ver=`(cd "$dir" && \
7529                               for f in "$libname$shrext".*; do echo "$f"; done \
7530                               | sed -e "s,^$libname$shrext\\\\.,," \
7531                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7532                               | sed 1q ) 2>/dev/null`
7533                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7534                           found_dir="$dir"
7535                           found_so="$dir/$libname$shrext.$ver"
7536                         fi
7537                       else
7538                         eval library_names=\"$acl_library_names_spec\"
7539                         for f in $library_names; do
7540                           if test -f "$dir/$f"; then
7541                             found_dir="$dir"
7542                             found_so="$dir/$f"
7543                             break
7544                           fi
7545                         done
7546                       fi
7547                     fi
7548                   fi
7549                                     if test "X$found_dir" = "X"; then
7550                     if test -f "$dir/$libname.$acl_libext"; then
7551                       found_dir="$dir"
7552                       found_a="$dir/$libname.$acl_libext"
7553                     fi
7554                   fi
7555                   if test "X$found_dir" != "X"; then
7556                     if test -f "$dir/$libname.la"; then
7557                       found_la="$dir/$libname.la"
7558                     fi
7559                   fi
7560                   ;;
7561               esac
7562               if test "X$found_dir" != "X"; then
7563                 break
7564               fi
7565             done
7566           fi
7567           if test "X$found_dir" != "X"; then
7568                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7569             if test "X$found_so" != "X"; then
7570                                                         if test "$enable_rpath" = no \
7571                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7572                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7573                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7574               else
7575                                                                                 haveit=
7576                 for x in $ltrpathdirs; do
7577                   if test "X$x" = "X$found_dir"; then
7578                     haveit=yes
7579                     break
7580                   fi
7581                 done
7582                 if test -z "$haveit"; then
7583                   ltrpathdirs="$ltrpathdirs $found_dir"
7584                 fi
7585                                 if test "$acl_hardcode_direct" = yes; then
7586                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7587                 else
7588                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7589                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7590                                                             haveit=
7591                     for x in $rpathdirs; do
7592                       if test "X$x" = "X$found_dir"; then
7593                         haveit=yes
7594                         break
7595                       fi
7596                     done
7597                     if test -z "$haveit"; then
7598                       rpathdirs="$rpathdirs $found_dir"
7599                     fi
7600                   else
7601                                                                                 haveit=
7602                     for x in $LDFLAGS $LIBINTL; do
7603
7604   acl_save_prefix="$prefix"
7605   prefix="$acl_final_prefix"
7606   acl_save_exec_prefix="$exec_prefix"
7607   exec_prefix="$acl_final_exec_prefix"
7608   eval x=\"$x\"
7609   exec_prefix="$acl_save_exec_prefix"
7610   prefix="$acl_save_prefix"
7611
7612                       if test "X$x" = "X-L$found_dir"; then
7613                         haveit=yes
7614                         break
7615                       fi
7616                     done
7617                     if test -z "$haveit"; then
7618                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7619                     fi
7620                     if test "$acl_hardcode_minus_L" != no; then
7621                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7622                     else
7623                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7624                     fi
7625                   fi
7626                 fi
7627               fi
7628             else
7629               if test "X$found_a" != "X"; then
7630                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7631               else
7632                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7633               fi
7634             fi
7635                         additional_includedir=
7636             case "$found_dir" in
7637               */$acl_libdirstem | */$acl_libdirstem/)
7638                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7639                 if test "$name" = 'intl'; then
7640                   LIBINTL_PREFIX="$basedir"
7641                 fi
7642                 additional_includedir="$basedir/include"
7643                 ;;
7644               */$acl_libdirstem2 | */$acl_libdirstem2/)
7645                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7646                 if test "$name" = 'intl'; then
7647                   LIBINTL_PREFIX="$basedir"
7648                 fi
7649                 additional_includedir="$basedir/include"
7650                 ;;
7651             esac
7652             if test "X$additional_includedir" != "X"; then
7653                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7654                 haveit=
7655                 if test "X$additional_includedir" = "X/usr/local/include"; then
7656                   if test -n "$GCC"; then
7657                     case $host_os in
7658                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7659                     esac
7660                   fi
7661                 fi
7662                 if test -z "$haveit"; then
7663                   for x in $CPPFLAGS $INCINTL; do
7664
7665   acl_save_prefix="$prefix"
7666   prefix="$acl_final_prefix"
7667   acl_save_exec_prefix="$exec_prefix"
7668   exec_prefix="$acl_final_exec_prefix"
7669   eval x=\"$x\"
7670   exec_prefix="$acl_save_exec_prefix"
7671   prefix="$acl_save_prefix"
7672
7673                     if test "X$x" = "X-I$additional_includedir"; then
7674                       haveit=yes
7675                       break
7676                     fi
7677                   done
7678                   if test -z "$haveit"; then
7679                     if test -d "$additional_includedir"; then
7680                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7681                     fi
7682                   fi
7683                 fi
7684               fi
7685             fi
7686                         if test -n "$found_la"; then
7687                                                         save_libdir="$libdir"
7688               case "$found_la" in
7689                 */* | *\\*) . "$found_la" ;;
7690                 *) . "./$found_la" ;;
7691               esac
7692               libdir="$save_libdir"
7693                             for dep in $dependency_libs; do
7694                 case "$dep" in
7695                   -L*)
7696                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7697                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7698                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7699                       haveit=
7700                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7701                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7702                         if test -n "$GCC"; then
7703                           case $host_os in
7704                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7705                           esac
7706                         fi
7707                       fi
7708                       if test -z "$haveit"; then
7709                         haveit=
7710                         for x in $LDFLAGS $LIBINTL; do
7711
7712   acl_save_prefix="$prefix"
7713   prefix="$acl_final_prefix"
7714   acl_save_exec_prefix="$exec_prefix"
7715   exec_prefix="$acl_final_exec_prefix"
7716   eval x=\"$x\"
7717   exec_prefix="$acl_save_exec_prefix"
7718   prefix="$acl_save_prefix"
7719
7720                           if test "X$x" = "X-L$additional_libdir"; then
7721                             haveit=yes
7722                             break
7723                           fi
7724                         done
7725                         if test -z "$haveit"; then
7726                           if test -d "$additional_libdir"; then
7727                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7728                           fi
7729                         fi
7730                         haveit=
7731                         for x in $LDFLAGS $LTLIBINTL; do
7732
7733   acl_save_prefix="$prefix"
7734   prefix="$acl_final_prefix"
7735   acl_save_exec_prefix="$exec_prefix"
7736   exec_prefix="$acl_final_exec_prefix"
7737   eval x=\"$x\"
7738   exec_prefix="$acl_save_exec_prefix"
7739   prefix="$acl_save_prefix"
7740
7741                           if test "X$x" = "X-L$additional_libdir"; then
7742                             haveit=yes
7743                             break
7744                           fi
7745                         done
7746                         if test -z "$haveit"; then
7747                           if test -d "$additional_libdir"; then
7748                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7749                           fi
7750                         fi
7751                       fi
7752                     fi
7753                     ;;
7754                   -R*)
7755                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7756                     if test "$enable_rpath" != no; then
7757                                                                   haveit=
7758                       for x in $rpathdirs; do
7759                         if test "X$x" = "X$dir"; then
7760                           haveit=yes
7761                           break
7762                         fi
7763                       done
7764                       if test -z "$haveit"; then
7765                         rpathdirs="$rpathdirs $dir"
7766                       fi
7767                                                                   haveit=
7768                       for x in $ltrpathdirs; do
7769                         if test "X$x" = "X$dir"; then
7770                           haveit=yes
7771                           break
7772                         fi
7773                       done
7774                       if test -z "$haveit"; then
7775                         ltrpathdirs="$ltrpathdirs $dir"
7776                       fi
7777                     fi
7778                     ;;
7779                   -l*)
7780                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7781                     ;;
7782                   *.la)
7783                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7784                     ;;
7785                   *)
7786                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7787                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7788                     ;;
7789                 esac
7790               done
7791             fi
7792           else
7793                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7794             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7795           fi
7796         fi
7797       fi
7798     done
7799   done
7800   if test "X$rpathdirs" != "X"; then
7801     if test -n "$acl_hardcode_libdir_separator"; then
7802                         alldirs=
7803       for found_dir in $rpathdirs; do
7804         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7805       done
7806             acl_save_libdir="$libdir"
7807       libdir="$alldirs"
7808       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7809       libdir="$acl_save_libdir"
7810       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7811     else
7812             for found_dir in $rpathdirs; do
7813         acl_save_libdir="$libdir"
7814         libdir="$found_dir"
7815         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7816         libdir="$acl_save_libdir"
7817         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7818       done
7819     fi
7820   fi
7821   if test "X$ltrpathdirs" != "X"; then
7822             for found_dir in $ltrpathdirs; do
7823       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7824     done
7825   fi
7826
7827
7828
7829
7830
7831
7832           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7833 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7834 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   gt_save_CPPFLAGS="$CPPFLAGS"
7838             CPPFLAGS="$CPPFLAGS $INCINTL"
7839             gt_save_LIBS="$LIBS"
7840             LIBS="$LIBS $LIBINTL"
7841                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7843
7844 #include <libintl.h>
7845 $gt_revision_test_code
7846 extern int _nl_msg_cat_cntr;
7847 extern
7848 #ifdef __cplusplus
7849 "C"
7850 #endif
7851 const char *_nl_expand_alias (const char *);
7852
7853 int
7854 main ()
7855 {
7856
7857 bindtextdomain ("", "");
7858 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7859
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_link "$LINENO"; then :
7865   eval "$gt_func_gnugettext_libintl=yes"
7866 else
7867   eval "$gt_func_gnugettext_libintl=no"
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext \
7870     conftest$ac_exeext conftest.$ac_ext
7871                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7872               LIBS="$LIBS $LIBICONV"
7873               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875
7876 #include <libintl.h>
7877 $gt_revision_test_code
7878 extern int _nl_msg_cat_cntr;
7879 extern
7880 #ifdef __cplusplus
7881 "C"
7882 #endif
7883 const char *_nl_expand_alias (const char *);
7884
7885 int
7886 main ()
7887 {
7888
7889 bindtextdomain ("", "");
7890 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_link "$LINENO"; then :
7897   LIBINTL="$LIBINTL $LIBICONV"
7898                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7899                  eval "$gt_func_gnugettext_libintl=yes"
7900
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext \
7903     conftest$ac_exeext conftest.$ac_ext
7904             fi
7905             CPPFLAGS="$gt_save_CPPFLAGS"
7906             LIBS="$gt_save_LIBS"
7907 fi
7908 eval ac_res=\$$gt_func_gnugettext_libintl
7909                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7910 $as_echo "$ac_res" >&6; }
7911         fi
7912
7913                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7914            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7915                 && test "$PACKAGE" != gettext-runtime \
7916                 && test "$PACKAGE" != gettext-tools; }; then
7917           gt_use_preinstalled_gnugettext=yes
7918         else
7919                     LIBINTL=
7920           LTLIBINTL=
7921           INCINTL=
7922         fi
7923
7924
7925
7926     if test -n "$INTL_MACOSX_LIBS"; then
7927       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7928          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7929                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7930         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7931       fi
7932     fi
7933
7934     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7935        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7936
7937 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7938
7939     else
7940       USE_NLS=no
7941     fi
7942   fi
7943
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7945 $as_echo_n "checking whether to use NLS... " >&6; }
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7947 $as_echo "$USE_NLS" >&6; }
7948   if test "$USE_NLS" = "yes"; then
7949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7950 $as_echo_n "checking where the gettext function comes from... " >&6; }
7951     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7952       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7953         gt_source="external libintl"
7954       else
7955         gt_source="libc"
7956       fi
7957     else
7958       gt_source="included intl directory"
7959     fi
7960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7961 $as_echo "$gt_source" >&6; }
7962   fi
7963
7964   if test "$USE_NLS" = "yes"; then
7965
7966     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7967       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7969 $as_echo_n "checking how to link with libintl... " >&6; }
7970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7971 $as_echo "$LIBINTL" >&6; }
7972
7973   for element in $INCINTL; do
7974     haveit=
7975     for x in $CPPFLAGS; do
7976
7977   acl_save_prefix="$prefix"
7978   prefix="$acl_final_prefix"
7979   acl_save_exec_prefix="$exec_prefix"
7980   exec_prefix="$acl_final_exec_prefix"
7981   eval x=\"$x\"
7982   exec_prefix="$acl_save_exec_prefix"
7983   prefix="$acl_save_prefix"
7984
7985       if test "X$x" = "X$element"; then
7986         haveit=yes
7987         break
7988       fi
7989     done
7990     if test -z "$haveit"; then
7991       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7992     fi
7993   done
7994
7995       fi
7996
7997
7998 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7999
8000
8001 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8002
8003     fi
8004
8005         POSUB=po
8006   fi
8007
8008
8009
8010     INTLLIBS="$LIBINTL"
8011
8012
8013
8014
8015
8016
8017
8018 # This test must come as early as possible after the compiler configuration
8019 # tests, because the choice of the file model can (in principle) affect
8020 # whether functions and headers are available, whether they work, etc.
8021 # Check whether --enable-largefile was given.
8022 if test "${enable_largefile+set}" = set; then :
8023   enableval=$enable_largefile;
8024 fi
8025
8026 if test "$enable_largefile" != no; then
8027
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8029 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8030 if ${ac_cv_sys_largefile_CC+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   ac_cv_sys_largefile_CC=no
8034      if test "$GCC" != yes; then
8035        ac_save_CC=$CC
8036        while :; do
8037          # IRIX 6.2 and later do not support large files by default,
8038          # so use the C compiler's -n32 option if that helps.
8039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <sys/types.h>
8042  /* Check that off_t can represent 2**63 - 1 correctly.
8043     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8044     since some C++ compilers masquerading as C compilers
8045     incorrectly reject 9223372036854775807.  */
8046 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8047   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8048                        && LARGE_OFF_T % 2147483647 == 1)
8049                       ? 1 : -1];
8050 int
8051 main ()
8052 {
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058          if ac_fn_c_try_compile "$LINENO"; then :
8059   break
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext
8062          CC="$CC -n32"
8063          if ac_fn_c_try_compile "$LINENO"; then :
8064   ac_cv_sys_largefile_CC=' -n32'; break
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext
8067          break
8068        done
8069        CC=$ac_save_CC
8070        rm -f conftest.$ac_ext
8071     fi
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8074 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8075   if test "$ac_cv_sys_largefile_CC" != no; then
8076     CC=$CC$ac_cv_sys_largefile_CC
8077   fi
8078
8079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8080 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8081 if ${ac_cv_sys_file_offset_bits+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   while :; do
8085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087 #include <sys/types.h>
8088  /* Check that off_t can represent 2**63 - 1 correctly.
8089     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8090     since some C++ compilers masquerading as C compilers
8091     incorrectly reject 9223372036854775807.  */
8092 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8093   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8094                        && LARGE_OFF_T % 2147483647 == 1)
8095                       ? 1 : -1];
8096 int
8097 main ()
8098 {
8099
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105   ac_cv_sys_file_offset_bits=no; break
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h.  */
8110 #define _FILE_OFFSET_BITS 64
8111 #include <sys/types.h>
8112  /* Check that off_t can represent 2**63 - 1 correctly.
8113     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8114     since some C++ compilers masquerading as C compilers
8115     incorrectly reject 9223372036854775807.  */
8116 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8117   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8118                        && LARGE_OFF_T % 2147483647 == 1)
8119                       ? 1 : -1];
8120 int
8121 main ()
8122 {
8123
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129   ac_cv_sys_file_offset_bits=64; break
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132   ac_cv_sys_file_offset_bits=unknown
8133   break
8134 done
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8137 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8138 case $ac_cv_sys_file_offset_bits in #(
8139   no | unknown) ;;
8140   *)
8141 cat >>confdefs.h <<_ACEOF
8142 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8143 _ACEOF
8144 ;;
8145 esac
8146 rm -rf conftest*
8147   if test $ac_cv_sys_file_offset_bits = unknown; then
8148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8149 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8150 if ${ac_cv_sys_large_files+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   while :; do
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 #include <sys/types.h>
8157  /* Check that off_t can represent 2**63 - 1 correctly.
8158     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8159     since some C++ compilers masquerading as C compilers
8160     incorrectly reject 9223372036854775807.  */
8161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8162   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8163                        && LARGE_OFF_T % 2147483647 == 1)
8164                       ? 1 : -1];
8165 int
8166 main ()
8167 {
8168
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174   ac_cv_sys_large_files=no; break
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h.  */
8179 #define _LARGE_FILES 1
8180 #include <sys/types.h>
8181  /* Check that off_t can represent 2**63 - 1 correctly.
8182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8183     since some C++ compilers masquerading as C compilers
8184     incorrectly reject 9223372036854775807.  */
8185 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8187                        && LARGE_OFF_T % 2147483647 == 1)
8188                       ? 1 : -1];
8189 int
8190 main ()
8191 {
8192
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198   ac_cv_sys_large_files=1; break
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201   ac_cv_sys_large_files=unknown
8202   break
8203 done
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8206 $as_echo "$ac_cv_sys_large_files" >&6; }
8207 case $ac_cv_sys_large_files in #(
8208   no | unknown) ;;
8209   *)
8210 cat >>confdefs.h <<_ACEOF
8211 #define _LARGE_FILES $ac_cv_sys_large_files
8212 _ACEOF
8213 ;;
8214 esac
8215 rm -rf conftest*
8216   fi
8217
8218
8219 fi
8220
8221
8222 # Checks for libraries.
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
8224 $as_echo_n "checking for library containing getpwnam... " >&6; }
8225 if ${ac_cv_search_getpwnam+:} false; then :
8226   $as_echo_n "(cached) " >&6
8227 else
8228   ac_func_search_save_LIBS=$LIBS
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h.  */
8231
8232 /* Override any GCC internal prototype to avoid an error.
8233    Use char because int might match the return type of a GCC
8234    builtin and then its argument prototype would still apply.  */
8235 #ifdef __cplusplus
8236 extern "C"
8237 #endif
8238 char getpwnam ();
8239 int
8240 main ()
8241 {
8242 return getpwnam ();
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 for ac_lib in '' sun; do
8248   if test -z "$ac_lib"; then
8249     ac_res="none required"
8250   else
8251     ac_res=-l$ac_lib
8252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8253   fi
8254   if ac_fn_c_try_link "$LINENO"; then :
8255   ac_cv_search_getpwnam=$ac_res
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext \
8258     conftest$ac_exeext
8259   if ${ac_cv_search_getpwnam+:} false; then :
8260   break
8261 fi
8262 done
8263 if ${ac_cv_search_getpwnam+:} false; then :
8264
8265 else
8266   ac_cv_search_getpwnam=no
8267 fi
8268 rm conftest.$ac_ext
8269 LIBS=$ac_func_search_save_LIBS
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
8272 $as_echo "$ac_cv_search_getpwnam" >&6; }
8273 ac_res=$ac_cv_search_getpwnam
8274 if test "$ac_res" != no; then :
8275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8276
8277 fi
8278
8279
8280 # Checks for header files.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8282 $as_echo_n "checking for ANSI C header files... " >&6; }
8283 if ${ac_cv_header_stdc+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h.  */
8288 #include <stdlib.h>
8289 #include <stdarg.h>
8290 #include <string.h>
8291 #include <float.h>
8292
8293 int
8294 main ()
8295 {
8296
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302   ac_cv_header_stdc=yes
8303 else
8304   ac_cv_header_stdc=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307
8308 if test $ac_cv_header_stdc = yes; then
8309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h.  */
8312 #include <string.h>
8313
8314 _ACEOF
8315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8316   $EGREP "memchr" >/dev/null 2>&1; then :
8317
8318 else
8319   ac_cv_header_stdc=no
8320 fi
8321 rm -f conftest*
8322
8323 fi
8324
8325 if test $ac_cv_header_stdc = yes; then
8326   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h.  */
8329 #include <stdlib.h>
8330
8331 _ACEOF
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333   $EGREP "free" >/dev/null 2>&1; then :
8334
8335 else
8336   ac_cv_header_stdc=no
8337 fi
8338 rm -f conftest*
8339
8340 fi
8341
8342 if test $ac_cv_header_stdc = yes; then
8343   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8344   if test "$cross_compiling" = yes; then :
8345   :
8346 else
8347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 #include <ctype.h>
8350 #include <stdlib.h>
8351 #if ((' ' & 0x0FF) == 0x020)
8352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8354 #else
8355 # define ISLOWER(c) \
8356                    (('a' <= (c) && (c) <= 'i') \
8357                      || ('j' <= (c) && (c) <= 'r') \
8358                      || ('s' <= (c) && (c) <= 'z'))
8359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8360 #endif
8361
8362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8363 int
8364 main ()
8365 {
8366   int i;
8367   for (i = 0; i < 256; i++)
8368     if (XOR (islower (i), ISLOWER (i))
8369         || toupper (i) != TOUPPER (i))
8370       return 2;
8371   return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_run "$LINENO"; then :
8375
8376 else
8377   ac_cv_header_stdc=no
8378 fi
8379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8380   conftest.$ac_objext conftest.beam conftest.$ac_ext
8381 fi
8382
8383 fi
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8386 $as_echo "$ac_cv_header_stdc" >&6; }
8387 if test $ac_cv_header_stdc = yes; then
8388
8389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8390
8391 fi
8392
8393 ac_header_dirent=no
8394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8395   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8397 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8398 if eval \${$as_ac_Header+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h.  */
8403 #include <sys/types.h>
8404 #include <$ac_hdr>
8405
8406 int
8407 main ()
8408 {
8409 if ((DIR *) 0)
8410 return 0;
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_compile "$LINENO"; then :
8416   eval "$as_ac_Header=yes"
8417 else
8418   eval "$as_ac_Header=no"
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 eval ac_res=\$$as_ac_Header
8423                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8424 $as_echo "$ac_res" >&6; }
8425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8426   cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8428 _ACEOF
8429
8430 ac_header_dirent=$ac_hdr; break
8431 fi
8432
8433 done
8434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8435 if test $ac_header_dirent = dirent.h; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8437 $as_echo_n "checking for library containing opendir... " >&6; }
8438 if ${ac_cv_search_opendir+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   ac_func_search_save_LIBS=$LIBS
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h.  */
8444
8445 /* Override any GCC internal prototype to avoid an error.
8446    Use char because int might match the return type of a GCC
8447    builtin and then its argument prototype would still apply.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 char opendir ();
8452 int
8453 main ()
8454 {
8455 return opendir ();
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 for ac_lib in '' dir; do
8461   if test -z "$ac_lib"; then
8462     ac_res="none required"
8463   else
8464     ac_res=-l$ac_lib
8465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8466   fi
8467   if ac_fn_c_try_link "$LINENO"; then :
8468   ac_cv_search_opendir=$ac_res
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext \
8471     conftest$ac_exeext
8472   if ${ac_cv_search_opendir+:} false; then :
8473   break
8474 fi
8475 done
8476 if ${ac_cv_search_opendir+:} false; then :
8477
8478 else
8479   ac_cv_search_opendir=no
8480 fi
8481 rm conftest.$ac_ext
8482 LIBS=$ac_func_search_save_LIBS
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8485 $as_echo "$ac_cv_search_opendir" >&6; }
8486 ac_res=$ac_cv_search_opendir
8487 if test "$ac_res" != no; then :
8488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8489
8490 fi
8491
8492 else
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8494 $as_echo_n "checking for library containing opendir... " >&6; }
8495 if ${ac_cv_search_opendir+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   ac_func_search_save_LIBS=$LIBS
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char opendir ();
8509 int
8510 main ()
8511 {
8512 return opendir ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' x; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   if ac_fn_c_try_link "$LINENO"; then :
8525   ac_cv_search_opendir=$ac_res
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext \
8528     conftest$ac_exeext
8529   if ${ac_cv_search_opendir+:} false; then :
8530   break
8531 fi
8532 done
8533 if ${ac_cv_search_opendir+:} false; then :
8534
8535 else
8536   ac_cv_search_opendir=no
8537 fi
8538 rm conftest.$ac_ext
8539 LIBS=$ac_func_search_save_LIBS
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8542 $as_echo "$ac_cv_search_opendir" >&6; }
8543 ac_res=$ac_cv_search_opendir
8544 if test "$ac_res" != no; then :
8545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8546
8547 fi
8548
8549 fi
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8552 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8553 if ${ac_cv_header_stat_broken+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h.  */
8558 #include <sys/types.h>
8559 #include <sys/stat.h>
8560
8561 #if defined S_ISBLK && defined S_IFDIR
8562 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8563 #endif
8564
8565 #if defined S_ISBLK && defined S_IFCHR
8566 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8567 #endif
8568
8569 #if defined S_ISLNK && defined S_IFREG
8570 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8571 #endif
8572
8573 #if defined S_ISSOCK && defined S_IFREG
8574 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8575 #endif
8576
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579   ac_cv_header_stat_broken=no
8580 else
8581   ac_cv_header_stat_broken=yes
8582 fi
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8586 $as_echo "$ac_cv_header_stat_broken" >&6; }
8587 if test $ac_cv_header_stat_broken = yes; then
8588
8589 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8590
8591 fi
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8594 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8595 if ${ac_cv_header_time+:} false; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h.  */
8600 #include <sys/types.h>
8601 #include <sys/time.h>
8602 #include <time.h>
8603
8604 int
8605 main ()
8606 {
8607 if ((struct tm *) 0)
8608 return 0;
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614   ac_cv_header_time=yes
8615 else
8616   ac_cv_header_time=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8621 $as_echo "$ac_cv_header_time" >&6; }
8622 if test $ac_cv_header_time = yes; then
8623
8624 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8625
8626 fi
8627
8628 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
8629                   memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
8630                   sys/select.h
8631 do :
8632   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8635   cat >>confdefs.h <<_ACEOF
8636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8637 _ACEOF
8638
8639 fi
8640
8641 done
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8646 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8647 if ${ac_cv_c_const+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h.  */
8652
8653 int
8654 main ()
8655 {
8656
8657 #ifndef __cplusplus
8658   /* Ultrix mips cc rejects this sort of thing.  */
8659   typedef int charset[2];
8660   const charset cs = { 0, 0 };
8661   /* SunOS 4.1.1 cc rejects this.  */
8662   char const *const *pcpcc;
8663   char **ppc;
8664   /* NEC SVR4.0.2 mips cc rejects this.  */
8665   struct point {int x, y;};
8666   static struct point const zero = {0,0};
8667   /* AIX XL C 1.02.0.0 rejects this.
8668      It does not let you subtract one const X* pointer from another in
8669      an arm of an if-expression whose if-part is not a constant
8670      expression */
8671   const char *g = "string";
8672   pcpcc = &g + (g ? g-g : 0);
8673   /* HPUX 7.0 cc rejects these. */
8674   ++pcpcc;
8675   ppc = (char**) pcpcc;
8676   pcpcc = (char const *const *) ppc;
8677   { /* SCO 3.2v4 cc rejects this sort of thing.  */
8678     char tx;
8679     char *t = &tx;
8680     char const *s = 0 ? (char *) 0 : (char const *) 0;
8681
8682     *t++ = 0;
8683     if (s) return 0;
8684   }
8685   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8686     int x[] = {25, 17};
8687     const int *foo = &x[0];
8688     ++foo;
8689   }
8690   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8691     typedef const int *iptr;
8692     iptr p = 0;
8693     ++p;
8694   }
8695   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8696        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8697     struct s { int j; const int *ap[3]; } bx;
8698     struct s *b = &bx; b->j = 5;
8699   }
8700   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8701     const int foo = 10;
8702     if (!foo) return 0;
8703   }
8704   return !cs[0] && !zero.x;
8705 #endif
8706
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712   ac_cv_c_const=yes
8713 else
8714   ac_cv_c_const=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8719 $as_echo "$ac_cv_c_const" >&6; }
8720 if test $ac_cv_c_const = no; then
8721
8722 $as_echo "#define const /**/" >>confdefs.h
8723
8724 fi
8725
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8727 $as_echo_n "checking return type of signal handlers... " >&6; }
8728 if ${ac_cv_type_signal+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h.  */
8733 #include <sys/types.h>
8734 #include <signal.h>
8735
8736 int
8737 main ()
8738 {
8739 return *(signal (0, 0)) (0) == 1;
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745   ac_cv_type_signal=int
8746 else
8747   ac_cv_type_signal=void
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8752 $as_echo "$ac_cv_type_signal" >&6; }
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define RETSIGTYPE $ac_cv_type_signal
8756 _ACEOF
8757
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8760 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8761 if ${ac_cv_type_uid_t+:} false; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h.  */
8766 #include <sys/types.h>
8767
8768 _ACEOF
8769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8770   $EGREP "uid_t" >/dev/null 2>&1; then :
8771   ac_cv_type_uid_t=yes
8772 else
8773   ac_cv_type_uid_t=no
8774 fi
8775 rm -f conftest*
8776
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8779 $as_echo "$ac_cv_type_uid_t" >&6; }
8780 if test $ac_cv_type_uid_t = no; then
8781
8782 $as_echo "#define uid_t int" >>confdefs.h
8783
8784
8785 $as_echo "#define gid_t int" >>confdefs.h
8786
8787 fi
8788
8789 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8790 if test "x$ac_cv_type_pid_t" = xyes; then :
8791
8792 else
8793
8794 cat >>confdefs.h <<_ACEOF
8795 #define pid_t int
8796 _ACEOF
8797
8798 fi
8799
8800 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8801 if test "x$ac_cv_type_off_t" = xyes; then :
8802
8803 else
8804
8805 cat >>confdefs.h <<_ACEOF
8806 #define off_t long int
8807 _ACEOF
8808
8809 fi
8810
8811 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8812 if test "x$ac_cv_type_size_t" = xyes; then :
8813
8814 else
8815
8816 cat >>confdefs.h <<_ACEOF
8817 #define size_t unsigned int
8818 _ACEOF
8819
8820 fi
8821
8822 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8823 if test "x$ac_cv_type_ssize_t" = xyes; then :
8824
8825 else
8826
8827 cat >>confdefs.h <<_ACEOF
8828 #define ssize_t int
8829 _ACEOF
8830
8831 fi
8832
8833
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8835 $as_echo_n "checking for unsigned long long int... " >&6; }
8836 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   ac_cv_type_unsigned_long_long_int=yes
8840      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8841        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h.  */
8843
8844   /* For now, do not test the preprocessor; as of 2007 there are too many
8845          implementations with broken preprocessors.  Perhaps this can
8846          be revisited in 2012.  In the meantime, code should not expect
8847          #if to work with literals wider than 32 bits.  */
8848       /* Test literals.  */
8849       long long int ll = 9223372036854775807ll;
8850       long long int nll = -9223372036854775807LL;
8851       unsigned long long int ull = 18446744073709551615ULL;
8852       /* Test constant expressions.   */
8853       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8854                      ? 1 : -1)];
8855       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8856                      ? 1 : -1)];
8857       int i = 63;
8858 int
8859 main ()
8860 {
8861 /* Test availability of runtime routines for shift and division.  */
8862       long long int llmax = 9223372036854775807ll;
8863       unsigned long long int ullmax = 18446744073709551615ull;
8864       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8865               | (llmax / ll) | (llmax % ll)
8866               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8867               | (ullmax / ull) | (ullmax % ull));
8868   ;
8869   return 0;
8870 }
8871
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874
8875 else
8876   ac_cv_type_unsigned_long_long_int=no
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext \
8879     conftest$ac_exeext conftest.$ac_ext
8880      fi
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8883 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8884   if test $ac_cv_type_unsigned_long_long_int = yes; then
8885
8886 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8887
8888   fi
8889
8890
8891
8892   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8893 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8894
8895 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8896
8897 else
8898   test $ac_cv_type_unsigned_long_long_int = yes \
8899        && ac_type='unsigned long long int' \
8900        || ac_type='unsigned long int'
8901
8902 cat >>confdefs.h <<_ACEOF
8903 #define uintmax_t $ac_type
8904 _ACEOF
8905
8906 fi
8907
8908
8909
8910 # Find out whether our struct stat returns nanosecond resolution timestamps.
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
8913 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
8914 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
8915   $as_echo_n "(cached) " >&6
8916 else
8917   ac_save_CPPFLAGS="$CPPFLAGS"
8918     ac_cv_struct_st_mtim_nsec=no
8919     # st_mtim.tv_nsec -- the usual case
8920     # st_mtim._tv_nsec -- Solaris 2.6, if
8921     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
8922     #    && !defined __EXTENSIONS__)
8923     # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
8924     # st_mtime_n -- AIX 5.2 and above
8925     # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
8926     for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
8927       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
8928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930 #include <sys/types.h>
8931 #include <sys/stat.h>
8932
8933 int
8934 main ()
8935 {
8936 struct stat s; s.ST_MTIM_NSEC;
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"; then :
8942   ac_cv_struct_st_mtim_nsec=$ac_val; break
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945     done
8946     CPPFLAGS="$ac_save_CPPFLAGS"
8947
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
8950 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
8951
8952   if test $ac_cv_struct_st_mtim_nsec != no; then
8953
8954 cat >>confdefs.h <<_ACEOF
8955 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
8956 _ACEOF
8957
8958   fi
8959
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
8962 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
8963 if ${make_cv_file_timestamp_hi_res+:} false; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966    make_cv_file_timestamp_hi_res=no
8967   if test "$ac_cv_struct_st_mtim_nsec" != no; then :
8968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h.  */
8970
8971 #if HAVE_INTTYPES_H
8972 # include <inttypes.h>
8973 #endif
8974 int
8975 main ()
8976 {
8977 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983   make_cv_file_timestamp_hi_res=yes
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986
8987 fi
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
8990 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
8991 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8992   val=1
8993 else
8994   val=0
8995 fi
8996
8997 cat >>confdefs.h <<_ACEOF
8998 #define FILE_TIMESTAMP_HI_RES $val
8999 _ACEOF
9000
9001
9002 if test "$make_cv_file_timestamp_hi_res" = yes; then :
9003    # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
9004   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9006 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9007 if ${ac_cv_search_clock_gettime+:} false; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   ac_func_search_save_LIBS=$LIBS
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h.  */
9013
9014 /* Override any GCC internal prototype to avoid an error.
9015    Use char because int might match the return type of a GCC
9016    builtin and then its argument prototype would still apply.  */
9017 #ifdef __cplusplus
9018 extern "C"
9019 #endif
9020 char clock_gettime ();
9021 int
9022 main ()
9023 {
9024 return clock_gettime ();
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 for ac_lib in '' rt posix4; do
9030   if test -z "$ac_lib"; then
9031     ac_res="none required"
9032   else
9033     ac_res=-l$ac_lib
9034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9035   fi
9036   if ac_fn_c_try_link "$LINENO"; then :
9037   ac_cv_search_clock_gettime=$ac_res
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext \
9040     conftest$ac_exeext
9041   if ${ac_cv_search_clock_gettime+:} false; then :
9042   break
9043 fi
9044 done
9045 if ${ac_cv_search_clock_gettime+:} false; then :
9046
9047 else
9048   ac_cv_search_clock_gettime=no
9049 fi
9050 rm conftest.$ac_ext
9051 LIBS=$ac_func_search_save_LIBS
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9054 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9055 ac_res=$ac_cv_search_clock_gettime
9056 if test "$ac_res" != no; then :
9057   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058
9059 fi
9060
9061   if test "$ac_cv_search_clock_gettime" != no; then :
9062
9063 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9064
9065
9066 fi
9067
9068 fi
9069
9070 # Check for DOS-style pathnames.
9071
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
9073 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
9074 if ${ac_cv_dos_paths+:} false; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077
9078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h.  */
9080
9081 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
9082 neither MSDOS nor Windows nor OS2
9083 #endif
9084
9085 int
9086 main ()
9087 {
9088
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 if ac_fn_c_try_compile "$LINENO"; then :
9094   ac_cv_dos_paths=yes
9095 else
9096   ac_cv_dos_paths=no
9097 fi
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
9101 $as_echo "$ac_cv_dos_paths" >&6; }
9102
9103   if test x"$ac_cv_dos_paths" = xyes; then :
9104
9105 cat >>confdefs.h <<_ACEOF
9106 #define HAVE_DOS_PATHS 1
9107 _ACEOF
9108
9109 fi
9110
9111
9112 # See if we have a standard version of gettimeofday().  Since actual
9113 # implementations can differ, just make sure we have the most common
9114 # one.
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
9116 $as_echo_n "checking for standard gettimeofday... " >&6; }
9117 if ${ac_cv_func_gettimeofday+:} false; then :
9118   $as_echo_n "(cached) " >&6
9119 else
9120   ac_cv_func_gettimeofday=no
9121    if test "$cross_compiling" = yes; then :
9122   ac_cv_func_gettimeofday="no (cross-compiling)"
9123 else
9124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h.  */
9126 #include <sys/time.h>
9127                   int main ()
9128                   {
9129                     struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
9130                     exit (gettimeofday (&t, 0) != 0
9131                           || t.tv_sec < 0 || t.tv_usec < 0);
9132                   }
9133 _ACEOF
9134 if ac_fn_c_try_run "$LINENO"; then :
9135   ac_cv_func_gettimeofday=yes
9136 else
9137   ac_cv_func_gettimeofday=no
9138 fi
9139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9140   conftest.$ac_objext conftest.beam conftest.$ac_ext
9141 fi
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
9145 $as_echo "$ac_cv_func_gettimeofday" >&6; }
9146 if test "$ac_cv_func_gettimeofday" = yes; then :
9147
9148 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
9149
9150
9151 fi
9152
9153 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
9154                 dup dup2 getcwd realpath sigsetmask sigaction \
9155                 getgroups seteuid setegid setlinebuf setreuid setregid \
9156                 getrlimit setrlimit setvbuf pipe strerror strsignal \
9157                 lstat readlink atexit isatty ttyname pselect
9158 do :
9159   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9162   cat >>confdefs.h <<_ACEOF
9163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9164 _ACEOF
9165
9166 fi
9167 done
9168
9169
9170 # We need to check declarations, not just existence, because on Tru64 this
9171 # function is not declared without special flags, which themselves cause
9172 # other problems.  We'll just use our own.
9173 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
9174 #include <signal.h>
9175 "
9176 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
9177   ac_have_decl=1
9178 else
9179   ac_have_decl=0
9180 fi
9181
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
9184 _ACEOF
9185
9186
9187 for ac_header in vfork.h
9188 do :
9189   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9190 if test "x$ac_cv_header_vfork_h" = xyes; then :
9191   cat >>confdefs.h <<_ACEOF
9192 #define HAVE_VFORK_H 1
9193 _ACEOF
9194
9195 fi
9196
9197 done
9198
9199 for ac_func in fork vfork
9200 do :
9201   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9203 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9204   cat >>confdefs.h <<_ACEOF
9205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9206 _ACEOF
9207
9208 fi
9209 done
9210
9211 if test "x$ac_cv_func_fork" = xyes; then
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9213 $as_echo_n "checking for working fork... " >&6; }
9214 if ${ac_cv_func_fork_works+:} false; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   if test "$cross_compiling" = yes; then :
9218   ac_cv_func_fork_works=cross
9219 else
9220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h.  */
9222 $ac_includes_default
9223 int
9224 main ()
9225 {
9226
9227           /* By Ruediger Kuhlmann. */
9228           return fork () < 0;
9229
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_run "$LINENO"; then :
9235   ac_cv_func_fork_works=yes
9236 else
9237   ac_cv_func_fork_works=no
9238 fi
9239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9240   conftest.$ac_objext conftest.beam conftest.$ac_ext
9241 fi
9242
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9245 $as_echo "$ac_cv_func_fork_works" >&6; }
9246
9247 else
9248   ac_cv_func_fork_works=$ac_cv_func_fork
9249 fi
9250 if test "x$ac_cv_func_fork_works" = xcross; then
9251   case $host in
9252     *-*-amigaos* | *-*-msdosdjgpp*)
9253       # Override, as these systems have only a dummy fork() stub
9254       ac_cv_func_fork_works=no
9255       ;;
9256     *)
9257       ac_cv_func_fork_works=yes
9258       ;;
9259   esac
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9261 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9262 fi
9263 ac_cv_func_vfork_works=$ac_cv_func_vfork
9264 if test "x$ac_cv_func_vfork" = xyes; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9266 $as_echo_n "checking for working vfork... " >&6; }
9267 if ${ac_cv_func_vfork_works+:} false; then :
9268   $as_echo_n "(cached) " >&6
9269 else
9270   if test "$cross_compiling" = yes; then :
9271   ac_cv_func_vfork_works=cross
9272 else
9273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h.  */
9275 /* Thanks to Paul Eggert for this test.  */
9276 $ac_includes_default
9277 #include <sys/wait.h>
9278 #ifdef HAVE_VFORK_H
9279 # include <vfork.h>
9280 #endif
9281 /* On some sparc systems, changes by the child to local and incoming
9282    argument registers are propagated back to the parent.  The compiler
9283    is told about this with #include <vfork.h>, but some compilers
9284    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9285    static variable whose address is put into a register that is
9286    clobbered by the vfork.  */
9287 static void
9288 #ifdef __cplusplus
9289 sparc_address_test (int arg)
9290 # else
9291 sparc_address_test (arg) int arg;
9292 #endif
9293 {
9294   static pid_t child;
9295   if (!child) {
9296     child = vfork ();
9297     if (child < 0) {
9298       perror ("vfork");
9299       _exit(2);
9300     }
9301     if (!child) {
9302       arg = getpid();
9303       write(-1, "", 0);
9304       _exit (arg);
9305     }
9306   }
9307 }
9308
9309 int
9310 main ()
9311 {
9312   pid_t parent = getpid ();
9313   pid_t child;
9314
9315   sparc_address_test (0);
9316
9317   child = vfork ();
9318
9319   if (child == 0) {
9320     /* Here is another test for sparc vfork register problems.  This
9321        test uses lots of local variables, at least as many local
9322        variables as main has allocated so far including compiler
9323        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9324        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9325        reuse the register of parent for one of the local variables,
9326        since it will think that parent can't possibly be used any more
9327        in this routine.  Assigning to the local variable will thus
9328        munge parent in the parent process.  */
9329     pid_t
9330       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9331       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9332     /* Convince the compiler that p..p7 are live; otherwise, it might
9333        use the same hardware register for all 8 local variables.  */
9334     if (p != p1 || p != p2 || p != p3 || p != p4
9335         || p != p5 || p != p6 || p != p7)
9336       _exit(1);
9337
9338     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9339        from child file descriptors.  If the child closes a descriptor
9340        before it execs or exits, this munges the parent's descriptor
9341        as well.  Test for this by closing stdout in the child.  */
9342     _exit(close(fileno(stdout)) != 0);
9343   } else {
9344     int status;
9345     struct stat st;
9346
9347     while (wait(&status) != child)
9348       ;
9349     return (
9350          /* Was there some problem with vforking?  */
9351          child < 0
9352
9353          /* Did the child fail?  (This shouldn't happen.)  */
9354          || status
9355
9356          /* Did the vfork/compiler bug occur?  */
9357          || parent != getpid()
9358
9359          /* Did the file descriptor bug occur?  */
9360          || fstat(fileno(stdout), &st) != 0
9361          );
9362   }
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_run "$LINENO"; then :
9366   ac_cv_func_vfork_works=yes
9367 else
9368   ac_cv_func_vfork_works=no
9369 fi
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371   conftest.$ac_objext conftest.beam conftest.$ac_ext
9372 fi
9373
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9376 $as_echo "$ac_cv_func_vfork_works" >&6; }
9377
9378 fi;
9379 if test "x$ac_cv_func_fork_works" = xcross; then
9380   ac_cv_func_vfork_works=$ac_cv_func_vfork
9381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9382 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9383 fi
9384
9385 if test "x$ac_cv_func_vfork_works" = xyes; then
9386
9387 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9388
9389 else
9390
9391 $as_echo "#define vfork fork" >>confdefs.h
9392
9393 fi
9394 if test "x$ac_cv_func_fork_works" = xyes; then
9395
9396 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9397
9398 fi
9399
9400
9401 if ${ac_cv_func_setvbuf_reversed+:} false; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   ac_cv_func_setvbuf_reversed=no
9405 fi
9406
9407
9408
9409 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
9410 # It doesn't hurt much to use our own if we can't find it so I don't
9411 # make the effort here.
9412 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
9413 do :
9414   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9417   cat >>confdefs.h <<_ACEOF
9418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9419 _ACEOF
9420
9421 fi
9422 done
9423
9424
9425 # strcoll() is used by the GNU glob library
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9427 $as_echo_n "checking for working strcoll... " >&6; }
9428 if ${ac_cv_func_strcoll_works+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431   if test "$cross_compiling" = yes; then :
9432   ac_cv_func_strcoll_works=no
9433 else
9434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h.  */
9436 $ac_includes_default
9437 int
9438 main ()
9439 {
9440 return (strcoll ("abc", "def") >= 0 ||
9441          strcoll ("ABC", "DEF") >= 0 ||
9442          strcoll ("123", "456") >= 0)
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 if ac_fn_c_try_run "$LINENO"; then :
9448   ac_cv_func_strcoll_works=yes
9449 else
9450   ac_cv_func_strcoll_works=no
9451 fi
9452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9453   conftest.$ac_objext conftest.beam conftest.$ac_ext
9454 fi
9455
9456 fi
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9458 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9459 if test $ac_cv_func_strcoll_works = yes; then
9460
9461 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9462
9463 fi
9464
9465
9466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9467 # for constant arguments.  Useless!
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9469 $as_echo_n "checking for working alloca.h... " >&6; }
9470 if ${ac_cv_working_alloca_h+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h.  */
9475 #include <alloca.h>
9476 int
9477 main ()
9478 {
9479 char *p = (char *) alloca (2 * sizeof (int));
9480                           if (p) return 0;
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486   ac_cv_working_alloca_h=yes
9487 else
9488   ac_cv_working_alloca_h=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491     conftest$ac_exeext conftest.$ac_ext
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9494 $as_echo "$ac_cv_working_alloca_h" >&6; }
9495 if test $ac_cv_working_alloca_h = yes; then
9496
9497 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9498
9499 fi
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9502 $as_echo_n "checking for alloca... " >&6; }
9503 if ${ac_cv_func_alloca_works+:} false; then :
9504   $as_echo_n "(cached) " >&6
9505 else
9506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h.  */
9508 #ifdef __GNUC__
9509 # define alloca __builtin_alloca
9510 #else
9511 # ifdef _MSC_VER
9512 #  include <malloc.h>
9513 #  define alloca _alloca
9514 # else
9515 #  ifdef HAVE_ALLOCA_H
9516 #   include <alloca.h>
9517 #  else
9518 #   ifdef _AIX
9519  #pragma alloca
9520 #   else
9521 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9522 void *alloca (size_t);
9523 #    endif
9524 #   endif
9525 #  endif
9526 # endif
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532 char *p = (char *) alloca (1);
9533                                     if (p) return 0;
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539   ac_cv_func_alloca_works=yes
9540 else
9541   ac_cv_func_alloca_works=no
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext \
9544     conftest$ac_exeext conftest.$ac_ext
9545 fi
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9547 $as_echo "$ac_cv_func_alloca_works" >&6; }
9548
9549 if test $ac_cv_func_alloca_works = yes; then
9550
9551 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9552
9553 else
9554   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble.  Some versions do not even contain alloca or
9556 # contain a buggy version.  If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9558
9559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9560
9561 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9562
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9565 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9566 if ${ac_cv_os_cray+:} false; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h.  */
9571 #if defined CRAY && ! defined CRAY2
9572 webecray
9573 #else
9574 wenotbecray
9575 #endif
9576
9577 _ACEOF
9578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9579   $EGREP "webecray" >/dev/null 2>&1; then :
9580   ac_cv_os_cray=yes
9581 else
9582   ac_cv_os_cray=no
9583 fi
9584 rm -f conftest*
9585
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9588 $as_echo "$ac_cv_os_cray" >&6; }
9589 if test $ac_cv_os_cray = yes; then
9590   for ac_func in _getb67 GETB67 getb67; do
9591     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9594
9595 cat >>confdefs.h <<_ACEOF
9596 #define CRAY_STACKSEG_END $ac_func
9597 _ACEOF
9598
9599     break
9600 fi
9601
9602   done
9603 fi
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9606 $as_echo_n "checking stack direction for C alloca... " >&6; }
9607 if ${ac_cv_c_stack_direction+:} false; then :
9608   $as_echo_n "(cached) " >&6
9609 else
9610   if test "$cross_compiling" = yes; then :
9611   ac_cv_c_stack_direction=0
9612 else
9613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h.  */
9615 $ac_includes_default
9616 int
9617 find_stack_direction (int *addr, int depth)
9618 {
9619   int dir, dummy = 0;
9620   if (! addr)
9621     addr = &dummy;
9622   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9623   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9624   return dir + dummy;
9625 }
9626
9627 int
9628 main (int argc, char **argv)
9629 {
9630   return find_stack_direction (0, argc + !argv + 20) < 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_run "$LINENO"; then :
9634   ac_cv_c_stack_direction=1
9635 else
9636   ac_cv_c_stack_direction=-1
9637 fi
9638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639   conftest.$ac_objext conftest.beam conftest.$ac_ext
9640 fi
9641
9642 fi
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9644 $as_echo "$ac_cv_c_stack_direction" >&6; }
9645 cat >>confdefs.h <<_ACEOF
9646 #define STACK_DIRECTION $ac_cv_c_stack_direction
9647 _ACEOF
9648
9649
9650 fi
9651
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9653 $as_echo_n "checking whether closedir returns void... " >&6; }
9654 if ${ac_cv_func_closedir_void+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   if test "$cross_compiling" = yes; then :
9658   ac_cv_func_closedir_void=yes
9659 else
9660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h.  */
9662 $ac_includes_default
9663 #include <$ac_header_dirent>
9664 #ifndef __cplusplus
9665 int closedir ();
9666 #endif
9667
9668 int
9669 main ()
9670 {
9671 return closedir (opendir (".")) != 0;
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_run "$LINENO"; then :
9677   ac_cv_func_closedir_void=no
9678 else
9679   ac_cv_func_closedir_void=yes
9680 fi
9681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9682   conftest.$ac_objext conftest.beam conftest.$ac_ext
9683 fi
9684
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9687 $as_echo "$ac_cv_func_closedir_void" >&6; }
9688 if test $ac_cv_func_closedir_void = yes; then
9689
9690 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9691
9692 fi
9693
9694
9695 # See if the user wants to add (or not) GNU Guile support
9696
9697
9698
9699
9700
9701
9702
9703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9704         if test -n "$ac_tool_prefix"; then
9705   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   case $PKG_CONFIG in
9713   [\\/]* | ?:[\\/]*)
9714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9715   ;;
9716   *)
9717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722     for ac_exec_ext in '' $ac_executable_extensions; do
9723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729   done
9730 IFS=$as_save_IFS
9731
9732   ;;
9733 esac
9734 fi
9735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9736 if test -n "$PKG_CONFIG"; then
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9738 $as_echo "$PKG_CONFIG" >&6; }
9739 else
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743
9744
9745 fi
9746 if test -z "$ac_cv_path_PKG_CONFIG"; then
9747   ac_pt_PKG_CONFIG=$PKG_CONFIG
9748   # Extract the first word of "pkg-config", so it can be a program name with args.
9749 set dummy pkg-config; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   case $ac_pt_PKG_CONFIG in
9756   [\\/]* | ?:[\\/]*)
9757   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9758   ;;
9759   *)
9760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763   IFS=$as_save_IFS
9764   test -z "$as_dir" && as_dir=.
9765     for ac_exec_ext in '' $ac_executable_extensions; do
9766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769     break 2
9770   fi
9771 done
9772   done
9773 IFS=$as_save_IFS
9774
9775   ;;
9776 esac
9777 fi
9778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9779 if test -n "$ac_pt_PKG_CONFIG"; then
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9782 else
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786
9787   if test "x$ac_pt_PKG_CONFIG" = x; then
9788     PKG_CONFIG=""
9789   else
9790     case $cross_compiling:$ac_tool_warned in
9791 yes:)
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9794 ac_tool_warned=yes ;;
9795 esac
9796     PKG_CONFIG=$ac_pt_PKG_CONFIG
9797   fi
9798 else
9799   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9800 fi
9801
9802 fi
9803 if test -n "$PKG_CONFIG"; then
9804         _pkg_min_version=0.9.0
9805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9807         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809 $as_echo "yes" >&6; }
9810         else
9811                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813                 PKG_CONFIG=""
9814         fi
9815 fi
9816
9817 # Check whether --with-guile was given.
9818 if test "${with_guile+set}" = set; then :
9819   withval=$with_guile;
9820 fi
9821
9822
9823 # For some strange reason, at least on Ubuntu, each version of Guile
9824 # comes with it's own PC file so we have to specify them as individual
9825 # packages.  Ugh.
9826 if test "x$with_guile" != xno; then :
9827
9828 pkg_failed=no
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9830 $as_echo_n "checking for GUILE... " >&6; }
9831
9832 if test -n "$GUILE_CFLAGS"; then
9833     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9834  elif test -n "$PKG_CONFIG"; then
9835     if test -n "$PKG_CONFIG" && \
9836     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9837   ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9838   ac_status=$?
9839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9840   test $ac_status = 0; }; then
9841   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
9842                       test "x$?" != "x0" && pkg_failed=yes
9843 else
9844   pkg_failed=yes
9845 fi
9846  else
9847     pkg_failed=untried
9848 fi
9849 if test -n "$GUILE_LIBS"; then
9850     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9851  elif test -n "$PKG_CONFIG"; then
9852     if test -n "$PKG_CONFIG" && \
9853     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9854   ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9855   ac_status=$?
9856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9857   test $ac_status = 0; }; then
9858   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
9859                       test "x$?" != "x0" && pkg_failed=yes
9860 else
9861   pkg_failed=yes
9862 fi
9863  else
9864     pkg_failed=untried
9865 fi
9866
9867
9868
9869 if test $pkg_failed = yes; then
9870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9872
9873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9874         _pkg_short_errors_supported=yes
9875 else
9876         _pkg_short_errors_supported=no
9877 fi
9878         if test $_pkg_short_errors_supported = yes; then
9879                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
9880         else
9881                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
9882         fi
9883         # Put the nasty error message in config.log where it belongs
9884         echo "$GUILE_PKG_ERRORS" >&5
9885
9886
9887 pkg_failed=no
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9889 $as_echo_n "checking for GUILE... " >&6; }
9890
9891 if test -n "$GUILE_CFLAGS"; then
9892     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9893  elif test -n "$PKG_CONFIG"; then
9894     if test -n "$PKG_CONFIG" && \
9895     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9896   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9897   ac_status=$?
9898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899   test $ac_status = 0; }; then
9900   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9901                       test "x$?" != "x0" && pkg_failed=yes
9902 else
9903   pkg_failed=yes
9904 fi
9905  else
9906     pkg_failed=untried
9907 fi
9908 if test -n "$GUILE_LIBS"; then
9909     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9910  elif test -n "$PKG_CONFIG"; then
9911     if test -n "$PKG_CONFIG" && \
9912     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9913   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9914   ac_status=$?
9915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916   test $ac_status = 0; }; then
9917   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9918                       test "x$?" != "x0" && pkg_failed=yes
9919 else
9920   pkg_failed=yes
9921 fi
9922  else
9923     pkg_failed=untried
9924 fi
9925
9926
9927
9928 if test $pkg_failed = yes; then
9929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931
9932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9933         _pkg_short_errors_supported=yes
9934 else
9935         _pkg_short_errors_supported=no
9936 fi
9937         if test $_pkg_short_errors_supported = yes; then
9938                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9939         else
9940                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9941         fi
9942         # Put the nasty error message in config.log where it belongs
9943         echo "$GUILE_PKG_ERRORS" >&5
9944
9945         have_guile=no
9946 elif test $pkg_failed = untried; then
9947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9949         have_guile=no
9950 else
9951         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9952         GUILE_LIBS=$pkg_cv_GUILE_LIBS
9953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954 $as_echo "yes" >&6; }
9955         have_guile=yes
9956 fi
9957 elif test $pkg_failed = untried; then
9958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960
9961 pkg_failed=no
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9963 $as_echo_n "checking for GUILE... " >&6; }
9964
9965 if test -n "$GUILE_CFLAGS"; then
9966     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9967  elif test -n "$PKG_CONFIG"; then
9968     if test -n "$PKG_CONFIG" && \
9969     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9970   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9971   ac_status=$?
9972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9973   test $ac_status = 0; }; then
9974   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9975                       test "x$?" != "x0" && pkg_failed=yes
9976 else
9977   pkg_failed=yes
9978 fi
9979  else
9980     pkg_failed=untried
9981 fi
9982 if test -n "$GUILE_LIBS"; then
9983     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9984  elif test -n "$PKG_CONFIG"; then
9985     if test -n "$PKG_CONFIG" && \
9986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9987   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9988   ac_status=$?
9989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990   test $ac_status = 0; }; then
9991   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9992                       test "x$?" != "x0" && pkg_failed=yes
9993 else
9994   pkg_failed=yes
9995 fi
9996  else
9997     pkg_failed=untried
9998 fi
9999
10000
10001
10002 if test $pkg_failed = yes; then
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005
10006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10007         _pkg_short_errors_supported=yes
10008 else
10009         _pkg_short_errors_supported=no
10010 fi
10011         if test $_pkg_short_errors_supported = yes; then
10012                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
10013         else
10014                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
10015         fi
10016         # Put the nasty error message in config.log where it belongs
10017         echo "$GUILE_PKG_ERRORS" >&5
10018
10019         have_guile=no
10020 elif test $pkg_failed = untried; then
10021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10023         have_guile=no
10024 else
10025         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
10026         GUILE_LIBS=$pkg_cv_GUILE_LIBS
10027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10028 $as_echo "yes" >&6; }
10029         have_guile=yes
10030 fi
10031 else
10032         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
10033         GUILE_LIBS=$pkg_cv_GUILE_LIBS
10034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035 $as_echo "yes" >&6; }
10036         have_guile=yes
10037 fi
10038
10039 fi
10040
10041 if test "$have_guile" = yes; then :
10042
10043 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
10044
10045 fi
10046
10047  if test "$have_guile" = yes; then
10048   HAVE_GUILE_TRUE=
10049   HAVE_GUILE_FALSE='#'
10050 else
10051   HAVE_GUILE_TRUE='#'
10052   HAVE_GUILE_FALSE=
10053 fi
10054
10055
10056 ac_have_func=no # yes means we've found a way to get the load average.
10057
10058 # Make sure getloadavg.c is where it belongs, at configure-time.
10059 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10060   as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10061
10062 ac_save_LIBS=$LIBS
10063
10064 # Check for getloadavg, but be sure not to touch the cache variable.
10065 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10066 if test "x$ac_cv_func_getloadavg" = xyes; then :
10067   exit 0
10068 else
10069   exit 1
10070 fi
10071 ) && ac_have_func=yes
10072
10073 # On HPUX9, an unprivileged user can get load averages through this function.
10074 for ac_func in pstat_getdynamic
10075 do :
10076   ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10077 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
10078   cat >>confdefs.h <<_ACEOF
10079 #define HAVE_PSTAT_GETDYNAMIC 1
10080 _ACEOF
10081
10082 fi
10083 done
10084
10085
10086 # Solaris has libkstat which does not require root.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10088 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10089 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lkstat  $LIBS"
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h.  */
10096
10097 /* Override any GCC internal prototype to avoid an error.
10098    Use char because int might match the return type of a GCC
10099    builtin and then its argument prototype would still apply.  */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char kstat_open ();
10104 int
10105 main ()
10106 {
10107 return kstat_open ();
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"; then :
10113   ac_cv_lib_kstat_kstat_open=yes
10114 else
10115   ac_cv_lib_kstat_kstat_open=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext \
10118     conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10122 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10123 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
10124   cat >>confdefs.h <<_ACEOF
10125 #define HAVE_LIBKSTAT 1
10126 _ACEOF
10127
10128   LIBS="-lkstat $LIBS"
10129
10130 fi
10131
10132 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10133
10134 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10135 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10136 # to get the right answer into the cache.
10137 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10138 if test $ac_have_func = no; then
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10140 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10141 if ${ac_cv_lib_elf_elf_begin+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   ac_check_lib_save_LIBS=$LIBS
10145 LIBS="-lelf  $LIBS"
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h.  */
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char elf_begin ();
10156 int
10157 main ()
10158 {
10159 return elf_begin ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165   ac_cv_lib_elf_elf_begin=yes
10166 else
10167   ac_cv_lib_elf_elf_begin=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170     conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
10174 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
10175 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
10176   LIBS="-lelf $LIBS"
10177 fi
10178
10179 fi
10180 if test $ac_have_func = no; then
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
10182 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
10183 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lkvm  $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h.  */
10190
10191 /* Override any GCC internal prototype to avoid an error.
10192    Use char because int might match the return type of a GCC
10193    builtin and then its argument prototype would still apply.  */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char kvm_open ();
10198 int
10199 main ()
10200 {
10201 return kvm_open ();
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   ac_cv_lib_kvm_kvm_open=yes
10208 else
10209   ac_cv_lib_kvm_kvm_open=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
10216 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
10217 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
10218   LIBS="-lkvm $LIBS"
10219 fi
10220
10221   # Check for the 4.4BSD definition of getloadavg.
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
10223 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
10224 if ${ac_cv_lib_util_getloadavg+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-lutil  $LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h.  */
10231
10232 /* Override any GCC internal prototype to avoid an error.
10233    Use char because int might match the return type of a GCC
10234    builtin and then its argument prototype would still apply.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char getloadavg ();
10239 int
10240 main ()
10241 {
10242 return getloadavg ();
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10248   ac_cv_lib_util_getloadavg=yes
10249 else
10250   ac_cv_lib_util_getloadavg=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext \
10253     conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
10257 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
10258 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
10259   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10260 fi
10261
10262 fi
10263
10264 if test $ac_have_func = no; then
10265   # There is a commonly available library for RS/6000 AIX.
10266   # Since it is not a standard part of AIX, it might be installed locally.
10267   ac_getloadavg_LIBS=$LIBS
10268   LIBS="-L/usr/local/lib $LIBS"
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
10270 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
10271 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274   ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lgetloadavg  $LIBS"
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h.  */
10278
10279 /* Override any GCC internal prototype to avoid an error.
10280    Use char because int might match the return type of a GCC
10281    builtin and then its argument prototype would still apply.  */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char getloadavg ();
10286 int
10287 main ()
10288 {
10289 return getloadavg ();
10290   ;
10291   return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10295   ac_cv_lib_getloadavg_getloadavg=yes
10296 else
10297   ac_cv_lib_getloadavg_getloadavg=no
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext \
10300     conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10304 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
10305 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
10306   LIBS="-lgetloadavg $LIBS"
10307 else
10308   LIBS=$ac_getloadavg_LIBS
10309 fi
10310
10311 fi
10312
10313 # Make sure it is really in the library, if we think we found it,
10314 # otherwise set up the replacement function.
10315 for ac_func in getloadavg
10316 do :
10317   ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10318 if test "x$ac_cv_func_getloadavg" = xyes; then :
10319   cat >>confdefs.h <<_ACEOF
10320 #define HAVE_GETLOADAVG 1
10321 _ACEOF
10322
10323 else
10324   case " $LIBOBJS " in
10325   *" getloadavg.$ac_objext "* ) ;;
10326   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
10327  ;;
10328 esac
10329
10330
10331 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
10332
10333 # Figure out what our getloadavg.c needs.
10334 ac_have_func=no
10335 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
10336 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
10337   ac_have_func=yes
10338
10339 $as_echo "#define DGUX 1" >>confdefs.h
10340
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
10342 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
10343 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldgc  $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h.  */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char dg_sys_info ();
10358 int
10359 main ()
10360 {
10361 return dg_sys_info ();
10362   ;
10363   return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367   ac_cv_lib_dgc_dg_sys_info=yes
10368 else
10369   ac_cv_lib_dgc_dg_sys_info=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10376 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
10377 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
10378   cat >>confdefs.h <<_ACEOF
10379 #define HAVE_LIBDGC 1
10380 _ACEOF
10381
10382   LIBS="-ldgc $LIBS"
10383
10384 fi
10385
10386 fi
10387
10388
10389
10390 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10391 if test "x$ac_cv_header_locale_h" = xyes; then :
10392
10393 fi
10394
10395
10396 for ac_func in setlocale
10397 do :
10398   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10399 if test "x$ac_cv_func_setlocale" = xyes; then :
10400   cat >>confdefs.h <<_ACEOF
10401 #define HAVE_SETLOCALE 1
10402 _ACEOF
10403
10404 fi
10405 done
10406
10407
10408 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
10409 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
10410 # Irix 4.0.5F has the header but not the library.
10411 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
10412     && test "$ac_cv_lib_kvm_kvm_open" = yes; then
10413   ac_have_func=yes
10414
10415 $as_echo "#define SVR4 1" >>confdefs.h
10416
10417 fi
10418
10419 if test $ac_have_func = no; then
10420   ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
10422   ac_have_func=yes
10423
10424 $as_echo "#define UMAX 1" >>confdefs.h
10425
10426
10427 $as_echo "#define UMAX4_3 1" >>confdefs.h
10428
10429 fi
10430
10431
10432 fi
10433
10434 if test $ac_have_func = no; then
10435   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
10436 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
10437   ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
10438
10439 fi
10440
10441
10442 fi
10443
10444 if test $ac_have_func = no; then
10445   for ac_header in mach/mach.h
10446 do :
10447   ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
10448 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
10449   cat >>confdefs.h <<_ACEOF
10450 #define HAVE_MACH_MACH_H 1
10451 _ACEOF
10452
10453 fi
10454
10455 done
10456
10457 fi
10458
10459 for ac_header in nlist.h
10460 do :
10461   ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
10462 if test "x$ac_cv_header_nlist_h" = xyes; then :
10463   cat >>confdefs.h <<_ACEOF
10464 #define HAVE_NLIST_H 1
10465 _ACEOF
10466  ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
10467 "
10468 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
10472 _ACEOF
10473
10474
10475 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
10476
10477 fi
10478
10479
10480 fi
10481
10482 done
10483
10484 fi
10485 done
10486
10487
10488 # Some definitions of getloadavg require that the program be installed setgid.
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
10490 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
10491 if ${ac_cv_func_getloadavg_setgid+:} false; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h.  */
10496 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
10497 #ifdef LDAV_PRIVILEGED
10498 Yowza Am I SETGID yet
10499 #endif
10500 _ACEOF
10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
10503   ac_cv_func_getloadavg_setgid=yes
10504 else
10505   ac_cv_func_getloadavg_setgid=no
10506 fi
10507 rm -f conftest*
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
10511 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
10512 if test $ac_cv_func_getloadavg_setgid = yes; then
10513   NEED_SETGID=true
10514
10515 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
10516
10517 else
10518   NEED_SETGID=false
10519 fi
10520
10521 if test $ac_cv_func_getloadavg_setgid = yes; then
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
10523 $as_echo_n "checking group of /dev/kmem... " >&6; }
10524 if ${ac_cv_group_kmem+:} false; then :
10525   $as_echo_n "(cached) " >&6
10526 else
10527    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
10528   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10529   # If we got an error (system does not support symlinks), try without -L.
10530   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10531   ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
10532     | sed -ne 's/[       ][      ]*/ /g;
10533                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
10534                / /s/.* //;p;'`
10535
10536 fi
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
10538 $as_echo "$ac_cv_group_kmem" >&6; }
10539   KMEM_GROUP=$ac_cv_group_kmem
10540 fi
10541 if test "x$ac_save_LIBS" = x; then
10542   GETLOADAVG_LIBS=$LIBS
10543 else
10544   GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
10545 fi
10546 LIBS=$ac_save_LIBS
10547
10548
10549
10550 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
10551 # doesn't.  So, we will.
10552
10553 if test "$ac_cv_header_nlist_h" = yes; then :
10554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h.  */
10556 #include <nlist.h>
10557 int
10558 main ()
10559 {
10560 struct nlist nl;
10561           nl.n_name = "string";
10562           return 0;
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568   make_cv_nlist_struct=yes
10569 else
10570   make_cv_nlist_struct=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573   if test "$make_cv_nlist_struct" = yes; then :
10574
10575 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
10576
10577
10578 fi
10579
10580 fi
10581
10582 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
10583 #include <signal.h>
10584 /* NetBSD declares sys_siglist in unistd.h.  */
10585 #if HAVE_UNISTD_H
10586 # include <unistd.h>
10587 #endif
10588
10589 "
10590 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
10591   ac_have_decl=1
10592 else
10593   ac_have_decl=0
10594 fi
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
10598 _ACEOF
10599 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
10600 #include <signal.h>
10601 /* NetBSD declares sys_siglist in unistd.h.  */
10602 #if HAVE_UNISTD_H
10603 # include <unistd.h>
10604 #endif
10605
10606 "
10607 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
10608   ac_have_decl=1
10609 else
10610   ac_have_decl=0
10611 fi
10612
10613 cat >>confdefs.h <<_ACEOF
10614 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
10615 _ACEOF
10616 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
10617 #include <signal.h>
10618 /* NetBSD declares sys_siglist in unistd.h.  */
10619 #if HAVE_UNISTD_H
10620 # include <unistd.h>
10621 #endif
10622
10623 "
10624 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
10625   ac_have_decl=1
10626 else
10627   ac_have_decl=0
10628 fi
10629
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
10632 _ACEOF
10633
10634
10635
10636 # Check out the wait reality.
10637 for ac_header in sys/wait.h
10638 do :
10639   ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
10640 "
10641 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
10642   cat >>confdefs.h <<_ACEOF
10643 #define HAVE_SYS_WAIT_H 1
10644 _ACEOF
10645
10646 fi
10647
10648 done
10649
10650 for ac_func in waitpid wait3
10651 do :
10652   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10655   cat >>confdefs.h <<_ACEOF
10656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10657 _ACEOF
10658
10659 fi
10660 done
10661
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
10663 $as_echo_n "checking for union wait... " >&6; }
10664 if ${make_cv_union_wait+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669 #include <sys/types.h>
10670 #include <sys/wait.h>
10671 int
10672 main ()
10673 {
10674 union wait status; int pid; pid = wait (&status);
10675 #ifdef WEXITSTATUS
10676 /* Some POSIXoid systems have both the new-style macros and the old
10677    union wait type, and they do not work together.  If union wait
10678    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
10679         if (WEXITSTATUS (status) != 0) pid = -1;
10680 #ifdef WTERMSIG
10681         /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
10682         -- blow chunks here --
10683 #endif
10684 #endif
10685 #ifdef HAVE_WAITPID
10686         /* Make sure union wait works with waitpid.  */
10687         pid = waitpid (-1, &status, 0);
10688 #endif
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695   make_cv_union_wait=yes
10696 else
10697   make_cv_union_wait=no
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext \
10700     conftest$ac_exeext conftest.$ac_ext
10701
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
10704 $as_echo "$make_cv_union_wait" >&6; }
10705 if test "$make_cv_union_wait" = yes; then :
10706
10707 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10708
10709
10710 fi
10711
10712
10713 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
10714 if test "$PATH_SEPARATOR" = ';'; then :
10715
10716 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
10717
10718
10719 fi
10720
10721 # See if the user wants to use pmake's "customs" distributed build capability
10722  REMOTE=stub
10723 use_customs=false
10724
10725 # Check whether --with-customs was given.
10726 if test "${with_customs+set}" = set; then :
10727   withval=$with_customs;  case $withval in #(
10728   n|no) :
10729     : ;; #(
10730   *) :
10731     make_cppflags="$CPPFLAGS"
10732      case $withval in #(
10733   y|ye|yes) :
10734     : ;; #(
10735   *) :
10736     CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
10737               make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
10738 esac
10739
10740 cf_test_netlibs=no
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
10742 $as_echo_n "checking for network libraries... " >&6; }
10743 if ${cf_cv_netlibs+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
10748 $as_echo "working..." >&6; }
10749 cf_cv_netlibs=""
10750 cf_test_netlibs=yes
10751 for ac_func in gethostname
10752 do :
10753   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
10754 if test "x$ac_cv_func_gethostname" = xyes; then :
10755   cat >>confdefs.h <<_ACEOF
10756 #define HAVE_GETHOSTNAME 1
10757 _ACEOF
10758
10759 else
10760
10761
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
10763 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
10764 if ${ac_cv_lib_nsl_gethostname+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773    Use char because int might match the return type of a GCC
10774    builtin and then its argument prototype would still apply.  */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char gethostname ();
10779 int
10780 main ()
10781 {
10782 return gethostname ();
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788   ac_cv_lib_nsl_gethostname=yes
10789 else
10790   ac_cv_lib_nsl_gethostname=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793     conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
10797 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
10798 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
10799
10800
10801 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10802
10803
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_$cf_tr_func 1
10806 _ACEOF
10807
10808         ac_cv_func_gethostname=yes
10809         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10810 else
10811
10812         ac_cv_func_gethostname=unknown
10813         unset ac_cv_func_gethostname 2>/dev/null
10814
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
10817 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
10818 if ${ac_cv_lib_socket_gethostname+:} false; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825
10826 /* Override any GCC internal prototype to avoid an error.
10827    Use char because int might match the return type of a GCC
10828    builtin and then its argument prototype would still apply.  */
10829 #ifdef __cplusplus
10830 extern "C"
10831 #endif
10832 char gethostname ();
10833 int
10834 main ()
10835 {
10836 return gethostname ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842   ac_cv_lib_socket_gethostname=yes
10843 else
10844   ac_cv_lib_socket_gethostname=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext \
10847     conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
10851 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
10852 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
10853
10854
10855 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10856
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_$cf_tr_func 1
10860 _ACEOF
10861
10862         ac_cv_func_gethostname=yes
10863         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10864 else
10865
10866         ac_cv_func_gethostname=unknown
10867         unset ac_cv_func_gethostname 2>/dev/null
10868
10869 fi
10870
10871
10872 fi
10873
10874
10875 fi
10876 done
10877
10878 #
10879 # FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
10880 # I don't know the entrypoints - 97/7/22 TD
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
10882 $as_echo_n "checking for main in -linet... " >&6; }
10883 if ${ac_cv_lib_inet_main+:} false; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-linet  $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h.  */
10890
10891
10892 int
10893 main ()
10894 {
10895 return main ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901   ac_cv_lib_inet_main=yes
10902 else
10903   ac_cv_lib_inet_main=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext \
10906     conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
10910 $as_echo "$ac_cv_lib_inet_main" >&6; }
10911 if test "x$ac_cv_lib_inet_main" = xyes; then :
10912   cf_cv_netlibs="-linet $cf_cv_netlibs"
10913 fi
10914
10915 #
10916 if test "$ac_cv_func_lsocket" != no ; then
10917 for ac_func in socket
10918 do :
10919   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10920 if test "x$ac_cv_func_socket" = xyes; then :
10921   cat >>confdefs.h <<_ACEOF
10922 #define HAVE_SOCKET 1
10923 _ACEOF
10924
10925 else
10926
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10929 $as_echo_n "checking for socket in -lsocket... " >&6; }
10930 if ${ac_cv_lib_socket_socket+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h.  */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939    Use char because int might match the return type of a GCC
10940    builtin and then its argument prototype would still apply.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char socket ();
10945 int
10946 main ()
10947 {
10948 return socket ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954   ac_cv_lib_socket_socket=yes
10955 else
10956   ac_cv_lib_socket_socket=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959     conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10963 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10964 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10965
10966
10967 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10968
10969
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_$cf_tr_func 1
10972 _ACEOF
10973
10974         ac_cv_func_socket=yes
10975         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10976 else
10977
10978         ac_cv_func_socket=unknown
10979         unset ac_cv_func_socket 2>/dev/null
10980
10981
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
10983 $as_echo_n "checking for socket in -lbsd... " >&6; }
10984 if ${ac_cv_lib_bsd_socket+:} false; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lbsd $cf_cv_netlibs $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h.  */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993    Use char because int might match the return type of a GCC
10994    builtin and then its argument prototype would still apply.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char socket ();
10999 int
11000 main ()
11001 {
11002 return socket ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008   ac_cv_lib_bsd_socket=yes
11009 else
11010   ac_cv_lib_bsd_socket=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013     conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
11017 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
11018 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
11019
11020
11021 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
11022
11023
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_$cf_tr_func 1
11026 _ACEOF
11027
11028         ac_cv_func_socket=yes
11029         cf_cv_netlibs="-lbsd $cf_cv_netlibs"
11030 else
11031
11032         ac_cv_func_socket=unknown
11033         unset ac_cv_func_socket 2>/dev/null
11034
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042 done
11043
11044 fi
11045 #
11046 for ac_func in gethostbyname
11047 do :
11048   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11049 if test "x$ac_cv_func_gethostbyname" = xyes; then :
11050   cat >>confdefs.h <<_ACEOF
11051 #define HAVE_GETHOSTBYNAME 1
11052 _ACEOF
11053
11054 else
11055
11056
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11058 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11059 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11060   $as_echo_n "(cached) " >&6
11061 else
11062   ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lnsl $cf_cv_netlibs $LIBS"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h.  */
11066
11067 /* Override any GCC internal prototype to avoid an error.
11068    Use char because int might match the return type of a GCC
11069    builtin and then its argument prototype would still apply.  */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char gethostbyname ();
11074 int
11075 main ()
11076 {
11077 return gethostbyname ();
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 if ac_fn_c_try_link "$LINENO"; then :
11083   ac_cv_lib_nsl_gethostbyname=yes
11084 else
11085   ac_cv_lib_nsl_gethostbyname=no
11086 fi
11087 rm -f core conftest.err conftest.$ac_objext \
11088     conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_lib_save_LIBS
11090 fi
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11092 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11093 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11094
11095
11096 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
11097
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_$cf_tr_func 1
11101 _ACEOF
11102
11103         ac_cv_func_gethostbyname=yes
11104         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
11105 else
11106
11107         ac_cv_func_gethostbyname=unknown
11108         unset ac_cv_func_gethostbyname 2>/dev/null
11109
11110 fi
11111
11112
11113 fi
11114 done
11115
11116
11117 fi
11118
11119 LIBS="$LIBS $cf_cv_netlibs"
11120 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
11121
11122      ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
11123 if test "x$ac_cv_header_customs_h" = xyes; then :
11124   use_customs=true
11125                       REMOTE=cstms
11126                       LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
11127 else
11128   with_customs=no
11129                       CPPFLAGS="$make_cppflags" make_badcust=yes
11130 fi
11131
11132
11133      ;;
11134 esac
11135
11136 fi
11137
11138
11139 # Tell automake about this, so it can include the right .c files.
11140  if test "$use_customs" = true; then
11141   USE_CUSTOMS_TRUE=
11142   USE_CUSTOMS_FALSE='#'
11143 else
11144   USE_CUSTOMS_TRUE='#'
11145   USE_CUSTOMS_FALSE=
11146 fi
11147
11148
11149 # See if the user asked to handle case insensitive file systems.
11150
11151 # Check whether --enable-case-insensitive-file-system was given.
11152 if test "${enable_case_insensitive_file_system+set}" = set; then :
11153   enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
11154   $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
11155
11156 fi
11157 fi
11158
11159
11160 # See if we can handle the job server feature, and if the user wants it.
11161 # Check whether --enable-job-server was given.
11162 if test "${enable_job_server+set}" = set; then :
11163   enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
11164 else
11165   make_cv_job_server="yes"
11166 fi
11167
11168
11169 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
11170   has_wait_nohang=no
11171 else
11172   has_wait_nohang=yes
11173 fi
11174
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
11176 $as_echo_n "checking for SA_RESTART... " >&6; }
11177 if ${make_cv_sa_restart+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180
11181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h.  */
11183 #include <signal.h>
11184 int
11185 main ()
11186 {
11187 return SA_RESTART;
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193   make_cv_sa_restart=yes
11194 else
11195   make_cv_sa_restart=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
11200 $as_echo "$make_cv_sa_restart" >&6; }
11201
11202 if test "$make_cv_sa_restart" != no; then :
11203
11204 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
11205
11206
11207 fi
11208
11209 # Only allow jobserver on systems that support it
11210 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
11211   */no/*) :
11212     make_cv_job_server=no ;; #(
11213   *) :
11214      ;;
11215 esac
11216
11217 # Also supported on OS2 and MinGW
11218 case $host_os in #(
11219   os2*|mingw*) :
11220     make_cv_job_server=yes ;; #(
11221   *) :
11222      ;;
11223 esac
11224
11225 # If we support it and the user didn't disable it, build with jobserver
11226 case /$make_cv_job_server/$user_job_server/ in #(
11227   */no/*) :
11228     : no jobserver ;; #(
11229   *) :
11230
11231 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
11232
11233    ;;
11234 esac
11235
11236 # If dl*() functions are supported we can enable the load operation
11237 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
11238 "
11239 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
11240   ac_have_decl=1
11241 else
11242   ac_have_decl=0
11243 fi
11244
11245 cat >>confdefs.h <<_ACEOF
11246 #define HAVE_DECL_DLOPEN $ac_have_decl
11247 _ACEOF
11248 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
11249 "
11250 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
11251   ac_have_decl=1
11252 else
11253   ac_have_decl=0
11254 fi
11255
11256 cat >>confdefs.h <<_ACEOF
11257 #define HAVE_DECL_DLSYM $ac_have_decl
11258 _ACEOF
11259 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
11260 "
11261 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
11262   ac_have_decl=1
11263 else
11264   ac_have_decl=0
11265 fi
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_DECL_DLERROR $ac_have_decl
11269 _ACEOF
11270
11271
11272 # Check whether --enable-load was given.
11273 if test "${enable_load+set}" = set; then :
11274   enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
11275 else
11276   make_cv_load="yes"
11277 fi
11278
11279
11280 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
11281   */no/*) :
11282     make_cv_load=no ;; #(
11283   *) :
11284      ;;
11285 esac
11286
11287 # We might need -ldl
11288 if test "$make_cv_load" = yes; then :
11289
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11291 $as_echo_n "checking for library containing dlopen... " >&6; }
11292 if ${ac_cv_search_dlopen+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   ac_func_search_save_LIBS=$LIBS
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h.  */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300    Use char because int might match the return type of a GCC
11301    builtin and then its argument prototype would still apply.  */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dlopen ();
11306 int
11307 main ()
11308 {
11309 return dlopen ();
11310   ;
11311   return 0;
11312 }
11313 _ACEOF
11314 for ac_lib in '' dl; do
11315   if test -z "$ac_lib"; then
11316     ac_res="none required"
11317   else
11318     ac_res=-l$ac_lib
11319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11320   fi
11321   if ac_fn_c_try_link "$LINENO"; then :
11322   ac_cv_search_dlopen=$ac_res
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325     conftest$ac_exeext
11326   if ${ac_cv_search_dlopen+:} false; then :
11327   break
11328 fi
11329 done
11330 if ${ac_cv_search_dlopen+:} false; then :
11331
11332 else
11333   ac_cv_search_dlopen=no
11334 fi
11335 rm conftest.$ac_ext
11336 LIBS=$ac_func_search_save_LIBS
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11339 $as_echo "$ac_cv_search_dlopen" >&6; }
11340 ac_res=$ac_cv_search_dlopen
11341 if test "$ac_res" != no; then :
11342   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11343
11344 else
11345   make_cv_load=
11346 fi
11347
11348
11349 fi
11350
11351 case /$make_cv_load/$user_load/ in #(
11352   */no/*) :
11353     make_cv_load=no ;; #(
11354   *) :
11355
11356 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
11357
11358    ;;
11359 esac
11360
11361 # If we want load support, we might need to link with export-dynamic.
11362 # See if we can figure it out.  Unfortunately this is very difficult.
11363 # For example passing -rdynamic to the SunPRO linker gives a warning
11364 # but succeeds and creates a shared object, not an executable!
11365 if test "$make_cv_load" = yes; then :
11366
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
11368 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
11369   old_LDFLAGS="$LDFLAGS"
11370   LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
11371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h.  */
11373 int main(){}
11374 _ACEOF
11375 if ac_fn_c_try_link "$LINENO"; then :
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378      AM_LDFLAGS=-Wl,--export-dynamic
11379
11380 else
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
11384 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
11385      LDFLAGS="$old_LDFLAGS -rdynamic"
11386      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h.  */
11388 int main(){}
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393         AM_LDFLAGS=-rdynamic
11394
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400     conftest$ac_exeext conftest.$ac_ext
11401
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404     conftest$ac_exeext conftest.$ac_ext
11405   LDFLAGS="$old_LDFLAGS"
11406
11407 fi
11408
11409 # if we have both lstat() and readlink() then we can support symlink
11410 # timechecks.
11411 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
11412
11413 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
11414
11415
11416 fi
11417
11418 # Find the SCCS commands, so we can include them in our default rules.
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
11421 $as_echo_n "checking for location of SCCS get command... " >&6; }
11422 if ${make_cv_path_sccs_get+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425
11426   if test -f /usr/sccs/get; then :
11427   make_cv_path_sccs_get=/usr/sccs/get
11428 else
11429   make_cv_path_sccs_get=get
11430 fi
11431
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
11434 $as_echo "$make_cv_path_sccs_get" >&6; }
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define SCCS_GET "$make_cv_path_sccs_get"
11438 _ACEOF
11439
11440
11441 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
11442 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
11443    test -f s.conftest; then :
11444    # We successfully created an SCCS file.
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
11446 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
11447 if ${make_cv_sys_get_minus_G+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
11451             test -f conftoast; then :
11452   make_cv_sys_get_minus_G=yes
11453 else
11454   make_cv_sys_get_minus_G=no
11455 fi
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
11459 $as_echo "$make_cv_sys_get_minus_G" >&6; }
11460   if test "$make_cv_sys_get_minus_G" = yes; then :
11461
11462 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
11463
11464
11465 fi
11466
11467 fi
11468 rm -f s.conftest conftoast
11469
11470 # Check the system to see if it provides GNU glob.  If not, use our
11471 # local version.
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11473 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11474 if ${make_cv_sys_gnu_glob+:} false; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479
11480 #include <features.h>
11481 #include <glob.h>
11482 #include <fnmatch.h>
11483
11484 #define GLOB_INTERFACE_VERSION 1
11485 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11486 # include <gnu-versions.h>
11487 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
11488    gnu glob
11489 # endif
11490 #endif
11491 _ACEOF
11492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11493   $EGREP "gnu glob" >/dev/null 2>&1; then :
11494   make_cv_sys_gnu_glob=yes
11495 else
11496   make_cv_sys_gnu_glob=no
11497 fi
11498 rm -f conftest*
11499
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11502 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11503 if test "$make_cv_sys_gnu_glob" = no; then :
11504    GLOBINC='-I$(srcdir)/glob'
11505   GLOBLIB=glob/libglob.a
11506
11507 fi
11508
11509
11510
11511 # Tell automake about this, so it can build the right .c files.
11512  if test "$make_cv_sys_gnu_glob" = no; then
11513   USE_LOCAL_GLOB_TRUE=
11514   USE_LOCAL_GLOB_FALSE='#'
11515 else
11516   USE_LOCAL_GLOB_TRUE='#'
11517   USE_LOCAL_GLOB_FALSE=
11518 fi
11519
11520
11521 # Let the makefile know what our build host is
11522
11523
11524 cat >>confdefs.h <<_ACEOF
11525 #define MAKE_HOST "$host"
11526 _ACEOF
11527
11528 MAKE_HOST="$host"
11529
11530
11531 w32_target_env=no
11532  if false; then
11533   WINDOWSENV_TRUE=
11534   WINDOWSENV_FALSE='#'
11535 else
11536   WINDOWSENV_TRUE='#'
11537   WINDOWSENV_FALSE=
11538 fi
11539
11540
11541 case $host in #(
11542   *-*-mingw32) :
11543      if true; then
11544   WINDOWSENV_TRUE=
11545   WINDOWSENV_FALSE='#'
11546 else
11547   WINDOWSENV_TRUE='#'
11548   WINDOWSENV_FALSE=
11549 fi
11550
11551     w32_target_env=yes
11552
11553 $as_echo "#define WINDOWS32 1" >>confdefs.h
11554
11555
11556 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
11557
11558    ;; #(
11559   *) :
11560      ;;
11561 esac
11562
11563
11564 cat >>confdefs.h <<_ACEOF
11565 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
11566 _ACEOF
11567
11568
11569 # Include the Maintainer's Makefile section, if it's here.
11570
11571 MAINT_MAKEFILE=/dev/null
11572 if test -r "$srcdir/maintMakefile"; then :
11573    MAINT_MAKEFILE="$srcdir/maintMakefile"
11574
11575 fi
11576
11577
11578 # Allow building with dmalloc
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
11580 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
11581
11582 # Check whether --with-dmalloc was given.
11583 if test "${with_dmalloc+set}" = set; then :
11584   withval=$with_dmalloc; if test "$withval" = yes; then
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586 $as_echo "yes" >&6; }
11587
11588 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
11589
11590   LIBS="$LIBS -ldmalloc"
11591   LDFLAGS="$LDFLAGS -g"
11592 else
11593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11595 fi
11596 else
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602
11603 # Forcibly disable SET_MAKE.  If it's set it breaks things like the test
11604 # scripts, etc.
11605 SET_MAKE=
11606
11607 # Sanity check and inform the user of what we found
11608
11609 if test "x$make_badcust" = xyes; then :
11610
11611 echo
11612 echo "WARNING: --with-customs specified but no customs.h could be found;"
11613 echo "         disabling Customs support."
11614 echo
11615
11616 fi
11617
11618 case $with_customs in #(
11619   ""|n|no|y|ye|yes) :
11620     : ;; #(
11621   *) :
11622     if test -f "$with_customs/lib/libcustoms.a"; then :
11623   :
11624 else
11625    echo
11626   echo "WARNING: '$with_customs/lib' does not appear to contain the"
11627   echo "         Customs library.  You must build and install Customs"
11628   echo "         before compiling GNU make."
11629   echo
11630
11631 fi ;;
11632 esac
11633
11634 if test "x$has_wait_nohang" = xno; then :
11635    echo
11636   echo "WARNING: Your system has neither waitpid() nor wait3()."
11637   echo "         Without one of these, signal handling is unreliable."
11638   echo "         You should be aware that running GNU make with -j"
11639   echo "         could result in erratic behavior."
11640   echo
11641
11642 fi
11643
11644 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
11645    echo
11646   echo "WARNING: Make job server requires a POSIX-ish system that"
11647   echo "         supports the pipe(), sigaction(), and either"
11648   echo "         waitpid() or wait3() functions.  Your system doesn't"
11649   echo "         appear to provide one or more of those."
11650   echo "         Disabling job server support."
11651   echo
11652
11653 fi
11654
11655 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
11656    echo
11657   echo "WARNING: 'load' support requires a POSIX-ish system that"
11658   echo "         supports the dlopen(), dlsym(), and dlerror() functions."
11659   echo "         Your system doesn't appear to provide one or more of these."
11660   echo "         Disabling 'load' support."
11661   echo
11662
11663 fi
11664
11665 # Specify what files are to be created.
11666 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile tests/config-flags.pm"
11667
11668
11669 # OK, do it!
11670
11671 cat >confcache <<\_ACEOF
11672 # This file is a shell script that caches the results of configure
11673 # tests run on this system so they can be shared between configure
11674 # scripts and configure runs, see configure's option --config-cache.
11675 # It is not useful on other systems.  If it contains results you don't
11676 # want to keep, you may remove or edit it.
11677 #
11678 # config.status only pays attention to the cache file if you give it
11679 # the --recheck option to rerun configure.
11680 #
11681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11683 # following values.
11684
11685 _ACEOF
11686
11687 # The following way of writing the cache mishandles newlines in values,
11688 # but we know of no workaround that is simple, portable, and efficient.
11689 # So, we kill variables containing newlines.
11690 # Ultrix sh set writes to stderr and can't be redirected directly,
11691 # and sets the high bit in the cache file unless we assign to the vars.
11692 (
11693   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11694     eval ac_val=\$$ac_var
11695     case $ac_val in #(
11696     *${as_nl}*)
11697       case $ac_var in #(
11698       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11699 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11700       esac
11701       case $ac_var in #(
11702       _ | IFS | as_nl) ;; #(
11703       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11704       *) { eval $ac_var=; unset $ac_var;} ;;
11705       esac ;;
11706     esac
11707   done
11708
11709   (set) 2>&1 |
11710     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11711     *${as_nl}ac_space=\ *)
11712       # `set' does not quote correctly, so add quotes: double-quote
11713       # substitution turns \\\\ into \\, and sed turns \\ into \.
11714       sed -n \
11715         "s/'/'\\\\''/g;
11716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11717       ;; #(
11718     *)
11719       # `set' quotes correctly as required by POSIX, so do not add quotes.
11720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11721       ;;
11722     esac |
11723     sort
11724 ) |
11725   sed '
11726      /^ac_cv_env_/b end
11727      t clear
11728      :clear
11729      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11730      t end
11731      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11732      :end' >>confcache
11733 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11734   if test -w "$cache_file"; then
11735     if test "x$cache_file" != "x/dev/null"; then
11736       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11737 $as_echo "$as_me: updating cache $cache_file" >&6;}
11738       if test ! -f "$cache_file" || test -h "$cache_file"; then
11739         cat confcache >"$cache_file"
11740       else
11741         case $cache_file in #(
11742         */* | ?:*)
11743           mv -f confcache "$cache_file"$$ &&
11744           mv -f "$cache_file"$$ "$cache_file" ;; #(
11745         *)
11746           mv -f confcache "$cache_file" ;;
11747         esac
11748       fi
11749     fi
11750   else
11751     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11752 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11753   fi
11754 fi
11755 rm -f confcache
11756
11757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11758 # Let make expand exec_prefix.
11759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11760
11761 DEFS=-DHAVE_CONFIG_H
11762
11763 ac_libobjs=
11764 ac_ltlibobjs=
11765 U=
11766 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11767   # 1. Remove the extension, and $U if already installed.
11768   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11769   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11770   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11771   #    will be set to the directory where LIBOBJS objects are built.
11772   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11773   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11774 done
11775 LIBOBJS=$ac_libobjs
11776
11777 LTLIBOBJS=$ac_ltlibobjs
11778
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11781 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11782    if test -n "$am_sleep_pid"; then
11783      # Hide warnings about reused PIDs.
11784      wait $am_sleep_pid 2>/dev/null
11785    fi
11786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11787 $as_echo "done" >&6; }
11788  if test -n "$EXEEXT"; then
11789   am__EXEEXT_TRUE=
11790   am__EXEEXT_FALSE='#'
11791 else
11792   am__EXEEXT_TRUE='#'
11793   am__EXEEXT_FALSE=
11794 fi
11795
11796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11797   as_fn_error $? "conditional \"AMDEP\" was never defined.
11798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11799 fi
11800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11801   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11803 fi
11804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11805   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11807 fi
11808 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
11809   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
11810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11811 fi
11812 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
11813   as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
11814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11815 fi
11816 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
11817   as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
11818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11819 fi
11820 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11821   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11823 fi
11824 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11825   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11827 fi
11828
11829 : "${CONFIG_STATUS=./config.status}"
11830 ac_write_fail=0
11831 ac_clean_files_save=$ac_clean_files
11832 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11834 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11835 as_write_fail=0
11836 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11837 #! $SHELL
11838 # Generated by $as_me.
11839 # Run this file to recreate the current configuration.
11840 # Compiler output produced by configure, useful for debugging
11841 # configure, is in config.log if it exists.
11842
11843 debug=false
11844 ac_cs_recheck=false
11845 ac_cs_silent=false
11846
11847 SHELL=\${CONFIG_SHELL-$SHELL}
11848 export SHELL
11849 _ASEOF
11850 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11851 ## -------------------- ##
11852 ## M4sh Initialization. ##
11853 ## -------------------- ##
11854
11855 # Be more Bourne compatible
11856 DUALCASE=1; export DUALCASE # for MKS sh
11857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11858   emulate sh
11859   NULLCMD=:
11860   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11861   # is contrary to our usage.  Disable this feature.
11862   alias -g '${1+"$@"}'='"$@"'
11863   setopt NO_GLOB_SUBST
11864 else
11865   case `(set -o) 2>/dev/null` in #(
11866   *posix*) :
11867     set -o posix ;; #(
11868   *) :
11869      ;;
11870 esac
11871 fi
11872
11873
11874 as_nl='
11875 '
11876 export as_nl
11877 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11878 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11881 # Prefer a ksh shell builtin over an external printf program on Solaris,
11882 # but without wasting forks for bash or zsh.
11883 if test -z "$BASH_VERSION$ZSH_VERSION" \
11884     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11885   as_echo='print -r --'
11886   as_echo_n='print -rn --'
11887 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11888   as_echo='printf %s\n'
11889   as_echo_n='printf %s'
11890 else
11891   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11892     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11893     as_echo_n='/usr/ucb/echo -n'
11894   else
11895     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11896     as_echo_n_body='eval
11897       arg=$1;
11898       case $arg in #(
11899       *"$as_nl"*)
11900         expr "X$arg" : "X\\(.*\\)$as_nl";
11901         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11902       esac;
11903       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11904     '
11905     export as_echo_n_body
11906     as_echo_n='sh -c $as_echo_n_body as_echo'
11907   fi
11908   export as_echo_body
11909   as_echo='sh -c $as_echo_body as_echo'
11910 fi
11911
11912 # The user is always right.
11913 if test "${PATH_SEPARATOR+set}" != set; then
11914   PATH_SEPARATOR=:
11915   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11916     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11917       PATH_SEPARATOR=';'
11918   }
11919 fi
11920
11921
11922 # IFS
11923 # We need space, tab and new line, in precisely that order.  Quoting is
11924 # there to prevent editors from complaining about space-tab.
11925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11926 # splitting by setting IFS to empty value.)
11927 IFS=" ""        $as_nl"
11928
11929 # Find who we are.  Look in the path if we contain no directory separator.
11930 as_myself=
11931 case $0 in #((
11932   *[\\/]* ) as_myself=$0 ;;
11933   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11935 do
11936   IFS=$as_save_IFS
11937   test -z "$as_dir" && as_dir=.
11938     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11939   done
11940 IFS=$as_save_IFS
11941
11942      ;;
11943 esac
11944 # We did not find ourselves, most probably we were run as `sh COMMAND'
11945 # in which case we are not to be found in the path.
11946 if test "x$as_myself" = x; then
11947   as_myself=$0
11948 fi
11949 if test ! -f "$as_myself"; then
11950   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11951   exit 1
11952 fi
11953
11954 # Unset variables that we do not need and which cause bugs (e.g. in
11955 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11956 # suppresses any "Segmentation fault" message there.  '((' could
11957 # trigger a bug in pdksh 5.2.14.
11958 for as_var in BASH_ENV ENV MAIL MAILPATH
11959 do eval test x\${$as_var+set} = xset \
11960   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11961 done
11962 PS1='$ '
11963 PS2='> '
11964 PS4='+ '
11965
11966 # NLS nuisances.
11967 LC_ALL=C
11968 export LC_ALL
11969 LANGUAGE=C
11970 export LANGUAGE
11971
11972 # CDPATH.
11973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11974
11975
11976 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11977 # ----------------------------------------
11978 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11979 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11980 # script with STATUS, using 1 if that was 0.
11981 as_fn_error ()
11982 {
11983   as_status=$1; test $as_status -eq 0 && as_status=1
11984   if test "$4"; then
11985     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11986     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11987   fi
11988   $as_echo "$as_me: error: $2" >&2
11989   as_fn_exit $as_status
11990 } # as_fn_error
11991
11992
11993 # as_fn_set_status STATUS
11994 # -----------------------
11995 # Set $? to STATUS, without forking.
11996 as_fn_set_status ()
11997 {
11998   return $1
11999 } # as_fn_set_status
12000
12001 # as_fn_exit STATUS
12002 # -----------------
12003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12004 as_fn_exit ()
12005 {
12006   set +e
12007   as_fn_set_status $1
12008   exit $1
12009 } # as_fn_exit
12010
12011 # as_fn_unset VAR
12012 # ---------------
12013 # Portably unset VAR.
12014 as_fn_unset ()
12015 {
12016   { eval $1=; unset $1;}
12017 }
12018 as_unset=as_fn_unset
12019 # as_fn_append VAR VALUE
12020 # ----------------------
12021 # Append the text in VALUE to the end of the definition contained in VAR. Take
12022 # advantage of any shell optimizations that allow amortized linear growth over
12023 # repeated appends, instead of the typical quadratic growth present in naive
12024 # implementations.
12025 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12026   eval 'as_fn_append ()
12027   {
12028     eval $1+=\$2
12029   }'
12030 else
12031   as_fn_append ()
12032   {
12033     eval $1=\$$1\$2
12034   }
12035 fi # as_fn_append
12036
12037 # as_fn_arith ARG...
12038 # ------------------
12039 # Perform arithmetic evaluation on the ARGs, and store the result in the
12040 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12041 # must be portable across $(()) and expr.
12042 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12043   eval 'as_fn_arith ()
12044   {
12045     as_val=$(( $* ))
12046   }'
12047 else
12048   as_fn_arith ()
12049   {
12050     as_val=`expr "$@" || test $? -eq 1`
12051   }
12052 fi # as_fn_arith
12053
12054
12055 if expr a : '\(a\)' >/dev/null 2>&1 &&
12056    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12057   as_expr=expr
12058 else
12059   as_expr=false
12060 fi
12061
12062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12063   as_basename=basename
12064 else
12065   as_basename=false
12066 fi
12067
12068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12069   as_dirname=dirname
12070 else
12071   as_dirname=false
12072 fi
12073
12074 as_me=`$as_basename -- "$0" ||
12075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12076          X"$0" : 'X\(//\)$' \| \
12077          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12078 $as_echo X/"$0" |
12079     sed '/^.*\/\([^/][^/]*\)\/*$/{
12080             s//\1/
12081             q
12082           }
12083           /^X\/\(\/\/\)$/{
12084             s//\1/
12085             q
12086           }
12087           /^X\/\(\/\).*/{
12088             s//\1/
12089             q
12090           }
12091           s/.*/./; q'`
12092
12093 # Avoid depending upon Character Ranges.
12094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12097 as_cr_digits='0123456789'
12098 as_cr_alnum=$as_cr_Letters$as_cr_digits
12099
12100 ECHO_C= ECHO_N= ECHO_T=
12101 case `echo -n x` in #(((((
12102 -n*)
12103   case `echo 'xy\c'` in
12104   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12105   xy)  ECHO_C='\c';;
12106   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12107        ECHO_T=' ';;
12108   esac;;
12109 *)
12110   ECHO_N='-n';;
12111 esac
12112
12113 rm -f conf$$ conf$$.exe conf$$.file
12114 if test -d conf$$.dir; then
12115   rm -f conf$$.dir/conf$$.file
12116 else
12117   rm -f conf$$.dir
12118   mkdir conf$$.dir 2>/dev/null
12119 fi
12120 if (echo >conf$$.file) 2>/dev/null; then
12121   if ln -s conf$$.file conf$$ 2>/dev/null; then
12122     as_ln_s='ln -s'
12123     # ... but there are two gotchas:
12124     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12125     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12126     # In both cases, we have to default to `cp -pR'.
12127     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12128       as_ln_s='cp -pR'
12129   elif ln conf$$.file conf$$ 2>/dev/null; then
12130     as_ln_s=ln
12131   else
12132     as_ln_s='cp -pR'
12133   fi
12134 else
12135   as_ln_s='cp -pR'
12136 fi
12137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12138 rmdir conf$$.dir 2>/dev/null
12139
12140
12141 # as_fn_mkdir_p
12142 # -------------
12143 # Create "$as_dir" as a directory, including parents if necessary.
12144 as_fn_mkdir_p ()
12145 {
12146
12147   case $as_dir in #(
12148   -*) as_dir=./$as_dir;;
12149   esac
12150   test -d "$as_dir" || eval $as_mkdir_p || {
12151     as_dirs=
12152     while :; do
12153       case $as_dir in #(
12154       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12155       *) as_qdir=$as_dir;;
12156       esac
12157       as_dirs="'$as_qdir' $as_dirs"
12158       as_dir=`$as_dirname -- "$as_dir" ||
12159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12160          X"$as_dir" : 'X\(//\)[^/]' \| \
12161          X"$as_dir" : 'X\(//\)$' \| \
12162          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12163 $as_echo X"$as_dir" |
12164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12165             s//\1/
12166             q
12167           }
12168           /^X\(\/\/\)[^/].*/{
12169             s//\1/
12170             q
12171           }
12172           /^X\(\/\/\)$/{
12173             s//\1/
12174             q
12175           }
12176           /^X\(\/\).*/{
12177             s//\1/
12178             q
12179           }
12180           s/.*/./; q'`
12181       test -d "$as_dir" && break
12182     done
12183     test -z "$as_dirs" || eval "mkdir $as_dirs"
12184   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12185
12186
12187 } # as_fn_mkdir_p
12188 if mkdir -p . 2>/dev/null; then
12189   as_mkdir_p='mkdir -p "$as_dir"'
12190 else
12191   test -d ./-p && rmdir ./-p
12192   as_mkdir_p=false
12193 fi
12194
12195
12196 # as_fn_executable_p FILE
12197 # -----------------------
12198 # Test if FILE is an executable regular file.
12199 as_fn_executable_p ()
12200 {
12201   test -f "$1" && test -x "$1"
12202 } # as_fn_executable_p
12203 as_test_x='test -x'
12204 as_executable_p=as_fn_executable_p
12205
12206 # Sed expression to map a string onto a valid CPP name.
12207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12208
12209 # Sed expression to map a string onto a valid variable name.
12210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12211
12212
12213 exec 6>&1
12214 ## ----------------------------------- ##
12215 ## Main body of $CONFIG_STATUS script. ##
12216 ## ----------------------------------- ##
12217 _ASEOF
12218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12219
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 # Save the log message, to keep $0 and so on meaningful, and to
12222 # report actual input values of CONFIG_FILES etc. instead of their
12223 # values after options handling.
12224 ac_log="
12225 This file was extended by GNU make $as_me 4.2.1, which was
12226 generated by GNU Autoconf 2.69.  Invocation command line was
12227
12228   CONFIG_FILES    = $CONFIG_FILES
12229   CONFIG_HEADERS  = $CONFIG_HEADERS
12230   CONFIG_LINKS    = $CONFIG_LINKS
12231   CONFIG_COMMANDS = $CONFIG_COMMANDS
12232   $ $0 $@
12233
12234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12235 "
12236
12237 _ACEOF
12238
12239 case $ac_config_files in *"
12240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12241 esac
12242
12243 case $ac_config_headers in *"
12244 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12245 esac
12246
12247
12248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12249 # Files that config.status was made for.
12250 config_files="$ac_config_files"
12251 config_headers="$ac_config_headers"
12252 config_commands="$ac_config_commands"
12253
12254 _ACEOF
12255
12256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257 ac_cs_usage="\
12258 \`$as_me' instantiates files and other configuration actions
12259 from templates according to the current configuration.  Unless the files
12260 and actions are specified as TAGs, all are instantiated by default.
12261
12262 Usage: $0 [OPTION]... [TAG]...
12263
12264   -h, --help       print this help, then exit
12265   -V, --version    print version number and configuration settings, then exit
12266       --config     print configuration, then exit
12267   -q, --quiet, --silent
12268                    do not print progress messages
12269   -d, --debug      don't remove temporary files
12270       --recheck    update $as_me by reconfiguring in the same conditions
12271       --file=FILE[:TEMPLATE]
12272                    instantiate the configuration file FILE
12273       --header=FILE[:TEMPLATE]
12274                    instantiate the configuration header FILE
12275
12276 Configuration files:
12277 $config_files
12278
12279 Configuration headers:
12280 $config_headers
12281
12282 Configuration commands:
12283 $config_commands
12284
12285 Report bugs to <bug-make@gnu.org>.
12286 GNU make home page: <http://www.gnu.org/software/make/>.
12287 General help using GNU software: <http://www.gnu.org/gethelp/>."
12288
12289 _ACEOF
12290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12291 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12292 ac_cs_version="\\
12293 GNU make config.status 4.2.1
12294 configured by $0, generated by GNU Autoconf 2.69,
12295   with options \\"\$ac_cs_config\\"
12296
12297 Copyright (C) 2012 Free Software Foundation, Inc.
12298 This config.status script is free software; the Free Software Foundation
12299 gives unlimited permission to copy, distribute and modify it."
12300
12301 ac_pwd='$ac_pwd'
12302 srcdir='$srcdir'
12303 INSTALL='$INSTALL'
12304 MKDIR_P='$MKDIR_P'
12305 AWK='$AWK'
12306 test -n "\$AWK" || AWK=awk
12307 _ACEOF
12308
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310 # The default lists apply if the user does not specify any file.
12311 ac_need_defaults=:
12312 while test $# != 0
12313 do
12314   case $1 in
12315   --*=?*)
12316     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12317     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12318     ac_shift=:
12319     ;;
12320   --*=)
12321     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12322     ac_optarg=
12323     ac_shift=:
12324     ;;
12325   *)
12326     ac_option=$1
12327     ac_optarg=$2
12328     ac_shift=shift
12329     ;;
12330   esac
12331
12332   case $ac_option in
12333   # Handling of the options.
12334   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12335     ac_cs_recheck=: ;;
12336   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12337     $as_echo "$ac_cs_version"; exit ;;
12338   --config | --confi | --conf | --con | --co | --c )
12339     $as_echo "$ac_cs_config"; exit ;;
12340   --debug | --debu | --deb | --de | --d | -d )
12341     debug=: ;;
12342   --file | --fil | --fi | --f )
12343     $ac_shift
12344     case $ac_optarg in
12345     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12346     '') as_fn_error $? "missing file argument" ;;
12347     esac
12348     as_fn_append CONFIG_FILES " '$ac_optarg'"
12349     ac_need_defaults=false;;
12350   --header | --heade | --head | --hea )
12351     $ac_shift
12352     case $ac_optarg in
12353     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12354     esac
12355     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12356     ac_need_defaults=false;;
12357   --he | --h)
12358     # Conflict between --help and --header
12359     as_fn_error $? "ambiguous option: \`$1'
12360 Try \`$0 --help' for more information.";;
12361   --help | --hel | -h )
12362     $as_echo "$ac_cs_usage"; exit ;;
12363   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12364   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12365     ac_cs_silent=: ;;
12366
12367   # This is an error.
12368   -*) as_fn_error $? "unrecognized option: \`$1'
12369 Try \`$0 --help' for more information." ;;
12370
12371   *) as_fn_append ac_config_targets " $1"
12372      ac_need_defaults=false ;;
12373
12374   esac
12375   shift
12376 done
12377
12378 ac_configure_extra_args=
12379
12380 if $ac_cs_silent; then
12381   exec 6>/dev/null
12382   ac_configure_extra_args="$ac_configure_extra_args --silent"
12383 fi
12384
12385 _ACEOF
12386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387 if \$ac_cs_recheck; then
12388   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12389   shift
12390   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12391   CONFIG_SHELL='$SHELL'
12392   export CONFIG_SHELL
12393   exec "\$@"
12394 fi
12395
12396 _ACEOF
12397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12398 exec 5>>config.log
12399 {
12400   echo
12401   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12402 ## Running $as_me. ##
12403 _ASBOX
12404   $as_echo "$ac_log"
12405 } >&5
12406
12407 _ACEOF
12408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12409 #
12410 # INIT-COMMANDS
12411 #
12412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12413 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12414     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12415     # from automake < 1.5.
12416     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12417     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12418     LINGUAS="${LINGUAS-%UNSET%}"
12419
12420
12421 _ACEOF
12422
12423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12424
12425 # Handling of arguments.
12426 for ac_config_target in $ac_config_targets
12427 do
12428   case $ac_config_target in
12429     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12430     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12431     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12432     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12433     "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
12434     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12435     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12436     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12437     "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12438     "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
12439
12440   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12441   esac
12442 done
12443
12444
12445 # If the user did not use the arguments to specify the items to instantiate,
12446 # then the envvar interface is used.  Set only those that are not.
12447 # We use the long form for the default assignment because of an extremely
12448 # bizarre bug on SunOS 4.1.3.
12449 if $ac_need_defaults; then
12450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12453 fi
12454
12455 # Have a temporary directory for convenience.  Make it in the build tree
12456 # simply because there is no reason against having it here, and in addition,
12457 # creating and moving files from /tmp can sometimes cause problems.
12458 # Hook for its removal unless debugging.
12459 # Note that there is a small window in which the directory will not be cleaned:
12460 # after its creation but before its name has been assigned to `$tmp'.
12461 $debug ||
12462 {
12463   tmp= ac_tmp=
12464   trap 'exit_status=$?
12465   : "${ac_tmp:=$tmp}"
12466   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12467 ' 0
12468   trap 'as_fn_exit 1' 1 2 13 15
12469 }
12470 # Create a (secure) tmp directory for tmp files.
12471
12472 {
12473   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12474   test -d "$tmp"
12475 }  ||
12476 {
12477   tmp=./conf$$-$RANDOM
12478   (umask 077 && mkdir "$tmp")
12479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12480 ac_tmp=$tmp
12481
12482 # Set up the scripts for CONFIG_FILES section.
12483 # No need to generate them if there are no CONFIG_FILES.
12484 # This happens for instance with `./config.status config.h'.
12485 if test -n "$CONFIG_FILES"; then
12486
12487 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12488   ac_cs_awk_getline=:
12489   ac_cs_awk_pipe_init=
12490   ac_cs_awk_read_file='
12491       while ((getline aline < (F[key])) > 0)
12492         print(aline)
12493       close(F[key])'
12494   ac_cs_awk_pipe_fini=
12495 else
12496   ac_cs_awk_getline=false
12497   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12498   ac_cs_awk_read_file='
12499       print "|#_!!_#|"
12500       print "cat " F[key] " &&"
12501       '$ac_cs_awk_pipe_init
12502   # The final `:' finishes the AND list.
12503   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12504 fi
12505 ac_cr=`echo X | tr X '\015'`
12506 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12507 # But we know of no other shell where ac_cr would be empty at this
12508 # point, so we can use a bashism as a fallback.
12509 if test "x$ac_cr" = x; then
12510   eval ac_cr=\$\'\\r\'
12511 fi
12512 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12513 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12514   ac_cs_awk_cr='\\r'
12515 else
12516   ac_cs_awk_cr=$ac_cr
12517 fi
12518
12519 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12520 _ACEOF
12521
12522 # Create commands to substitute file output variables.
12523 {
12524   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12525   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12526   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12527   echo "_ACAWK" &&
12528   echo "_ACEOF"
12529 } >conf$$files.sh &&
12530 . ./conf$$files.sh ||
12531   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12532 rm -f conf$$files.sh
12533
12534 {
12535   echo "cat >conf$$subs.awk <<_ACEOF" &&
12536   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12537   echo "_ACEOF"
12538 } >conf$$subs.sh ||
12539   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12541 ac_delim='%!_!# '
12542 for ac_last_try in false false false false false :; do
12543   . ./conf$$subs.sh ||
12544     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12545
12546   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12547   if test $ac_delim_n = $ac_delim_num; then
12548     break
12549   elif $ac_last_try; then
12550     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12551   else
12552     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12553   fi
12554 done
12555 rm -f conf$$subs.sh
12556
12557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12558 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12559 _ACEOF
12560 sed -n '
12561 h
12562 s/^/S["/; s/!.*/"]=/
12563 p
12564 g
12565 s/^[^!]*!//
12566 :repl
12567 t repl
12568 s/'"$ac_delim"'$//
12569 t delim
12570 :nl
12571 h
12572 s/\(.\{148\}\)..*/\1/
12573 t more1
12574 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12575 p
12576 n
12577 b repl
12578 :more1
12579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12580 p
12581 g
12582 s/.\{148\}//
12583 t nl
12584 :delim
12585 h
12586 s/\(.\{148\}\)..*/\1/
12587 t more2
12588 s/["\\]/\\&/g; s/^/"/; s/$/"/
12589 p
12590 b
12591 :more2
12592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12593 p
12594 g
12595 s/.\{148\}//
12596 t delim
12597 ' <conf$$subs.awk | sed '
12598 /^[^""]/{
12599   N
12600   s/\n//
12601 }
12602 ' >>$CONFIG_STATUS || ac_write_fail=1
12603 rm -f conf$$subs.awk
12604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12605 _ACAWK
12606 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12607   for (key in S) S_is_set[key] = 1
12608   FS = "\a"
12609   \$ac_cs_awk_pipe_init
12610 }
12611 {
12612   line = $ 0
12613   nfields = split(line, field, "@")
12614   substed = 0
12615   len = length(field[1])
12616   for (i = 2; i < nfields; i++) {
12617     key = field[i]
12618     keylen = length(key)
12619     if (S_is_set[key]) {
12620       value = S[key]
12621       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12622       len += length(value) + length(field[++i])
12623       substed = 1
12624     } else
12625       len += 1 + keylen
12626   }
12627   if (nfields == 3 && !substed) {
12628     key = field[2]
12629     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12630       \$ac_cs_awk_read_file
12631       next
12632     }
12633   }
12634   print line
12635 }
12636 \$ac_cs_awk_pipe_fini
12637 _ACAWK
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12641   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12642 else
12643   cat
12644 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12645   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12646 _ACEOF
12647
12648 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12649 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12650 # trailing colons and then remove the whole line if VPATH becomes empty
12651 # (actually we leave an empty line to preserve line numbers).
12652 if test "x$srcdir" = x.; then
12653   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12654 h
12655 s///
12656 s/^/:/
12657 s/[      ]*$/:/
12658 s/:\$(srcdir):/:/g
12659 s/:\${srcdir}:/:/g
12660 s/:@srcdir@:/:/g
12661 s/^:*//
12662 s/:*$//
12663 x
12664 s/\(=[   ]*\).*/\1/
12665 G
12666 s/\n//
12667 s/^[^=]*=[       ]*$//
12668 }'
12669 fi
12670
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 fi # test -n "$CONFIG_FILES"
12673
12674 # Set up the scripts for CONFIG_HEADERS section.
12675 # No need to generate them if there are no CONFIG_HEADERS.
12676 # This happens for instance with `./config.status Makefile'.
12677 if test -n "$CONFIG_HEADERS"; then
12678 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12679 BEGIN {
12680 _ACEOF
12681
12682 # Transform confdefs.h into an awk script `defines.awk', embedded as
12683 # here-document in config.status, that substitutes the proper values into
12684 # config.h.in to produce config.h.
12685
12686 # Create a delimiter string that does not exist in confdefs.h, to ease
12687 # handling of long lines.
12688 ac_delim='%!_!# '
12689 for ac_last_try in false false :; do
12690   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12691   if test -z "$ac_tt"; then
12692     break
12693   elif $ac_last_try; then
12694     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12695   else
12696     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12697   fi
12698 done
12699
12700 # For the awk script, D is an array of macro values keyed by name,
12701 # likewise P contains macro parameters if any.  Preserve backslash
12702 # newline sequences.
12703
12704 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12705 sed -n '
12706 s/.\{148\}/&'"$ac_delim"'/g
12707 t rset
12708 :rset
12709 s/^[     ]*#[    ]*define[       ][      ]*/ /
12710 t def
12711 d
12712 :def
12713 s/\\$//
12714 t bsnl
12715 s/["\\]/\\&/g
12716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12717 D["\1"]=" \3"/p
12718 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12719 d
12720 :bsnl
12721 s/["\\]/\\&/g
12722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12723 D["\1"]=" \3\\\\\\n"\\/p
12724 t cont
12725 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12726 t cont
12727 d
12728 :cont
12729 n
12730 s/.\{148\}/&'"$ac_delim"'/g
12731 t clear
12732 :clear
12733 s/\\$//
12734 t bsnlc
12735 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12736 d
12737 :bsnlc
12738 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12739 b cont
12740 ' <confdefs.h | sed '
12741 s/'"$ac_delim"'/"\\\
12742 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12743
12744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12745   for (key in D) D_is_set[key] = 1
12746   FS = "\a"
12747 }
12748 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12749   line = \$ 0
12750   split(line, arg, " ")
12751   if (arg[1] == "#") {
12752     defundef = arg[2]
12753     mac1 = arg[3]
12754   } else {
12755     defundef = substr(arg[1], 2)
12756     mac1 = arg[2]
12757   }
12758   split(mac1, mac2, "(") #)
12759   macro = mac2[1]
12760   prefix = substr(line, 1, index(line, defundef) - 1)
12761   if (D_is_set[macro]) {
12762     # Preserve the white space surrounding the "#".
12763     print prefix "define", macro P[macro] D[macro]
12764     next
12765   } else {
12766     # Replace #undef with comments.  This is necessary, for example,
12767     # in the case of _POSIX_SOURCE, which is predefined and required
12768     # on some systems where configure will not decide to define it.
12769     if (defundef == "undef") {
12770       print "/*", prefix defundef, macro, "*/"
12771       next
12772     }
12773   }
12774 }
12775 { print }
12776 _ACAWK
12777 _ACEOF
12778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12779   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12780 fi # test -n "$CONFIG_HEADERS"
12781
12782
12783 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12784 shift
12785 for ac_tag
12786 do
12787   case $ac_tag in
12788   :[FHLC]) ac_mode=$ac_tag; continue;;
12789   esac
12790   case $ac_mode$ac_tag in
12791   :[FHL]*:*);;
12792   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12793   :[FH]-) ac_tag=-:-;;
12794   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12795   esac
12796   ac_save_IFS=$IFS
12797   IFS=:
12798   set x $ac_tag
12799   IFS=$ac_save_IFS
12800   shift
12801   ac_file=$1
12802   shift
12803
12804   case $ac_mode in
12805   :L) ac_source=$1;;
12806   :[FH])
12807     ac_file_inputs=
12808     for ac_f
12809     do
12810       case $ac_f in
12811       -) ac_f="$ac_tmp/stdin";;
12812       *) # Look for the file first in the build tree, then in the source tree
12813          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12814          # because $ac_f cannot contain `:'.
12815          test -f "$ac_f" ||
12816            case $ac_f in
12817            [\\/$]*) false;;
12818            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12819            esac ||
12820            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12821       esac
12822       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12823       as_fn_append ac_file_inputs " '$ac_f'"
12824     done
12825
12826     # Let's still pretend it is `configure' which instantiates (i.e., don't
12827     # use $as_me), people would be surprised to read:
12828     #    /* config.h.  Generated by config.status.  */
12829     configure_input='Generated from '`
12830           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12831         `' by configure.'
12832     if test x"$ac_file" != x-; then
12833       configure_input="$ac_file.  $configure_input"
12834       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12835 $as_echo "$as_me: creating $ac_file" >&6;}
12836     fi
12837     # Neutralize special characters interpreted by sed in replacement strings.
12838     case $configure_input in #(
12839     *\&* | *\|* | *\\* )
12840        ac_sed_conf_input=`$as_echo "$configure_input" |
12841        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12842     *) ac_sed_conf_input=$configure_input;;
12843     esac
12844
12845     case $ac_tag in
12846     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12847       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12848     esac
12849     ;;
12850   esac
12851
12852   ac_dir=`$as_dirname -- "$ac_file" ||
12853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12854          X"$ac_file" : 'X\(//\)[^/]' \| \
12855          X"$ac_file" : 'X\(//\)$' \| \
12856          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12857 $as_echo X"$ac_file" |
12858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12859             s//\1/
12860             q
12861           }
12862           /^X\(\/\/\)[^/].*/{
12863             s//\1/
12864             q
12865           }
12866           /^X\(\/\/\)$/{
12867             s//\1/
12868             q
12869           }
12870           /^X\(\/\).*/{
12871             s//\1/
12872             q
12873           }
12874           s/.*/./; q'`
12875   as_dir="$ac_dir"; as_fn_mkdir_p
12876   ac_builddir=.
12877
12878 case "$ac_dir" in
12879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12880 *)
12881   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12882   # A ".." for each directory in $ac_dir_suffix.
12883   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12884   case $ac_top_builddir_sub in
12885   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12886   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12887   esac ;;
12888 esac
12889 ac_abs_top_builddir=$ac_pwd
12890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12891 # for backward compatibility:
12892 ac_top_builddir=$ac_top_build_prefix
12893
12894 case $srcdir in
12895   .)  # We are building in place.
12896     ac_srcdir=.
12897     ac_top_srcdir=$ac_top_builddir_sub
12898     ac_abs_top_srcdir=$ac_pwd ;;
12899   [\\/]* | ?:[\\/]* )  # Absolute name.
12900     ac_srcdir=$srcdir$ac_dir_suffix;
12901     ac_top_srcdir=$srcdir
12902     ac_abs_top_srcdir=$srcdir ;;
12903   *) # Relative name.
12904     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12905     ac_top_srcdir=$ac_top_build_prefix$srcdir
12906     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12907 esac
12908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12909
12910
12911   case $ac_mode in
12912   :F)
12913   #
12914   # CONFIG_FILE
12915   #
12916
12917   case $INSTALL in
12918   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12919   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12920   esac
12921   ac_MKDIR_P=$MKDIR_P
12922   case $MKDIR_P in
12923   [\\/$]* | ?:[\\/]* ) ;;
12924   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12925   esac
12926 _ACEOF
12927
12928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929 # If the template does not know about datarootdir, expand it.
12930 # FIXME: This hack should be removed a few years after 2.60.
12931 ac_datarootdir_hack=; ac_datarootdir_seen=
12932 ac_sed_dataroot='
12933 /datarootdir/ {
12934   p
12935   q
12936 }
12937 /@datadir@/p
12938 /@docdir@/p
12939 /@infodir@/p
12940 /@localedir@/p
12941 /@mandir@/p'
12942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12943 *datarootdir*) ac_datarootdir_seen=yes;;
12944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12947 _ACEOF
12948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12949   ac_datarootdir_hack='
12950   s&@datadir@&$datadir&g
12951   s&@docdir@&$docdir&g
12952   s&@infodir@&$infodir&g
12953   s&@localedir@&$localedir&g
12954   s&@mandir@&$mandir&g
12955   s&\\\${datarootdir}&$datarootdir&g' ;;
12956 esac
12957 _ACEOF
12958
12959 # Neutralize VPATH when `$srcdir' = `.'.
12960 # Shell code in configure.ac might set extrasub.
12961 # FIXME: do we really want to maintain this feature?
12962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963 ac_sed_extra="$ac_vpsub
12964 $extrasub
12965 _ACEOF
12966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12967 :t
12968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12969 s|@configure_input@|$ac_sed_conf_input|;t t
12970 s&@top_builddir@&$ac_top_builddir_sub&;t t
12971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12972 s&@srcdir@&$ac_srcdir&;t t
12973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12974 s&@top_srcdir@&$ac_top_srcdir&;t t
12975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12976 s&@builddir@&$ac_builddir&;t t
12977 s&@abs_builddir@&$ac_abs_builddir&;t t
12978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12979 s&@INSTALL@&$ac_INSTALL&;t t
12980 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12981 $ac_datarootdir_hack
12982 "
12983 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12984 if $ac_cs_awk_getline; then
12985   $AWK -f "$ac_tmp/subs.awk"
12986 else
12987   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12988 fi \
12989   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12990
12991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12992   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12993   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12994       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12996 which seems to be undefined.  Please make sure it is defined" >&5
12997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12998 which seems to be undefined.  Please make sure it is defined" >&2;}
12999
13000   rm -f "$ac_tmp/stdin"
13001   case $ac_file in
13002   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13003   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13004   esac \
13005   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13006  ;;
13007   :H)
13008   #
13009   # CONFIG_HEADER
13010   #
13011   if test x"$ac_file" != x-; then
13012     {
13013       $as_echo "/* $configure_input  */" \
13014       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13015     } >"$ac_tmp/config.h" \
13016       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13017     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13018       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13019 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13020     else
13021       rm -f "$ac_file"
13022       mv "$ac_tmp/config.h" "$ac_file" \
13023         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13024     fi
13025   else
13026     $as_echo "/* $configure_input  */" \
13027       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13028       || as_fn_error $? "could not create -" "$LINENO" 5
13029   fi
13030 # Compute "$ac_file"'s index in $config_headers.
13031 _am_arg="$ac_file"
13032 _am_stamp_count=1
13033 for _am_header in $config_headers :; do
13034   case $_am_header in
13035     $_am_arg | $_am_arg:* )
13036       break ;;
13037     * )
13038       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13039   esac
13040 done
13041 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13042 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043          X"$_am_arg" : 'X\(//\)[^/]' \| \
13044          X"$_am_arg" : 'X\(//\)$' \| \
13045          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13046 $as_echo X"$_am_arg" |
13047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13048             s//\1/
13049             q
13050           }
13051           /^X\(\/\/\)[^/].*/{
13052             s//\1/
13053             q
13054           }
13055           /^X\(\/\/\)$/{
13056             s//\1/
13057             q
13058           }
13059           /^X\(\/\).*/{
13060             s//\1/
13061             q
13062           }
13063           s/.*/./; q'`/stamp-h$_am_stamp_count
13064  ;;
13065
13066   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13067 $as_echo "$as_me: executing $ac_file commands" >&6;}
13068  ;;
13069   esac
13070
13071
13072   case $ac_file$ac_mode in
13073     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13074   # Older Autoconf quotes --file arguments for eval, but not when files
13075   # are listed without --file.  Let's play safe and only enable the eval
13076   # if we detect the quoting.
13077   case $CONFIG_FILES in
13078   *\'*) eval set x "$CONFIG_FILES" ;;
13079   *)   set x $CONFIG_FILES ;;
13080   esac
13081   shift
13082   for mf
13083   do
13084     # Strip MF so we end up with the name of the file.
13085     mf=`echo "$mf" | sed -e 's/:.*$//'`
13086     # Check whether this is an Automake generated Makefile or not.
13087     # We used to match only the files named 'Makefile.in', but
13088     # some people rename them; so instead we look at the file content.
13089     # Grep'ing the first line is not enough: some people post-process
13090     # each Makefile.in and add a new line on top of each file to say so.
13091     # Grep'ing the whole file is not good either: AIX grep has a line
13092     # limit of 2048, but all sed's we know have understand at least 4000.
13093     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13094       dirpart=`$as_dirname -- "$mf" ||
13095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096          X"$mf" : 'X\(//\)[^/]' \| \
13097          X"$mf" : 'X\(//\)$' \| \
13098          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13099 $as_echo X"$mf" |
13100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13101             s//\1/
13102             q
13103           }
13104           /^X\(\/\/\)[^/].*/{
13105             s//\1/
13106             q
13107           }
13108           /^X\(\/\/\)$/{
13109             s//\1/
13110             q
13111           }
13112           /^X\(\/\).*/{
13113             s//\1/
13114             q
13115           }
13116           s/.*/./; q'`
13117     else
13118       continue
13119     fi
13120     # Extract the definition of DEPDIR, am__include, and am__quote
13121     # from the Makefile without running 'make'.
13122     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13123     test -z "$DEPDIR" && continue
13124     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13125     test -z "$am__include" && continue
13126     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13127     # Find all dependency output files, they are included files with
13128     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13129     # simplest approach to changing $(DEPDIR) to its actual value in the
13130     # expansion.
13131     for file in `sed -n "
13132       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13133          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13134       # Make sure the directory exists.
13135       test -f "$dirpart/$file" && continue
13136       fdir=`$as_dirname -- "$file" ||
13137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13138          X"$file" : 'X\(//\)[^/]' \| \
13139          X"$file" : 'X\(//\)$' \| \
13140          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13141 $as_echo X"$file" |
13142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13143             s//\1/
13144             q
13145           }
13146           /^X\(\/\/\)[^/].*/{
13147             s//\1/
13148             q
13149           }
13150           /^X\(\/\/\)$/{
13151             s//\1/
13152             q
13153           }
13154           /^X\(\/\).*/{
13155             s//\1/
13156             q
13157           }
13158           s/.*/./; q'`
13159       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13160       # echo "creating $dirpart/$file"
13161       echo '# dummy' > "$dirpart/$file"
13162     done
13163   done
13164 }
13165  ;;
13166     "po-directories":C)
13167     for ac_file in $CONFIG_FILES; do
13168       # Support "outfile[:infile[:infile...]]"
13169       case "$ac_file" in
13170         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13171       esac
13172       # PO directories have a Makefile.in generated from Makefile.in.in.
13173       case "$ac_file" in */Makefile.in)
13174         # Adjust a relative srcdir.
13175         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13176         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
13177         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13178         # In autoconf-2.13 it is called $ac_given_srcdir.
13179         # In autoconf-2.50 it is called $srcdir.
13180         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13181         case "$ac_given_srcdir" in
13182           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13183           /*) top_srcdir="$ac_given_srcdir" ;;
13184           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13185         esac
13186         # Treat a directory as a PO directory if and only if it has a
13187         # POTFILES.in file. This allows packages to have multiple PO
13188         # directories under different names or in different locations.
13189         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13190           rm -f "$ac_dir/POTFILES"
13191           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13192           gt_tab=`printf '\t'`
13193           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13194           POMAKEFILEDEPS="POTFILES.in"
13195           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13196           # on $ac_dir but don't depend on user-specified configuration
13197           # parameters.
13198           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13199             # The LINGUAS file contains the set of available languages.
13200             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13201               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13202             fi
13203             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13204             # Hide the ALL_LINGUAS assignment from automake < 1.5.
13205             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13206             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13207           else
13208             # The set of available languages was given in configure.in.
13209             # Hide the ALL_LINGUAS assignment from automake < 1.5.
13210             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13211           fi
13212           # Compute POFILES
13213           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13214           # Compute UPDATEPOFILES
13215           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13216           # Compute DUMMYPOFILES
13217           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13218           # Compute GMOFILES
13219           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13220           case "$ac_given_srcdir" in
13221             .) srcdirpre= ;;
13222             *) srcdirpre='$(srcdir)/' ;;
13223           esac
13224           POFILES=
13225           UPDATEPOFILES=
13226           DUMMYPOFILES=
13227           GMOFILES=
13228           for lang in $ALL_LINGUAS; do
13229             POFILES="$POFILES $srcdirpre$lang.po"
13230             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13231             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13232             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13233           done
13234           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13235           # environment variable.
13236           INST_LINGUAS=
13237           if test -n "$ALL_LINGUAS"; then
13238             for presentlang in $ALL_LINGUAS; do
13239               useit=no
13240               if test "%UNSET%" != "$LINGUAS"; then
13241                 desiredlanguages="$LINGUAS"
13242               else
13243                 desiredlanguages="$ALL_LINGUAS"
13244               fi
13245               for desiredlang in $desiredlanguages; do
13246                 # Use the presentlang catalog if desiredlang is
13247                 #   a. equal to presentlang, or
13248                 #   b. a variant of presentlang (because in this case,
13249                 #      presentlang can be used as a fallback for messages
13250                 #      which are not translated in the desiredlang catalog).
13251                 case "$desiredlang" in
13252                   "$presentlang"*) useit=yes;;
13253                 esac
13254               done
13255               if test $useit = yes; then
13256                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13257               fi
13258             done
13259           fi
13260           CATALOGS=
13261           if test -n "$INST_LINGUAS"; then
13262             for lang in $INST_LINGUAS; do
13263               CATALOGS="$CATALOGS $lang.gmo"
13264             done
13265           fi
13266           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13267           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"
13268           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13269             if test -f "$f"; then
13270               case "$f" in
13271                 *.orig | *.bak | *~) ;;
13272                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13273               esac
13274             fi
13275           done
13276         fi
13277         ;;
13278       esac
13279     done ;;
13280
13281   esac
13282 done # for ac_tag
13283
13284
13285 as_fn_exit 0
13286 _ACEOF
13287 ac_clean_files=$ac_clean_files_save
13288
13289 test $ac_write_fail = 0 ||
13290   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13291
13292
13293 # configure is writing to config.log, and then calls config.status.
13294 # config.status does its own redirection, appending to config.log.
13295 # Unfortunately, on DOS this fails, as config.log is still kept open
13296 # by configure, so config.status won't be able to write to it; its
13297 # output is simply discarded.  So we exec the FD to /dev/null,
13298 # effectively closing config.log, so it can be properly (re)opened and
13299 # appended to by config.status.  When coming back to configure, we
13300 # need to make the FD available again.
13301 if test "$no_create" != yes; then
13302   ac_cs_success=:
13303   ac_config_status_args=
13304   test "$silent" = yes &&
13305     ac_config_status_args="$ac_config_status_args --quiet"
13306   exec 5>/dev/null
13307   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13308   exec 5>>config.log
13309   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13310   # would make configure fail if this is the last instruction.
13311   $ac_cs_success || as_fn_exit 1
13312 fi
13313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13316 fi
13317
13318
13319 # We only generate the build.sh if we have a build.sh.in; we won't have
13320 # one before we've created a distribution.
13321 if test -f "$srcdir/build.sh.in"; then :
13322    ./config.status --file build.sh
13323   chmod +x build.sh
13324
13325 fi
13326