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