Whamcloud - gitweb
configure: support biarch builds with --multiarch=lib64
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 QUOTA_MAN_COMMENT
719 BLKID_CMT
720 DEPPROFILED_LIBBLKID
721 PROFILED_LIBBLKID
722 DEPSTATIC_LIBBLKID
723 STATIC_LIBBLKID
724 DEPLIBBLKID
725 LIBBLKID
726 UUID_CMT
727 DEPPROFILED_LIBUUID
728 PROFILED_LIBUUID
729 DEPSTATIC_LIBUUID
730 STATIC_LIBUUID
731 DEPLIBUUID
732 LIBUUID
733 PKG_CONFIG
734 TEST_IO_CMT
735 PRIVATE_LIBS_CMT
736 LDFLAG_DYNAMIC
737 PROFILED_LIB_EXT
738 STATIC_LIB_EXT
739 LIB_EXT
740 CHECKER_CMT
741 PROFILE_CMT
742 BSDLIB_CMT
743 ELF_CMT
744 HTREE_CMT
745 Q
746 ES
747 E
748 LINK_BUILD_FLAGS
749 SYMLINK_RELATIVE
750 LINK_INSTALL_FLAGS
751 MAINTAINER_CMT
752 CPP
753 RDYNAMIC
754 DLOPEN_LIB
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 E2FSPROGS_PKGVER
771 E2FSPROGS_VERSION
772 E2FSPROGS_DAY
773 E2FSPROGS_MONTH
774 E2FSPROGS_YEAR
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files='MCONFIG
814 MAKEFILE_ELF
815 MAKEFILE_BSDLIB
816 MAKEFILE_PROFILE
817 MAKEFILE_CHECKER
818 MAKEFILE_LIBRARY
819 ASM_TYPES_HEADER
820 PUBLIC_CONFIG_HEADER'
821 ac_user_opts='
822 enable_option_checking
823 with_diet_libc
824 with_cc
825 with_ccopts
826 with_ldopts
827 with_root_prefix
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
832 enable_symlink_build
833 enable_verbose_makecmds
834 enable_compression
835 enable_htree
836 enable_elf_shlibs
837 enable_bsd_shlibs
838 enable_profile
839 enable_checker
840 enable_jbd_debug
841 enable_blkid_debug
842 enable_testio_debug
843 enable_libuuid
844 enable_libblkid
845 enable_quota
846 enable_backtrace
847 enable_debugfs
848 enable_imager
849 enable_resizer
850 enable_defrag
851 enable_fsck
852 enable_e2initrd_helper
853 enable_tls
854 enable_uuidd
855 enable_nls
856 with_gnu_ld
857 enable_rpath
858 with_libiconv_prefix
859 with_included_gettext
860 with_libintl_prefix
861 with_multiarch
862 '
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
871 CPP
872 PKG_CONFIG'
873
874
875 # Initialize some variables set by options.
876 ac_init_help=
877 ac_init_version=false
878 ac_unrecognized_opts=
879 ac_unrecognized_sep=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
896
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927   # If the previous option needs an argument, assign it.
928   if test -n "$ac_prev"; then
929     eval $ac_prev=\$ac_option
930     ac_prev=
931     continue
932   fi
933
934   case $ac_option in
935   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936   *=)   ac_optarg= ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error $? "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=no ;;
993
994   -docdir | --docdir | --docdi | --doc | --do)
995     ac_prev=docdir ;;
996   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997     docdir=$ac_optarg ;;
998
999   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000     ac_prev=dvidir ;;
1001   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002     dvidir=$ac_optarg ;;
1003
1004   -enable-* | --enable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477
1478   cat <<\_ACEOF
1479
1480 Optional Features:
1481   --disable-option-checking  ignore unrecognized --enable/--with options
1482   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484   --enable-maintainer-mode enable makefile rules useful for maintainers
1485   --enable-symlink-install use symlinks when installing instead of hard links
1486   --enable-relative-symlinks use relative symlinks when installing
1487
1488   --enable-symlink-build  use symlinks while building instead of hard links
1489   --enable-verbose-makecmds enable verbose make command output
1490   --enable-compression    enable EXPERIMENTAL compression support
1491   --enable-htree          enable EXPERIMENTAL htree directory support
1492   --enable-elf-shlibs     select ELF shared libraries
1493   --enable-bsd-shlibs     select BSD shared libraries
1494   --enable-profile        build profiling libraries
1495   --enable-checker        build checker libraries
1496   --enable-jbd-debug      enable journal debugging
1497   --enable-blkid-debug    enable blkid debugging
1498   --disable-testio-debug  disable the use of the test I/O manager for debugging
1499   --disable-libuuid       do not build private uuid library
1500   --disable-libblkid      do not build private blkid library
1501   --enable-quota          enable quota support
1502   --disable-backtrace     disable use backtrace
1503   --disable-debugfs       disable support of debugfs program
1504   --disable-imager        disable support of e2image program
1505   --disable-resizer       disable support of e2resize program
1506   --disable-defrag        disable support of e4defrag program
1507   --enable-fsck           build fsck wrapper program
1508   --enable-e2initrd-helper build e2initrd-helper program
1509   --disable-tls           disable use of thread local support
1510   --disable-uuidd         disable building the uuid daemon
1511   --disable-nls           do not use Native Language Support
1512   --disable-rpath         do not hardcode runtime library paths
1513
1514 Optional Packages:
1515   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517   --with-diet-libc        use diet libc
1518   --with-cc               no longer supported, use CC= instead
1519   --with-ccopts           no longer supported, use CFLAGS= instead
1520   --with-ldopts           no longer supported, use LDFLAGS= instead
1521   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1523   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1524   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1525   --with-included-gettext use the GNU gettext library included here
1526   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1527   --without-libintl-prefix     don't search for libintl in includedir and libdir
1528   --with-multiarch=ARCH specify the multiarch triplet
1529
1530 Some influential environment variables:
1531   CC          C compiler command
1532   CFLAGS      C compiler flags
1533   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1534               nonstandard directory <lib dir>
1535   LIBS        libraries to pass to the linker, e.g. -l<library>
1536   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537               you have headers in a nonstandard directory <include dir>
1538   CPP         C preprocessor
1539   PKG_CONFIG  path to pkg-config utility
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to the package provider.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550   # If there are subdirs, report their specific --help.
1551   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552     test -d "$ac_dir" ||
1553       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554       continue
1555     ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561   # A ".." for each directory in $ac_dir_suffix.
1562   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563   case $ac_top_builddir_sub in
1564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566   esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574   .)  # We are building in place.
1575     ac_srcdir=.
1576     ac_top_srcdir=$ac_top_builddir_sub
1577     ac_abs_top_srcdir=$ac_pwd ;;
1578   [\\/]* | ?:[\\/]* )  # Absolute name.
1579     ac_srcdir=$srcdir$ac_dir_suffix;
1580     ac_top_srcdir=$srcdir
1581     ac_abs_top_srcdir=$srcdir ;;
1582   *) # Relative name.
1583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584     ac_top_srcdir=$ac_top_build_prefix$srcdir
1585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589     cd "$ac_dir" || { ac_status=$?; continue; }
1590     # Check for guested configure.
1591     if test -f "$ac_srcdir/configure.gnu"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594     elif test -f "$ac_srcdir/configure"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure" --help=recursive
1597     else
1598       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599     fi || ac_status=$?
1600     cd "$ac_pwd" || { ac_status=$?; break; }
1601   done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606   cat <<\_ACEOF
1607 configure
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614   exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext
1628   if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_compile") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest.$ac_objext; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652         ac_retval=1
1653 fi
1654   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655   as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   rm -f conftest.$ac_objext conftest$ac_exeext
1666   if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669   *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673   (eval "$ac_link") 2>conftest.err
1674   ac_status=$?
1675   if test -s conftest.err; then
1676     grep -v '^ *+' conftest.err >conftest.er1
1677     cat conftest.er1 >&5
1678     mv -f conftest.er1 conftest.err
1679   fi
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && {
1682          test -z "$ac_c_werror_flag" ||
1683          test ! -s conftest.err
1684        } && test -s conftest$ac_exeext && {
1685          test "$cross_compiling" = yes ||
1686          test -x conftest$ac_exeext
1687        }; then :
1688   ac_retval=0
1689 else
1690   $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693         ac_retval=1
1694 fi
1695   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697   # interfere with the next link command; also delete a directory that is
1698   # left behind by Apple's compiler.  We do this before executing the actions.
1699   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701   as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_cpp ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719   ac_status=$?
1720   if test -s conftest.err; then
1721     grep -v '^ *+' conftest.err >conftest.er1
1722     cat conftest.er1 >&5
1723     mv -f conftest.er1 conftest.err
1724   fi
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } > conftest.i && {
1727          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728          test ! -s conftest.err
1729        }; then :
1730   ac_retval=0
1731 else
1732   $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735     ac_retval=1
1736 fi
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738   as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_cpp
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_link") 2>&5
1757   ac_status=$?
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760   { { case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_try") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; }; }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: program exited with status $ac_status" >&5
1773        $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776        ac_retval=$ac_status
1777 fi
1778   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780   as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_run
1783
1784 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785 # -------------------------------------------
1786 # Tests whether TYPE exists after having included INCLUDES, setting cache
1787 # variable VAR accordingly.
1788 ac_fn_c_check_type ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794   $as_echo_n "(cached) " >&6
1795 else
1796   eval "$3=no"
1797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 $4
1800 int
1801 main ()
1802 {
1803 if (sizeof ($2))
1804          return 0;
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 int
1814 main ()
1815 {
1816 if (sizeof (($2)))
1817             return 0;
1818   ;
1819   return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823
1824 else
1825   eval "$3=yes"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_type
1837
1838 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists and can be compiled using the include files in
1841 # INCLUDES, setting the cache variable VAR accordingly.
1842 ac_fn_c_check_header_compile ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848   $as_echo_n "(cached) " >&6
1849 else
1850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h.  */
1852 $4
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1856   eval "$3=yes"
1857 else
1858   eval "$3=no"
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_compile
1868
1869 # ac_fn_c_check_func LINENO FUNC VAR
1870 # ----------------------------------
1871 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1872 ac_fn_c_check_func ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878   $as_echo_n "(cached) " >&6
1879 else
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1884 #define $2 innocuous_$2
1885
1886 /* System header to define __stub macros and hopefully few prototypes,
1887     which can conflict with char $2 (); below.
1888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889     <limits.h> exists even on freestanding compilers.  */
1890
1891 #ifdef __STDC__
1892 # include <limits.h>
1893 #else
1894 # include <assert.h>
1895 #endif
1896
1897 #undef $2
1898
1899 /* Override any GCC internal prototype to avoid an error.
1900    Use char because int might match the return type of a GCC
1901    builtin and then its argument prototype would still apply.  */
1902 #ifdef __cplusplus
1903 extern "C"
1904 #endif
1905 char $2 ();
1906 /* The GNU C library defines this for functions which it implements
1907     to always fail with ENOSYS.  Some functions are actually named
1908     something starting with __ and the normal name is an alias.  */
1909 #if defined __stub_$2 || defined __stub___$2
1910 choke me
1911 #endif
1912
1913 int
1914 main ()
1915 {
1916 return $2 ();
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_link "$LINENO"; then :
1922   eval "$3=yes"
1923 else
1924   eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext \
1927     conftest$ac_exeext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_check_func
1935
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1940 # accordingly.
1941 ac_fn_c_check_header_mongrel ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if eval \${$3+:} false; then :
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 fi
1950 eval ac_res=\$$3
1951                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 else
1954   # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_header_compiler=yes
1964 else
1965   ac_header_compiler=no
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1970
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979   ac_header_preproc=yes
1980 else
1981   ac_header_preproc=no
1982 fi
1983 rm -f conftest.err conftest.i conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1986
1987 # So?  What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989   yes:no: )
1990     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994     ;;
1995   no:yes:* )
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006     ;;
2007 esac
2008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011   $as_echo_n "(cached) " >&6
2012 else
2013   eval "$3=\$ac_header_compiler"
2014 fi
2015 eval ac_res=\$$3
2016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 fi
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_header_mongrel
2022
2023 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2024 # --------------------------------------------
2025 # Tries to find the compile-time value of EXPR in a program that includes
2026 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2027 # computed
2028 ac_fn_c_compute_int ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   if test "$cross_compiling" = yes; then
2032     # Depending upon the size, compute the lo and hi bounds.
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h.  */
2035 $4
2036 int
2037 main ()
2038 {
2039 static int test_array [1 - 2 * !(($2) >= 0)];
2040 test_array [0] = 0;
2041 return test_array [0];
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   ac_lo=0 ac_mid=0
2049   while :; do
2050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 test_array [0] = 0;
2058 return test_array [0];
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   ac_hi=$ac_mid; break
2066 else
2067   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2068                         if test $ac_lo -le $ac_mid; then
2069                           ac_lo= ac_hi=
2070                           break
2071                         fi
2072                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075   done
2076 else
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 static int test_array [1 - 2 * !(($2) < 0)];
2084 test_array [0] = 0;
2085 return test_array [0];
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092   ac_hi=-1 ac_mid=-1
2093   while :; do
2094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2101 test_array [0] = 0;
2102 return test_array [0];
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   ac_lo=$ac_mid; break
2110 else
2111   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112                         if test $ac_mid -le $ac_hi; then
2113                           ac_lo= ac_hi=
2114                           break
2115                         fi
2116                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119   done
2120 else
2121   ac_lo= ac_hi=
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 # Binary search between lo and hi bounds.
2127 while test "x$ac_lo" != "x$ac_hi"; do
2128   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $4
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 test_array [0] = 0;
2137 return test_array [0];
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   ac_hi=$ac_mid
2145 else
2146   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 done
2150 case $ac_lo in #((
2151 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152 '') ac_retval=1 ;;
2153 esac
2154   else
2155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 static long int longval () { return $2; }
2159 static unsigned long int ulongval () { return $2; }
2160 #include <stdio.h>
2161 #include <stdlib.h>
2162 int
2163 main ()
2164 {
2165
2166   FILE *f = fopen ("conftest.val", "w");
2167   if (! f)
2168     return 1;
2169   if (($2) < 0)
2170     {
2171       long int i = longval ();
2172       if (i != ($2))
2173         return 1;
2174       fprintf (f, "%ld", i);
2175     }
2176   else
2177     {
2178       unsigned long int i = ulongval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%lu", i);
2182     }
2183   /* Do not output a trailing newline, as this causes \r\n confusion
2184      on some platforms.  */
2185   return ferror (f) || fclose (f) != 0;
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_run "$LINENO"; then :
2192   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193 else
2194   ac_retval=1
2195 fi
2196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197   conftest.$ac_objext conftest.beam conftest.$ac_ext
2198 rm -f conftest.val
2199
2200   fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_c_compute_int
2205
2206 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207 # ----------------------------------------------------
2208 # Tries to find if the field MEMBER exists in type AGGR, after including
2209 # INCLUDES, setting cache variable VAR accordingly.
2210 ac_fn_c_check_member ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214 $as_echo_n "checking for $2.$3... " >&6; }
2215 if eval \${$4+:} false; then :
2216   $as_echo_n "(cached) " >&6
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $5
2221 int
2222 main ()
2223 {
2224 static $2 ac_aggr;
2225 if (ac_aggr.$3)
2226 return 0;
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   eval "$4=yes"
2233 else
2234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $5
2237 int
2238 main ()
2239 {
2240 static $2 ac_aggr;
2241 if (sizeof ac_aggr.$3)
2242 return 0;
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   eval "$4=yes"
2249 else
2250   eval "$4=no"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 eval ac_res=\$$4
2257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
2261 } # ac_fn_c_check_member
2262
2263 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2264 # ---------------------------------------------
2265 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 # accordingly.
2267 ac_fn_c_check_decl ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   as_decl_name=`echo $2|sed 's/ *(.*//'`
2271   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2274 if eval \${$3+:} false; then :
2275   $as_echo_n "(cached) " >&6
2276 else
2277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h.  */
2279 $4
2280 int
2281 main ()
2282 {
2283 #ifndef $as_decl_name
2284 #ifdef __cplusplus
2285   (void) $as_decl_use;
2286 #else
2287   (void) $as_decl_name;
2288 #endif
2289 #endif
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   eval "$3=yes"
2297 else
2298   eval "$3=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$3
2303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306
2307 } # ac_fn_c_check_decl
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2311
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.69.  Invocation command line was
2314
2315   $ $0 $@
2316
2317 _ACEOF
2318 exec 5>>config.log
2319 {
2320 cat <<_ASUNAME
2321 ## --------- ##
2322 ## Platform. ##
2323 ## --------- ##
2324
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2333
2334 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2335 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2338 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2339 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2340 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2341
2342 _ASUNAME
2343
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349     $as_echo "PATH: $as_dir"
2350   done
2351 IFS=$as_save_IFS
2352
2353 } >&5
2354
2355 cat >&5 <<_ACEOF
2356
2357
2358 ## ----------- ##
2359 ## Core tests. ##
2360 ## ----------- ##
2361
2362 _ACEOF
2363
2364
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2370 ac_configure_args=
2371 ac_configure_args0=
2372 ac_configure_args1=
2373 ac_must_keep_next=false
2374 for ac_pass in 1 2
2375 do
2376   for ac_arg
2377   do
2378     case $ac_arg in
2379     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381     | -silent | --silent | --silen | --sile | --sil)
2382       continue ;;
2383     *\'*)
2384       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385     esac
2386     case $ac_pass in
2387     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388     2)
2389       as_fn_append ac_configure_args1 " '$ac_arg'"
2390       if test $ac_must_keep_next = true; then
2391         ac_must_keep_next=false # Got value, back to normal.
2392       else
2393         case $ac_arg in
2394           *=* | --config-cache | -C | -disable-* | --disable-* \
2395           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397           | -with-* | --with-* | -without-* | --without-* | --x)
2398             case "$ac_configure_args0 " in
2399               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400             esac
2401             ;;
2402           -* ) ac_must_keep_next=true ;;
2403         esac
2404       fi
2405       as_fn_append ac_configure_args " '$ac_arg'"
2406       ;;
2407     esac
2408   done
2409 done
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2412
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log.  We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419   # Save into config.log some information that might help in debugging.
2420   {
2421     echo
2422
2423     $as_echo "## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##"
2426     echo
2427     # The following way of writing the cache mishandles newlines in values,
2428 (
2429   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430     eval ac_val=\$$ac_var
2431     case $ac_val in #(
2432     *${as_nl}*)
2433       case $ac_var in #(
2434       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436       esac
2437       case $ac_var in #(
2438       _ | IFS | as_nl) ;; #(
2439       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440       *) { eval $ac_var=; unset $ac_var;} ;;
2441       esac ;;
2442     esac
2443   done
2444   (set) 2>&1 |
2445     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446     *${as_nl}ac_space=\ *)
2447       sed -n \
2448         "s/'\''/'\''\\\\'\'''\''/g;
2449           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450       ;; #(
2451     *)
2452       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2453       ;;
2454     esac |
2455     sort
2456 )
2457     echo
2458
2459     $as_echo "## ----------------- ##
2460 ## Output variables. ##
2461 ## ----------------- ##"
2462     echo
2463     for ac_var in $ac_subst_vars
2464     do
2465       eval ac_val=\$$ac_var
2466       case $ac_val in
2467       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468       esac
2469       $as_echo "$ac_var='\''$ac_val'\''"
2470     done | sort
2471     echo
2472
2473     if test -n "$ac_subst_files"; then
2474       $as_echo "## ------------------- ##
2475 ## File substitutions. ##
2476 ## ------------------- ##"
2477       echo
2478       for ac_var in $ac_subst_files
2479       do
2480         eval ac_val=\$$ac_var
2481         case $ac_val in
2482         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483         esac
2484         $as_echo "$ac_var='\''$ac_val'\''"
2485       done | sort
2486       echo
2487     fi
2488
2489     if test -s confdefs.h; then
2490       $as_echo "## ----------- ##
2491 ## confdefs.h. ##
2492 ## ----------- ##"
2493       echo
2494       cat confdefs.h
2495       echo
2496     fi
2497     test "$ac_signal" != 0 &&
2498       $as_echo "$as_me: caught signal $ac_signal"
2499     $as_echo "$as_me: exit $exit_status"
2500   } >&5
2501   rm -f core *.core core.conftest.* &&
2502     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2503     exit $exit_status
2504 ' 0
2505 for ac_signal in 1 2 13 15; do
2506   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2507 done
2508 ac_signal=0
2509
2510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2511 rm -f -r conftest* confdefs.h
2512
2513 $as_echo "/* confdefs.h */" > confdefs.h
2514
2515 # Predefined preprocessor variables.
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_NAME "$PACKAGE_NAME"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_STRING "$PACKAGE_STRING"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535 _ACEOF
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_URL "$PACKAGE_URL"
2539 _ACEOF
2540
2541
2542 # Let the site file select an alternate cache file if it wants to.
2543 # Prefer an explicitly selected file to automatically selected ones.
2544 ac_site_file1=NONE
2545 ac_site_file2=NONE
2546 if test -n "$CONFIG_SITE"; then
2547   # We do not want a PATH search for config.site.
2548   case $CONFIG_SITE in #((
2549     -*)  ac_site_file1=./$CONFIG_SITE;;
2550     */*) ac_site_file1=$CONFIG_SITE;;
2551     *)   ac_site_file1=./$CONFIG_SITE;;
2552   esac
2553 elif test "x$prefix" != xNONE; then
2554   ac_site_file1=$prefix/share/config.site
2555   ac_site_file2=$prefix/etc/config.site
2556 else
2557   ac_site_file1=$ac_default_prefix/share/config.site
2558   ac_site_file2=$ac_default_prefix/etc/config.site
2559 fi
2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 do
2562   test "x$ac_site_file" = xNONE && continue
2563   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2564     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566     sed 's/^/| /' "$ac_site_file" >&5
2567     . "$ac_site_file" \
2568       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2572   fi
2573 done
2574
2575 if test -r "$cache_file"; then
2576   # Some versions of bash will fail to source /dev/null (special files
2577   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2578   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581     case $cache_file in
2582       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583       *)                      . "./$cache_file";;
2584     esac
2585   fi
2586 else
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2589   >$cache_file
2590 fi
2591
2592 as_fn_append ac_header_list " stdlib.h"
2593 as_fn_append ac_header_list " unistd.h"
2594 as_fn_append ac_header_list " sys/param.h"
2595 # Check that the precious variables saved in the cache have kept the same
2596 # value.
2597 ac_cache_corrupted=false
2598 for ac_var in $ac_precious_vars; do
2599   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600   eval ac_new_set=\$ac_env_${ac_var}_set
2601   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602   eval ac_new_val=\$ac_env_${ac_var}_value
2603   case $ac_old_set,$ac_new_set in
2604     set,)
2605       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607       ac_cache_corrupted=: ;;
2608     ,set)
2609       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611       ac_cache_corrupted=: ;;
2612     ,);;
2613     *)
2614       if test "x$ac_old_val" != "x$ac_new_val"; then
2615         # differences in whitespace do not lead to failure.
2616         ac_old_val_w=`echo x $ac_old_val`
2617         ac_new_val_w=`echo x $ac_new_val`
2618         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621           ac_cache_corrupted=:
2622         else
2623           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625           eval $ac_var=\$ac_old_val
2626         fi
2627         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2628 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2629         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2630 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2631       fi;;
2632   esac
2633   # Pass precious variables to config.status.
2634   if test "$ac_new_set" = set; then
2635     case $ac_new_val in
2636     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637     *) ac_arg=$ac_var=$ac_new_val ;;
2638     esac
2639     case " $ac_configure_args " in
2640       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2641       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642     esac
2643   fi
2644 done
2645 if $ac_cache_corrupted; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 fi
2652 ## -------------------- ##
2653 ## Main body of script. ##
2654 ## -------------------- ##
2655
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
2662
2663
2664 ac_aux_dir=
2665 for ac_dir in config "$srcdir"/config; do
2666   if test -f "$ac_dir/install-sh"; then
2667     ac_aux_dir=$ac_dir
2668     ac_install_sh="$ac_aux_dir/install-sh -c"
2669     break
2670   elif test -f "$ac_dir/install.sh"; then
2671     ac_aux_dir=$ac_dir
2672     ac_install_sh="$ac_aux_dir/install.sh -c"
2673     break
2674   elif test -f "$ac_dir/shtool"; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/shtool install -c"
2677     break
2678   fi
2679 done
2680 if test -z "$ac_aux_dir"; then
2681   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2682 fi
2683
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2691
2692
2693 ac_config_headers="$ac_config_headers lib/config.h"
2694
2695
2696 MCONFIG=./MCONFIG
2697
2698 BINARY_TYPE=bin
2699 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2700         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2701 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2702         | tr \" " "`
2703 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2704 MONTH=`echo $DATE | awk -F- '{print $2}'`
2705 YEAR=`echo $DATE | awk -F- '{print $3}'`
2706
2707 if expr $YEAR ">" 1900 > /dev/null ; then
2708         E2FSPROGS_YEAR=$YEAR
2709 elif expr $YEAR ">" 90 >/dev/null ; then
2710         E2FSPROGS_YEAR=19$YEAR
2711 else
2712         E2FSPROGS_YEAR=20$YEAR
2713 fi
2714
2715 case $MONTH in
2716 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2717 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2718 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2719 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2720 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2721 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2722 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2723 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2724 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2725 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2726 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2727 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2728 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2729 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2730 esac
2731
2732 base_ver=`echo $E2FSPROGS_VERSION | \
2733                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2734
2735 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2736
2737 case $E2FSPROGS_VERSION in
2738 *-WIP|pre-*)
2739         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2740         ;;
2741 *)
2742         E2FSPROGS_PKGVER="$base_ver"
2743         ;;
2744 esac
2745
2746 unset DATE MONTH YEAR base_ver pre_vers date_spec
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2748 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2750 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2751
2752
2753
2754
2755
2756 WITH_DIET_LIBC=
2757
2758 # Check whether --with-diet-libc was given.
2759 if test "${with_diet_libc+set}" = set; then :
2760   withval=$with_diet_libc; CC="diet cc -nostdinc"
2761 WITH_DIET_LIBC=yes
2762 if test -z "$LIBS"
2763 then
2764         LIBS="-lcompat"
2765 else
2766         LIBS="$LIBS -lcompat"
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2769 $as_echo "CC=$CC" >&6; }
2770 fi
2771 # Make sure we can run config.sub.
2772 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2773   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2776 $as_echo_n "checking build system type... " >&6; }
2777 if ${ac_cv_build+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   ac_build_alias=$build_alias
2781 test "x$ac_build_alias" = x &&
2782   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783 test "x$ac_build_alias" = x &&
2784   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2786   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2787
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2790 $as_echo "$ac_cv_build" >&6; }
2791 case $ac_cv_build in
2792 *-*-*) ;;
2793 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2794 esac
2795 build=$ac_cv_build
2796 ac_save_IFS=$IFS; IFS='-'
2797 set x $ac_cv_build
2798 shift
2799 build_cpu=$1
2800 build_vendor=$2
2801 shift; shift
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2804 build_os=$*
2805 IFS=$ac_save_IFS
2806 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2807
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2810 $as_echo_n "checking host system type... " >&6; }
2811 if ${ac_cv_host+:} false; then :
2812   $as_echo_n "(cached) " >&6
2813 else
2814   if test "x$host_alias" = x; then
2815   ac_cv_host=$ac_cv_build
2816 else
2817   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2819 fi
2820
2821 fi
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2823 $as_echo "$ac_cv_host" >&6; }
2824 case $ac_cv_host in
2825 *-*-*) ;;
2826 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2827 esac
2828 host=$ac_cv_host
2829 ac_save_IFS=$IFS; IFS='-'
2830 set x $ac_cv_host
2831 shift
2832 host_cpu=$1
2833 host_vendor=$2
2834 shift; shift
2835 # Remember, the first character of IFS is used to create $*,
2836 # except with old shells:
2837 host_os=$*
2838 IFS=$ac_save_IFS
2839 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2840
2841
2842 DLOPEN_LIB=''
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$CC"; then
2857   ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_exec_ext in '' $ac_executable_extensions; do
2865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871   done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_CC"; then
2888   ac_ct_CC=$CC
2889   # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   if test -n "$ac_ct_CC"; then
2897   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904     for ac_exec_ext in '' $ac_executable_extensions; do
2905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906     ac_cv_prog_ac_ct_CC="gcc"
2907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911   done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925   if test "x$ac_ct_CC" = x; then
2926     CC=""
2927   else
2928     case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934     CC=$ac_ct_CC
2935   fi
2936 else
2937   CC="$ac_cv_prog_CC"
2938 fi
2939
2940 if test -z "$CC"; then
2941           if test -n "$ac_tool_prefix"; then
2942     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$CC"; then
2950   ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     for ac_exec_ext in '' $ac_executable_extensions; do
2958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_prog_CC="${ac_tool_prefix}cc"
2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964   done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979   fi
2980 fi
2981 if test -z "$CC"; then
2982   # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   if test -n "$CC"; then
2990   ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992   ac_prog_rejected=no
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998     for ac_exec_ext in '' $ac_executable_extensions; do
2999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001        ac_prog_rejected=yes
3002        continue
3003      fi
3004     ac_cv_prog_CC="cc"
3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006     break 2
3007   fi
3008 done
3009   done
3010 IFS=$as_save_IFS
3011
3012 if test $ac_prog_rejected = yes; then
3013   # We found a bogon in the path, so make sure we never use it.
3014   set dummy $ac_cv_prog_CC
3015   shift
3016   if test $# != 0; then
3017     # We chose a different compiler from the bogus one.
3018     # However, it has the same basename, so the bogon will be chosen
3019     # first if we set CC to just the basename; use the full file name.
3020     shift
3021     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3022   fi
3023 fi
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 fi
3037 if test -z "$CC"; then
3038   if test -n "$ac_tool_prefix"; then
3039   for ac_prog in cl.exe
3040   do
3041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$CC"; then
3049   ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078     test -n "$CC" && break
3079   done
3080 fi
3081 if test -z "$CC"; then
3082   ac_ct_CC=$CC
3083   for ac_prog in cl.exe
3084 do
3085   # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$ac_ct_CC"; then
3093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102     ac_cv_prog_ac_ct_CC="$ac_prog"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122   test -n "$ac_ct_CC" && break
3123 done
3124
3125   if test "x$ac_ct_CC" = x; then
3126     CC=""
3127   else
3128     case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134     CC=$ac_ct_CC
3135   fi
3136 fi
3137
3138 fi
3139
3140
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3145
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148 set X $ac_compile
3149 ac_compiler=$2
3150 for ac_option in --version -v -V -qversion; do
3151   { { ac_try="$ac_compiler $ac_option >&5"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159   ac_status=$?
3160   if test -s conftest.err; then
3161     sed '10a\
3162 ... rest of stderr output deleted ...
3163          10q' conftest.err >conftest.er1
3164     cat conftest.er1 >&5
3165   fi
3166   rm -f conftest.er1 conftest.err
3167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168   test $ac_status = 0; }
3169 done
3170
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h.  */
3173
3174 int
3175 main ()
3176 {
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3186 # of exeext.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 $as_echo_n "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194 ac_rmfiles=
3195 for ac_file in $ac_files
3196 do
3197   case $ac_file in
3198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200   esac
3201 done
3202 rm -f $ac_rmfiles
3203
3204 if { { ac_try="$ac_link_default"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_link_default") 2>&5
3212   ac_status=$?
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }; then :
3215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3219 # Autoconf.
3220 for ac_file in $ac_files ''
3221 do
3222   test -f "$ac_file" || continue
3223   case $ac_file in
3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225         ;;
3226     [ab].out )
3227         # We found the default executable, but exeext='' is most
3228         # certainly right.
3229         break;;
3230     *.* )
3231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232         then :; else
3233            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234         fi
3235         # We set ac_cv_exeext here because the later test for it is not
3236         # safe: cross compilers may not add the suffix if given an `-o'
3237         # argument, so we may need to know it at that point already.
3238         # Even if this section looks crufty: it has the advantage of
3239         # actually working.
3240         break;;
3241     * )
3242         break;;
3243   esac
3244 done
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247 else
3248   ac_file=''
3249 fi
3250 if test -z "$ac_file"; then :
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error 77 "C compiler cannot create executables
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3269
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_link") 2>&5
3282   ac_status=$?
3283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284   test $ac_status = 0; }; then :
3285   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 # `rm'.
3289 for ac_file in conftest.exe conftest conftest.*; do
3290   test -f "$ac_file" || continue
3291   case $ac_file in
3292     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294           break;;
3295     * ) break;;
3296   esac
3297 done
3298 else
3299   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 fi
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3307
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3310 ac_exeext=$EXEEXT
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h.  */
3313 #include <stdio.h>
3314 int
3315 main ()
3316 {
3317 FILE *f = fopen ("conftest.out", "w");
3318  return ferror (f) || fclose (f) != 0;
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run.  If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330   { { ac_try="$ac_link"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337   (eval "$ac_link") 2>&5
3338   ac_status=$?
3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340   test $ac_status = 0; }
3341   if { ac_try='./conftest$ac_cv_exeext'
3342   { { case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351   test $ac_status = 0; }; }; then
3352     cross_compiling=no
3353   else
3354     if test "$cross_compiling" = maybe; then
3355         cross_compiling=yes
3356     else
3357         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details" "$LINENO" 5; }
3362     fi
3363   fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3367
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if ${ac_cv_objext+:} false; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h.  */
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394   (eval "$ac_compile") 2>&5
3395   ac_status=$?
3396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397   test $ac_status = 0; }; then :
3398   for ac_file in conftest.o conftest.obj conftest.*; do
3399   test -f "$ac_file" || continue;
3400   case $ac_file in
3401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403        break;;
3404   esac
3405 done
3406 else
3407   $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3420 ac_objext=$OBJEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if ${ac_cv_c_compiler_gnu+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428
3429 int
3430 main ()
3431 {
3432 #ifndef __GNUC__
3433        choke me
3434 #endif
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441   ac_compiler_gnu=yes
3442 else
3443   ac_compiler_gnu=no
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3452   GCC=yes
3453 else
3454   GCC=
3455 fi
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if ${ac_cv_prog_cc_g+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   ac_save_c_werror_flag=$ac_c_werror_flag
3464    ac_c_werror_flag=yes
3465    ac_cv_prog_cc_g=no
3466    CFLAGS="-g"
3467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479   ac_cv_prog_cc_g=yes
3480 else
3481   CFLAGS=""
3482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494
3495 else
3496   ac_c_werror_flag=$ac_save_c_werror_flag
3497          CFLAGS="-g"
3498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510   ac_cv_prog_cc_g=yes
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517    ac_c_werror_flag=$ac_save_c_werror_flag
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522   CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524   if test "$GCC" = yes; then
3525     CFLAGS="-g -O2"
3526   else
3527     CFLAGS="-g"
3528   fi
3529 else
3530   if test "$GCC" = yes; then
3531     CFLAGS="-O2"
3532   else
3533     CFLAGS=
3534   fi
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if ${ac_cv_prog_cc_c89+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   ac_cv_prog_cc_c89=no
3542 ac_save_CC=$CC
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 struct stat;
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3552      char **p;
3553      int i;
3554 {
3555   return p[i];
3556 }
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3558 {
3559   char *s;
3560   va_list v;
3561   va_start (v,p);
3562   s = g (p, va_arg (v,int));
3563   va_end (v);
3564   return s;
3565 }
3566
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3568    function prototypes and stuff, but not '\xHH' hex character constants.
3569    These don't provoke an error unfortunately, instead are silently treated
3570    as 'x'.  The following induces an error, until -std is added to get
3571    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3572    array size at least.  It's necessary to write '\x00'==0 to get something
3573    that's true only with -std.  */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577    inside strings and character constants.  */
3578 #define FOO(x) 'x'
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 int argc;
3586 char **argv;
3587 int
3588 main ()
3589 {
3590 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 do
3598   CC="$ac_save_CC $ac_arg"
3599   if ac_fn_c_try_compile "$LINENO"; then :
3600   ac_cv_prog_cc_c89=$ac_arg
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext
3603   test "x$ac_cv_prog_cc_c89" != "xno" && break
3604 done
3605 rm -f conftest.$ac_ext
3606 CC=$ac_save_CC
3607
3608 fi
3609 # AC_CACHE_VAL
3610 case "x$ac_cv_prog_cc_c89" in
3611   x)
3612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613 $as_echo "none needed" >&6; } ;;
3614   xno)
3615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616 $as_echo "unsupported" >&6; } ;;
3617   *)
3618     CC="$CC $ac_cv_prog_cc_c89"
3619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621 esac
3622 if test "x$ac_cv_prog_cc_c89" != xno; then :
3623
3624 fi
3625
3626 ac_ext=c
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3635 if ${ac_cv_lib_dl_dlopen+:} false; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   ac_check_lib_save_LIBS=$LIBS
3639 LIBS="-ldl  $LIBS"
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642
3643 /* Override any GCC internal prototype to avoid an error.
3644    Use char because int might match the return type of a GCC
3645    builtin and then its argument prototype would still apply.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 char dlopen ();
3650 int
3651 main ()
3652 {
3653 return dlopen ();
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_link "$LINENO"; then :
3659   ac_cv_lib_dl_dlopen=yes
3660 else
3661   ac_cv_lib_dl_dlopen=no
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext \
3664     conftest$ac_exeext conftest.$ac_ext
3665 LIBS=$ac_check_lib_save_LIBS
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3670   DLOPEN_LIB=-ldl
3671
3672 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3673
3674 fi
3675
3676
3677
3678 # Check whether --with-cc was given.
3679 if test "${with_cc+set}" = set; then :
3680   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3681 fi
3682
3683
3684 # Check whether --with-ccopts was given.
3685 if test "${with_ccopts+set}" = set; then :
3686   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3687 fi
3688
3689
3690 # Check whether --with-ldopts was given.
3691 if test "${with_ldopts+set}" = set; then :
3692   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3693 fi
3694
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 if test -n "$ac_tool_prefix"; then
3701   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   if test -n "$CC"; then
3709   ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723   done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738 fi
3739 if test -z "$ac_cv_prog_CC"; then
3740   ac_ct_CC=$CC
3741   # Extract the first word of "gcc", so it can be a program name with args.
3742 set dummy gcc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   if test -n "$ac_ct_CC"; then
3749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758     ac_cv_prog_ac_ct_CC="gcc"
3759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763   done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 $as_echo "$ac_ct_CC" >&6; }
3772 else
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777   if test "x$ac_ct_CC" = x; then
3778     CC=""
3779   else
3780     case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786     CC=$ac_ct_CC
3787   fi
3788 else
3789   CC="$ac_cv_prog_CC"
3790 fi
3791
3792 if test -z "$CC"; then
3793           if test -n "$ac_tool_prefix"; then
3794     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -n "$CC"; then
3802   ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     for ac_exec_ext in '' $ac_executable_extensions; do
3810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_CC="${ac_tool_prefix}cc"
3812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816   done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831   fi
3832 fi
3833 if test -z "$CC"; then
3834   # Extract the first word of "cc", so it can be a program name with args.
3835 set dummy cc; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   if test -n "$CC"; then
3842   ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844   ac_prog_rejected=no
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_exec_ext in '' $ac_executable_extensions; do
3851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853        ac_prog_rejected=yes
3854        continue
3855      fi
3856     ac_cv_prog_CC="cc"
3857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858     break 2
3859   fi
3860 done
3861   done
3862 IFS=$as_save_IFS
3863
3864 if test $ac_prog_rejected = yes; then
3865   # We found a bogon in the path, so make sure we never use it.
3866   set dummy $ac_cv_prog_CC
3867   shift
3868   if test $# != 0; then
3869     # We chose a different compiler from the bogus one.
3870     # However, it has the same basename, so the bogon will be chosen
3871     # first if we set CC to just the basename; use the full file name.
3872     shift
3873     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3874   fi
3875 fi
3876 fi
3877 fi
3878 CC=$ac_cv_prog_CC
3879 if test -n "$CC"; then
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3882 else
3883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3885 fi
3886
3887
3888 fi
3889 if test -z "$CC"; then
3890   if test -n "$ac_tool_prefix"; then
3891   for ac_prog in cl.exe
3892   do
3893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_CC+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   if test -n "$CC"; then
3901   ac_cv_prog_CC="$CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915   done
3916 IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930     test -n "$CC" && break
3931   done
3932 fi
3933 if test -z "$CC"; then
3934   ac_ct_CC=$CC
3935   for ac_prog in cl.exe
3936 do
3937   # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -n "$ac_ct_CC"; then
3945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_ac_ct_CC="$ac_prog"
3955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3968 else
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974   test -n "$ac_ct_CC" && break
3975 done
3976
3977   if test "x$ac_ct_CC" = x; then
3978     CC=""
3979   else
3980     case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986     CC=$ac_ct_CC
3987   fi
3988 fi
3989
3990 fi
3991
3992
3993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "no acceptable C compiler found in \$PATH
3996 See \`config.log' for more details" "$LINENO" 5; }
3997
3998 # Provide some information about the compiler.
3999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4000 set X $ac_compile
4001 ac_compiler=$2
4002 for ac_option in --version -v -V -qversion; do
4003   { { ac_try="$ac_compiler $ac_option >&5"
4004 case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4011   ac_status=$?
4012   if test -s conftest.err; then
4013     sed '10a\
4014 ... rest of stderr output deleted ...
4015          10q' conftest.err >conftest.er1
4016     cat conftest.er1 >&5
4017   fi
4018   rm -f conftest.er1 conftest.err
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; }
4021 done
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4025 if ${ac_cv_c_compiler_gnu+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034 #ifndef __GNUC__
4035        choke me
4036 #endif
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043   ac_compiler_gnu=yes
4044 else
4045   ac_compiler_gnu=no
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053 if test $ac_compiler_gnu = yes; then
4054   GCC=yes
4055 else
4056   GCC=
4057 fi
4058 ac_test_CFLAGS=${CFLAGS+set}
4059 ac_save_CFLAGS=$CFLAGS
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4062 if ${ac_cv_prog_cc_g+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   ac_save_c_werror_flag=$ac_c_werror_flag
4066    ac_c_werror_flag=yes
4067    ac_cv_prog_cc_g=no
4068    CFLAGS="-g"
4069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071
4072 int
4073 main ()
4074 {
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081   ac_cv_prog_cc_g=yes
4082 else
4083   CFLAGS=""
4084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096
4097 else
4098   ac_c_werror_flag=$ac_save_c_werror_flag
4099          CFLAGS="-g"
4100          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112   ac_cv_prog_cc_g=yes
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119    ac_c_werror_flag=$ac_save_c_werror_flag
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122 $as_echo "$ac_cv_prog_cc_g" >&6; }
4123 if test "$ac_test_CFLAGS" = set; then
4124   CFLAGS=$ac_save_CFLAGS
4125 elif test $ac_cv_prog_cc_g = yes; then
4126   if test "$GCC" = yes; then
4127     CFLAGS="-g -O2"
4128   else
4129     CFLAGS="-g"
4130   fi
4131 else
4132   if test "$GCC" = yes; then
4133     CFLAGS="-O2"
4134   else
4135     CFLAGS=
4136   fi
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4140 if ${ac_cv_prog_cc_c89+:} false; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   ac_cv_prog_cc_c89=no
4144 ac_save_CC=$CC
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h.  */
4147 #include <stdarg.h>
4148 #include <stdio.h>
4149 struct stat;
4150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4151 struct buf { int x; };
4152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153 static char *e (p, i)
4154      char **p;
4155      int i;
4156 {
4157   return p[i];
4158 }
4159 static char *f (char * (*g) (char **, int), char **p, ...)
4160 {
4161   char *s;
4162   va_list v;
4163   va_start (v,p);
4164   s = g (p, va_arg (v,int));
4165   va_end (v);
4166   return s;
4167 }
4168
4169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4170    function prototypes and stuff, but not '\xHH' hex character constants.
4171    These don't provoke an error unfortunately, instead are silently treated
4172    as 'x'.  The following induces an error, until -std is added to get
4173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4174    array size at least.  It's necessary to write '\x00'==0 to get something
4175    that's true only with -std.  */
4176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177
4178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179    inside strings and character constants.  */
4180 #define FOO(x) 'x'
4181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182
4183 int test (int i, double x);
4184 struct s1 {int (*f) (int a);};
4185 struct s2 {int (*f) (double a);};
4186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187 int argc;
4188 char **argv;
4189 int
4190 main ()
4191 {
4192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 do
4200   CC="$ac_save_CC $ac_arg"
4201   if ac_fn_c_try_compile "$LINENO"; then :
4202   ac_cv_prog_cc_c89=$ac_arg
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext
4205   test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 done
4207 rm -f conftest.$ac_ext
4208 CC=$ac_save_CC
4209
4210 fi
4211 # AC_CACHE_VAL
4212 case "x$ac_cv_prog_cc_c89" in
4213   x)
4214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215 $as_echo "none needed" >&6; } ;;
4216   xno)
4217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 $as_echo "unsupported" >&6; } ;;
4219   *)
4220     CC="$CC $ac_cv_prog_cc_c89"
4221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223 esac
4224 if test "x$ac_cv_prog_cc_c89" != xno; then :
4225
4226 fi
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234 if test "$GCC" = yes; then
4235    RDYNAMIC="-rdynamic"
4236
4237 fi
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4245 # On Suns, sometimes $CPP names a directory.
4246 if test -n "$CPP" && test -d "$CPP"; then
4247   CPP=
4248 fi
4249 if test -z "$CPP"; then
4250   if ${ac_cv_prog_CPP+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253       # Double quotes because CPP needs to be expanded
4254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255     do
4256       ac_preproc_ok=false
4257 for ac_c_preproc_warn_flag in '' yes
4258 do
4259   # Use a header file that comes with gcc, so configuring glibc
4260   # with a fresh cross-compiler works.
4261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262   # <limits.h> exists even on freestanding compilers.
4263   # On the NeXT, cc -E runs the code through the compiler's parser,
4264   # not just through cpp. "Syntax error" is here to catch this case.
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272                      Syntax error
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275
4276 else
4277   # Broken: fails on valid input.
4278 continue
4279 fi
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4281
4282   # OK, works on sane cases.  Now check whether nonexistent headers
4283   # can be detected and how.
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286 #include <ac_nonexistent.h>
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289   # Broken: success on invalid input.
4290 continue
4291 else
4292   # Passes both tests.
4293 ac_preproc_ok=:
4294 break
4295 fi
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4297
4298 done
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4302   break
4303 fi
4304
4305     done
4306     ac_cv_prog_CPP=$CPP
4307
4308 fi
4309   CPP=$ac_cv_prog_CPP
4310 else
4311   ac_cv_prog_CPP=$CPP
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4314 $as_echo "$CPP" >&6; }
4315 ac_preproc_ok=false
4316 for ac_c_preproc_warn_flag in '' yes
4317 do
4318   # Use a header file that comes with gcc, so configuring glibc
4319   # with a fresh cross-compiler works.
4320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321   # <limits.h> exists even on freestanding compilers.
4322   # On the NeXT, cc -E runs the code through the compiler's parser,
4323   # not just through cpp. "Syntax error" is here to catch this case.
4324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331                      Syntax error
4332 _ACEOF
4333 if ac_fn_c_try_cpp "$LINENO"; then :
4334
4335 else
4336   # Broken: fails on valid input.
4337 continue
4338 fi
4339 rm -f conftest.err conftest.i conftest.$ac_ext
4340
4341   # OK, works on sane cases.  Now check whether nonexistent headers
4342   # can be detected and how.
4343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345 #include <ac_nonexistent.h>
4346 _ACEOF
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4348   # Broken: success on invalid input.
4349 continue
4350 else
4351   # Passes both tests.
4352 ac_preproc_ok=:
4353 break
4354 fi
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4356
4357 done
4358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359 rm -f conftest.i conftest.err conftest.$ac_ext
4360 if $ac_preproc_ok; then :
4361
4362 else
4363   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4366 See \`config.log' for more details" "$LINENO" 5; }
4367 fi
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4376 $as_echo_n "checking for additional special compiler flags... " >&6; }
4377 if test "$GCC" = yes
4378 then
4379     case "$host_cpu" in
4380         alpha)          addcflags="-mieee" ;;
4381     esac
4382 fi
4383 if test "x$addcflags" != x
4384 then
4385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4386 $as_echo "$addcflags" >&6; }
4387     CFLAGS="$addcflags $CFLAGS"
4388 else
4389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4390 $as_echo "(none)" >&6; }
4391 fi
4392 LIB_EXT=.a
4393 STATIC_LIB_EXT=.a
4394 PROFILED_LIB_EXT=.a
4395
4396 # Check whether --with-root-prefix was given.
4397 if test "${with_root_prefix+set}" = set; then :
4398   withval=$with_root_prefix; root_prefix=$withval
4399 else
4400   root_prefix=NONE
4401 fi
4402 # Check whether --enable-maintainer-mode was given.
4403 if test "${enable_maintainer_mode+set}" = set; then :
4404   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4405 then
4406         MAINTAINER_CMT=#
4407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4408 $as_echo "Disabling maintainer mode" >&6; }
4409 else
4410         MAINTAINER_CMT=
4411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4412 $as_echo "Enabling maintainer mode" >&6; }
4413 fi
4414
4415 else
4416   MAINTAINER_CMT=#
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4418 $as_echo "Disabling maintainer mode by default" >&6; }
4419
4420 fi
4421
4422
4423 # Check whether --enable-symlink-install was given.
4424 if test "${enable_symlink_install+set}" = set; then :
4425   enableval=$enable_symlink_install; if test "$enableval" = "no"
4426 then
4427         LINK_INSTALL_FLAGS=-f
4428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4429 $as_echo "Disabling symlinks for install" >&6; }
4430 else
4431         LINK_INSTALL_FLAGS=-sf
4432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4433 $as_echo "Enabling symlinks for install" >&6; }
4434 fi
4435
4436 else
4437   LINK_INSTALL_FLAGS=-f
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4439 $as_echo "Disabling symlinks for install by default" >&6; }
4440
4441 fi
4442
4443
4444 relative_symlink_defined=
4445 # Check whether --enable-relative-symlinks was given.
4446 if test "${enable_relative_symlinks+set}" = set; then :
4447   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4448 then
4449         SYMLINK_RELATIVE=
4450         relative_symlink_defined=yes
4451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4452 $as_echo "Disabling relative symlinks for install" >&6; }
4453 else
4454         SYMLINK_RELATIVE=--relative
4455         relative_symlink_defined=yes
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4457 $as_echo "Enabling relative symlinks for install" >&6; }
4458 fi
4459 fi
4460
4461 # Check whether --enable-symlink-relative-symlinks was given.
4462 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4463   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4464 then
4465         SYMLINK_RELATIVE=yes
4466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4467 $as_echo "Disabling relative symlinks for install" >&6; }
4468 else
4469         SYMLINK_RELATIVE=--relative
4470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4471 $as_echo "Enabling relative symlinks for install" >&6; }
4472 fi
4473
4474 else
4475   if test -z "$relative_symlink_defined"
4476 then
4477         SYMLINK_RELATIVE=
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4479 $as_echo "Disabling relative symlinks for install by default" >&6; }
4480 fi
4481
4482 fi
4483
4484
4485 # Check whether --enable-symlink-build was given.
4486 if test "${enable_symlink_build+set}" = set; then :
4487   enableval=$enable_symlink_build; if test "$enableval" = "no"
4488 then
4489         LINK_BUILD_FLAGS=
4490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4491 $as_echo "Disabling symlinks for build" >&6; }
4492 else
4493         LINK_BUILD_FLAGS=-s
4494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4495 $as_echo "Enabling symlinks for build" >&6; }
4496 fi
4497
4498 else
4499   LINK_BUILD_FLAGS=
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4501 $as_echo "Disabling symlinks for build by default" >&6; }
4502
4503 fi
4504
4505
4506 # Check whether --enable-verbose-makecmds was given.
4507 if test "${enable_verbose_makecmds+set}" = set; then :
4508   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4509 then
4510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4511 $as_echo "Disabling verbose make commands" >&6; }
4512         E=@echo
4513         ES=echo
4514         Q=@
4515 else
4516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4517 $as_echo "Enabling verbose make commands" >&6; }
4518         E=@\\#
4519         ES=\\#
4520         Q=
4521 fi
4522
4523 else
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4525 $as_echo "Disabling verbose make commands" >&6; }
4526 E=@echo
4527 ES=echo
4528 Q=@
4529
4530 fi
4531
4532
4533
4534
4535 # Check whether --enable-compression was given.
4536 if test "${enable_compression+set}" = set; then :
4537   enableval=$enable_compression; if test "$enableval" = "no"
4538 then
4539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4540 $as_echo "Disabling compression support" >&6; }
4541 else
4542
4543 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4544
4545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4546 $as_echo "Enabling compression support" >&6; }
4547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4548 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4549 fi
4550
4551 else
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4553 $as_echo "Disabling compression support by default" >&6; }
4554
4555 fi
4556
4557
4558 # Check whether --enable-htree was given.
4559 if test "${enable_htree+set}" = set; then :
4560   enableval=$enable_htree; if test "$enableval" = "no"
4561 then
4562         HTREE_CMT=#
4563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4564 $as_echo "Disabling htree directory support" >&6; }
4565 else
4566         HTREE_CMT=
4567         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4568
4569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4570 $as_echo "Enabling htree directory support" >&6; }
4571 fi
4572
4573 else
4574   HTREE_CMT=
4575 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4578 $as_echo "Enabling htree directory support by default" >&6; }
4579
4580 fi
4581
4582
4583 E2_PKG_CONFIG_STATIC=--static
4584 LDFLAG_DYNAMIC=
4585 PRIVATE_LIBS_CMT=
4586 # Check whether --enable-elf-shlibs was given.
4587 if test "${enable_elf_shlibs+set}" = set; then :
4588   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4589 then
4590         ELF_CMT=#
4591         MAKEFILE_ELF=/dev/null
4592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4593 $as_echo "Disabling ELF shared libraries" >&6; }
4594 else
4595         E2_PKG_CONFIG_STATIC=
4596         ELF_CMT=
4597         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4598         case "$host_os" in
4599         solaris2.*)
4600                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4601         ;;
4602         esac
4603         BINARY_TYPE=elfbin
4604         LIB_EXT=.so
4605         PRIVATE_LIBS_CMT=#
4606         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4608 $as_echo "Enabling ELF shared libraries" >&6; }
4609 fi
4610
4611 else
4612   MAKEFILE_ELF=/dev/null
4613 ELF_CMT=#
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4615 $as_echo "Disabling ELF shared libraries by default" >&6; }
4616
4617 fi
4618
4619
4620
4621 # Check whether --enable-bsd-shlibs was given.
4622 if test "${enable_bsd_shlibs+set}" = set; then :
4623   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4624 then
4625         BSDLIB_CMT=#
4626         MAKEFILE_BSDLIB=/dev/null
4627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4628 $as_echo "Disabling BSD shared libraries" >&6; }
4629 else
4630         E2_PKG_CONFIG_STATIC=
4631         BSDLIB_CMT=
4632         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4633         LIB_EXT=.so
4634         case "$host_os" in
4635         darwin*)
4636                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4637                 LIB_EXT=.dylib
4638         ;;
4639         esac
4640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4641 $as_echo "Enabling BSD shared libraries" >&6; }
4642 fi
4643
4644 else
4645   MAKEFILE_BSDLIB=/dev/null
4646 BSDLIB_CMT=#
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4648 $as_echo "Disabling BSD shared libraries by default" >&6; }
4649
4650 fi
4651
4652
4653
4654 # Check whether --enable-profile was given.
4655 if test "${enable_profile+set}" = set; then :
4656   enableval=$enable_profile; if test "$enableval" = "no"
4657 then
4658         PROFILE_CMT=#
4659         MAKEFILE_PROFILE=/dev/null
4660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4661 $as_echo "Disabling profiling libraries" >&6; }
4662 else
4663         PROFILE_CMT=
4664         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4665         PROFILED_LIB_EXT=_p.a
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4667 $as_echo "Building profiling libraries" >&6; }
4668 fi
4669
4670 else
4671   PROFILE_CMT=#
4672 MAKEFILE_PROFILE=/dev/null
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4674 $as_echo "Disabling profiling libraries by default" >&6; }
4675
4676 fi
4677
4678
4679
4680 # Check whether --enable-checker was given.
4681 if test "${enable_checker+set}" = set; then :
4682   enableval=$enable_checker; if test "$enableval" = "no"
4683 then
4684         CHECKER_CMT=#
4685         MAKEFILE_CHECKER=/dev/null
4686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4687 $as_echo "Disabling checker libraries" >&6; }
4688 else
4689         CHECKER_CMT=
4690         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4692 $as_echo "Building checker libraries" >&6; }
4693 fi
4694
4695 else
4696   CHECKER_CMT=#
4697 MAKEFILE_CHECKER=/dev/null
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4699 $as_echo "Disabling checker libraries by default" >&6; }
4700
4701 fi
4702
4703
4704
4705
4706
4707
4708
4709
4710 # Check whether --enable-jbd-debug was given.
4711 if test "${enable_jbd_debug+set}" = set; then :
4712   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4713 then
4714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4715 $as_echo "Disabling journal debugging" >&6; }
4716 else
4717
4718 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4719
4720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4721 $as_echo "Enabling journal debugging" >&6; }
4722 fi
4723
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4726 $as_echo "Disabling journal debugging by default" >&6; }
4727
4728 fi
4729
4730 # Check whether --enable-blkid-debug was given.
4731 if test "${enable_blkid_debug+set}" = set; then :
4732   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4733 then
4734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4735 $as_echo "Disabling blkid debugging" >&6; }
4736 else
4737
4738 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4739
4740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4741 $as_echo "Enabling blkid debugging" >&6; }
4742 fi
4743
4744 else
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4746 $as_echo "Disabling blkid debugging by default" >&6; }
4747
4748 fi
4749
4750 # Check whether --enable-testio-debug was given.
4751 if test "${enable_testio_debug+set}" = set; then :
4752   enableval=$enable_testio_debug;
4753 if test "$enableval" = "no"
4754 then
4755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4756 $as_echo "Disabling testio debugging" >&6; }
4757         TEST_IO_CMT="#"
4758 else
4759         TEST_IO_CMT=
4760         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4761
4762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4763 $as_echo "Enabling testio debugging" >&6; }
4764 fi
4765
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4768 $as_echo "Enabling testio debugging by default" >&6; }
4769 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4770
4771 TEST_IO_CMT=
4772
4773 fi
4774
4775
4776
4777
4778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4779         if test -n "$ac_tool_prefix"; then
4780   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   case $PKG_CONFIG in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807   ;;
4808 esac
4809 fi
4810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4811 if test -n "$PKG_CONFIG"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4813 $as_echo "$PKG_CONFIG" >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820 fi
4821 if test -z "$ac_cv_path_PKG_CONFIG"; then
4822   ac_pt_PKG_CONFIG=$PKG_CONFIG
4823   # Extract the first word of "pkg-config", so it can be a program name with args.
4824 set dummy pkg-config; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   case $ac_pt_PKG_CONFIG in
4831   [\\/]* | ?:[\\/]*)
4832   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4833   ;;
4834   *)
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840     for ac_exec_ext in '' $ac_executable_extensions; do
4841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847   done
4848 IFS=$as_save_IFS
4849
4850   ;;
4851 esac
4852 fi
4853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4854 if test -n "$ac_pt_PKG_CONFIG"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862   if test "x$ac_pt_PKG_CONFIG" = x; then
4863     PKG_CONFIG=""
4864   else
4865     case $cross_compiling:$ac_tool_warned in
4866 yes:)
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned=yes ;;
4870 esac
4871     PKG_CONFIG=$ac_pt_PKG_CONFIG
4872   fi
4873 else
4874   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4875 fi
4876
4877 fi
4878 if test -n "$PKG_CONFIG"; then
4879         _pkg_min_version=0.9.0
4880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4882         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }
4885         else
4886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888                 PKG_CONFIG=""
4889         fi
4890
4891 fi
4892 LIBUUID=
4893 DEPLIBUUID=
4894 STATIC_LIBUUID=
4895 DEPSTATIC_LIBUUID=
4896 PROFILED_LIBUUID=
4897 DEPPROFILED_LIBUUID=
4898 UUID_CMT=
4899 # Check whether --enable-libuuid was given.
4900 if test "${enable_libuuid+set}" = set; then :
4901   enableval=$enable_libuuid; if test "$enableval" = "no"
4902 then
4903         if test -z "$PKG_CONFIG"; then
4904                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4905         fi
4906
4907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4908 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4909 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-luuid $LIBUUID $LIBS"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h.  */
4916
4917 /* Override any GCC internal prototype to avoid an error.
4918    Use char because int might match the return type of a GCC
4919    builtin and then its argument prototype would still apply.  */
4920 #ifdef __cplusplus
4921 extern "C"
4922 #endif
4923 char uuid_generate ();
4924 int
4925 main ()
4926 {
4927 return uuid_generate ();
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_link "$LINENO"; then :
4933   ac_cv_lib_uuid_uuid_generate=yes
4934 else
4935   ac_cv_lib_uuid_uuid_generate=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext \
4938     conftest$ac_exeext conftest.$ac_ext
4939 LIBS=$ac_check_lib_save_LIBS
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4942 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4943 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4944   LIBUUID=`$PKG_CONFIG --libs uuid`;
4945                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4946 else
4947   as_fn_error $? "external uuid library not found" "$LINENO" 5
4948 fi
4949
4950         UUID_CMT=#
4951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4952 $as_echo "Disabling private uuid library" >&6; }
4953 else
4954         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4955         DEPLIBUUID=$LIBUUID
4956         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4957         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4958         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4959         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4961 $as_echo "Enabling private uuid library" >&6; }
4962 fi
4963
4964 else
4965   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4966 DEPLIBUUID=$LIBUUID
4967 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4968 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4969 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4970 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4972 $as_echo "Enabling private uuid library by default" >&6; }
4973
4974 fi
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4986         if test -n "$ac_tool_prefix"; then
4987   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   case $PKG_CONFIG in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013
5014   ;;
5015 esac
5016 fi
5017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5018 if test -n "$PKG_CONFIG"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5020 $as_echo "$PKG_CONFIG" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 fi
5028 if test -z "$ac_cv_path_PKG_CONFIG"; then
5029   ac_pt_PKG_CONFIG=$PKG_CONFIG
5030   # Extract the first word of "pkg-config", so it can be a program name with args.
5031 set dummy pkg-config; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5035   $as_echo_n "(cached) " >&6
5036 else
5037   case $ac_pt_PKG_CONFIG in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057   ;;
5058 esac
5059 fi
5060 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5061 if test -n "$ac_pt_PKG_CONFIG"; then
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5063 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069   if test "x$ac_pt_PKG_CONFIG" = x; then
5070     PKG_CONFIG=""
5071   else
5072     case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078     PKG_CONFIG=$ac_pt_PKG_CONFIG
5079   fi
5080 else
5081   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5082 fi
5083
5084 fi
5085 if test -n "$PKG_CONFIG"; then
5086         _pkg_min_version=0.9.0
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5088 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5089         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5092         else
5093                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095                 PKG_CONFIG=""
5096         fi
5097
5098 fi
5099 LIBBLKID=
5100 DEPLIBBLKID=
5101 STATIC_LIBBLKID=
5102 DEPSTATIC_LIBBLKID=
5103 PROFILED_LIBBLKID=
5104 DEPPROFILED_LIBBLKID=
5105 BLKID_CMT=
5106
5107 # Check whether --enable-libblkid was given.
5108 if test "${enable_libblkid+set}" = set; then :
5109   enableval=$enable_libblkid; if test "$enableval" = "no"
5110 then
5111         if test -z "$PKG_CONFIG"; then
5112                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5113         fi
5114
5115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5116 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5117 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   ac_check_lib_save_LIBS=$LIBS
5121 LIBS="-lblkid $LIBBLKID $LIBS"
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124
5125 /* Override any GCC internal prototype to avoid an error.
5126    Use char because int might match the return type of a GCC
5127    builtin and then its argument prototype would still apply.  */
5128 #ifdef __cplusplus
5129 extern "C"
5130 #endif
5131 char blkid_get_cache ();
5132 int
5133 main ()
5134 {
5135 return blkid_get_cache ();
5136   ;
5137   return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_link "$LINENO"; then :
5141   ac_cv_lib_blkid_blkid_get_cache=yes
5142 else
5143   ac_cv_lib_blkid_blkid_get_cache=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext \
5146     conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5150 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5151 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5152   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5153                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5154 else
5155   as_fn_error $? "external blkid library not found" "$LINENO" 5
5156 fi
5157
5158         BLKID_CMT=#
5159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5160 $as_echo "Disabling private blkid library" >&6; }
5161 else
5162         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5163         DEPLIBBLKID=$LIBBLKID
5164         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5165         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5166         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5167         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5168         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5169
5170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5171 $as_echo "Enabling private blkid library" >&6; }
5172 fi
5173
5174 else
5175   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5176 DEPLIBBLKID=$LIBBLKID
5177 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5178 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5179 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5180 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5181 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5184 $as_echo "Enabling private blkid library by default" >&6; }
5185
5186 fi
5187
5188
5189
5190
5191
5192
5193
5194
5195 QUOTA_MAN_COMMENT='.\"'
5196 QUOTA_CMT=
5197
5198
5199
5200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5201         if test -n "$ac_tool_prefix"; then
5202   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   case $PKG_CONFIG in
5210   [\\/]* | ?:[\\/]*)
5211   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5212   ;;
5213   *)
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_exec_ext in '' $ac_executable_extensions; do
5220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226   done
5227 IFS=$as_save_IFS
5228
5229   ;;
5230 esac
5231 fi
5232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5233 if test -n "$PKG_CONFIG"; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235 $as_echo "$PKG_CONFIG" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 fi
5243 if test -z "$ac_cv_path_PKG_CONFIG"; then
5244   ac_pt_PKG_CONFIG=$PKG_CONFIG
5245   # Extract the first word of "pkg-config", so it can be a program name with args.
5246 set dummy pkg-config; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   case $ac_pt_PKG_CONFIG in
5253   [\\/]* | ?:[\\/]*)
5254   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5255   ;;
5256   *)
5257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262     for ac_exec_ext in '' $ac_executable_extensions; do
5263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269   done
5270 IFS=$as_save_IFS
5271
5272   ;;
5273 esac
5274 fi
5275 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5276 if test -n "$ac_pt_PKG_CONFIG"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284   if test "x$ac_pt_PKG_CONFIG" = x; then
5285     PKG_CONFIG=""
5286   else
5287     case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     PKG_CONFIG=$ac_pt_PKG_CONFIG
5294   fi
5295 else
5296   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5297 fi
5298
5299 fi
5300 if test -n "$PKG_CONFIG"; then
5301         _pkg_min_version=0.9.0
5302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5303 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5304         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5305                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307         else
5308                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310                 PKG_CONFIG=""
5311         fi
5312
5313 fi
5314
5315 # Check whether --enable-quota was given.
5316 if test "${enable_quota+set}" = set; then :
5317   enableval=$enable_quota; if test "$enableval" = "no"
5318 then
5319         QUOTA_CMT=#
5320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5321 $as_echo "Disabling quota support" >&6; }
5322 else
5323         QUOTA_CMT=
5324         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5325
5326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5327 $as_echo "Enabling quota support" >&6; }
5328         QUOTA_MAN_COMMENT=""
5329
5330 fi
5331
5332 else
5333   QUOTA_CMT=#
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5335 $as_echo "Disabling quota support by default" >&6; }
5336
5337 fi
5338
5339 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5340 DEPLIBQUOTA=$LIBQUOTA
5341 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5343 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5345
5346
5347
5348
5349
5350
5351
5352
5353 # Check whether --enable-backtrace was given.
5354 if test "${enable_backtrace+set}" = set; then :
5355   enableval=$enable_backtrace; if test "$enableval" = "no"
5356 then
5357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5358 $as_echo "Disabling use of backtrace" >&6; }
5359         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5360
5361 else
5362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5363 $as_echo "Enabling use of backtrace" >&6; }
5364 fi
5365
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5368 $as_echo "Enabling use of backtrace by default" >&6; }
5369
5370 fi
5371
5372 # Check whether --enable-debugfs was given.
5373 if test "${enable_debugfs+set}" = set; then :
5374   enableval=$enable_debugfs; if test "$enableval" = "no"
5375 then
5376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5377 $as_echo "Disabling debugfs support" >&6; }
5378         DEBUGFS_CMT="#"
5379 else
5380         DEBUGFS_CMT=
5381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5382 $as_echo "Enabling debugfs support" >&6; }
5383 fi
5384
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5387 $as_echo "Enabling debugfs support by default" >&6; }
5388 DEBUGFS_CMT=
5389
5390 fi
5391
5392
5393 # Check whether --enable-imager was given.
5394 if test "${enable_imager+set}" = set; then :
5395   enableval=$enable_imager; if test "$enableval" = "no"
5396 then
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5398 $as_echo "Disabling e2image support" >&6; }
5399         IMAGER_CMT="#"
5400 else
5401         IMAGER_CMT=
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5403 $as_echo "Enabling e2image support" >&6; }
5404 fi
5405
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5408 $as_echo "Enabling e2image support by default" >&6; }
5409 IMAGER_CMT=
5410
5411 fi
5412
5413
5414 # Check whether --enable-resizer was given.
5415 if test "${enable_resizer+set}" = set; then :
5416   enableval=$enable_resizer; if test "$enableval" = "no"
5417 then
5418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5419 $as_echo "Disabling e2resize support" >&6; }
5420         RESIZER_CMT="#"
5421 else
5422         RESIZER_CMT=
5423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5424 $as_echo "Enabling e2resize support" >&6; }
5425 fi
5426
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5429 $as_echo "Enabling e2resize support by default" >&6; }
5430 RESIZER_CMT=
5431
5432 fi
5433
5434
5435 # Check whether --enable-defrag was given.
5436 if test "${enable_defrag+set}" = set; then :
5437   enableval=$enable_defrag; if test "$enableval" = "no"
5438 then
5439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440 $as_echo "Disabling e4defrag support" >&6; }
5441         DEFRAG_CMT="#"
5442 else
5443         DEFRAG_CMT=
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445 $as_echo "Enabling e4defrag support" >&6; }
5446 fi
5447
5448 else
5449   if test -z "$WITH_DIET_LIBC"
5450 then
5451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5452 $as_echo "Enabling e4defrag support by default" >&6; }
5453         DEFRAG_CMT=
5454 else
5455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5456 $as_echo "Disabling e4defrag support by default" >&6; }
5457         DEFRAG_CMT="#"
5458 fi
5459
5460 fi
5461
5462
5463 # Check whether --enable-fsck was given.
5464 if test "${enable_fsck+set}" = set; then :
5465   enableval=$enable_fsck; if test "$enableval" = "no"
5466 then
5467         FSCK_PROG='' FSCK_MAN=''
5468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5469 $as_echo "Not building fsck wrapper" >&6; }
5470 else
5471         FSCK_PROG=fsck FSCK_MAN=fsck.8
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5473 $as_echo "Building fsck wrapper" >&6; }
5474 fi
5475
5476 else
5477   case "$host_os" in
5478   gnu*)
5479     FSCK_PROG='' FSCK_MAN=''
5480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5481 $as_echo "Not building fsck wrapper by default" >&6; }
5482     ;;
5483   *)
5484     FSCK_PROG=fsck FSCK_MAN=fsck.8
5485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5486 $as_echo "Building fsck wrapper by default" >&6; }
5487 esac
5488
5489 fi
5490
5491
5492
5493 # Check whether --enable-e2initrd-helper was given.
5494 if test "${enable_e2initrd_helper+set}" = set; then :
5495   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5496 then
5497         E2INITRD_PROG='' E2INITRD_MAN=''
5498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5499 $as_echo "Not building e2initrd helper" >&6; }
5500 else
5501         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5503 $as_echo "Building e2initrd helper" >&6; }
5504 fi
5505
5506 else
5507   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5509 $as_echo "Building e2initrd helper by default" >&6; }
5510
5511 fi
5512
5513
5514
5515 # Check whether --enable-tls was given.
5516 if test "${enable_tls+set}" = set; then :
5517   enableval=$enable_tls; if test "$enableval" = "no"
5518 then
5519         try_tls=""
5520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5521 $as_echo "Disabling thread local support" >&6; }
5522 else
5523         try_tls="yes"
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5525 $as_echo "Enabling thread local support" >&6; }
5526 fi
5527
5528 else
5529   if test -n "$WITH_DIET_LIBC"
5530 then
5531         try_tls=""
5532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5533 $as_echo "Diet libc does not support thread local support" >&6; }
5534 else
5535         try_tls="yes"
5536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5537 $as_echo "Try using thread local support by default" >&6; }
5538 fi
5539
5540 fi
5541
5542 if test "$try_tls" = "yes"
5543 then
5544
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5546 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5547   if ${ac_cv_tls+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550
5551     ax_tls_keywords="__thread __declspec(thread) none"
5552     for ax_tls_keyword in $ax_tls_keywords; do
5553        case $ax_tls_keyword in
5554           none) ac_cv_tls=none ; break ;;
5555           *)
5556              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558 #include <stdlib.h>
5559                  static void
5560                  foo(void) {
5561                  static  $ax_tls_keyword  int bar;
5562                  exit(1);
5563                  }
5564 int
5565 main ()
5566 {
5567
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573   ac_cv_tls=$ax_tls_keyword ; break
5574 else
5575   ac_cv_tls=none
5576
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579           esac
5580     done
5581
5582 fi
5583
5584
5585   if test "$ac_cv_tls" != "none"; then
5586
5587 cat >>confdefs.h <<_ACEOF
5588 #define TLS $ac_cv_tls
5589 _ACEOF
5590
5591   fi
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5593 $as_echo "$ac_cv_tls" >&6; }
5594
5595 fi
5596
5597 # Check whether --enable-uuidd was given.
5598 if test "${enable_uuidd+set}" = set; then :
5599   enableval=$enable_uuidd; if test "$enableval" = "no"
5600 then
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5602 $as_echo "Not building uuidd" >&6; }
5603         UUIDD_CMT="#"
5604 else
5605         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5606
5607         UUIDD_CMT=""
5608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5609 $as_echo "Building uuidd" >&6; }
5610 fi
5611
5612 else
5613   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5614
5615 UUIDD_CMT=""
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5617 $as_echo "Building uuidd by default" >&6; }
5618
5619 fi
5620
5621
5622 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5623
5624 GETTEXT_PACKAGE=e2fsprogs
5625 PACKAGE=e2fsprogs
5626 VERSION="$E2FSPROGS_VERSION"
5627 VERSION=0.14.1
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define PACKAGE "$PACKAGE"
5631 _ACEOF
5632
5633
5634 cat >>confdefs.h <<_ACEOF
5635 #define VERSION "$VERSION"
5636 _ACEOF
5637
5638
5639
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5644 set x ${MAKE-make}
5645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   cat >conftest.make <<\_ACEOF
5650 SHELL = /bin/sh
5651 all:
5652         @echo '@@@%%%=$(MAKE)=@@@%%%'
5653 _ACEOF
5654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5656   *@@@%%%=?*=@@@%%%*)
5657     eval ac_cv_prog_make_${ac_make}_set=yes;;
5658   *)
5659     eval ac_cv_prog_make_${ac_make}_set=no;;
5660 esac
5661 rm -f conftest.make
5662 fi
5663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5666   SET_MAKE=
5667 else
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670   SET_MAKE="MAKE=${MAKE-make}"
5671 fi
5672
5673 # Find a good install program.  We prefer a C program (faster),
5674 # so one script is as good as another.  But avoid the broken or
5675 # incompatible versions:
5676 # SysV /etc/install, /usr/sbin/install
5677 # SunOS /usr/etc/install
5678 # IRIX /sbin/install
5679 # AIX /bin/install
5680 # AmigaOS /C/install, which installs bootblocks on floppy discs
5681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5684 # OS/2's system install, which has a completely different semantic
5685 # ./install, which can be erroneously created by make from ./install.sh.
5686 # Reject install programs that cannot install multiple files.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5688 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5689 if test -z "$INSTALL"; then
5690 if ${ac_cv_path_install+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     # Account for people who put trailing slashes in PATH elements.
5699 case $as_dir/ in #((
5700   ./ | .// | /[cC]/* | \
5701   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5702   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5703   /usr/ucb/* ) ;;
5704   *)
5705     # OSF1 and SCO ODT 3.0 have their own names for install.
5706     # Don't use installbsd from OSF since it installs stuff as root
5707     # by default.
5708     for ac_prog in ginstall scoinst install; do
5709       for ac_exec_ext in '' $ac_executable_extensions; do
5710         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5711           if test $ac_prog = install &&
5712             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713             # AIX install.  It has an incompatible calling convention.
5714             :
5715           elif test $ac_prog = install &&
5716             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5717             # program-specific install script used by HP pwplus--don't use.
5718             :
5719           else
5720             rm -rf conftest.one conftest.two conftest.dir
5721             echo one > conftest.one
5722             echo two > conftest.two
5723             mkdir conftest.dir
5724             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5725               test -s conftest.one && test -s conftest.two &&
5726               test -s conftest.dir/conftest.one &&
5727               test -s conftest.dir/conftest.two
5728             then
5729               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5730               break 3
5731             fi
5732           fi
5733         fi
5734       done
5735     done
5736     ;;
5737 esac
5738
5739   done
5740 IFS=$as_save_IFS
5741
5742 rm -rf conftest.one conftest.two conftest.dir
5743
5744 fi
5745   if test "${ac_cv_path_install+set}" = set; then
5746     INSTALL=$ac_cv_path_install
5747   else
5748     # As a last resort, use the slow shell script.  Don't cache a
5749     # value for INSTALL within a source directory, because that will
5750     # break other packages using the cache if that directory is
5751     # removed, or if the value is a relative name.
5752     INSTALL=$ac_install_sh
5753   fi
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5756 $as_echo "$INSTALL" >&6; }
5757
5758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5759 # It thinks the first close brace ends the variable substitution.
5760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5761
5762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5763
5764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5765
5766
5767         MKINSTALLDIRS=
5768   if test -n "$ac_aux_dir"; then
5769     case "$ac_aux_dir" in
5770       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5771       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5772     esac
5773   fi
5774   if test -z "$MKINSTALLDIRS"; then
5775     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5776   fi
5777
5778
5779
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5781 $as_echo_n "checking whether NLS is requested... " >&6; }
5782     # Check whether --enable-nls was given.
5783 if test "${enable_nls+set}" = set; then :
5784   enableval=$enable_nls; USE_NLS=$enableval
5785 else
5786   USE_NLS=yes
5787 fi
5788
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5790 $as_echo "$USE_NLS" >&6; }
5791
5792
5793
5794
5795
5796
5797 # Prepare PATH_SEPARATOR.
5798 # The user is always right.
5799 if test "${PATH_SEPARATOR+set}" != set; then
5800   echo "#! /bin/sh" >conf$$.sh
5801   echo  "exit 0"   >>conf$$.sh
5802   chmod +x conf$$.sh
5803   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5804     PATH_SEPARATOR=';'
5805   else
5806     PATH_SEPARATOR=:
5807   fi
5808   rm -f conf$$.sh
5809 fi
5810
5811 # Find out how to test for executable files. Don't use a zero-byte file,
5812 # as systems may use methods other than mode bits to determine executability.
5813 cat >conf$$.file <<_ASEOF
5814 #! /bin/sh
5815 exit 0
5816 _ASEOF
5817 chmod +x conf$$.file
5818 if test -x conf$$.file >/dev/null 2>&1; then
5819   ac_executable_p="test -x"
5820 else
5821   ac_executable_p="test -f"
5822 fi
5823 rm -f conf$$.file
5824
5825 # Extract the first word of "msgfmt", so it can be a program name with args.
5826 set dummy msgfmt; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_path_MSGFMT+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   case "$MSGFMT" in
5833   [\\/]* | ?:[\\/]*)
5834     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5835     ;;
5836   *)
5837     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5838     for ac_dir in $PATH; do
5839       IFS="$ac_save_IFS"
5840       test -z "$ac_dir" && ac_dir=.
5841       for ac_exec_ext in '' $ac_executable_extensions; do
5842         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5843           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5844      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5845             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5846             break 2
5847           fi
5848         fi
5849       done
5850     done
5851     IFS="$ac_save_IFS"
5852   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5853     ;;
5854 esac
5855 fi
5856 MSGFMT="$ac_cv_path_MSGFMT"
5857 if test "$MSGFMT" != ":"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5859 $as_echo "$MSGFMT" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5866 set dummy gmsgfmt; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_GMSGFMT+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   case $GMSGFMT in
5873   [\\/]* | ?:[\\/]*)
5874   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5875   ;;
5876   *)
5877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882     for ac_exec_ext in '' $ac_executable_extensions; do
5883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889   done
5890 IFS=$as_save_IFS
5891
5892   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5893   ;;
5894 esac
5895 fi
5896 GMSGFMT=$ac_cv_path_GMSGFMT
5897 if test -n "$GMSGFMT"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5899 $as_echo "$GMSGFMT" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906
5907
5908 # Prepare PATH_SEPARATOR.
5909 # The user is always right.
5910 if test "${PATH_SEPARATOR+set}" != set; then
5911   echo "#! /bin/sh" >conf$$.sh
5912   echo  "exit 0"   >>conf$$.sh
5913   chmod +x conf$$.sh
5914   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5915     PATH_SEPARATOR=';'
5916   else
5917     PATH_SEPARATOR=:
5918   fi
5919   rm -f conf$$.sh
5920 fi
5921
5922 # Find out how to test for executable files. Don't use a zero-byte file,
5923 # as systems may use methods other than mode bits to determine executability.
5924 cat >conf$$.file <<_ASEOF
5925 #! /bin/sh
5926 exit 0
5927 _ASEOF
5928 chmod +x conf$$.file
5929 if test -x conf$$.file >/dev/null 2>&1; then
5930   ac_executable_p="test -x"
5931 else
5932   ac_executable_p="test -f"
5933 fi
5934 rm -f conf$$.file
5935
5936 # Extract the first word of "xgettext", so it can be a program name with args.
5937 set dummy xgettext; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if ${ac_cv_path_XGETTEXT+:} false; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   case "$XGETTEXT" in
5944   [\\/]* | ?:[\\/]*)
5945     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5946     ;;
5947   *)
5948     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5949     for ac_dir in $PATH; do
5950       IFS="$ac_save_IFS"
5951       test -z "$ac_dir" && ac_dir=.
5952       for ac_exec_ext in '' $ac_executable_extensions; do
5953         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5954           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5955      (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
5956             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5957             break 2
5958           fi
5959         fi
5960       done
5961     done
5962     IFS="$ac_save_IFS"
5963   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5964     ;;
5965 esac
5966 fi
5967 XGETTEXT="$ac_cv_path_XGETTEXT"
5968 if test "$XGETTEXT" != ":"; then
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5970 $as_echo "$XGETTEXT" >&6; }
5971 else
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976     rm -f messages.po
5977
5978
5979 # Prepare PATH_SEPARATOR.
5980 # The user is always right.
5981 if test "${PATH_SEPARATOR+set}" != set; then
5982   echo "#! /bin/sh" >conf$$.sh
5983   echo  "exit 0"   >>conf$$.sh
5984   chmod +x conf$$.sh
5985   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5986     PATH_SEPARATOR=';'
5987   else
5988     PATH_SEPARATOR=:
5989   fi
5990   rm -f conf$$.sh
5991 fi
5992
5993 # Find out how to test for executable files. Don't use a zero-byte file,
5994 # as systems may use methods other than mode bits to determine executability.
5995 cat >conf$$.file <<_ASEOF
5996 #! /bin/sh
5997 exit 0
5998 _ASEOF
5999 chmod +x conf$$.file
6000 if test -x conf$$.file >/dev/null 2>&1; then
6001   ac_executable_p="test -x"
6002 else
6003   ac_executable_p="test -f"
6004 fi
6005 rm -f conf$$.file
6006
6007 # Extract the first word of "msgmerge", so it can be a program name with args.
6008 set dummy msgmerge; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if ${ac_cv_path_MSGMERGE+:} false; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   case "$MSGMERGE" in
6015   [\\/]* | ?:[\\/]*)
6016     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6017     ;;
6018   *)
6019     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6020     for ac_dir in $PATH; do
6021       IFS="$ac_save_IFS"
6022       test -z "$ac_dir" && ac_dir=.
6023       for ac_exec_ext in '' $ac_executable_extensions; do
6024         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6025           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6026             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6027             break 2
6028           fi
6029         fi
6030       done
6031     done
6032     IFS="$ac_save_IFS"
6033   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6034     ;;
6035 esac
6036 fi
6037 MSGMERGE="$ac_cv_path_MSGMERGE"
6038 if test "$MSGMERGE" != ":"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6040 $as_echo "$MSGMERGE" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047       if test "$GMSGFMT" != ":"; then
6048             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6049        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6050       : ;
6051     else
6052       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6054 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6055       GMSGFMT=":"
6056     fi
6057   fi
6058
6059       if test "$XGETTEXT" != ":"; then
6060             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6061        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6062       : ;
6063     else
6064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6065 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6066       XGETTEXT=":"
6067     fi
6068         rm -f messages.po
6069   fi
6070
6071   ac_config_commands="$ac_config_commands default-1"
6072
6073
6074 if test -n "$ac_tool_prefix"; then
6075   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_RANLIB+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$RANLIB"; then
6083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6105 $as_echo "$RANLIB" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112 fi
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114   ac_ct_RANLIB=$RANLIB
6115   # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   if test -n "$ac_ct_RANLIB"; then
6123   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   test -z "$as_dir" && as_dir=.
6130     for ac_exec_ext in '' $ac_executable_extensions; do
6131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132     ac_cv_prog_ac_ct_RANLIB="ranlib"
6133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134     break 2
6135   fi
6136 done
6137   done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6145 $as_echo "$ac_ct_RANLIB" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151   if test "x$ac_ct_RANLIB" = x; then
6152     RANLIB=":"
6153   else
6154     case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160     RANLIB=$ac_ct_RANLIB
6161   fi
6162 else
6163   RANLIB="$ac_cv_prog_RANLIB"
6164 fi
6165
6166
6167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6168 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6169 if ${ac_cv_lib_cposix_strerror+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   ac_check_lib_save_LIBS=$LIBS
6173 LIBS="-lcposix  $LIBS"
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h.  */
6176
6177 /* Override any GCC internal prototype to avoid an error.
6178    Use char because int might match the return type of a GCC
6179    builtin and then its argument prototype would still apply.  */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 char strerror ();
6184 int
6185 main ()
6186 {
6187 return strerror ();
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_link "$LINENO"; then :
6193   ac_cv_lib_cposix_strerror=yes
6194 else
6195   ac_cv_lib_cposix_strerror=no
6196 fi
6197 rm -f core conftest.err conftest.$ac_objext \
6198     conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6202 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6203 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6204   LIBS="$LIBS -lcposix"
6205 fi
6206
6207
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6212 if ${ac_cv_path_GREP+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   if test -z "$GREP"; then
6216   ac_path_GREP_found=false
6217   # Loop through the user's path and test for each of PROGNAME-LIST
6218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223     for ac_prog in grep ggrep; do
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6226       as_fn_executable_p "$ac_path_GREP" || continue
6227 # Check for GNU ac_path_GREP and select it if it is found.
6228   # Check for GNU $ac_path_GREP
6229 case `"$ac_path_GREP" --version 2>&1` in
6230 *GNU*)
6231   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6232 *)
6233   ac_count=0
6234   $as_echo_n 0123456789 >"conftest.in"
6235   while :
6236   do
6237     cat "conftest.in" "conftest.in" >"conftest.tmp"
6238     mv "conftest.tmp" "conftest.in"
6239     cp "conftest.in" "conftest.nl"
6240     $as_echo 'GREP' >> "conftest.nl"
6241     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6243     as_fn_arith $ac_count + 1 && ac_count=$as_val
6244     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6245       # Best one so far, save it but keep looking for a better one
6246       ac_cv_path_GREP="$ac_path_GREP"
6247       ac_path_GREP_max=$ac_count
6248     fi
6249     # 10*(2^10) chars as input seems more than enough
6250     test $ac_count -gt 10 && break
6251   done
6252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6253 esac
6254
6255       $ac_path_GREP_found && break 3
6256     done
6257   done
6258   done
6259 IFS=$as_save_IFS
6260   if test -z "$ac_cv_path_GREP"; then
6261     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6262   fi
6263 else
6264   ac_cv_path_GREP=$GREP
6265 fi
6266
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6269 $as_echo "$ac_cv_path_GREP" >&6; }
6270  GREP="$ac_cv_path_GREP"
6271
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6274 $as_echo_n "checking for egrep... " >&6; }
6275 if ${ac_cv_path_EGREP+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6279    then ac_cv_path_EGREP="$GREP -E"
6280    else
6281      if test -z "$EGREP"; then
6282   ac_path_EGREP_found=false
6283   # Loop through the user's path and test for each of PROGNAME-LIST
6284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_prog in egrep; do
6290     for ac_exec_ext in '' $ac_executable_extensions; do
6291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6292       as_fn_executable_p "$ac_path_EGREP" || continue
6293 # Check for GNU ac_path_EGREP and select it if it is found.
6294   # Check for GNU $ac_path_EGREP
6295 case `"$ac_path_EGREP" --version 2>&1` in
6296 *GNU*)
6297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6298 *)
6299   ac_count=0
6300   $as_echo_n 0123456789 >"conftest.in"
6301   while :
6302   do
6303     cat "conftest.in" "conftest.in" >"conftest.tmp"
6304     mv "conftest.tmp" "conftest.in"
6305     cp "conftest.in" "conftest.nl"
6306     $as_echo 'EGREP' >> "conftest.nl"
6307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6309     as_fn_arith $ac_count + 1 && ac_count=$as_val
6310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6311       # Best one so far, save it but keep looking for a better one
6312       ac_cv_path_EGREP="$ac_path_EGREP"
6313       ac_path_EGREP_max=$ac_count
6314     fi
6315     # 10*(2^10) chars as input seems more than enough
6316     test $ac_count -gt 10 && break
6317   done
6318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6319 esac
6320
6321       $ac_path_EGREP_found && break 3
6322     done
6323   done
6324   done
6325 IFS=$as_save_IFS
6326   if test -z "$ac_cv_path_EGREP"; then
6327     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6328   fi
6329 else
6330   ac_cv_path_EGREP=$EGREP
6331 fi
6332
6333    fi
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6336 $as_echo "$ac_cv_path_EGREP" >&6; }
6337  EGREP="$ac_cv_path_EGREP"
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6341 $as_echo_n "checking for ANSI C header files... " >&6; }
6342 if ${ac_cv_header_stdc+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347 #include <stdlib.h>
6348 #include <stdarg.h>
6349 #include <string.h>
6350 #include <float.h>
6351
6352 int
6353 main ()
6354 {
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361   ac_cv_header_stdc=yes
6362 else
6363   ac_cv_header_stdc=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366
6367 if test $ac_cv_header_stdc = yes; then
6368   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371 #include <string.h>
6372
6373 _ACEOF
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375   $EGREP "memchr" >/dev/null 2>&1; then :
6376
6377 else
6378   ac_cv_header_stdc=no
6379 fi
6380 rm -f conftest*
6381
6382 fi
6383
6384 if test $ac_cv_header_stdc = yes; then
6385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h.  */
6388 #include <stdlib.h>
6389
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392   $EGREP "free" >/dev/null 2>&1; then :
6393
6394 else
6395   ac_cv_header_stdc=no
6396 fi
6397 rm -f conftest*
6398
6399 fi
6400
6401 if test $ac_cv_header_stdc = yes; then
6402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403   if test "$cross_compiling" = yes; then :
6404   :
6405 else
6406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408 #include <ctype.h>
6409 #include <stdlib.h>
6410 #if ((' ' & 0x0FF) == 0x020)
6411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6413 #else
6414 # define ISLOWER(c) \
6415                    (('a' <= (c) && (c) <= 'i') \
6416                      || ('j' <= (c) && (c) <= 'r') \
6417                      || ('s' <= (c) && (c) <= 'z'))
6418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6419 #endif
6420
6421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6422 int
6423 main ()
6424 {
6425   int i;
6426   for (i = 0; i < 256; i++)
6427     if (XOR (islower (i), ISLOWER (i))
6428         || toupper (i) != TOUPPER (i))
6429       return 2;
6430   return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_run "$LINENO"; then :
6434
6435 else
6436   ac_cv_header_stdc=no
6437 fi
6438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6439   conftest.$ac_objext conftest.beam conftest.$ac_ext
6440 fi
6441
6442 fi
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6445 $as_echo "$ac_cv_header_stdc" >&6; }
6446 if test $ac_cv_header_stdc = yes; then
6447
6448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6449
6450 fi
6451
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6453 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6454 if ${ac_cv_c_const+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459
6460 int
6461 main ()
6462 {
6463
6464 #ifndef __cplusplus
6465   /* Ultrix mips cc rejects this sort of thing.  */
6466   typedef int charset[2];
6467   const charset cs = { 0, 0 };
6468   /* SunOS 4.1.1 cc rejects this.  */
6469   char const *const *pcpcc;
6470   char **ppc;
6471   /* NEC SVR4.0.2 mips cc rejects this.  */
6472   struct point {int x, y;};
6473   static struct point const zero = {0,0};
6474   /* AIX XL C 1.02.0.0 rejects this.
6475      It does not let you subtract one const X* pointer from another in
6476      an arm of an if-expression whose if-part is not a constant
6477      expression */
6478   const char *g = "string";
6479   pcpcc = &g + (g ? g-g : 0);
6480   /* HPUX 7.0 cc rejects these. */
6481   ++pcpcc;
6482   ppc = (char**) pcpcc;
6483   pcpcc = (char const *const *) ppc;
6484   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6485     char tx;
6486     char *t = &tx;
6487     char const *s = 0 ? (char *) 0 : (char const *) 0;
6488
6489     *t++ = 0;
6490     if (s) return 0;
6491   }
6492   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6493     int x[] = {25, 17};
6494     const int *foo = &x[0];
6495     ++foo;
6496   }
6497   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6498     typedef const int *iptr;
6499     iptr p = 0;
6500     ++p;
6501   }
6502   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6503        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6504     struct s { int j; const int *ap[3]; } bx;
6505     struct s *b = &bx; b->j = 5;
6506   }
6507   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6508     const int foo = 10;
6509     if (!foo) return 0;
6510   }
6511   return !cs[0] && !zero.x;
6512 #endif
6513
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519   ac_cv_c_const=yes
6520 else
6521   ac_cv_c_const=no
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 fi
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6526 $as_echo "$ac_cv_c_const" >&6; }
6527 if test $ac_cv_c_const = no; then
6528
6529 $as_echo "#define const /**/" >>confdefs.h
6530
6531 fi
6532
6533
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6535 $as_echo_n "checking for signed... " >&6; }
6536 if ${bh_cv_c_signed+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h.  */
6541
6542 int
6543 main ()
6544 {
6545 signed char x;
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551   bh_cv_c_signed=yes
6552 else
6553   bh_cv_c_signed=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6558 $as_echo "$bh_cv_c_signed" >&6; }
6559   if test $bh_cv_c_signed = no; then
6560
6561 $as_echo "#define signed /**/" >>confdefs.h
6562
6563   fi
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6566 $as_echo_n "checking for inline... " >&6; }
6567 if ${ac_cv_c_inline+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   ac_cv_c_inline=no
6571 for ac_kw in inline __inline__ __inline; do
6572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h.  */
6574 #ifndef __cplusplus
6575 typedef int foo_t;
6576 static $ac_kw foo_t static_foo () {return 0; }
6577 $ac_kw foo_t foo () {return 0; }
6578 #endif
6579
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582   ac_cv_c_inline=$ac_kw
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585   test "$ac_cv_c_inline" != no && break
6586 done
6587
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6590 $as_echo "$ac_cv_c_inline" >&6; }
6591
6592 case $ac_cv_c_inline in
6593   inline | yes) ;;
6594   *)
6595     case $ac_cv_c_inline in
6596       no) ac_val=;;
6597       *) ac_val=$ac_cv_c_inline;;
6598     esac
6599     cat >>confdefs.h <<_ACEOF
6600 #ifndef __cplusplus
6601 #define inline $ac_val
6602 #endif
6603 _ACEOF
6604     ;;
6605 esac
6606
6607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6609                   inttypes.h stdint.h unistd.h
6610 do :
6611   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6613 "
6614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6615   cat >>confdefs.h <<_ACEOF
6616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 _ACEOF
6618
6619 fi
6620
6621 done
6622
6623
6624 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6625 if test "x$ac_cv_type_off_t" = xyes; then :
6626
6627 else
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define off_t long int
6631 _ACEOF
6632
6633 fi
6634
6635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6636 if test "x$ac_cv_type_size_t" = xyes; then :
6637
6638 else
6639
6640 cat >>confdefs.h <<_ACEOF
6641 #define size_t unsigned int
6642 _ACEOF
6643
6644 fi
6645
6646
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6648 $as_echo_n "checking for long long... " >&6; }
6649 if ${ac_cv_type_long_long+:} false; then :
6650   $as_echo_n "(cached) " >&6
6651 else
6652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h.  */
6654 long long ll = 1LL; int i = 63;
6655 int
6656 main ()
6657 {
6658 long long llmax = (long long) -1;
6659      return ll << i | ll >> i | llmax / ll | llmax % ll;
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 if ac_fn_c_try_link "$LINENO"; then :
6665   ac_cv_type_long_long=yes
6666 else
6667   ac_cv_type_long_long=no
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext \
6670     conftest$ac_exeext conftest.$ac_ext
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6673 $as_echo "$ac_cv_type_long_long" >&6; }
6674   if test $ac_cv_type_long_long = yes; then
6675
6676 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6677
6678   fi
6679
6680
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6682 $as_echo_n "checking for long double... " >&6; }
6683 if ${gt_cv_c_long_double+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test "$GCC" = yes; then
6687        gt_cv_c_long_double=yes
6688      else
6689        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h.  */
6691
6692          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6693          long double foo = 0.0;
6694          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6695          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6696
6697 int
6698 main ()
6699 {
6700
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706   gt_cv_c_long_double=yes
6707 else
6708   gt_cv_c_long_double=no
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711      fi
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6714 $as_echo "$gt_cv_c_long_double" >&6; }
6715   if test $gt_cv_c_long_double = yes; then
6716
6717 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6718
6719   fi
6720
6721
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6723 $as_echo_n "checking for wchar_t... " >&6; }
6724 if ${gt_cv_c_wchar_t+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h.  */
6729 #include <stddef.h>
6730        wchar_t foo = (wchar_t)'\0';
6731 int
6732 main ()
6733 {
6734
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740   gt_cv_c_wchar_t=yes
6741 else
6742   gt_cv_c_wchar_t=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6747 $as_echo "$gt_cv_c_wchar_t" >&6; }
6748   if test $gt_cv_c_wchar_t = yes; then
6749
6750 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6751
6752   fi
6753
6754
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6756 $as_echo_n "checking for wint_t... " >&6; }
6757 if ${gt_cv_c_wint_t+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762 #include <wchar.h>
6763        wint_t foo = (wchar_t)'\0';
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773   gt_cv_c_wint_t=yes
6774 else
6775   gt_cv_c_wint_t=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6780 $as_echo "$gt_cv_c_wint_t" >&6; }
6781   if test $gt_cv_c_wint_t = yes; then
6782
6783 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6784
6785   fi
6786
6787
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6789 $as_echo_n "checking for inttypes.h... " >&6; }
6790 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h.  */
6795 #include <sys/types.h>
6796 #include <inttypes.h>
6797 int
6798 main ()
6799 {
6800 uintmax_t i = (uintmax_t) -1;
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806   jm_ac_cv_header_inttypes_h=yes
6807 else
6808   jm_ac_cv_header_inttypes_h=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6813 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6814   if test $jm_ac_cv_header_inttypes_h = yes; then
6815
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6818 _ACEOF
6819
6820   fi
6821
6822
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6824 $as_echo_n "checking for stdint.h... " >&6; }
6825 if ${jm_ac_cv_header_stdint_h+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h.  */
6830 #include <sys/types.h>
6831 #include <stdint.h>
6832 int
6833 main ()
6834 {
6835 uintmax_t i = (uintmax_t) -1;
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841   jm_ac_cv_header_stdint_h=yes
6842 else
6843   jm_ac_cv_header_stdint_h=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6848 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6849   if test $jm_ac_cv_header_stdint_h = yes; then
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STDINT_H_WITH_UINTMAX 1
6853 _ACEOF
6854
6855   fi
6856
6857
6858
6859
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6861 $as_echo_n "checking for intmax_t... " >&6; }
6862 if ${gt_cv_c_intmax_t+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867
6868 #include <stddef.h>
6869 #include <stdlib.h>
6870 #if HAVE_STDINT_H_WITH_UINTMAX
6871 #include <stdint.h>
6872 #endif
6873 #if HAVE_INTTYPES_H_WITH_UINTMAX
6874 #include <inttypes.h>
6875 #endif
6876
6877 int
6878 main ()
6879 {
6880 intmax_t x = -1;
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886   gt_cv_c_intmax_t=yes
6887 else
6888   gt_cv_c_intmax_t=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6893 $as_echo "$gt_cv_c_intmax_t" >&6; }
6894   if test $gt_cv_c_intmax_t = yes; then
6895
6896 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6897
6898   fi
6899
6900
6901
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6903 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6904 if ${gt_cv_func_printf_posix+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907
6908       if test "$cross_compiling" = yes; then :
6909
6910         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912
6913 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6914   notposix
6915 #endif
6916
6917 _ACEOF
6918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6919   $EGREP "notposix" >/dev/null 2>&1; then :
6920   gt_cv_func_printf_posix="guessing no"
6921 else
6922   gt_cv_func_printf_posix="guessing yes"
6923 fi
6924 rm -f conftest*
6925
6926
6927 else
6928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 #include <stdio.h>
6932 #include <string.h>
6933 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6934    dollar expansion (possibly an autoconf bug).  */
6935 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6936 static char buf[100];
6937 int main ()
6938 {
6939   sprintf (buf, format, 33, 55);
6940   return (strcmp (buf, "55 33") != 0);
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_run "$LINENO"; then :
6944   gt_cv_func_printf_posix=yes
6945 else
6946   gt_cv_func_printf_posix=no
6947 fi
6948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6949   conftest.$ac_objext conftest.beam conftest.$ac_ext
6950 fi
6951
6952
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6955 $as_echo "$gt_cv_func_printf_posix" >&6; }
6956   case $gt_cv_func_printf_posix in
6957     *yes)
6958
6959 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6960
6961       ;;
6962   esac
6963
6964 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6965 # for constant arguments.  Useless!
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6967 $as_echo_n "checking for working alloca.h... " >&6; }
6968 if ${ac_cv_working_alloca_h+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973 #include <alloca.h>
6974 int
6975 main ()
6976 {
6977 char *p = (char *) alloca (2 * sizeof (int));
6978                           if (p) return 0;
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984   ac_cv_working_alloca_h=yes
6985 else
6986   ac_cv_working_alloca_h=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext \
6989     conftest$ac_exeext conftest.$ac_ext
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6992 $as_echo "$ac_cv_working_alloca_h" >&6; }
6993 if test $ac_cv_working_alloca_h = yes; then
6994
6995 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6996
6997 fi
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7000 $as_echo_n "checking for alloca... " >&6; }
7001 if ${ac_cv_func_alloca_works+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h.  */
7006 #ifdef __GNUC__
7007 # define alloca __builtin_alloca
7008 #else
7009 # ifdef _MSC_VER
7010 #  include <malloc.h>
7011 #  define alloca _alloca
7012 # else
7013 #  ifdef HAVE_ALLOCA_H
7014 #   include <alloca.h>
7015 #  else
7016 #   ifdef _AIX
7017  #pragma alloca
7018 #   else
7019 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7020 void *alloca (size_t);
7021 #    endif
7022 #   endif
7023 #  endif
7024 # endif
7025 #endif
7026
7027 int
7028 main ()
7029 {
7030 char *p = (char *) alloca (1);
7031                                     if (p) return 0;
7032   ;
7033   return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037   ac_cv_func_alloca_works=yes
7038 else
7039   ac_cv_func_alloca_works=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042     conftest$ac_exeext conftest.$ac_ext
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7045 $as_echo "$ac_cv_func_alloca_works" >&6; }
7046
7047 if test $ac_cv_func_alloca_works = yes; then
7048
7049 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7050
7051 else
7052   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7053 # that cause trouble.  Some versions do not even contain alloca or
7054 # contain a buggy version.  If you still want to use their alloca,
7055 # use ar to extract alloca.o from them instead of compiling alloca.c.
7056
7057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7058
7059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7060
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7064 if ${ac_cv_os_cray+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069 #if defined CRAY && ! defined CRAY2
7070 webecray
7071 #else
7072 wenotbecray
7073 #endif
7074
7075 _ACEOF
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077   $EGREP "webecray" >/dev/null 2>&1; then :
7078   ac_cv_os_cray=yes
7079 else
7080   ac_cv_os_cray=no
7081 fi
7082 rm -f conftest*
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7086 $as_echo "$ac_cv_os_cray" >&6; }
7087 if test $ac_cv_os_cray = yes; then
7088   for ac_func in _getb67 GETB67 getb67; do
7089     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define CRAY_STACKSEG_END $ac_func
7095 _ACEOF
7096
7097     break
7098 fi
7099
7100   done
7101 fi
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7104 $as_echo_n "checking stack direction for C alloca... " >&6; }
7105 if ${ac_cv_c_stack_direction+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if test "$cross_compiling" = yes; then :
7109   ac_cv_c_stack_direction=0
7110 else
7111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 int
7115 find_stack_direction (int *addr, int depth)
7116 {
7117   int dir, dummy = 0;
7118   if (! addr)
7119     addr = &dummy;
7120   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7121   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7122   return dir + dummy;
7123 }
7124
7125 int
7126 main (int argc, char **argv)
7127 {
7128   return find_stack_direction (0, argc + !argv + 20) < 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_run "$LINENO"; then :
7132   ac_cv_c_stack_direction=1
7133 else
7134   ac_cv_c_stack_direction=-1
7135 fi
7136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7137   conftest.$ac_objext conftest.beam conftest.$ac_ext
7138 fi
7139
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7142 $as_echo "$ac_cv_c_stack_direction" >&6; }
7143 cat >>confdefs.h <<_ACEOF
7144 #define STACK_DIRECTION $ac_cv_c_stack_direction
7145 _ACEOF
7146
7147
7148 fi
7149
7150
7151
7152
7153   for ac_header in $ac_header_list
7154 do :
7155   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7157 "
7158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7159   cat >>confdefs.h <<_ACEOF
7160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161 _ACEOF
7162
7163 fi
7164
7165 done
7166
7167
7168
7169
7170
7171
7172
7173
7174 for ac_func in getpagesize
7175 do :
7176   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7177 if test "x$ac_cv_func_getpagesize" = xyes; then :
7178   cat >>confdefs.h <<_ACEOF
7179 #define HAVE_GETPAGESIZE 1
7180 _ACEOF
7181
7182 fi
7183 done
7184
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7186 $as_echo_n "checking for working mmap... " >&6; }
7187 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   if test "$cross_compiling" = yes; then :
7191   ac_cv_func_mmap_fixed_mapped=no
7192 else
7193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h.  */
7195 $ac_includes_default
7196 /* malloc might have been renamed as rpl_malloc. */
7197 #undef malloc
7198
7199 /* Thanks to Mike Haertel and Jim Avera for this test.
7200    Here is a matrix of mmap possibilities:
7201         mmap private not fixed
7202         mmap private fixed at somewhere currently unmapped
7203         mmap private fixed at somewhere already mapped
7204         mmap shared not fixed
7205         mmap shared fixed at somewhere currently unmapped
7206         mmap shared fixed at somewhere already mapped
7207    For private mappings, we should verify that changes cannot be read()
7208    back from the file, nor mmap's back from the file at a different
7209    address.  (There have been systems where private was not correctly
7210    implemented like the infamous i386 svr4.0, and systems where the
7211    VM page cache was not coherent with the file system buffer cache
7212    like early versions of FreeBSD and possibly contemporary NetBSD.)
7213    For shared mappings, we should conversely verify that changes get
7214    propagated back to all the places they're supposed to be.
7215
7216    Grep wants private fixed already mapped.
7217    The main things grep needs to know about mmap are:
7218    * does it exist and is it safe to write into the mmap'd area
7219    * how to use it (BSD variants)  */
7220
7221 #include <fcntl.h>
7222 #include <sys/mman.h>
7223
7224 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7225 char *malloc ();
7226 #endif
7227
7228 /* This mess was copied from the GNU getpagesize.h.  */
7229 #ifndef HAVE_GETPAGESIZE
7230 # ifdef _SC_PAGESIZE
7231 #  define getpagesize() sysconf(_SC_PAGESIZE)
7232 # else /* no _SC_PAGESIZE */
7233 #  ifdef HAVE_SYS_PARAM_H
7234 #   include <sys/param.h>
7235 #   ifdef EXEC_PAGESIZE
7236 #    define getpagesize() EXEC_PAGESIZE
7237 #   else /* no EXEC_PAGESIZE */
7238 #    ifdef NBPG
7239 #     define getpagesize() NBPG * CLSIZE
7240 #     ifndef CLSIZE
7241 #      define CLSIZE 1
7242 #     endif /* no CLSIZE */
7243 #    else /* no NBPG */
7244 #     ifdef NBPC
7245 #      define getpagesize() NBPC
7246 #     else /* no NBPC */
7247 #      ifdef PAGESIZE
7248 #       define getpagesize() PAGESIZE
7249 #      endif /* PAGESIZE */
7250 #     endif /* no NBPC */
7251 #    endif /* no NBPG */
7252 #   endif /* no EXEC_PAGESIZE */
7253 #  else /* no HAVE_SYS_PARAM_H */
7254 #   define getpagesize() 8192   /* punt totally */
7255 #  endif /* no HAVE_SYS_PARAM_H */
7256 # endif /* no _SC_PAGESIZE */
7257
7258 #endif /* no HAVE_GETPAGESIZE */
7259
7260 int
7261 main ()
7262 {
7263   char *data, *data2, *data3;
7264   const char *cdata2;
7265   int i, pagesize;
7266   int fd, fd2;
7267
7268   pagesize = getpagesize ();
7269
7270   /* First, make a file with some known garbage in it. */
7271   data = (char *) malloc (pagesize);
7272   if (!data)
7273     return 1;
7274   for (i = 0; i < pagesize; ++i)
7275     *(data + i) = rand ();
7276   umask (0);
7277   fd = creat ("conftest.mmap", 0600);
7278   if (fd < 0)
7279     return 2;
7280   if (write (fd, data, pagesize) != pagesize)
7281     return 3;
7282   close (fd);
7283
7284   /* Next, check that the tail of a page is zero-filled.  File must have
7285      non-zero length, otherwise we risk SIGBUS for entire page.  */
7286   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7287   if (fd2 < 0)
7288     return 4;
7289   cdata2 = "";
7290   if (write (fd2, cdata2, 1) != 1)
7291     return 5;
7292   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7293   if (data2 == MAP_FAILED)
7294     return 6;
7295   for (i = 0; i < pagesize; ++i)
7296     if (*(data2 + i))
7297       return 7;
7298   close (fd2);
7299   if (munmap (data2, pagesize))
7300     return 8;
7301
7302   /* Next, try to mmap the file at a fixed address which already has
7303      something else allocated at it.  If we can, also make sure that
7304      we see the same garbage.  */
7305   fd = open ("conftest.mmap", O_RDWR);
7306   if (fd < 0)
7307     return 9;
7308   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7309                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7310     return 10;
7311   for (i = 0; i < pagesize; ++i)
7312     if (*(data + i) != *(data2 + i))
7313       return 11;
7314
7315   /* Finally, make sure that changes to the mapped area do not
7316      percolate back to the file as seen by read().  (This is a bug on
7317      some variants of i386 svr4.0.)  */
7318   for (i = 0; i < pagesize; ++i)
7319     *(data2 + i) = *(data2 + i) + 1;
7320   data3 = (char *) malloc (pagesize);
7321   if (!data3)
7322     return 12;
7323   if (read (fd, data3, pagesize) != pagesize)
7324     return 13;
7325   for (i = 0; i < pagesize; ++i)
7326     if (*(data + i) != *(data3 + i))
7327       return 14;
7328   close (fd);
7329   return 0;
7330 }
7331 _ACEOF
7332 if ac_fn_c_try_run "$LINENO"; then :
7333   ac_cv_func_mmap_fixed_mapped=yes
7334 else
7335   ac_cv_func_mmap_fixed_mapped=no
7336 fi
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338   conftest.$ac_objext conftest.beam conftest.$ac_ext
7339 fi
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7343 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7344 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7345
7346 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7347
7348 fi
7349 rm -f conftest.mmap conftest.txt
7350
7351
7352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7353 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7354 if ${ac_cv_gnu_library_2_1+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h.  */
7359
7360 #include <features.h>
7361 #ifdef __GNU_LIBRARY__
7362  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7363   Lucky GNU user
7364  #endif
7365 #endif
7366
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7370   ac_cv_gnu_library_2_1=yes
7371 else
7372   ac_cv_gnu_library_2_1=no
7373 fi
7374 rm -f conftest*
7375
7376
7377
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7380 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7381
7382     GLIBC21="$ac_cv_gnu_library_2_1"
7383
7384
7385
7386
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7388 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7389 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392
7393       if test "$cross_compiling" = yes; then :
7394
7395           # Guess based on the CPU.
7396           case "$host_cpu" in
7397             alpha* | i3456786 | m68k | s390*)
7398               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7399             *)
7400               gt_cv_int_divbyzero_sigfpe="guessing no";;
7401           esac
7402
7403 else
7404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h.  */
7406
7407 #include <stdlib.h>
7408 #include <signal.h>
7409
7410 static void
7411 #ifdef __cplusplus
7412 sigfpe_handler (int sig)
7413 #else
7414 sigfpe_handler (sig) int sig;
7415 #endif
7416 {
7417   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7418   exit (sig != SIGFPE);
7419 }
7420
7421 int x = 1;
7422 int y = 0;
7423 int z;
7424 int nan;
7425
7426 int main ()
7427 {
7428   signal (SIGFPE, sigfpe_handler);
7429 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7430 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7431   signal (SIGTRAP, sigfpe_handler);
7432 #endif
7433 /* Linux/SPARC yields signal SIGILL.  */
7434 #if defined (__sparc__) && defined (__linux__)
7435   signal (SIGILL, sigfpe_handler);
7436 #endif
7437
7438   z = x / y;
7439   nan = y / y;
7440   exit (1);
7441 }
7442
7443 _ACEOF
7444 if ac_fn_c_try_run "$LINENO"; then :
7445   gt_cv_int_divbyzero_sigfpe=yes
7446 else
7447   gt_cv_int_divbyzero_sigfpe=no
7448 fi
7449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7450   conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 fi
7452
7453
7454 fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7456 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7457   case "$gt_cv_int_divbyzero_sigfpe" in
7458     *yes) value=1;;
7459     *) value=0;;
7460   esac
7461
7462 cat >>confdefs.h <<_ACEOF
7463 #define INTDIV0_RAISES_SIGFPE $value
7464 _ACEOF
7465
7466
7467
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7469 $as_echo_n "checking for unsigned long long... " >&6; }
7470 if ${ac_cv_type_unsigned_long_long+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 unsigned long long ull = 1ULL; int i = 63;
7476 int
7477 main ()
7478 {
7479 unsigned long long ullmax = (unsigned long long) -1;
7480      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486   ac_cv_type_unsigned_long_long=yes
7487 else
7488   ac_cv_type_unsigned_long_long=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491     conftest$ac_exeext conftest.$ac_ext
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7494 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7495   if test $ac_cv_type_unsigned_long_long = yes; then
7496
7497 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7498
7499   fi
7500
7501
7502
7503
7504   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7505
7506     test $ac_cv_type_unsigned_long_long = yes \
7507       && ac_type='unsigned long long' \
7508       || ac_type='unsigned long'
7509
7510 cat >>confdefs.h <<_ACEOF
7511 #define uintmax_t $ac_type
7512 _ACEOF
7513
7514   else
7515
7516 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7517
7518   fi
7519
7520
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7522 $as_echo_n "checking for inttypes.h... " >&6; }
7523 if ${gt_cv_header_inttypes_h+:} false; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526
7527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h.  */
7529 #include <sys/types.h>
7530 #include <inttypes.h>
7531 int
7532 main ()
7533 {
7534
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540   gt_cv_header_inttypes_h=yes
7541 else
7542   gt_cv_header_inttypes_h=no
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7548 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7549   if test $gt_cv_header_inttypes_h = yes; then
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define HAVE_INTTYPES_H 1
7553 _ACEOF
7554
7555   fi
7556
7557
7558
7559   if test $gt_cv_header_inttypes_h = yes; then
7560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7561 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7562 if ${gt_cv_inttypes_pri_broken+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565
7566         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h.  */
7568 #include <inttypes.h>
7569 #ifdef PRId32
7570 char *p = PRId32;
7571 #endif
7572
7573 int
7574 main ()
7575 {
7576
7577   ;
7578   return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582   gt_cv_inttypes_pri_broken=no
7583 else
7584   gt_cv_inttypes_pri_broken=yes
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7590 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7591   fi
7592   if test "$gt_cv_inttypes_pri_broken" = yes; then
7593
7594 cat >>confdefs.h <<_ACEOF
7595 #define PRI_MACROS_BROKEN 1
7596 _ACEOF
7597
7598   fi
7599
7600
7601   for ac_header in stdint.h
7602 do :
7603   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7604 if test "x$ac_cv_header_stdint_h" = xyes; then :
7605   cat >>confdefs.h <<_ACEOF
7606 #define HAVE_STDINT_H 1
7607 _ACEOF
7608
7609 fi
7610
7611 done
7612
7613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7614 $as_echo_n "checking for SIZE_MAX... " >&6; }
7615   result=
7616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h.  */
7618
7619 #include <limits.h>
7620 #if HAVE_STDINT_H
7621 #include <stdint.h>
7622 #endif
7623 #ifdef SIZE_MAX
7624 Found it
7625 #endif
7626
7627 _ACEOF
7628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7629   $EGREP "Found it" >/dev/null 2>&1; then :
7630   result=yes
7631 fi
7632 rm -f conftest*
7633
7634   if test -z "$result"; then
7635                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7636
7637 else
7638   result=?
7639 fi
7640
7641
7642     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7643
7644 else
7645   result=?
7646 fi
7647
7648
7649     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7650
7651 else
7652   result=?
7653 fi
7654
7655
7656     if test "$fits_in_uint" = 1; then
7657                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h.  */
7659 #include <stddef.h>
7660         extern size_t foo;
7661         extern unsigned long foo;
7662
7663 int
7664 main ()
7665 {
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672   fits_in_uint=0
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675     fi
7676     if test -z "$result"; then
7677       if test "$fits_in_uint" = 1; then
7678         result="$res_hi$res_lo"U
7679       else
7680         result="$res_hi$res_lo"UL
7681       fi
7682     else
7683             result='~(size_t)0'
7684     fi
7685   fi
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7687 $as_echo "$result" >&6; }
7688   if test "$result" != yes; then
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define SIZE_MAX $result
7692 _ACEOF
7693
7694   fi
7695
7696
7697
7698   for ac_header in stdint.h
7699 do :
7700   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7701 if test "x$ac_cv_header_stdint_h" = xyes; then :
7702   cat >>confdefs.h <<_ACEOF
7703 #define HAVE_STDINT_H 1
7704 _ACEOF
7705
7706 fi
7707
7708 done
7709
7710
7711
7712       if test "X$prefix" = "XNONE"; then
7713     acl_final_prefix="$ac_default_prefix"
7714   else
7715     acl_final_prefix="$prefix"
7716   fi
7717   if test "X$exec_prefix" = "XNONE"; then
7718     acl_final_exec_prefix='${prefix}'
7719   else
7720     acl_final_exec_prefix="$exec_prefix"
7721   fi
7722   acl_save_prefix="$prefix"
7723   prefix="$acl_final_prefix"
7724   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7725   prefix="$acl_save_prefix"
7726
7727
7728 # Check whether --with-gnu-ld was given.
7729 if test "${with_gnu_ld+set}" = set; then :
7730   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7731 else
7732   with_gnu_ld=no
7733 fi
7734
7735 # Prepare PATH_SEPARATOR.
7736 # The user is always right.
7737 if test "${PATH_SEPARATOR+set}" != set; then
7738   echo "#! /bin/sh" >conf$$.sh
7739   echo  "exit 0"   >>conf$$.sh
7740   chmod +x conf$$.sh
7741   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7742     PATH_SEPARATOR=';'
7743   else
7744     PATH_SEPARATOR=:
7745   fi
7746   rm -f conf$$.sh
7747 fi
7748 ac_prog=ld
7749 if test "$GCC" = yes; then
7750   # Check if gcc -print-prog-name=ld gives a path.
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7752 $as_echo_n "checking for ld used by GCC... " >&6; }
7753   case $host in
7754   *-*-mingw*)
7755     # gcc leaves a trailing carriage return which upsets mingw
7756     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7757   *)
7758     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7759   esac
7760   case $ac_prog in
7761     # Accept absolute paths.
7762     [\\/]* | [A-Za-z]:[\\/]*)
7763       re_direlt='/[^/][^/]*/\.\./'
7764       # Canonicalize the path of ld
7765       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7766       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7767         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7768       done
7769       test -z "$LD" && LD="$ac_prog"
7770       ;;
7771   "")
7772     # If it fails, then pretend we aren't using GCC.
7773     ac_prog=ld
7774     ;;
7775   *)
7776     # If it is relative, then search for the first ld in PATH.
7777     with_gnu_ld=unknown
7778     ;;
7779   esac
7780 elif test "$with_gnu_ld" = yes; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7782 $as_echo_n "checking for GNU ld... " >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7785 $as_echo_n "checking for non-GNU ld... " >&6; }
7786 fi
7787 if ${acl_cv_path_LD+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   if test -z "$LD"; then
7791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7792   for ac_dir in $PATH; do
7793     test -z "$ac_dir" && ac_dir=.
7794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795       acl_cv_path_LD="$ac_dir/$ac_prog"
7796       # Check to see if the program is GNU ld.  I'd rather use --version,
7797       # but apparently some GNU ld's only accept -v.
7798       # Break only if it was the GNU/non-GNU ld that we prefer.
7799       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7800       *GNU* | *'with BFD'*)
7801         test "$with_gnu_ld" != no && break ;;
7802       *)
7803         test "$with_gnu_ld" != yes && break ;;
7804       esac
7805     fi
7806   done
7807   IFS="$ac_save_ifs"
7808 else
7809   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7810 fi
7811 fi
7812
7813 LD="$acl_cv_path_LD"
7814 if test -n "$LD"; then
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7816 $as_echo "$LD" >&6; }
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7824 if ${acl_cv_prog_gnu_ld+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7828 case `$LD -v 2>&1 </dev/null` in
7829 *GNU* | *'with BFD'*)
7830   acl_cv_prog_gnu_ld=yes ;;
7831 *)
7832   acl_cv_prog_gnu_ld=no ;;
7833 esac
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7836 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7837 with_gnu_ld=$acl_cv_prog_gnu_ld
7838
7839
7840
7841                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7842 $as_echo_n "checking for shared library run path origin... " >&6; }
7843 if ${acl_cv_rpath+:} false; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846
7847     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7848     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7849     . ./conftest.sh
7850     rm -f ./conftest.sh
7851     acl_cv_rpath=done
7852
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7855 $as_echo "$acl_cv_rpath" >&6; }
7856   wl="$acl_cv_wl"
7857   libext="$acl_cv_libext"
7858   shlibext="$acl_cv_shlibext"
7859   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7860   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7861   hardcode_direct="$acl_cv_hardcode_direct"
7862   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7863     # Check whether --enable-rpath was given.
7864 if test "${enable_rpath+set}" = set; then :
7865   enableval=$enable_rpath; :
7866 else
7867   enable_rpath=yes
7868 fi
7869
7870
7871
7872
7873
7874
7875
7876
7877     use_additional=yes
7878
7879   acl_save_prefix="$prefix"
7880   prefix="$acl_final_prefix"
7881   acl_save_exec_prefix="$exec_prefix"
7882   exec_prefix="$acl_final_exec_prefix"
7883
7884     eval additional_includedir=\"$includedir\"
7885     eval additional_libdir=\"$libdir\"
7886
7887   exec_prefix="$acl_save_exec_prefix"
7888   prefix="$acl_save_prefix"
7889
7890
7891 # Check whether --with-libiconv-prefix was given.
7892 if test "${with_libiconv_prefix+set}" = set; then :
7893   withval=$with_libiconv_prefix;
7894     if test "X$withval" = "Xno"; then
7895       use_additional=no
7896     else
7897       if test "X$withval" = "X"; then
7898
7899   acl_save_prefix="$prefix"
7900   prefix="$acl_final_prefix"
7901   acl_save_exec_prefix="$exec_prefix"
7902   exec_prefix="$acl_final_exec_prefix"
7903
7904           eval additional_includedir=\"$includedir\"
7905           eval additional_libdir=\"$libdir\"
7906
7907   exec_prefix="$acl_save_exec_prefix"
7908   prefix="$acl_save_prefix"
7909
7910       else
7911         additional_includedir="$withval/include"
7912         additional_libdir="$withval/lib"
7913       fi
7914     fi
7915
7916 fi
7917
7918       LIBICONV=
7919   LTLIBICONV=
7920   INCICONV=
7921   rpathdirs=
7922   ltrpathdirs=
7923   names_already_handled=
7924   names_next_round='iconv '
7925   while test -n "$names_next_round"; do
7926     names_this_round="$names_next_round"
7927     names_next_round=
7928     for name in $names_this_round; do
7929       already_handled=
7930       for n in $names_already_handled; do
7931         if test "$n" = "$name"; then
7932           already_handled=yes
7933           break
7934         fi
7935       done
7936       if test -z "$already_handled"; then
7937         names_already_handled="$names_already_handled $name"
7938                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7939         eval value=\"\$HAVE_LIB$uppername\"
7940         if test -n "$value"; then
7941           if test "$value" = yes; then
7942             eval value=\"\$LIB$uppername\"
7943             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7944             eval value=\"\$LTLIB$uppername\"
7945             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7946           else
7947                                     :
7948           fi
7949         else
7950                               found_dir=
7951           found_la=
7952           found_so=
7953           found_a=
7954           if test $use_additional = yes; then
7955             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7956               found_dir="$additional_libdir"
7957               found_so="$additional_libdir/lib$name.$shlibext"
7958               if test -f "$additional_libdir/lib$name.la"; then
7959                 found_la="$additional_libdir/lib$name.la"
7960               fi
7961             else
7962               if test -f "$additional_libdir/lib$name.$libext"; then
7963                 found_dir="$additional_libdir"
7964                 found_a="$additional_libdir/lib$name.$libext"
7965                 if test -f "$additional_libdir/lib$name.la"; then
7966                   found_la="$additional_libdir/lib$name.la"
7967                 fi
7968               fi
7969             fi
7970           fi
7971           if test "X$found_dir" = "X"; then
7972             for x in $LDFLAGS $LTLIBICONV; do
7973
7974   acl_save_prefix="$prefix"
7975   prefix="$acl_final_prefix"
7976   acl_save_exec_prefix="$exec_prefix"
7977   exec_prefix="$acl_final_exec_prefix"
7978   eval x=\"$x\"
7979   exec_prefix="$acl_save_exec_prefix"
7980   prefix="$acl_save_prefix"
7981
7982               case "$x" in
7983                 -L*)
7984                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7985                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7986                     found_dir="$dir"
7987                     found_so="$dir/lib$name.$shlibext"
7988                     if test -f "$dir/lib$name.la"; then
7989                       found_la="$dir/lib$name.la"
7990                     fi
7991                   else
7992                     if test -f "$dir/lib$name.$libext"; then
7993                       found_dir="$dir"
7994                       found_a="$dir/lib$name.$libext"
7995                       if test -f "$dir/lib$name.la"; then
7996                         found_la="$dir/lib$name.la"
7997                       fi
7998                     fi
7999                   fi
8000                   ;;
8001               esac
8002               if test "X$found_dir" != "X"; then
8003                 break
8004               fi
8005             done
8006           fi
8007           if test "X$found_dir" != "X"; then
8008                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8009             if test "X$found_so" != "X"; then
8010                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8011                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8012               else
8013                                                                                 haveit=
8014                 for x in $ltrpathdirs; do
8015                   if test "X$x" = "X$found_dir"; then
8016                     haveit=yes
8017                     break
8018                   fi
8019                 done
8020                 if test -z "$haveit"; then
8021                   ltrpathdirs="$ltrpathdirs $found_dir"
8022                 fi
8023                                 if test "$hardcode_direct" = yes; then
8024                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8025                 else
8026                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8027                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8028                                                             haveit=
8029                     for x in $rpathdirs; do
8030                       if test "X$x" = "X$found_dir"; then
8031                         haveit=yes
8032                         break
8033                       fi
8034                     done
8035                     if test -z "$haveit"; then
8036                       rpathdirs="$rpathdirs $found_dir"
8037                     fi
8038                   else
8039                                                                                 haveit=
8040                     for x in $LDFLAGS $LIBICONV; do
8041
8042   acl_save_prefix="$prefix"
8043   prefix="$acl_final_prefix"
8044   acl_save_exec_prefix="$exec_prefix"
8045   exec_prefix="$acl_final_exec_prefix"
8046   eval x=\"$x\"
8047   exec_prefix="$acl_save_exec_prefix"
8048   prefix="$acl_save_prefix"
8049
8050                       if test "X$x" = "X-L$found_dir"; then
8051                         haveit=yes
8052                         break
8053                       fi
8054                     done
8055                     if test -z "$haveit"; then
8056                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8057                     fi
8058                     if test "$hardcode_minus_L" != no; then
8059                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8060                     else
8061                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8062                     fi
8063                   fi
8064                 fi
8065               fi
8066             else
8067               if test "X$found_a" != "X"; then
8068                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8069               else
8070                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8071               fi
8072             fi
8073                         additional_includedir=
8074             case "$found_dir" in
8075               */lib | */lib/)
8076                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8077                 additional_includedir="$basedir/include"
8078                 ;;
8079             esac
8080             if test "X$additional_includedir" != "X"; then
8081                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8082                 haveit=
8083                 if test "X$additional_includedir" = "X/usr/local/include"; then
8084                   if test -n "$GCC"; then
8085                     case $host_os in
8086                       linux*) haveit=yes;;
8087                     esac
8088                   fi
8089                 fi
8090                 if test -z "$haveit"; then
8091                   for x in $CPPFLAGS $INCICONV; do
8092
8093   acl_save_prefix="$prefix"
8094   prefix="$acl_final_prefix"
8095   acl_save_exec_prefix="$exec_prefix"
8096   exec_prefix="$acl_final_exec_prefix"
8097   eval x=\"$x\"
8098   exec_prefix="$acl_save_exec_prefix"
8099   prefix="$acl_save_prefix"
8100
8101                     if test "X$x" = "X-I$additional_includedir"; then
8102                       haveit=yes
8103                       break
8104                     fi
8105                   done
8106                   if test -z "$haveit"; then
8107                     if test -d "$additional_includedir"; then
8108                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8109                     fi
8110                   fi
8111                 fi
8112               fi
8113             fi
8114                         if test -n "$found_la"; then
8115                                                         save_libdir="$libdir"
8116               case "$found_la" in
8117                 */* | *\\*) . "$found_la" ;;
8118                 *) . "./$found_la" ;;
8119               esac
8120               libdir="$save_libdir"
8121                             for dep in $dependency_libs; do
8122                 case "$dep" in
8123                   -L*)
8124                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8125                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8126                       haveit=
8127                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8128                         if test -n "$GCC"; then
8129                           case $host_os in
8130                             linux*) haveit=yes;;
8131                           esac
8132                         fi
8133                       fi
8134                       if test -z "$haveit"; then
8135                         haveit=
8136                         for x in $LDFLAGS $LIBICONV; do
8137
8138   acl_save_prefix="$prefix"
8139   prefix="$acl_final_prefix"
8140   acl_save_exec_prefix="$exec_prefix"
8141   exec_prefix="$acl_final_exec_prefix"
8142   eval x=\"$x\"
8143   exec_prefix="$acl_save_exec_prefix"
8144   prefix="$acl_save_prefix"
8145
8146                           if test "X$x" = "X-L$additional_libdir"; then
8147                             haveit=yes
8148                             break
8149                           fi
8150                         done
8151                         if test -z "$haveit"; then
8152                           if test -d "$additional_libdir"; then
8153                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8154                           fi
8155                         fi
8156                         haveit=
8157                         for x in $LDFLAGS $LTLIBICONV; do
8158
8159   acl_save_prefix="$prefix"
8160   prefix="$acl_final_prefix"
8161   acl_save_exec_prefix="$exec_prefix"
8162   exec_prefix="$acl_final_exec_prefix"
8163   eval x=\"$x\"
8164   exec_prefix="$acl_save_exec_prefix"
8165   prefix="$acl_save_prefix"
8166
8167                           if test "X$x" = "X-L$additional_libdir"; then
8168                             haveit=yes
8169                             break
8170                           fi
8171                         done
8172                         if test -z "$haveit"; then
8173                           if test -d "$additional_libdir"; then
8174                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8175                           fi
8176                         fi
8177                       fi
8178                     fi
8179                     ;;
8180                   -R*)
8181                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8182                     if test "$enable_rpath" != no; then
8183                                                                   haveit=
8184                       for x in $rpathdirs; do
8185                         if test "X$x" = "X$dir"; then
8186                           haveit=yes
8187                           break
8188                         fi
8189                       done
8190                       if test -z "$haveit"; then
8191                         rpathdirs="$rpathdirs $dir"
8192                       fi
8193                                                                   haveit=
8194                       for x in $ltrpathdirs; do
8195                         if test "X$x" = "X$dir"; then
8196                           haveit=yes
8197                           break
8198                         fi
8199                       done
8200                       if test -z "$haveit"; then
8201                         ltrpathdirs="$ltrpathdirs $dir"
8202                       fi
8203                     fi
8204                     ;;
8205                   -l*)
8206                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8207                     ;;
8208                   *.la)
8209                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8210                     ;;
8211                   *)
8212                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8213                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8214                     ;;
8215                 esac
8216               done
8217             fi
8218           else
8219                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8220             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8221           fi
8222         fi
8223       fi
8224     done
8225   done
8226   if test "X$rpathdirs" != "X"; then
8227     if test -n "$hardcode_libdir_separator"; then
8228                         alldirs=
8229       for found_dir in $rpathdirs; do
8230         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8231       done
8232             acl_save_libdir="$libdir"
8233       libdir="$alldirs"
8234       eval flag=\"$hardcode_libdir_flag_spec\"
8235       libdir="$acl_save_libdir"
8236       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8237     else
8238             for found_dir in $rpathdirs; do
8239         acl_save_libdir="$libdir"
8240         libdir="$found_dir"
8241         eval flag=\"$hardcode_libdir_flag_spec\"
8242         libdir="$acl_save_libdir"
8243         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8244       done
8245     fi
8246   fi
8247   if test "X$ltrpathdirs" != "X"; then
8248             for found_dir in $ltrpathdirs; do
8249       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8250     done
8251   fi
8252
8253
8254
8255
8256
8257
8258
8259
8260   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8261 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8262
8263 else
8264
8265 $as_echo "#define ptrdiff_t long" >>confdefs.h
8266
8267
8268 fi
8269
8270   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8271 stdlib.h string.h unistd.h sys/param.h
8272 do :
8273   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8276   cat >>confdefs.h <<_ACEOF
8277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 _ACEOF
8279
8280 fi
8281
8282 done
8283
8284   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8285 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8286 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8287 __fsetlocking
8288 do :
8289   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8291 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8292   cat >>confdefs.h <<_ACEOF
8293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8294 _ACEOF
8295
8296 fi
8297 done
8298
8299
8300
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8302 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8303 if ${ac_cv_have_decl__snprintf+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <stdio.h>
8309 int
8310 main ()
8311 {
8312
8313 #ifndef _snprintf
8314   char *p = (char *) _snprintf;
8315 #endif
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322   ac_cv_have_decl__snprintf=yes
8323 else
8324   ac_cv_have_decl__snprintf=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8330   if test $ac_cv_have_decl__snprintf = yes; then
8331     gt_value=1
8332   else
8333     gt_value=0
8334   fi
8335
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNPRINTF $gt_value
8338 _ACEOF
8339
8340
8341
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8343 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8344 if ${ac_cv_have_decl__snwprintf+:} false; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 #include <stdio.h>
8350 int
8351 main ()
8352 {
8353
8354 #ifndef _snwprintf
8355   char *p = (char *) _snwprintf;
8356 #endif
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363   ac_cv_have_decl__snwprintf=yes
8364 else
8365   ac_cv_have_decl__snwprintf=no
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8370 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8371   if test $ac_cv_have_decl__snwprintf = yes; then
8372     gt_value=1
8373   else
8374     gt_value=0
8375   fi
8376
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL__SNWPRINTF $gt_value
8379 _ACEOF
8380
8381
8382
8383
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8385 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8386 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h.  */
8391 #include <stdio.h>
8392 int
8393 main ()
8394 {
8395
8396 #ifndef feof_unlocked
8397   char *p = (char *) feof_unlocked;
8398 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   ac_cv_have_decl_feof_unlocked=yes
8406 else
8407   ac_cv_have_decl_feof_unlocked=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8413   if test $ac_cv_have_decl_feof_unlocked = yes; then
8414     gt_value=1
8415   else
8416     gt_value=0
8417   fi
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8421 _ACEOF
8422
8423
8424
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8426 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8427 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h.  */
8432 #include <stdio.h>
8433 int
8434 main ()
8435 {
8436
8437 #ifndef fgets_unlocked
8438   char *p = (char *) fgets_unlocked;
8439 #endif
8440
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446   ac_cv_have_decl_fgets_unlocked=yes
8447 else
8448   ac_cv_have_decl_fgets_unlocked=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8454   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8455     gt_value=1
8456   else
8457     gt_value=0
8458   fi
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8462 _ACEOF
8463
8464
8465
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8467 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8468 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h.  */
8473 #include <stdio.h>
8474 int
8475 main ()
8476 {
8477
8478 #ifndef getc_unlocked
8479   char *p = (char *) getc_unlocked;
8480 #endif
8481
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   ac_cv_have_decl_getc_unlocked=yes
8488 else
8489   ac_cv_have_decl_getc_unlocked=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8494 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8495   if test $ac_cv_have_decl_getc_unlocked = yes; then
8496     gt_value=1
8497   else
8498     gt_value=0
8499   fi
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8503 _ACEOF
8504
8505
8506
8507   case $gt_cv_func_printf_posix in
8508     *yes) HAVE_POSIX_PRINTF=1 ;;
8509     *) HAVE_POSIX_PRINTF=0 ;;
8510   esac
8511
8512   if test "$ac_cv_func_asprintf" = yes; then
8513     HAVE_ASPRINTF=1
8514   else
8515     HAVE_ASPRINTF=0
8516   fi
8517
8518   if test "$ac_cv_func_snprintf" = yes; then
8519     HAVE_SNPRINTF=1
8520   else
8521     HAVE_SNPRINTF=0
8522   fi
8523
8524   if test "$ac_cv_func_wprintf" = yes; then
8525     HAVE_WPRINTF=1
8526   else
8527     HAVE_WPRINTF=0
8528   fi
8529
8530
8531
8532
8533
8534
8535
8536           am_save_CPPFLAGS="$CPPFLAGS"
8537
8538   for element in $INCICONV; do
8539     haveit=
8540     for x in $CPPFLAGS; do
8541
8542   acl_save_prefix="$prefix"
8543   prefix="$acl_final_prefix"
8544   acl_save_exec_prefix="$exec_prefix"
8545   exec_prefix="$acl_final_exec_prefix"
8546   eval x=\"$x\"
8547   exec_prefix="$acl_save_exec_prefix"
8548   prefix="$acl_save_prefix"
8549
8550       if test "X$x" = "X$element"; then
8551         haveit=yes
8552         break
8553       fi
8554     done
8555     if test -z "$haveit"; then
8556       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8557     fi
8558   done
8559
8560
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8562 $as_echo_n "checking for iconv... " >&6; }
8563 if ${am_cv_func_iconv+:} false; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566
8567     am_cv_func_iconv="no, consider installing GNU libiconv"
8568     am_cv_lib_iconv=no
8569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h.  */
8571 #include <stdlib.h>
8572 #include <iconv.h>
8573 int
8574 main ()
8575 {
8576 iconv_t cd = iconv_open("","");
8577        iconv(cd,NULL,NULL,NULL,NULL);
8578        iconv_close(cd);
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_link "$LINENO"; then :
8584   am_cv_func_iconv=yes
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext \
8587     conftest$ac_exeext conftest.$ac_ext
8588     if test "$am_cv_func_iconv" != yes; then
8589       am_save_LIBS="$LIBS"
8590       LIBS="$LIBS $LIBICONV"
8591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h.  */
8593 #include <stdlib.h>
8594 #include <iconv.h>
8595 int
8596 main ()
8597 {
8598 iconv_t cd = iconv_open("","");
8599          iconv(cd,NULL,NULL,NULL,NULL);
8600          iconv_close(cd);
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606   am_cv_lib_iconv=yes
8607         am_cv_func_iconv=yes
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610     conftest$ac_exeext conftest.$ac_ext
8611       LIBS="$am_save_LIBS"
8612     fi
8613
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8616 $as_echo "$am_cv_func_iconv" >&6; }
8617   if test "$am_cv_func_iconv" = yes; then
8618
8619 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8620
8621   fi
8622   if test "$am_cv_lib_iconv" = yes; then
8623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8624 $as_echo_n "checking how to link with libiconv... " >&6; }
8625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8626 $as_echo "$LIBICONV" >&6; }
8627   else
8628             CPPFLAGS="$am_save_CPPFLAGS"
8629     LIBICONV=
8630     LTLIBICONV=
8631   fi
8632
8633
8634
8635   if test "$am_cv_func_iconv" = yes; then
8636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8637 $as_echo_n "checking for iconv declaration... " >&6; }
8638     if ${am_cv_proto_iconv+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641
8642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644
8645 #include <stdlib.h>
8646 #include <iconv.h>
8647 extern
8648 #ifdef __cplusplus
8649 "C"
8650 #endif
8651 #if defined(__STDC__) || defined(__cplusplus)
8652 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8653 #else
8654 size_t iconv();
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666   am_cv_proto_iconv_arg1=""
8667 else
8668   am_cv_proto_iconv_arg1="const"
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8672 fi
8673
8674     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8676          }$am_cv_proto_iconv" >&5
8677 $as_echo "${ac_t:-
8678          }$am_cv_proto_iconv" >&6; }
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define ICONV_CONST $am_cv_proto_iconv_arg1
8682 _ACEOF
8683
8684   fi
8685
8686
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8689 if ${am_cv_langinfo_codeset+:} false; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h.  */
8694 #include <langinfo.h>
8695 int
8696 main ()
8697 {
8698 char* cs = nl_langinfo(CODESET);
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"; then :
8704   am_cv_langinfo_codeset=yes
8705 else
8706   am_cv_langinfo_codeset=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext conftest.$ac_ext
8710
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8713 $as_echo "$am_cv_langinfo_codeset" >&6; }
8714   if test $am_cv_langinfo_codeset = yes; then
8715
8716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8717
8718   fi
8719
8720   if test $ac_cv_header_locale_h = yes; then
8721
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8723 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8724 if ${am_cv_val_LC_MESSAGES+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h.  */
8729 #include <locale.h>
8730 int
8731 main ()
8732 {
8733 return LC_MESSAGES
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"; then :
8739   am_cv_val_LC_MESSAGES=yes
8740 else
8741   am_cv_val_LC_MESSAGES=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext \
8744     conftest$ac_exeext conftest.$ac_ext
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8747 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8748   if test $am_cv_val_LC_MESSAGES = yes; then
8749
8750 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8751
8752   fi
8753
8754   fi
8755
8756                       for ac_prog in bison
8757 do
8758   # Extract the first word of "$ac_prog", so it can be a program name with args.
8759 set dummy $ac_prog; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_INTLBISON+:} false; then :
8763   $as_echo_n "(cached) " >&6
8764 else
8765   if test -n "$INTLBISON"; then
8766   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773     for ac_exec_ext in '' $ac_executable_extensions; do
8774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775     ac_cv_prog_INTLBISON="$ac_prog"
8776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780   done
8781 IFS=$as_save_IFS
8782
8783 fi
8784 fi
8785 INTLBISON=$ac_cv_prog_INTLBISON
8786 if test -n "$INTLBISON"; then
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8788 $as_echo "$INTLBISON" >&6; }
8789 else
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 fi
8793
8794
8795   test -n "$INTLBISON" && break
8796 done
8797
8798   if test -z "$INTLBISON"; then
8799     ac_verc_fail=yes
8800   else
8801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8802 $as_echo_n "checking version of bison... " >&6; }
8803     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8804     case $ac_prog_version in
8805       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8806       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8807          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8808       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8809     esac
8810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8811 $as_echo "$ac_prog_version" >&6; }
8812   fi
8813   if test $ac_verc_fail = yes; then
8814     INTLBISON=:
8815   fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8833 $as_echo_n "checking whether NLS is requested... " >&6; }
8834     # Check whether --enable-nls was given.
8835 if test "${enable_nls+set}" = set; then :
8836   enableval=$enable_nls; USE_NLS=$enableval
8837 else
8838   USE_NLS=yes
8839 fi
8840
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8842 $as_echo "$USE_NLS" >&6; }
8843
8844
8845
8846
8847     BUILD_INCLUDED_LIBINTL=no
8848     USE_INCLUDED_LIBINTL=no
8849
8850   LIBINTL=
8851   LTLIBINTL=
8852   POSUB=
8853
8854     if test "$USE_NLS" = "yes"; then
8855     gt_use_preinstalled_gnugettext=no
8856
8857       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8858 $as_echo_n "checking whether included gettext is requested... " >&6; }
8859
8860 # Check whether --with-included-gettext was given.
8861 if test "${with_included_gettext+set}" = set; then :
8862   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8863 else
8864   nls_cv_force_use_gnu_gettext=no
8865 fi
8866
8867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8868 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8869
8870       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8871       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8872
8873
8874
8875
8876
8877
8878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8879 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8880 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h.  */
8885 #include <libintl.h>
8886 extern int _nl_msg_cat_cntr;
8887 extern int *_nl_domain_bindings;
8888 int
8889 main ()
8890 {
8891 bindtextdomain ("", "");
8892 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898   gt_cv_func_gnugettext1_libc=yes
8899 else
8900   gt_cv_func_gnugettext1_libc=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903     conftest$ac_exeext conftest.$ac_ext
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8906 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8907
8908         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8909
8910
8911
8912     use_additional=yes
8913
8914   acl_save_prefix="$prefix"
8915   prefix="$acl_final_prefix"
8916   acl_save_exec_prefix="$exec_prefix"
8917   exec_prefix="$acl_final_exec_prefix"
8918
8919     eval additional_includedir=\"$includedir\"
8920     eval additional_libdir=\"$libdir\"
8921
8922   exec_prefix="$acl_save_exec_prefix"
8923   prefix="$acl_save_prefix"
8924
8925
8926 # Check whether --with-libintl-prefix was given.
8927 if test "${with_libintl_prefix+set}" = set; then :
8928   withval=$with_libintl_prefix;
8929     if test "X$withval" = "Xno"; then
8930       use_additional=no
8931     else
8932       if test "X$withval" = "X"; then
8933
8934   acl_save_prefix="$prefix"
8935   prefix="$acl_final_prefix"
8936   acl_save_exec_prefix="$exec_prefix"
8937   exec_prefix="$acl_final_exec_prefix"
8938
8939           eval additional_includedir=\"$includedir\"
8940           eval additional_libdir=\"$libdir\"
8941
8942   exec_prefix="$acl_save_exec_prefix"
8943   prefix="$acl_save_prefix"
8944
8945       else
8946         additional_includedir="$withval/include"
8947         additional_libdir="$withval/lib"
8948       fi
8949     fi
8950
8951 fi
8952
8953       LIBINTL=
8954   LTLIBINTL=
8955   INCINTL=
8956   rpathdirs=
8957   ltrpathdirs=
8958   names_already_handled=
8959   names_next_round='intl '
8960   while test -n "$names_next_round"; do
8961     names_this_round="$names_next_round"
8962     names_next_round=
8963     for name in $names_this_round; do
8964       already_handled=
8965       for n in $names_already_handled; do
8966         if test "$n" = "$name"; then
8967           already_handled=yes
8968           break
8969         fi
8970       done
8971       if test -z "$already_handled"; then
8972         names_already_handled="$names_already_handled $name"
8973                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8974         eval value=\"\$HAVE_LIB$uppername\"
8975         if test -n "$value"; then
8976           if test "$value" = yes; then
8977             eval value=\"\$LIB$uppername\"
8978             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8979             eval value=\"\$LTLIB$uppername\"
8980             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8981           else
8982                                     :
8983           fi
8984         else
8985                               found_dir=
8986           found_la=
8987           found_so=
8988           found_a=
8989           if test $use_additional = yes; then
8990             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8991               found_dir="$additional_libdir"
8992               found_so="$additional_libdir/lib$name.$shlibext"
8993               if test -f "$additional_libdir/lib$name.la"; then
8994                 found_la="$additional_libdir/lib$name.la"
8995               fi
8996             else
8997               if test -f "$additional_libdir/lib$name.$libext"; then
8998                 found_dir="$additional_libdir"
8999                 found_a="$additional_libdir/lib$name.$libext"
9000                 if test -f "$additional_libdir/lib$name.la"; then
9001                   found_la="$additional_libdir/lib$name.la"
9002                 fi
9003               fi
9004             fi
9005           fi
9006           if test "X$found_dir" = "X"; then
9007             for x in $LDFLAGS $LTLIBINTL; do
9008
9009   acl_save_prefix="$prefix"
9010   prefix="$acl_final_prefix"
9011   acl_save_exec_prefix="$exec_prefix"
9012   exec_prefix="$acl_final_exec_prefix"
9013   eval x=\"$x\"
9014   exec_prefix="$acl_save_exec_prefix"
9015   prefix="$acl_save_prefix"
9016
9017               case "$x" in
9018                 -L*)
9019                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9020                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9021                     found_dir="$dir"
9022                     found_so="$dir/lib$name.$shlibext"
9023                     if test -f "$dir/lib$name.la"; then
9024                       found_la="$dir/lib$name.la"
9025                     fi
9026                   else
9027                     if test -f "$dir/lib$name.$libext"; then
9028                       found_dir="$dir"
9029                       found_a="$dir/lib$name.$libext"
9030                       if test -f "$dir/lib$name.la"; then
9031                         found_la="$dir/lib$name.la"
9032                       fi
9033                     fi
9034                   fi
9035                   ;;
9036               esac
9037               if test "X$found_dir" != "X"; then
9038                 break
9039               fi
9040             done
9041           fi
9042           if test "X$found_dir" != "X"; then
9043                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9044             if test "X$found_so" != "X"; then
9045                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9046                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9047               else
9048                                                                                 haveit=
9049                 for x in $ltrpathdirs; do
9050                   if test "X$x" = "X$found_dir"; then
9051                     haveit=yes
9052                     break
9053                   fi
9054                 done
9055                 if test -z "$haveit"; then
9056                   ltrpathdirs="$ltrpathdirs $found_dir"
9057                 fi
9058                                 if test "$hardcode_direct" = yes; then
9059                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9060                 else
9061                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9062                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9063                                                             haveit=
9064                     for x in $rpathdirs; do
9065                       if test "X$x" = "X$found_dir"; then
9066                         haveit=yes
9067                         break
9068                       fi
9069                     done
9070                     if test -z "$haveit"; then
9071                       rpathdirs="$rpathdirs $found_dir"
9072                     fi
9073                   else
9074                                                                                 haveit=
9075                     for x in $LDFLAGS $LIBINTL; do
9076
9077   acl_save_prefix="$prefix"
9078   prefix="$acl_final_prefix"
9079   acl_save_exec_prefix="$exec_prefix"
9080   exec_prefix="$acl_final_exec_prefix"
9081   eval x=\"$x\"
9082   exec_prefix="$acl_save_exec_prefix"
9083   prefix="$acl_save_prefix"
9084
9085                       if test "X$x" = "X-L$found_dir"; then
9086                         haveit=yes
9087                         break
9088                       fi
9089                     done
9090                     if test -z "$haveit"; then
9091                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9092                     fi
9093                     if test "$hardcode_minus_L" != no; then
9094                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9095                     else
9096                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9097                     fi
9098                   fi
9099                 fi
9100               fi
9101             else
9102               if test "X$found_a" != "X"; then
9103                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9104               else
9105                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9106               fi
9107             fi
9108                         additional_includedir=
9109             case "$found_dir" in
9110               */lib | */lib/)
9111                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9112                 additional_includedir="$basedir/include"
9113                 ;;
9114             esac
9115             if test "X$additional_includedir" != "X"; then
9116                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9117                 haveit=
9118                 if test "X$additional_includedir" = "X/usr/local/include"; then
9119                   if test -n "$GCC"; then
9120                     case $host_os in
9121                       linux*) haveit=yes;;
9122                     esac
9123                   fi
9124                 fi
9125                 if test -z "$haveit"; then
9126                   for x in $CPPFLAGS $INCINTL; do
9127
9128   acl_save_prefix="$prefix"
9129   prefix="$acl_final_prefix"
9130   acl_save_exec_prefix="$exec_prefix"
9131   exec_prefix="$acl_final_exec_prefix"
9132   eval x=\"$x\"
9133   exec_prefix="$acl_save_exec_prefix"
9134   prefix="$acl_save_prefix"
9135
9136                     if test "X$x" = "X-I$additional_includedir"; then
9137                       haveit=yes
9138                       break
9139                     fi
9140                   done
9141                   if test -z "$haveit"; then
9142                     if test -d "$additional_includedir"; then
9143                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9144                     fi
9145                   fi
9146                 fi
9147               fi
9148             fi
9149                         if test -n "$found_la"; then
9150                                                         save_libdir="$libdir"
9151               case "$found_la" in
9152                 */* | *\\*) . "$found_la" ;;
9153                 *) . "./$found_la" ;;
9154               esac
9155               libdir="$save_libdir"
9156                             for dep in $dependency_libs; do
9157                 case "$dep" in
9158                   -L*)
9159                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9160                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9161                       haveit=
9162                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9163                         if test -n "$GCC"; then
9164                           case $host_os in
9165                             linux*) haveit=yes;;
9166                           esac
9167                         fi
9168                       fi
9169                       if test -z "$haveit"; then
9170                         haveit=
9171                         for x in $LDFLAGS $LIBINTL; do
9172
9173   acl_save_prefix="$prefix"
9174   prefix="$acl_final_prefix"
9175   acl_save_exec_prefix="$exec_prefix"
9176   exec_prefix="$acl_final_exec_prefix"
9177   eval x=\"$x\"
9178   exec_prefix="$acl_save_exec_prefix"
9179   prefix="$acl_save_prefix"
9180
9181                           if test "X$x" = "X-L$additional_libdir"; then
9182                             haveit=yes
9183                             break
9184                           fi
9185                         done
9186                         if test -z "$haveit"; then
9187                           if test -d "$additional_libdir"; then
9188                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9189                           fi
9190                         fi
9191                         haveit=
9192                         for x in $LDFLAGS $LTLIBINTL; do
9193
9194   acl_save_prefix="$prefix"
9195   prefix="$acl_final_prefix"
9196   acl_save_exec_prefix="$exec_prefix"
9197   exec_prefix="$acl_final_exec_prefix"
9198   eval x=\"$x\"
9199   exec_prefix="$acl_save_exec_prefix"
9200   prefix="$acl_save_prefix"
9201
9202                           if test "X$x" = "X-L$additional_libdir"; then
9203                             haveit=yes
9204                             break
9205                           fi
9206                         done
9207                         if test -z "$haveit"; then
9208                           if test -d "$additional_libdir"; then
9209                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9210                           fi
9211                         fi
9212                       fi
9213                     fi
9214                     ;;
9215                   -R*)
9216                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9217                     if test "$enable_rpath" != no; then
9218                                                                   haveit=
9219                       for x in $rpathdirs; do
9220                         if test "X$x" = "X$dir"; then
9221                           haveit=yes
9222                           break
9223                         fi
9224                       done
9225                       if test -z "$haveit"; then
9226                         rpathdirs="$rpathdirs $dir"
9227                       fi
9228                                                                   haveit=
9229                       for x in $ltrpathdirs; do
9230                         if test "X$x" = "X$dir"; then
9231                           haveit=yes
9232                           break
9233                         fi
9234                       done
9235                       if test -z "$haveit"; then
9236                         ltrpathdirs="$ltrpathdirs $dir"
9237                       fi
9238                     fi
9239                     ;;
9240                   -l*)
9241                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9242                     ;;
9243                   *.la)
9244                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9245                     ;;
9246                   *)
9247                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9248                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9249                     ;;
9250                 esac
9251               done
9252             fi
9253           else
9254                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9255             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9256           fi
9257         fi
9258       fi
9259     done
9260   done
9261   if test "X$rpathdirs" != "X"; then
9262     if test -n "$hardcode_libdir_separator"; then
9263                         alldirs=
9264       for found_dir in $rpathdirs; do
9265         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9266       done
9267             acl_save_libdir="$libdir"
9268       libdir="$alldirs"
9269       eval flag=\"$hardcode_libdir_flag_spec\"
9270       libdir="$acl_save_libdir"
9271       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9272     else
9273             for found_dir in $rpathdirs; do
9274         acl_save_libdir="$libdir"
9275         libdir="$found_dir"
9276         eval flag=\"$hardcode_libdir_flag_spec\"
9277         libdir="$acl_save_libdir"
9278         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9279       done
9280     fi
9281   fi
9282   if test "X$ltrpathdirs" != "X"; then
9283             for found_dir in $ltrpathdirs; do
9284       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9285     done
9286   fi
9287
9288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9290 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   gt_save_CPPFLAGS="$CPPFLAGS"
9294             CPPFLAGS="$CPPFLAGS $INCINTL"
9295             gt_save_LIBS="$LIBS"
9296             LIBS="$LIBS $LIBINTL"
9297                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299 #include <libintl.h>
9300 extern int _nl_msg_cat_cntr;
9301 extern
9302 #ifdef __cplusplus
9303 "C"
9304 #endif
9305 const char *_nl_expand_alias ();
9306 int
9307 main ()
9308 {
9309 bindtextdomain ("", "");
9310 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316   gt_cv_func_gnugettext1_libintl=yes
9317 else
9318   gt_cv_func_gnugettext1_libintl=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9323               LIBS="$LIBS $LIBICONV"
9324               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h.  */
9326 #include <libintl.h>
9327 extern int _nl_msg_cat_cntr;
9328 extern
9329 #ifdef __cplusplus
9330 "C"
9331 #endif
9332 const char *_nl_expand_alias ();
9333 int
9334 main ()
9335 {
9336 bindtextdomain ("", "");
9337 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   LIBINTL="$LIBINTL $LIBICONV"
9344                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9345                 gt_cv_func_gnugettext1_libintl=yes
9346
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349     conftest$ac_exeext conftest.$ac_ext
9350             fi
9351             CPPFLAGS="$gt_save_CPPFLAGS"
9352             LIBS="$gt_save_LIBS"
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9355 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9356         fi
9357
9358                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9359            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9360                 && test "$PACKAGE" != gettext-runtime \
9361                 && test "$PACKAGE" != gettext-tools; }; then
9362           gt_use_preinstalled_gnugettext=yes
9363         else
9364                     LIBINTL=
9365           LTLIBINTL=
9366           INCINTL=
9367         fi
9368
9369
9370         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9371                               nls_cv_use_gnu_gettext=yes
9372         fi
9373       fi
9374
9375       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9376                 BUILD_INCLUDED_LIBINTL=yes
9377         USE_INCLUDED_LIBINTL=yes
9378         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9379         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9380         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9381       fi
9382
9383       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9384          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9385                 CATOBJEXT=.gmo
9386       fi
9387
9388
9389     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9390        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9391
9392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9393
9394     else
9395       USE_NLS=no
9396     fi
9397   fi
9398
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9400 $as_echo_n "checking whether to use NLS... " >&6; }
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9402 $as_echo "$USE_NLS" >&6; }
9403   if test "$USE_NLS" = "yes"; then
9404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9405 $as_echo_n "checking where the gettext function comes from... " >&6; }
9406     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9407       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9408         gt_source="external libintl"
9409       else
9410         gt_source="libc"
9411       fi
9412     else
9413       gt_source="included intl directory"
9414     fi
9415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9416 $as_echo "$gt_source" >&6; }
9417   fi
9418
9419   if test "$USE_NLS" = "yes"; then
9420
9421     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9422       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9424 $as_echo_n "checking how to link with libintl... " >&6; }
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9426 $as_echo "$LIBINTL" >&6; }
9427
9428   for element in $INCINTL; do
9429     haveit=
9430     for x in $CPPFLAGS; do
9431
9432   acl_save_prefix="$prefix"
9433   prefix="$acl_final_prefix"
9434   acl_save_exec_prefix="$exec_prefix"
9435   exec_prefix="$acl_final_exec_prefix"
9436   eval x=\"$x\"
9437   exec_prefix="$acl_save_exec_prefix"
9438   prefix="$acl_save_prefix"
9439
9440       if test "X$x" = "X$element"; then
9441         haveit=yes
9442         break
9443       fi
9444     done
9445     if test -z "$haveit"; then
9446       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9447     fi
9448   done
9449
9450       fi
9451
9452
9453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9454
9455
9456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9457
9458     fi
9459
9460         POSUB=po
9461   fi
9462
9463
9464             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9465       BUILD_INCLUDED_LIBINTL=yes
9466     fi
9467
9468
9469
9470
9471
9472         nls_cv_header_intl=
9473     nls_cv_header_libgt=
9474
9475         DATADIRNAME=share
9476
9477
9478         INSTOBJEXT=.mo
9479
9480
9481         GENCAT=gencat
9482
9483
9484         if test "$USE_INCLUDED_LIBINTL" = yes; then
9485       INTLOBJS="\$(GETTOBJS)"
9486     fi
9487
9488
9489         INTL_LIBTOOL_SUFFIX_PREFIX=
9490
9491
9492
9493     INTLLIBS="$LIBINTL"
9494
9495
9496
9497
9498
9499
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9503 set x ${MAKE-make}
9504 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9505 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   cat >conftest.make <<\_ACEOF
9509 SHELL = /bin/sh
9510 all:
9511         @echo '@@@%%%=$(MAKE)=@@@%%%'
9512 _ACEOF
9513 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9515   *@@@%%%=?*=@@@%%%*)
9516     eval ac_cv_prog_make_${ac_make}_set=yes;;
9517   *)
9518     eval ac_cv_prog_make_${ac_make}_set=no;;
9519 esac
9520 rm -f conftest.make
9521 fi
9522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9524 $as_echo "yes" >&6; }
9525   SET_MAKE=
9526 else
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529   SET_MAKE="MAKE=${MAKE-make}"
9530 fi
9531
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9533 $as_echo_n "checking for GNU make... " >&6; }
9534 if ${_cv_gnu_make_command+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   _cv_gnu_make_command='' ;
9538                 for a in "$MAKE" make gmake gnumake ; do
9539                         if test -z "$a" ; then continue ; fi ;
9540                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9541                                 _cv_gnu_make_command=$a ;
9542                                 break;
9543                         fi
9544                 done ;
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9548 $as_echo "$_cv_gnu_make_command" >&6; } ;
9549         if test  "x$_cv_gnu_make_command" != "x"  ; then
9550                 ifGNUmake='' ;
9551                 ifNotGNUmake='#' ;
9552         else
9553                 ifGNUmake='#' ;
9554                 ifNotGNUmake='' ;
9555                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9556 $as_echo "\"Not found\"" >&6; };
9557         fi
9558
9559
9560
9561 # Extract the first word of "ln", so it can be a program name with args.
9562 set dummy ln; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_path_LN+:} false; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   case $LN in
9569   [\\/]* | ?:[\\/]*)
9570   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9571   ;;
9572   *)
9573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576   IFS=$as_save_IFS
9577   test -z "$as_dir" && as_dir=.
9578     for ac_exec_ext in '' $ac_executable_extensions; do
9579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582     break 2
9583   fi
9584 done
9585   done
9586 IFS=$as_save_IFS
9587
9588   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9589   ;;
9590 esac
9591 fi
9592 LN=$ac_cv_path_LN
9593 if test -n "$LN"; then
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9595 $as_echo "$LN" >&6; }
9596 else
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9599 fi
9600
9601
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9603 $as_echo_n "checking whether ln -s works... " >&6; }
9604 LN_S=$as_ln_s
9605 if test "$LN_S" = "ln -s"; then
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9610 $as_echo "no, using $LN_S" >&6; }
9611 fi
9612
9613 # Extract the first word of "mv", so it can be a program name with args.
9614 set dummy mv; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_MV+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   case $MV in
9621   [\\/]* | ?:[\\/]*)
9622   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9623   ;;
9624   *)
9625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9641   ;;
9642 esac
9643 fi
9644 MV=$ac_cv_path_MV
9645 if test -n "$MV"; then
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9647 $as_echo "$MV" >&6; }
9648 else
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652
9653
9654 # Extract the first word of "cp", so it can be a program name with args.
9655 set dummy cp; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_CP+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $CP in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680
9681   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9682   ;;
9683 esac
9684 fi
9685 CP=$ac_cv_path_CP
9686 if test -n "$CP"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9688 $as_echo "$CP" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695 # Extract the first word of "rm", so it can be a program name with args.
9696 set dummy rm; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_path_RM+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   case $RM in
9703   [\\/]* | ?:[\\/]*)
9704   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9705   ;;
9706   *)
9707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710   IFS=$as_save_IFS
9711   test -z "$as_dir" && as_dir=.
9712     for ac_exec_ext in '' $ac_executable_extensions; do
9713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9714     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716     break 2
9717   fi
9718 done
9719   done
9720 IFS=$as_save_IFS
9721
9722   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9723   ;;
9724 esac
9725 fi
9726 RM=$ac_cv_path_RM
9727 if test -n "$RM"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9729 $as_echo "$RM" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736 # Extract the first word of "chmod", so it can be a program name with args.
9737 set dummy chmod; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if ${ac_cv_path_CHMOD+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   case $CHMOD in
9744   [\\/]* | ?:[\\/]*)
9745   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9746   ;;
9747   *)
9748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753     for ac_exec_ext in '' $ac_executable_extensions; do
9754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760   done
9761 IFS=$as_save_IFS
9762
9763   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9764   ;;
9765 esac
9766 fi
9767 CHMOD=$ac_cv_path_CHMOD
9768 if test -n "$CHMOD"; then
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9770 $as_echo "$CHMOD" >&6; }
9771 else
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 fi
9775
9776
9777 for ac_prog in gawk mawk nawk awk
9778 do
9779   # Extract the first word of "$ac_prog", so it can be a program name with args.
9780 set dummy $ac_prog; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_prog_AWK+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   if test -n "$AWK"; then
9787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9791 do
9792   IFS=$as_save_IFS
9793   test -z "$as_dir" && as_dir=.
9794     for ac_exec_ext in '' $ac_executable_extensions; do
9795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796     ac_cv_prog_AWK="$ac_prog"
9797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798     break 2
9799   fi
9800 done
9801   done
9802 IFS=$as_save_IFS
9803
9804 fi
9805 fi
9806 AWK=$ac_cv_prog_AWK
9807 if test -n "$AWK"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9809 $as_echo "$AWK" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814
9815
9816   test -n "$AWK" && break
9817 done
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9820 $as_echo_n "checking for egrep... " >&6; }
9821 if ${ac_cv_path_EGREP+:} false; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9825    then ac_cv_path_EGREP="$GREP -E"
9826    else
9827      if test -z "$EGREP"; then
9828   ac_path_EGREP_found=false
9829   # Loop through the user's path and test for each of PROGNAME-LIST
9830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9832 do
9833   IFS=$as_save_IFS
9834   test -z "$as_dir" && as_dir=.
9835     for ac_prog in egrep; do
9836     for ac_exec_ext in '' $ac_executable_extensions; do
9837       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9838       as_fn_executable_p "$ac_path_EGREP" || continue
9839 # Check for GNU ac_path_EGREP and select it if it is found.
9840   # Check for GNU $ac_path_EGREP
9841 case `"$ac_path_EGREP" --version 2>&1` in
9842 *GNU*)
9843   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9844 *)
9845   ac_count=0
9846   $as_echo_n 0123456789 >"conftest.in"
9847   while :
9848   do
9849     cat "conftest.in" "conftest.in" >"conftest.tmp"
9850     mv "conftest.tmp" "conftest.in"
9851     cp "conftest.in" "conftest.nl"
9852     $as_echo 'EGREP' >> "conftest.nl"
9853     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9855     as_fn_arith $ac_count + 1 && ac_count=$as_val
9856     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9857       # Best one so far, save it but keep looking for a better one
9858       ac_cv_path_EGREP="$ac_path_EGREP"
9859       ac_path_EGREP_max=$ac_count
9860     fi
9861     # 10*(2^10) chars as input seems more than enough
9862     test $ac_count -gt 10 && break
9863   done
9864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9865 esac
9866
9867       $ac_path_EGREP_found && break 3
9868     done
9869   done
9870   done
9871 IFS=$as_save_IFS
9872   if test -z "$ac_cv_path_EGREP"; then
9873     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9874   fi
9875 else
9876   ac_cv_path_EGREP=$EGREP
9877 fi
9878
9879    fi
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9882 $as_echo "$ac_cv_path_EGREP" >&6; }
9883  EGREP="$ac_cv_path_EGREP"
9884
9885
9886 # Extract the first word of "sed", so it can be a program name with args.
9887 set dummy sed; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_path_SED+:} false; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893   case $SED in
9894   [\\/]* | ?:[\\/]*)
9895   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9896   ;;
9897   *)
9898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903     for ac_exec_ext in '' $ac_executable_extensions; do
9904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910   done
9911 IFS=$as_save_IFS
9912
9913   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9914   ;;
9915 esac
9916 fi
9917 SED=$ac_cv_path_SED
9918 if test -n "$SED"; then
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9920 $as_echo "$SED" >&6; }
9921 else
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924 fi
9925
9926
9927 # Extract the first word of "perl", so it can be a program name with args.
9928 set dummy perl; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if ${ac_cv_path_PERL+:} false; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   case $PERL in
9935   [\\/]* | ?:[\\/]*)
9936   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9937   ;;
9938   *)
9939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942   IFS=$as_save_IFS
9943   test -z "$as_dir" && as_dir=.
9944     for ac_exec_ext in '' $ac_executable_extensions; do
9945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951   done
9952 IFS=$as_save_IFS
9953
9954   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9955   ;;
9956 esac
9957 fi
9958 PERL=$ac_cv_path_PERL
9959 if test -n "$PERL"; then
9960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9961 $as_echo "$PERL" >&6; }
9962 else
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9965 fi
9966
9967
9968 # Extract the first word of "ldconfig", so it can be a program name with args.
9969 set dummy ldconfig; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_LDCONFIG+:} false; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   case $LDCONFIG in
9976   [\\/]* | ?:[\\/]*)
9977   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9978   ;;
9979   *)
9980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9982 do
9983   IFS=$as_save_IFS
9984   test -z "$as_dir" && as_dir=.
9985     for ac_exec_ext in '' $ac_executable_extensions; do
9986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989     break 2
9990   fi
9991 done
9992   done
9993 IFS=$as_save_IFS
9994
9995   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9996   ;;
9997 esac
9998 fi
9999 LDCONFIG=$ac_cv_path_LDCONFIG
10000 if test -n "$LDCONFIG"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10002 $as_echo "$LDCONFIG" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007
10008
10009 if test -n "$ac_tool_prefix"; then
10010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10011 set dummy ${ac_tool_prefix}ar; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_prog_AR+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   if test -n "$AR"; then
10018   ac_cv_prog_AR="$AR" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027     ac_cv_prog_AR="${ac_tool_prefix}ar"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034
10035 fi
10036 fi
10037 AR=$ac_cv_prog_AR
10038 if test -n "$AR"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10040 $as_echo "$AR" >&6; }
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 fi
10045
10046
10047 fi
10048 if test -z "$ac_cv_prog_AR"; then
10049   ac_ct_AR=$AR
10050   # Extract the first word of "ar", so it can be a program name with args.
10051 set dummy ar; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   if test -n "$ac_ct_AR"; then
10058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065     for ac_exec_ext in '' $ac_executable_extensions; do
10066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067     ac_cv_prog_ac_ct_AR="ar"
10068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069     break 2
10070   fi
10071 done
10072   done
10073 IFS=$as_save_IFS
10074
10075 fi
10076 fi
10077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10078 if test -n "$ac_ct_AR"; then
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10080 $as_echo "$ac_ct_AR" >&6; }
10081 else
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 fi
10085
10086   if test "x$ac_ct_AR" = x; then
10087     AR="ar"
10088   else
10089     case $cross_compiling:$ac_tool_warned in
10090 yes:)
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093 ac_tool_warned=yes ;;
10094 esac
10095     AR=$ac_ct_AR
10096   fi
10097 else
10098   AR="$ac_cv_prog_AR"
10099 fi
10100
10101 if test -n "$ac_tool_prefix"; then
10102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_prog_RANLIB+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   if test -n "$RANLIB"; then
10110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115   IFS=$as_save_IFS
10116   test -z "$as_dir" && as_dir=.
10117     for ac_exec_ext in '' $ac_executable_extensions; do
10118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121     break 2
10122   fi
10123 done
10124   done
10125 IFS=$as_save_IFS
10126
10127 fi
10128 fi
10129 RANLIB=$ac_cv_prog_RANLIB
10130 if test -n "$RANLIB"; then
10131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10132 $as_echo "$RANLIB" >&6; }
10133 else
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137
10138
10139 fi
10140 if test -z "$ac_cv_prog_RANLIB"; then
10141   ac_ct_RANLIB=$RANLIB
10142   # Extract the first word of "ranlib", so it can be a program name with args.
10143 set dummy ranlib; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   if test -n "$ac_ct_RANLIB"; then
10150   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155   IFS=$as_save_IFS
10156   test -z "$as_dir" && as_dir=.
10157     for ac_exec_ext in '' $ac_executable_extensions; do
10158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159     ac_cv_prog_ac_ct_RANLIB="ranlib"
10160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161     break 2
10162   fi
10163 done
10164   done
10165 IFS=$as_save_IFS
10166
10167 fi
10168 fi
10169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10170 if test -n "$ac_ct_RANLIB"; then
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10172 $as_echo "$ac_ct_RANLIB" >&6; }
10173 else
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178   if test "x$ac_ct_RANLIB" = x; then
10179     RANLIB=":"
10180   else
10181     case $cross_compiling:$ac_tool_warned in
10182 yes:)
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10185 ac_tool_warned=yes ;;
10186 esac
10187     RANLIB=$ac_ct_RANLIB
10188   fi
10189 else
10190   RANLIB="$ac_cv_prog_RANLIB"
10191 fi
10192
10193 if test -n "$ac_tool_prefix"; then
10194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10195 set dummy ${ac_tool_prefix}strip; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if ${ac_cv_prog_STRIP+:} false; then :
10199   $as_echo_n "(cached) " >&6
10200 else
10201   if test -n "$STRIP"; then
10202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10203 else
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10206 do
10207   IFS=$as_save_IFS
10208   test -z "$as_dir" && as_dir=.
10209     for ac_exec_ext in '' $ac_executable_extensions; do
10210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213     break 2
10214   fi
10215 done
10216   done
10217 IFS=$as_save_IFS
10218
10219 fi
10220 fi
10221 STRIP=$ac_cv_prog_STRIP
10222 if test -n "$STRIP"; then
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10224 $as_echo "$STRIP" >&6; }
10225 else
10226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228 fi
10229
10230
10231 fi
10232 if test -z "$ac_cv_prog_STRIP"; then
10233   ac_ct_STRIP=$STRIP
10234   # Extract the first word of "strip", so it can be a program name with args.
10235 set dummy strip; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   if test -n "$ac_ct_STRIP"; then
10242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10243 else
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10246 do
10247   IFS=$as_save_IFS
10248   test -z "$as_dir" && as_dir=.
10249     for ac_exec_ext in '' $ac_executable_extensions; do
10250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251     ac_cv_prog_ac_ct_STRIP="strip"
10252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253     break 2
10254   fi
10255 done
10256   done
10257 IFS=$as_save_IFS
10258
10259 fi
10260 fi
10261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10262 if test -n "$ac_ct_STRIP"; then
10263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10264 $as_echo "$ac_ct_STRIP" >&6; }
10265 else
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10268 fi
10269
10270   if test "x$ac_ct_STRIP" = x; then
10271     STRIP=":"
10272   else
10273     case $cross_compiling:$ac_tool_warned in
10274 yes:)
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10277 ac_tool_warned=yes ;;
10278 esac
10279     STRIP=$ac_ct_STRIP
10280   fi
10281 else
10282   STRIP="$ac_cv_prog_STRIP"
10283 fi
10284
10285 # Extract the first word of "makeinfo", so it can be a program name with args.
10286 set dummy makeinfo; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_MAKEINFO+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$MAKEINFO"; then
10293   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_prog_MAKEINFO="makeinfo"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 MAKEINFO=$ac_cv_prog_MAKEINFO
10313 if test -n "$MAKEINFO"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10315 $as_echo "$MAKEINFO" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322 if test "_$MAKEINFO" = "_"; then
10323     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10324 else
10325     case "$MAKEINFO" in
10326       */missing.*)
10327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10328 *** Makeinfo is missing. Info documentation will not be built." >&5
10329 $as_echo "$as_me: WARNING:
10330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10331         ;;
10332       *)
10333         ;;
10334     esac
10335 fi
10336
10337
10338 # See if we need a separate native compiler.
10339 if test $cross_compiling = no; then
10340   BUILD_CC="$CC"
10341
10342 else
10343   for ac_prog in gcc cc
10344 do
10345   # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_prog_BUILD_CC+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -n "$BUILD_CC"; then
10353   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362     ac_cv_prog_BUILD_CC="$ac_prog"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 BUILD_CC=$ac_cv_prog_BUILD_CC
10373 if test -n "$BUILD_CC"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10375 $as_echo "$BUILD_CC" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382   test -n "$BUILD_CC" && break
10383 done
10384
10385 fi
10386 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/prctl.h     sys/queue.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
10387 do :
10388   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10391   cat >>confdefs.h <<_ACEOF
10392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10393 _ACEOF
10394
10395 fi
10396
10397 done
10398
10399 for ac_header in sys/disk.h sys/mount.h
10400 do :
10401   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10403 #if HAVE_SYS_QUEUE_H
10404 #include <sys/queue.h>
10405 #endif
10406
10407 "
10408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10409   cat >>confdefs.h <<_ACEOF
10410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10411 _ACEOF
10412
10413 fi
10414
10415 done
10416
10417 for ac_header in net/if.h
10418 do :
10419   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10420 #if HAVE_SYS_TYPES_H
10421 #include <sys/types.h>
10422 #endif
10423 #if HAVE_SYS_SOCKET
10424 #include <sys/socket.h>
10425 #endif
10426
10427 "
10428 if test "x$ac_cv_header_net_if_h" = xyes; then :
10429   cat >>confdefs.h <<_ACEOF
10430 #define HAVE_NET_IF_H 1
10431 _ACEOF
10432
10433 fi
10434
10435 done
10436
10437 for ac_func in vprintf
10438 do :
10439   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10440 if test "x$ac_cv_func_vprintf" = xyes; then :
10441   cat >>confdefs.h <<_ACEOF
10442 #define HAVE_VPRINTF 1
10443 _ACEOF
10444
10445 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10446 if test "x$ac_cv_func__doprnt" = xyes; then :
10447
10448 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10449
10450 fi
10451
10452 fi
10453 done
10454
10455
10456 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10457 "
10458 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10459
10460 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10461
10462 fi
10463
10464 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10465 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10466
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_STRUCT_STAT_ST_ATIM 1
10469 _ACEOF
10470
10471
10472 fi
10473
10474 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10475 "
10476 if test "x$ac_cv_type_ssize_t" = xyes; then :
10477
10478 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10479
10480 fi
10481
10482 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10483 "
10484 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10485
10486 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10487
10488 fi
10489
10490 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10491                  #define _LARGEFILE64_SOURCE
10492                  #include <unistd.h>
10493 "
10494 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10495
10496 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10497
10498 fi
10499
10500 # The cast to long int works around a bug in the HP C Compiler
10501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10503 # This bug is HP SR number 8606223364.
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10505 $as_echo_n "checking size of short... " >&6; }
10506 if ${ac_cv_sizeof_short+:} false; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10510
10511 else
10512   if test "$ac_cv_type_short" = yes; then
10513      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10515 as_fn_error 77 "cannot compute sizeof (short)
10516 See \`config.log' for more details" "$LINENO" 5; }
10517    else
10518      ac_cv_sizeof_short=0
10519    fi
10520 fi
10521
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10524 $as_echo "$ac_cv_sizeof_short" >&6; }
10525
10526
10527
10528 cat >>confdefs.h <<_ACEOF
10529 #define SIZEOF_SHORT $ac_cv_sizeof_short
10530 _ACEOF
10531
10532
10533 # The cast to long int works around a bug in the HP C Compiler
10534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10536 # This bug is HP SR number 8606223364.
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10538 $as_echo_n "checking size of int... " >&6; }
10539 if ${ac_cv_sizeof_int+:} false; then :
10540   $as_echo_n "(cached) " >&6
10541 else
10542   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10543
10544 else
10545   if test "$ac_cv_type_int" = yes; then
10546      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10548 as_fn_error 77 "cannot compute sizeof (int)
10549 See \`config.log' for more details" "$LINENO" 5; }
10550    else
10551      ac_cv_sizeof_int=0
10552    fi
10553 fi
10554
10555 fi
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10557 $as_echo "$ac_cv_sizeof_int" >&6; }
10558
10559
10560
10561 cat >>confdefs.h <<_ACEOF
10562 #define SIZEOF_INT $ac_cv_sizeof_int
10563 _ACEOF
10564
10565
10566 # The cast to long int works around a bug in the HP C Compiler
10567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10569 # This bug is HP SR number 8606223364.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10571 $as_echo_n "checking size of long... " >&6; }
10572 if ${ac_cv_sizeof_long+:} false; then :
10573   $as_echo_n "(cached) " >&6
10574 else
10575   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10576
10577 else
10578   if test "$ac_cv_type_long" = yes; then
10579      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10581 as_fn_error 77 "cannot compute sizeof (long)
10582 See \`config.log' for more details" "$LINENO" 5; }
10583    else
10584      ac_cv_sizeof_long=0
10585    fi
10586 fi
10587
10588 fi
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10590 $as_echo "$ac_cv_sizeof_long" >&6; }
10591
10592
10593
10594 cat >>confdefs.h <<_ACEOF
10595 #define SIZEOF_LONG $ac_cv_sizeof_long
10596 _ACEOF
10597
10598
10599 # The cast to long int works around a bug in the HP C Compiler
10600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10602 # This bug is HP SR number 8606223364.
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10604 $as_echo_n "checking size of long long... " >&6; }
10605 if ${ac_cv_sizeof_long_long+:} false; then :
10606   $as_echo_n "(cached) " >&6
10607 else
10608   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10609
10610 else
10611   if test "$ac_cv_type_long_long" = yes; then
10612      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10614 as_fn_error 77 "cannot compute sizeof (long long)
10615 See \`config.log' for more details" "$LINENO" 5; }
10616    else
10617      ac_cv_sizeof_long_long=0
10618    fi
10619 fi
10620
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10623 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10624
10625
10626
10627 cat >>confdefs.h <<_ACEOF
10628 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10629 _ACEOF
10630
10631
10632 # The cast to long int works around a bug in the HP C Compiler
10633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10635 # This bug is HP SR number 8606223364.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10637 $as_echo_n "checking size of off_t... " >&6; }
10638 if ${ac_cv_sizeof_off_t+:} false; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10642
10643 else
10644   if test "$ac_cv_type_off_t" = yes; then
10645      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647 as_fn_error 77 "cannot compute sizeof (off_t)
10648 See \`config.log' for more details" "$LINENO" 5; }
10649    else
10650      ac_cv_sizeof_off_t=0
10651    fi
10652 fi
10653
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10656 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10657
10658
10659
10660 cat >>confdefs.h <<_ACEOF
10661 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10662 _ACEOF
10663
10664
10665 SIZEOF_SHORT=$ac_cv_sizeof_short
10666 SIZEOF_INT=$ac_cv_sizeof_int
10667 SIZEOF_LONG=$ac_cv_sizeof_long
10668 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10669 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10670
10671
10672
10673
10674
10675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10677 if ${ac_cv_c_bigendian+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   ac_cv_c_bigendian=unknown
10681     # See if we're dealing with a universal compiler.
10682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684 #ifndef __APPLE_CC__
10685                not a universal capable compiler
10686              #endif
10687              typedef int dummy;
10688
10689 _ACEOF
10690 if ac_fn_c_try_compile "$LINENO"; then :
10691
10692         # Check for potential -arch flags.  It is not universal unless
10693         # there are at least two -arch flags with different values.
10694         ac_arch=
10695         ac_prev=
10696         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10697          if test -n "$ac_prev"; then
10698            case $ac_word in
10699              i?86 | x86_64 | ppc | ppc64)
10700                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10701                  ac_arch=$ac_word
10702                else
10703                  ac_cv_c_bigendian=universal
10704                  break
10705                fi
10706                ;;
10707            esac
10708            ac_prev=
10709          elif test "x$ac_word" = "x-arch"; then
10710            ac_prev=arch
10711          fi
10712        done
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715     if test $ac_cv_c_bigendian = unknown; then
10716       # See if sys/param.h defines the BYTE_ORDER macro.
10717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h.  */
10719 #include <sys/types.h>
10720              #include <sys/param.h>
10721
10722 int
10723 main ()
10724 {
10725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10726                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10727                      && LITTLE_ENDIAN)
10728               bogus endian macros
10729              #endif
10730
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_compile "$LINENO"; then :
10736   # It does; now see whether it defined to BIG_ENDIAN or not.
10737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h.  */
10739 #include <sys/types.h>
10740                 #include <sys/param.h>
10741
10742 int
10743 main ()
10744 {
10745 #if BYTE_ORDER != BIG_ENDIAN
10746                  not big endian
10747                 #endif
10748
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754   ac_cv_c_bigendian=yes
10755 else
10756   ac_cv_c_bigendian=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761     fi
10762     if test $ac_cv_c_bigendian = unknown; then
10763       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h.  */
10766 #include <limits.h>
10767
10768 int
10769 main ()
10770 {
10771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10772               bogus endian macros
10773              #endif
10774
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 if ac_fn_c_try_compile "$LINENO"; then :
10780   # It does; now see whether it defined to _BIG_ENDIAN or not.
10781          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783 #include <limits.h>
10784
10785 int
10786 main ()
10787 {
10788 #ifndef _BIG_ENDIAN
10789                  not big endian
10790                 #endif
10791
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 if ac_fn_c_try_compile "$LINENO"; then :
10797   ac_cv_c_bigendian=yes
10798 else
10799   ac_cv_c_bigendian=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804     fi
10805     if test $ac_cv_c_bigendian = unknown; then
10806       # Compile a test program.
10807       if test "$cross_compiling" = yes; then :
10808   # Try to guess by grepping values from an object file.
10809          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811 short int ascii_mm[] =
10812                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10813                 short int ascii_ii[] =
10814                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10815                 int use_ascii (int i) {
10816                   return ascii_mm[i] + ascii_ii[i];
10817                 }
10818                 short int ebcdic_ii[] =
10819                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10820                 short int ebcdic_mm[] =
10821                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10822                 int use_ebcdic (int i) {
10823                   return ebcdic_mm[i] + ebcdic_ii[i];
10824                 }
10825                 extern int foo;
10826
10827 int
10828 main ()
10829 {
10830 return use_ascii (foo) == use_ebcdic (foo);
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_compile "$LINENO"; then :
10836   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10837               ac_cv_c_bigendian=yes
10838             fi
10839             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10840               if test "$ac_cv_c_bigendian" = unknown; then
10841                 ac_cv_c_bigendian=no
10842               else
10843                 # finding both strings is unlikely to happen, but who knows?
10844                 ac_cv_c_bigendian=unknown
10845               fi
10846             fi
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 else
10850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h.  */
10852 $ac_includes_default
10853 int
10854 main ()
10855 {
10856
10857              /* Are we little or big endian?  From Harbison&Steele.  */
10858              union
10859              {
10860                long int l;
10861                char c[sizeof (long int)];
10862              } u;
10863              u.l = 1;
10864              return u.c[sizeof (long int) - 1] == 1;
10865
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_run "$LINENO"; then :
10871   ac_cv_c_bigendian=no
10872 else
10873   ac_cv_c_bigendian=yes
10874 fi
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10876   conftest.$ac_objext conftest.beam conftest.$ac_ext
10877 fi
10878
10879     fi
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10882 $as_echo "$ac_cv_c_bigendian" >&6; }
10883  case $ac_cv_c_bigendian in #(
10884    yes)
10885      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10886 ;; #(
10887    no)
10888       ;; #(
10889    universal)
10890
10891 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10892
10893      ;; #(
10894    *)
10895      as_fn_error $? "unknown endianness
10896  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10897  esac
10898
10899 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10900 ASM_TYPES_HEADER=./asm_types.h
10901
10902 echo "/* These defines are needed for the public ext2fs.h header file */" \
10903      > public_config.h
10904 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10905   uniq tmp_config.$$ >> public_config.h
10906 else
10907   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10908 fi
10909 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10910   uniq tmp_config.$$ >> public_config.h
10911 else
10912   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10913 fi
10914 rm -f tmp_config.$$
10915 PUBLIC_CONFIG_HEADER=./public_config.h
10916
10917 for ac_header in inttypes.h
10918 do :
10919   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10920 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10921   cat >>confdefs.h <<_ACEOF
10922 #define HAVE_INTTYPES_H 1
10923 _ACEOF
10924
10925 fi
10926
10927 done
10928
10929 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10930 if test "x$ac_cv_type_intptr_t" = xyes; then :
10931
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_INTPTR_T 1
10934 _ACEOF
10935
10936
10937 fi
10938
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10940 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10941 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h.  */
10946 #include <sys/stat.h>
10947 int
10948 main ()
10949 {
10950 struct stat stat; stat.st_flags = 0;
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956   e2fsprogs_cv_struct_st_flags=yes
10957 else
10958   e2fsprogs_cv_struct_st_flags=no
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10964 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10965 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10967 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10968   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h.  */
10973 #include <sys/stat.h>
10974 int
10975 main ()
10976 {
10977 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_compile "$LINENO"; then :
10983   e2fsprogs_cv_struct_st_flags_immut=yes
10984 else
10985   e2fsprogs_cv_struct_st_flags_immut=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 fi
10989
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10991 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10992   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10993
10994 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10995
10996   fi
10997 fi
10998 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10999          #include <sys/socket.h>
11000 "
11001 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11002
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_SA_LEN 1
11005 _ACEOF
11006
11007 fi
11008
11009 if test -n "$BLKID_CMT"; then
11010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11011 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11012 if ${ac_cv_search_blkid_probe_all+:} false; then :
11013   $as_echo_n "(cached) " >&6
11014 else
11015   ac_func_search_save_LIBS=$LIBS
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h.  */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020    Use char because int might match the return type of a GCC
11021    builtin and then its argument prototype would still apply.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char blkid_probe_all ();
11026 int
11027 main ()
11028 {
11029 return blkid_probe_all ();
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 for ac_lib in '' blkid; do
11035   if test -z "$ac_lib"; then
11036     ac_res="none required"
11037   else
11038     ac_res=-l$ac_lib
11039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11040   fi
11041   if ac_fn_c_try_link "$LINENO"; then :
11042   ac_cv_search_blkid_probe_all=$ac_res
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext \
11045     conftest$ac_exeext
11046   if ${ac_cv_search_blkid_probe_all+:} false; then :
11047   break
11048 fi
11049 done
11050 if ${ac_cv_search_blkid_probe_all+:} false; then :
11051
11052 else
11053   ac_cv_search_blkid_probe_all=no
11054 fi
11055 rm conftest.$ac_ext
11056 LIBS=$ac_func_search_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11059 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11060 ac_res=$ac_cv_search_blkid_probe_all
11061 if test "$ac_res" != no; then :
11062   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11063
11064 fi
11065
11066 fi
11067 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   secure_getenv   setmntent       setresgid       setresuid       srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11068 do :
11069   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11071 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11072   cat >>confdefs.h <<_ACEOF
11073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11074 _ACEOF
11075
11076 fi
11077 done
11078
11079 SOCKET_LIB=''
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11081 $as_echo_n "checking for socket in -lsocket... " >&6; }
11082 if ${ac_cv_lib_socket_socket+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   ac_check_lib_save_LIBS=$LIBS
11086 LIBS="-lsocket  $LIBS"
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h.  */
11089
11090 /* Override any GCC internal prototype to avoid an error.
11091    Use char because int might match the return type of a GCC
11092    builtin and then its argument prototype would still apply.  */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 char socket ();
11097 int
11098 main ()
11099 {
11100 return socket ();
11101   ;
11102   return 0;
11103 }
11104 _ACEOF
11105 if ac_fn_c_try_link "$LINENO"; then :
11106   ac_cv_lib_socket_socket=yes
11107 else
11108   ac_cv_lib_socket_socket=no
11109 fi
11110 rm -f core conftest.err conftest.$ac_objext \
11111     conftest$ac_exeext conftest.$ac_ext
11112 LIBS=$ac_check_lib_save_LIBS
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11115 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11116 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11117   SOCKET_LIB=-lsocket
11118 fi
11119
11120
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11122 $as_echo_n "checking for optreset... " >&6; }
11123 if ${ac_cv_have_optreset+:} false; then :
11124   $as_echo_n "(cached) " >&6
11125 else
11126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h.  */
11128 #include <unistd.h>
11129
11130 _ACEOF
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132   $EGREP "optreset" >/dev/null 2>&1; then :
11133   ac_cv_have_optreset=yes
11134 else
11135   ac_cv_have_optreset=no
11136 fi
11137 rm -f conftest*
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11141 $as_echo "$ac_cv_have_optreset" >&6; }
11142 if test $ac_cv_have_optreset = yes; then
11143
11144 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11145
11146 fi
11147
11148 SEM_INIT_LIB=''
11149 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11150 if test "x$ac_cv_func_sem_init" = xyes; then :
11151
11152 else
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11154 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11155 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-lpthread  $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164    Use char because int might match the return type of a GCC
11165    builtin and then its argument prototype would still apply.  */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char sem_init ();
11170 int
11171 main ()
11172 {
11173 return sem_init ();
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_link "$LINENO"; then :
11179   ac_cv_lib_pthread_sem_init=yes
11180 else
11181   ac_cv_lib_pthread_sem_init=no
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11188 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11189 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11190   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11191
11192         SEM_INIT_LIB=-lpthread
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11195 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11196 if ${ac_cv_lib_rt_sem_init+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-lrt  $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205    Use char because int might match the return type of a GCC
11206    builtin and then its argument prototype would still apply.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char sem_init ();
11211 int
11212 main ()
11213 {
11214 return sem_init ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220   ac_cv_lib_rt_sem_init=yes
11221 else
11222   ac_cv_lib_rt_sem_init=no
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11229 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11230 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11231   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11232
11233         SEM_INIT_LIB=-lrt
11234 else
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11236 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11237 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11238   $as_echo_n "(cached) " >&6
11239 else
11240   ac_check_lib_save_LIBS=$LIBS
11241 LIBS="-lposix4  $LIBS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h.  */
11244
11245 /* Override any GCC internal prototype to avoid an error.
11246    Use char because int might match the return type of a GCC
11247    builtin and then its argument prototype would still apply.  */
11248 #ifdef __cplusplus
11249 extern "C"
11250 #endif
11251 char sem_init ();
11252 int
11253 main ()
11254 {
11255 return sem_init ();
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261   ac_cv_lib_posix4_sem_init=yes
11262 else
11263   ac_cv_lib_posix4_sem_init=no
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext \
11266     conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11268 fi
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11270 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11271 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11272   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11273
11274         SEM_INIT_LIB=-lposix4
11275 fi
11276
11277 fi
11278
11279 fi
11280
11281 fi
11282
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11284 $as_echo_n "checking for unified diff option... " >&6; }
11285 if diff -u $0 $0 > /dev/null 2>&1 ; then
11286    UNI_DIFF_OPTS=-u
11287 else
11288    UNI_DIFF_OPTS=-c
11289 fi
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11291 $as_echo "$UNI_DIFF_OPTS" >&6; }
11292
11293 case "$host_os" in
11294 linux*)
11295
11296 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11297
11298         ;;
11299 esac
11300 LINUX_CMT="#"
11301 CYGWIN_CMT="#"
11302 UNIX_CMT=
11303 case "$host_os" in
11304 linux*)
11305         LINUX_CMT=
11306         ;;
11307 cygwin)
11308         CYGWIN_CMT=
11309         UNIX_CMT="#"
11310         ;;
11311 esac
11312
11313
11314
11315 case "$host_os" in
11316 linux* | gnu* | k*bsd*-gnu)
11317         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11318                 root_prefix="";
11319                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11320 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11321         fi
11322         ;;
11323 esac
11324 case "$host_os" in
11325 linux* | gnu* | k*bsd*-gnu)
11326         if test "$prefix" = NONE ; then
11327                 prefix="/usr";
11328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11329 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11330                 if test "$mandir" = '${prefix}/man' ; then
11331                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11332 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11333                         mandir=/usr/share/man
11334                 fi
11335         fi
11336 ;;
11337 esac
11338 if test "$root_prefix" = NONE ; then
11339         if test "$prefix" = NONE ; then
11340                 root_prefix="$ac_default_prefix"
11341         else
11342                 root_prefix="$prefix"
11343         fi
11344         root_bindir=$bindir
11345         root_sbindir=$sbindir
11346         root_libdir=$libdir
11347         root_sysconfdir=$sysconfdir
11348 else
11349         root_bindir='${root_prefix}/bin'
11350         root_sbindir='${root_prefix}/sbin'
11351         root_libdir='${root_prefix}/lib'
11352         root_sysconfdir='${root_prefix}/etc'
11353 fi
11354 if test "$bindir" != '${exec_prefix}/bin'; then
11355     root_bindir=$bindir
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11357 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11358 fi
11359 if test "$sbindir" != '${exec_prefix}/sbin'; then
11360     root_sbindir=$sbindir
11361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11362 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11363 fi
11364 if test "$libdir" != '${exec_prefix}/lib'; then
11365     root_libdir=$libdir
11366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11367 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11368 fi
11369 if test "$sysconfdir" != '${prefix}/etc'; then
11370     root_sysconfdir=$sysconfdir
11371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11372 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11373 fi
11374
11375
11376
11377
11378
11379
11380 # Check whether --with-multiarch was given.
11381 if test "${with_multiarch+set}" = set; then :
11382   withval=$with_multiarch; if test "$withval" = "lib64"; then
11383     libdir=/usr/lib64
11384     root_libdir=/lib64
11385 else
11386     libdir=$libdir/$withval
11387     root_libdir=$root_libdir/$withval
11388 fi
11389
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11392 $as_echo_n "checking whether we can link with -static... " >&6; }
11393 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h.  */
11399 #include <stdio.h>
11400 int
11401 main ()
11402 {
11403 fflush(stdout);
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409   ac_cv_e2fsprogs_use_static=yes
11410 else
11411   ac_cv_e2fsprogs_use_static=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414     conftest$ac_exeext conftest.$ac_ext
11415 LDFLAGS=$SAVE_LDFLAGS
11416 fi
11417
11418 case "$host_os" in
11419 solaris2.*)
11420         ac_cv_e2fsprogs_use_static=no
11421 ;;
11422 esac
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11424 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11425 LDFLAG_STATIC=
11426 if test $ac_cv_e2fsprogs_use_static = yes; then
11427         LDFLAG_STATIC=-static
11428 fi
11429
11430 case "$host_os" in
11431 darwin*)
11432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11433 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11434
11435 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11436
11437         ;;
11438 esac
11439 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11440 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11441
11442
11443 if test "$cross_compiling" = yes ; then
11444   DO_TEST_SUITE=
11445 else
11446   DO_TEST_SUITE=check
11447 fi
11448
11449 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11450 if test -n "$CPPFLAGS" ; then
11451         INCLUDES="$INCLUDES $CPPFLAGS"
11452 fi
11453 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11454         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11455 fi
11456 if test -n "$WITH_DIET_LIBC" ; then
11457         INCLUDES="$INCLUDES -D_REENTRANT"
11458 fi
11459
11460 if test $cross_compiling = no; then
11461    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11462    BUILD_LDFLAGS="$LDFLAGS"
11463 else
11464    BUILD_CFLAGS=
11465    BUILD_LDFLAGS=
11466 fi
11467
11468
11469 test -d lib || mkdir lib
11470 test -d include || mkdir include
11471 test -d include/linux || mkdir include/linux
11472 test -d include/asm || mkdir include/asm
11473 for i in MCONFIG Makefile e2fsprogs.spec \
11474         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11475         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11476         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11477         lib/uuid/Makefile lib/uuid/uuid_types.h \
11478         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11479         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11480         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11481         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11482         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11483         resize/Makefile doc/Makefile intl/Makefile \
11484         intl/libgnuintl.h po/Makefile.in ; do
11485         if test -d `dirname ${srcdir}/$i` ; then
11486                 outlist="$outlist $i"
11487         fi
11488 done
11489 ac_config_files="$ac_config_files $outlist"
11490
11491 cat >confcache <<\_ACEOF
11492 # This file is a shell script that caches the results of configure
11493 # tests run on this system so they can be shared between configure
11494 # scripts and configure runs, see configure's option --config-cache.
11495 # It is not useful on other systems.  If it contains results you don't
11496 # want to keep, you may remove or edit it.
11497 #
11498 # config.status only pays attention to the cache file if you give it
11499 # the --recheck option to rerun configure.
11500 #
11501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11503 # following values.
11504
11505 _ACEOF
11506
11507 # The following way of writing the cache mishandles newlines in values,
11508 # but we know of no workaround that is simple, portable, and efficient.
11509 # So, we kill variables containing newlines.
11510 # Ultrix sh set writes to stderr and can't be redirected directly,
11511 # and sets the high bit in the cache file unless we assign to the vars.
11512 (
11513   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11514     eval ac_val=\$$ac_var
11515     case $ac_val in #(
11516     *${as_nl}*)
11517       case $ac_var in #(
11518       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11520       esac
11521       case $ac_var in #(
11522       _ | IFS | as_nl) ;; #(
11523       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11524       *) { eval $ac_var=; unset $ac_var;} ;;
11525       esac ;;
11526     esac
11527   done
11528
11529   (set) 2>&1 |
11530     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11531     *${as_nl}ac_space=\ *)
11532       # `set' does not quote correctly, so add quotes: double-quote
11533       # substitution turns \\\\ into \\, and sed turns \\ into \.
11534       sed -n \
11535         "s/'/'\\\\''/g;
11536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11537       ;; #(
11538     *)
11539       # `set' quotes correctly as required by POSIX, so do not add quotes.
11540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11541       ;;
11542     esac |
11543     sort
11544 ) |
11545   sed '
11546      /^ac_cv_env_/b end
11547      t clear
11548      :clear
11549      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11550      t end
11551      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11552      :end' >>confcache
11553 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11554   if test -w "$cache_file"; then
11555     if test "x$cache_file" != "x/dev/null"; then
11556       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11557 $as_echo "$as_me: updating cache $cache_file" >&6;}
11558       if test ! -f "$cache_file" || test -h "$cache_file"; then
11559         cat confcache >"$cache_file"
11560       else
11561         case $cache_file in #(
11562         */* | ?:*)
11563           mv -f confcache "$cache_file"$$ &&
11564           mv -f "$cache_file"$$ "$cache_file" ;; #(
11565         *)
11566           mv -f confcache "$cache_file" ;;
11567         esac
11568       fi
11569     fi
11570   else
11571     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11573   fi
11574 fi
11575 rm -f confcache
11576
11577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11578 # Let make expand exec_prefix.
11579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11580
11581 DEFS=-DHAVE_CONFIG_H
11582
11583 ac_libobjs=
11584 ac_ltlibobjs=
11585 U=
11586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11587   # 1. Remove the extension, and $U if already installed.
11588   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11589   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11590   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11591   #    will be set to the directory where LIBOBJS objects are built.
11592   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11593   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11594 done
11595 LIBOBJS=$ac_libobjs
11596
11597 LTLIBOBJS=$ac_ltlibobjs
11598
11599
11600
11601
11602 : "${CONFIG_STATUS=./config.status}"
11603 ac_write_fail=0
11604 ac_clean_files_save=$ac_clean_files
11605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11607 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11608 as_write_fail=0
11609 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11610 #! $SHELL
11611 # Generated by $as_me.
11612 # Run this file to recreate the current configuration.
11613 # Compiler output produced by configure, useful for debugging
11614 # configure, is in config.log if it exists.
11615
11616 debug=false
11617 ac_cs_recheck=false
11618 ac_cs_silent=false
11619
11620 SHELL=\${CONFIG_SHELL-$SHELL}
11621 export SHELL
11622 _ASEOF
11623 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11624 ## -------------------- ##
11625 ## M4sh Initialization. ##
11626 ## -------------------- ##
11627
11628 # Be more Bourne compatible
11629 DUALCASE=1; export DUALCASE # for MKS sh
11630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11631   emulate sh
11632   NULLCMD=:
11633   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11634   # is contrary to our usage.  Disable this feature.
11635   alias -g '${1+"$@"}'='"$@"'
11636   setopt NO_GLOB_SUBST
11637 else
11638   case `(set -o) 2>/dev/null` in #(
11639   *posix*) :
11640     set -o posix ;; #(
11641   *) :
11642      ;;
11643 esac
11644 fi
11645
11646
11647 as_nl='
11648 '
11649 export as_nl
11650 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11651 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11654 # Prefer a ksh shell builtin over an external printf program on Solaris,
11655 # but without wasting forks for bash or zsh.
11656 if test -z "$BASH_VERSION$ZSH_VERSION" \
11657     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11658   as_echo='print -r --'
11659   as_echo_n='print -rn --'
11660 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11661   as_echo='printf %s\n'
11662   as_echo_n='printf %s'
11663 else
11664   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11665     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11666     as_echo_n='/usr/ucb/echo -n'
11667   else
11668     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11669     as_echo_n_body='eval
11670       arg=$1;
11671       case $arg in #(
11672       *"$as_nl"*)
11673         expr "X$arg" : "X\\(.*\\)$as_nl";
11674         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11675       esac;
11676       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11677     '
11678     export as_echo_n_body
11679     as_echo_n='sh -c $as_echo_n_body as_echo'
11680   fi
11681   export as_echo_body
11682   as_echo='sh -c $as_echo_body as_echo'
11683 fi
11684
11685 # The user is always right.
11686 if test "${PATH_SEPARATOR+set}" != set; then
11687   PATH_SEPARATOR=:
11688   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11689     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11690       PATH_SEPARATOR=';'
11691   }
11692 fi
11693
11694
11695 # IFS
11696 # We need space, tab and new line, in precisely that order.  Quoting is
11697 # there to prevent editors from complaining about space-tab.
11698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11699 # splitting by setting IFS to empty value.)
11700 IFS=" ""        $as_nl"
11701
11702 # Find who we are.  Look in the path if we contain no directory separator.
11703 as_myself=
11704 case $0 in #((
11705   *[\\/]* ) as_myself=$0 ;;
11706   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11712   done
11713 IFS=$as_save_IFS
11714
11715      ;;
11716 esac
11717 # We did not find ourselves, most probably we were run as `sh COMMAND'
11718 # in which case we are not to be found in the path.
11719 if test "x$as_myself" = x; then
11720   as_myself=$0
11721 fi
11722 if test ! -f "$as_myself"; then
11723   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11724   exit 1
11725 fi
11726
11727 # Unset variables that we do not need and which cause bugs (e.g. in
11728 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11729 # suppresses any "Segmentation fault" message there.  '((' could
11730 # trigger a bug in pdksh 5.2.14.
11731 for as_var in BASH_ENV ENV MAIL MAILPATH
11732 do eval test x\${$as_var+set} = xset \
11733   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11734 done
11735 PS1='$ '
11736 PS2='> '
11737 PS4='+ '
11738
11739 # NLS nuisances.
11740 LC_ALL=C
11741 export LC_ALL
11742 LANGUAGE=C
11743 export LANGUAGE
11744
11745 # CDPATH.
11746 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11747
11748
11749 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11750 # ----------------------------------------
11751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11753 # script with STATUS, using 1 if that was 0.
11754 as_fn_error ()
11755 {
11756   as_status=$1; test $as_status -eq 0 && as_status=1
11757   if test "$4"; then
11758     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11759     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11760   fi
11761   $as_echo "$as_me: error: $2" >&2
11762   as_fn_exit $as_status
11763 } # as_fn_error
11764
11765
11766 # as_fn_set_status STATUS
11767 # -----------------------
11768 # Set $? to STATUS, without forking.
11769 as_fn_set_status ()
11770 {
11771   return $1
11772 } # as_fn_set_status
11773
11774 # as_fn_exit STATUS
11775 # -----------------
11776 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11777 as_fn_exit ()
11778 {
11779   set +e
11780   as_fn_set_status $1
11781   exit $1
11782 } # as_fn_exit
11783
11784 # as_fn_unset VAR
11785 # ---------------
11786 # Portably unset VAR.
11787 as_fn_unset ()
11788 {
11789   { eval $1=; unset $1;}
11790 }
11791 as_unset=as_fn_unset
11792 # as_fn_append VAR VALUE
11793 # ----------------------
11794 # Append the text in VALUE to the end of the definition contained in VAR. Take
11795 # advantage of any shell optimizations that allow amortized linear growth over
11796 # repeated appends, instead of the typical quadratic growth present in naive
11797 # implementations.
11798 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11799   eval 'as_fn_append ()
11800   {
11801     eval $1+=\$2
11802   }'
11803 else
11804   as_fn_append ()
11805   {
11806     eval $1=\$$1\$2
11807   }
11808 fi # as_fn_append
11809
11810 # as_fn_arith ARG...
11811 # ------------------
11812 # Perform arithmetic evaluation on the ARGs, and store the result in the
11813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11814 # must be portable across $(()) and expr.
11815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11816   eval 'as_fn_arith ()
11817   {
11818     as_val=$(( $* ))
11819   }'
11820 else
11821   as_fn_arith ()
11822   {
11823     as_val=`expr "$@" || test $? -eq 1`
11824   }
11825 fi # as_fn_arith
11826
11827
11828 if expr a : '\(a\)' >/dev/null 2>&1 &&
11829    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11830   as_expr=expr
11831 else
11832   as_expr=false
11833 fi
11834
11835 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11836   as_basename=basename
11837 else
11838   as_basename=false
11839 fi
11840
11841 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11842   as_dirname=dirname
11843 else
11844   as_dirname=false
11845 fi
11846
11847 as_me=`$as_basename -- "$0" ||
11848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11849          X"$0" : 'X\(//\)$' \| \
11850          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11851 $as_echo X/"$0" |
11852     sed '/^.*\/\([^/][^/]*\)\/*$/{
11853             s//\1/
11854             q
11855           }
11856           /^X\/\(\/\/\)$/{
11857             s//\1/
11858             q
11859           }
11860           /^X\/\(\/\).*/{
11861             s//\1/
11862             q
11863           }
11864           s/.*/./; q'`
11865
11866 # Avoid depending upon Character Ranges.
11867 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11868 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11869 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11870 as_cr_digits='0123456789'
11871 as_cr_alnum=$as_cr_Letters$as_cr_digits
11872
11873 ECHO_C= ECHO_N= ECHO_T=
11874 case `echo -n x` in #(((((
11875 -n*)
11876   case `echo 'xy\c'` in
11877   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11878   xy)  ECHO_C='\c';;
11879   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11880        ECHO_T=' ';;
11881   esac;;
11882 *)
11883   ECHO_N='-n';;
11884 esac
11885
11886 rm -f conf$$ conf$$.exe conf$$.file
11887 if test -d conf$$.dir; then
11888   rm -f conf$$.dir/conf$$.file
11889 else
11890   rm -f conf$$.dir
11891   mkdir conf$$.dir 2>/dev/null
11892 fi
11893 if (echo >conf$$.file) 2>/dev/null; then
11894   if ln -s conf$$.file conf$$ 2>/dev/null; then
11895     as_ln_s='ln -s'
11896     # ... but there are two gotchas:
11897     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11898     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11899     # In both cases, we have to default to `cp -pR'.
11900     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11901       as_ln_s='cp -pR'
11902   elif ln conf$$.file conf$$ 2>/dev/null; then
11903     as_ln_s=ln
11904   else
11905     as_ln_s='cp -pR'
11906   fi
11907 else
11908   as_ln_s='cp -pR'
11909 fi
11910 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11911 rmdir conf$$.dir 2>/dev/null
11912
11913
11914 # as_fn_mkdir_p
11915 # -------------
11916 # Create "$as_dir" as a directory, including parents if necessary.
11917 as_fn_mkdir_p ()
11918 {
11919
11920   case $as_dir in #(
11921   -*) as_dir=./$as_dir;;
11922   esac
11923   test -d "$as_dir" || eval $as_mkdir_p || {
11924     as_dirs=
11925     while :; do
11926       case $as_dir in #(
11927       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11928       *) as_qdir=$as_dir;;
11929       esac
11930       as_dirs="'$as_qdir' $as_dirs"
11931       as_dir=`$as_dirname -- "$as_dir" ||
11932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11933          X"$as_dir" : 'X\(//\)[^/]' \| \
11934          X"$as_dir" : 'X\(//\)$' \| \
11935          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11936 $as_echo X"$as_dir" |
11937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11938             s//\1/
11939             q
11940           }
11941           /^X\(\/\/\)[^/].*/{
11942             s//\1/
11943             q
11944           }
11945           /^X\(\/\/\)$/{
11946             s//\1/
11947             q
11948           }
11949           /^X\(\/\).*/{
11950             s//\1/
11951             q
11952           }
11953           s/.*/./; q'`
11954       test -d "$as_dir" && break
11955     done
11956     test -z "$as_dirs" || eval "mkdir $as_dirs"
11957   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11958
11959
11960 } # as_fn_mkdir_p
11961 if mkdir -p . 2>/dev/null; then
11962   as_mkdir_p='mkdir -p "$as_dir"'
11963 else
11964   test -d ./-p && rmdir ./-p
11965   as_mkdir_p=false
11966 fi
11967
11968
11969 # as_fn_executable_p FILE
11970 # -----------------------
11971 # Test if FILE is an executable regular file.
11972 as_fn_executable_p ()
11973 {
11974   test -f "$1" && test -x "$1"
11975 } # as_fn_executable_p
11976 as_test_x='test -x'
11977 as_executable_p=as_fn_executable_p
11978
11979 # Sed expression to map a string onto a valid CPP name.
11980 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11981
11982 # Sed expression to map a string onto a valid variable name.
11983 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11984
11985
11986 exec 6>&1
11987 ## ----------------------------------- ##
11988 ## Main body of $CONFIG_STATUS script. ##
11989 ## ----------------------------------- ##
11990 _ASEOF
11991 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11992
11993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994 # Save the log message, to keep $0 and so on meaningful, and to
11995 # report actual input values of CONFIG_FILES etc. instead of their
11996 # values after options handling.
11997 ac_log="
11998 This file was extended by $as_me, which was
11999 generated by GNU Autoconf 2.69.  Invocation command line was
12000
12001   CONFIG_FILES    = $CONFIG_FILES
12002   CONFIG_HEADERS  = $CONFIG_HEADERS
12003   CONFIG_LINKS    = $CONFIG_LINKS
12004   CONFIG_COMMANDS = $CONFIG_COMMANDS
12005   $ $0 $@
12006
12007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12008 "
12009
12010 _ACEOF
12011
12012 case $ac_config_files in *"
12013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12014 esac
12015
12016 case $ac_config_headers in *"
12017 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12018 esac
12019
12020
12021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12022 # Files that config.status was made for.
12023 config_files="$ac_config_files"
12024 config_headers="$ac_config_headers"
12025 config_commands="$ac_config_commands"
12026
12027 _ACEOF
12028
12029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030 ac_cs_usage="\
12031 \`$as_me' instantiates files and other configuration actions
12032 from templates according to the current configuration.  Unless the files
12033 and actions are specified as TAGs, all are instantiated by default.
12034
12035 Usage: $0 [OPTION]... [TAG]...
12036
12037   -h, --help       print this help, then exit
12038   -V, --version    print version number and configuration settings, then exit
12039       --config     print configuration, then exit
12040   -q, --quiet, --silent
12041                    do not print progress messages
12042   -d, --debug      don't remove temporary files
12043       --recheck    update $as_me by reconfiguring in the same conditions
12044       --file=FILE[:TEMPLATE]
12045                    instantiate the configuration file FILE
12046       --header=FILE[:TEMPLATE]
12047                    instantiate the configuration header FILE
12048
12049 Configuration files:
12050 $config_files
12051
12052 Configuration headers:
12053 $config_headers
12054
12055 Configuration commands:
12056 $config_commands
12057
12058 Report bugs to the package provider."
12059
12060 _ACEOF
12061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12062 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12063 ac_cs_version="\\
12064 config.status
12065 configured by $0, generated by GNU Autoconf 2.69,
12066   with options \\"\$ac_cs_config\\"
12067
12068 Copyright (C) 2012 Free Software Foundation, Inc.
12069 This config.status script is free software; the Free Software Foundation
12070 gives unlimited permission to copy, distribute and modify it."
12071
12072 ac_pwd='$ac_pwd'
12073 srcdir='$srcdir'
12074 INSTALL='$INSTALL'
12075 AWK='$AWK'
12076 test -n "\$AWK" || AWK=awk
12077 _ACEOF
12078
12079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12080 # The default lists apply if the user does not specify any file.
12081 ac_need_defaults=:
12082 while test $# != 0
12083 do
12084   case $1 in
12085   --*=?*)
12086     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12087     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12088     ac_shift=:
12089     ;;
12090   --*=)
12091     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12092     ac_optarg=
12093     ac_shift=:
12094     ;;
12095   *)
12096     ac_option=$1
12097     ac_optarg=$2
12098     ac_shift=shift
12099     ;;
12100   esac
12101
12102   case $ac_option in
12103   # Handling of the options.
12104   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12105     ac_cs_recheck=: ;;
12106   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12107     $as_echo "$ac_cs_version"; exit ;;
12108   --config | --confi | --conf | --con | --co | --c )
12109     $as_echo "$ac_cs_config"; exit ;;
12110   --debug | --debu | --deb | --de | --d | -d )
12111     debug=: ;;
12112   --file | --fil | --fi | --f )
12113     $ac_shift
12114     case $ac_optarg in
12115     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12116     '') as_fn_error $? "missing file argument" ;;
12117     esac
12118     as_fn_append CONFIG_FILES " '$ac_optarg'"
12119     ac_need_defaults=false;;
12120   --header | --heade | --head | --hea )
12121     $ac_shift
12122     case $ac_optarg in
12123     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12124     esac
12125     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12126     ac_need_defaults=false;;
12127   --he | --h)
12128     # Conflict between --help and --header
12129     as_fn_error $? "ambiguous option: \`$1'
12130 Try \`$0 --help' for more information.";;
12131   --help | --hel | -h )
12132     $as_echo "$ac_cs_usage"; exit ;;
12133   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12134   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12135     ac_cs_silent=: ;;
12136
12137   # This is an error.
12138   -*) as_fn_error $? "unrecognized option: \`$1'
12139 Try \`$0 --help' for more information." ;;
12140
12141   *) as_fn_append ac_config_targets " $1"
12142      ac_need_defaults=false ;;
12143
12144   esac
12145   shift
12146 done
12147
12148 ac_configure_extra_args=
12149
12150 if $ac_cs_silent; then
12151   exec 6>/dev/null
12152   ac_configure_extra_args="$ac_configure_extra_args --silent"
12153 fi
12154
12155 _ACEOF
12156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12157 if \$ac_cs_recheck; then
12158   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12159   shift
12160   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12161   CONFIG_SHELL='$SHELL'
12162   export CONFIG_SHELL
12163   exec "\$@"
12164 fi
12165
12166 _ACEOF
12167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12168 exec 5>>config.log
12169 {
12170   echo
12171   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12172 ## Running $as_me. ##
12173 _ASBOX
12174   $as_echo "$ac_log"
12175 } >&5
12176
12177 _ACEOF
12178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12179 #
12180 # INIT-COMMANDS
12181 #
12182 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12183     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12184     # from automake.
12185     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12186     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12187     LINGUAS="${LINGUAS-%UNSET%}"
12188
12189
12190 _ACEOF
12191
12192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12193
12194 # Handling of arguments.
12195 for ac_config_target in $ac_config_targets
12196 do
12197   case $ac_config_target in
12198     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12199     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12200     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12201
12202   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12203   esac
12204 done
12205
12206
12207 # If the user did not use the arguments to specify the items to instantiate,
12208 # then the envvar interface is used.  Set only those that are not.
12209 # We use the long form for the default assignment because of an extremely
12210 # bizarre bug on SunOS 4.1.3.
12211 if $ac_need_defaults; then
12212   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12213   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12214   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12215 fi
12216
12217 # Have a temporary directory for convenience.  Make it in the build tree
12218 # simply because there is no reason against having it here, and in addition,
12219 # creating and moving files from /tmp can sometimes cause problems.
12220 # Hook for its removal unless debugging.
12221 # Note that there is a small window in which the directory will not be cleaned:
12222 # after its creation but before its name has been assigned to `$tmp'.
12223 $debug ||
12224 {
12225   tmp= ac_tmp=
12226   trap 'exit_status=$?
12227   : "${ac_tmp:=$tmp}"
12228   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12229 ' 0
12230   trap 'as_fn_exit 1' 1 2 13 15
12231 }
12232 # Create a (secure) tmp directory for tmp files.
12233
12234 {
12235   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12236   test -d "$tmp"
12237 }  ||
12238 {
12239   tmp=./conf$$-$RANDOM
12240   (umask 077 && mkdir "$tmp")
12241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12242 ac_tmp=$tmp
12243
12244 # Set up the scripts for CONFIG_FILES section.
12245 # No need to generate them if there are no CONFIG_FILES.
12246 # This happens for instance with `./config.status config.h'.
12247 if test -n "$CONFIG_FILES"; then
12248
12249 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12250   ac_cs_awk_getline=:
12251   ac_cs_awk_pipe_init=
12252   ac_cs_awk_read_file='
12253       while ((getline aline < (F[key])) > 0)
12254         print(aline)
12255       close(F[key])'
12256   ac_cs_awk_pipe_fini=
12257 else
12258   ac_cs_awk_getline=false
12259   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12260   ac_cs_awk_read_file='
12261       print "|#_!!_#|"
12262       print "cat " F[key] " &&"
12263       '$ac_cs_awk_pipe_init
12264   # The final `:' finishes the AND list.
12265   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12266 fi
12267 ac_cr=`echo X | tr X '\015'`
12268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12269 # But we know of no other shell where ac_cr would be empty at this
12270 # point, so we can use a bashism as a fallback.
12271 if test "x$ac_cr" = x; then
12272   eval ac_cr=\$\'\\r\'
12273 fi
12274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12276   ac_cs_awk_cr='\\r'
12277 else
12278   ac_cs_awk_cr=$ac_cr
12279 fi
12280
12281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12282 _ACEOF
12283
12284 # Create commands to substitute file output variables.
12285 {
12286   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12287   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12288   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12289   echo "_ACAWK" &&
12290   echo "_ACEOF"
12291 } >conf$$files.sh &&
12292 . ./conf$$files.sh ||
12293   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12294 rm -f conf$$files.sh
12295
12296 {
12297   echo "cat >conf$$subs.awk <<_ACEOF" &&
12298   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12299   echo "_ACEOF"
12300 } >conf$$subs.sh ||
12301   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12303 ac_delim='%!_!# '
12304 for ac_last_try in false false false false false :; do
12305   . ./conf$$subs.sh ||
12306     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12307
12308   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12309   if test $ac_delim_n = $ac_delim_num; then
12310     break
12311   elif $ac_last_try; then
12312     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12313   else
12314     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12315   fi
12316 done
12317 rm -f conf$$subs.sh
12318
12319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12321 _ACEOF
12322 sed -n '
12323 h
12324 s/^/S["/; s/!.*/"]=/
12325 p
12326 g
12327 s/^[^!]*!//
12328 :repl
12329 t repl
12330 s/'"$ac_delim"'$//
12331 t delim
12332 :nl
12333 h
12334 s/\(.\{148\}\)..*/\1/
12335 t more1
12336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12337 p
12338 n
12339 b repl
12340 :more1
12341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12342 p
12343 g
12344 s/.\{148\}//
12345 t nl
12346 :delim
12347 h
12348 s/\(.\{148\}\)..*/\1/
12349 t more2
12350 s/["\\]/\\&/g; s/^/"/; s/$/"/
12351 p
12352 b
12353 :more2
12354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12355 p
12356 g
12357 s/.\{148\}//
12358 t delim
12359 ' <conf$$subs.awk | sed '
12360 /^[^""]/{
12361   N
12362   s/\n//
12363 }
12364 ' >>$CONFIG_STATUS || ac_write_fail=1
12365 rm -f conf$$subs.awk
12366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12367 _ACAWK
12368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12369   for (key in S) S_is_set[key] = 1
12370   FS = "\a"
12371   \$ac_cs_awk_pipe_init
12372 }
12373 {
12374   line = $ 0
12375   nfields = split(line, field, "@")
12376   substed = 0
12377   len = length(field[1])
12378   for (i = 2; i < nfields; i++) {
12379     key = field[i]
12380     keylen = length(key)
12381     if (S_is_set[key]) {
12382       value = S[key]
12383       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12384       len += length(value) + length(field[++i])
12385       substed = 1
12386     } else
12387       len += 1 + keylen
12388   }
12389   if (nfields == 3 && !substed) {
12390     key = field[2]
12391     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12392       \$ac_cs_awk_read_file
12393       next
12394     }
12395   }
12396   print line
12397 }
12398 \$ac_cs_awk_pipe_fini
12399 _ACAWK
12400 _ACEOF
12401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12403   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12404 else
12405   cat
12406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12407   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12408 _ACEOF
12409
12410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12412 # trailing colons and then remove the whole line if VPATH becomes empty
12413 # (actually we leave an empty line to preserve line numbers).
12414 if test "x$srcdir" = x.; then
12415   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12416 h
12417 s///
12418 s/^/:/
12419 s/[      ]*$/:/
12420 s/:\$(srcdir):/:/g
12421 s/:\${srcdir}:/:/g
12422 s/:@srcdir@:/:/g
12423 s/^:*//
12424 s/:*$//
12425 x
12426 s/\(=[   ]*\).*/\1/
12427 G
12428 s/\n//
12429 s/^[^=]*=[       ]*$//
12430 }'
12431 fi
12432
12433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434 fi # test -n "$CONFIG_FILES"
12435
12436 # Set up the scripts for CONFIG_HEADERS section.
12437 # No need to generate them if there are no CONFIG_HEADERS.
12438 # This happens for instance with `./config.status Makefile'.
12439 if test -n "$CONFIG_HEADERS"; then
12440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12441 BEGIN {
12442 _ACEOF
12443
12444 # Transform confdefs.h into an awk script `defines.awk', embedded as
12445 # here-document in config.status, that substitutes the proper values into
12446 # config.h.in to produce config.h.
12447
12448 # Create a delimiter string that does not exist in confdefs.h, to ease
12449 # handling of long lines.
12450 ac_delim='%!_!# '
12451 for ac_last_try in false false :; do
12452   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12453   if test -z "$ac_tt"; then
12454     break
12455   elif $ac_last_try; then
12456     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12457   else
12458     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12459   fi
12460 done
12461
12462 # For the awk script, D is an array of macro values keyed by name,
12463 # likewise P contains macro parameters if any.  Preserve backslash
12464 # newline sequences.
12465
12466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12467 sed -n '
12468 s/.\{148\}/&'"$ac_delim"'/g
12469 t rset
12470 :rset
12471 s/^[     ]*#[    ]*define[       ][      ]*/ /
12472 t def
12473 d
12474 :def
12475 s/\\$//
12476 t bsnl
12477 s/["\\]/\\&/g
12478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12479 D["\1"]=" \3"/p
12480 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12481 d
12482 :bsnl
12483 s/["\\]/\\&/g
12484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12485 D["\1"]=" \3\\\\\\n"\\/p
12486 t cont
12487 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12488 t cont
12489 d
12490 :cont
12491 n
12492 s/.\{148\}/&'"$ac_delim"'/g
12493 t clear
12494 :clear
12495 s/\\$//
12496 t bsnlc
12497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12498 d
12499 :bsnlc
12500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12501 b cont
12502 ' <confdefs.h | sed '
12503 s/'"$ac_delim"'/"\\\
12504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12505
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507   for (key in D) D_is_set[key] = 1
12508   FS = "\a"
12509 }
12510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12511   line = \$ 0
12512   split(line, arg, " ")
12513   if (arg[1] == "#") {
12514     defundef = arg[2]
12515     mac1 = arg[3]
12516   } else {
12517     defundef = substr(arg[1], 2)
12518     mac1 = arg[2]
12519   }
12520   split(mac1, mac2, "(") #)
12521   macro = mac2[1]
12522   prefix = substr(line, 1, index(line, defundef) - 1)
12523   if (D_is_set[macro]) {
12524     # Preserve the white space surrounding the "#".
12525     print prefix "define", macro P[macro] D[macro]
12526     next
12527   } else {
12528     # Replace #undef with comments.  This is necessary, for example,
12529     # in the case of _POSIX_SOURCE, which is predefined and required
12530     # on some systems where configure will not decide to define it.
12531     if (defundef == "undef") {
12532       print "/*", prefix defundef, macro, "*/"
12533       next
12534     }
12535   }
12536 }
12537 { print }
12538 _ACAWK
12539 _ACEOF
12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12542 fi # test -n "$CONFIG_HEADERS"
12543
12544
12545 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12546 shift
12547 for ac_tag
12548 do
12549   case $ac_tag in
12550   :[FHLC]) ac_mode=$ac_tag; continue;;
12551   esac
12552   case $ac_mode$ac_tag in
12553   :[FHL]*:*);;
12554   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12555   :[FH]-) ac_tag=-:-;;
12556   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12557   esac
12558   ac_save_IFS=$IFS
12559   IFS=:
12560   set x $ac_tag
12561   IFS=$ac_save_IFS
12562   shift
12563   ac_file=$1
12564   shift
12565
12566   case $ac_mode in
12567   :L) ac_source=$1;;
12568   :[FH])
12569     ac_file_inputs=
12570     for ac_f
12571     do
12572       case $ac_f in
12573       -) ac_f="$ac_tmp/stdin";;
12574       *) # Look for the file first in the build tree, then in the source tree
12575          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12576          # because $ac_f cannot contain `:'.
12577          test -f "$ac_f" ||
12578            case $ac_f in
12579            [\\/$]*) false;;
12580            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12581            esac ||
12582            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12583       esac
12584       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12585       as_fn_append ac_file_inputs " '$ac_f'"
12586     done
12587
12588     # Let's still pretend it is `configure' which instantiates (i.e., don't
12589     # use $as_me), people would be surprised to read:
12590     #    /* config.h.  Generated by config.status.  */
12591     configure_input='Generated from '`
12592           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12593         `' by configure.'
12594     if test x"$ac_file" != x-; then
12595       configure_input="$ac_file.  $configure_input"
12596       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12597 $as_echo "$as_me: creating $ac_file" >&6;}
12598     fi
12599     # Neutralize special characters interpreted by sed in replacement strings.
12600     case $configure_input in #(
12601     *\&* | *\|* | *\\* )
12602        ac_sed_conf_input=`$as_echo "$configure_input" |
12603        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12604     *) ac_sed_conf_input=$configure_input;;
12605     esac
12606
12607     case $ac_tag in
12608     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12609       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12610     esac
12611     ;;
12612   esac
12613
12614   ac_dir=`$as_dirname -- "$ac_file" ||
12615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12616          X"$ac_file" : 'X\(//\)[^/]' \| \
12617          X"$ac_file" : 'X\(//\)$' \| \
12618          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12619 $as_echo X"$ac_file" |
12620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12621             s//\1/
12622             q
12623           }
12624           /^X\(\/\/\)[^/].*/{
12625             s//\1/
12626             q
12627           }
12628           /^X\(\/\/\)$/{
12629             s//\1/
12630             q
12631           }
12632           /^X\(\/\).*/{
12633             s//\1/
12634             q
12635           }
12636           s/.*/./; q'`
12637   as_dir="$ac_dir"; as_fn_mkdir_p
12638   ac_builddir=.
12639
12640 case "$ac_dir" in
12641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12642 *)
12643   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12644   # A ".." for each directory in $ac_dir_suffix.
12645   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12646   case $ac_top_builddir_sub in
12647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12649   esac ;;
12650 esac
12651 ac_abs_top_builddir=$ac_pwd
12652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12653 # for backward compatibility:
12654 ac_top_builddir=$ac_top_build_prefix
12655
12656 case $srcdir in
12657   .)  # We are building in place.
12658     ac_srcdir=.
12659     ac_top_srcdir=$ac_top_builddir_sub
12660     ac_abs_top_srcdir=$ac_pwd ;;
12661   [\\/]* | ?:[\\/]* )  # Absolute name.
12662     ac_srcdir=$srcdir$ac_dir_suffix;
12663     ac_top_srcdir=$srcdir
12664     ac_abs_top_srcdir=$srcdir ;;
12665   *) # Relative name.
12666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12667     ac_top_srcdir=$ac_top_build_prefix$srcdir
12668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12669 esac
12670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12671
12672
12673   case $ac_mode in
12674   :F)
12675   #
12676   # CONFIG_FILE
12677   #
12678
12679   case $INSTALL in
12680   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12681   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12682   esac
12683 _ACEOF
12684
12685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12686 # If the template does not know about datarootdir, expand it.
12687 # FIXME: This hack should be removed a few years after 2.60.
12688 ac_datarootdir_hack=; ac_datarootdir_seen=
12689 ac_sed_dataroot='
12690 /datarootdir/ {
12691   p
12692   q
12693 }
12694 /@datadir@/p
12695 /@docdir@/p
12696 /@infodir@/p
12697 /@localedir@/p
12698 /@mandir@/p'
12699 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12700 *datarootdir*) ac_datarootdir_seen=yes;;
12701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12703 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12704 _ACEOF
12705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12706   ac_datarootdir_hack='
12707   s&@datadir@&$datadir&g
12708   s&@docdir@&$docdir&g
12709   s&@infodir@&$infodir&g
12710   s&@localedir@&$localedir&g
12711   s&@mandir@&$mandir&g
12712   s&\\\${datarootdir}&$datarootdir&g' ;;
12713 esac
12714 _ACEOF
12715
12716 # Neutralize VPATH when `$srcdir' = `.'.
12717 # Shell code in configure.ac might set extrasub.
12718 # FIXME: do we really want to maintain this feature?
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 ac_sed_extra="$ac_vpsub
12721 $extrasub
12722 _ACEOF
12723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12724 :t
12725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12726 s|@configure_input@|$ac_sed_conf_input|;t t
12727 s&@top_builddir@&$ac_top_builddir_sub&;t t
12728 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12729 s&@srcdir@&$ac_srcdir&;t t
12730 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12731 s&@top_srcdir@&$ac_top_srcdir&;t t
12732 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12733 s&@builddir@&$ac_builddir&;t t
12734 s&@abs_builddir@&$ac_abs_builddir&;t t
12735 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12736 s&@INSTALL@&$ac_INSTALL&;t t
12737 $ac_datarootdir_hack
12738 "
12739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12740 if $ac_cs_awk_getline; then
12741   $AWK -f "$ac_tmp/subs.awk"
12742 else
12743   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12744 fi \
12745   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12746
12747 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12748   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12749   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12750       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12752 which seems to be undefined.  Please make sure it is defined" >&5
12753 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12754 which seems to be undefined.  Please make sure it is defined" >&2;}
12755
12756   rm -f "$ac_tmp/stdin"
12757   case $ac_file in
12758   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12759   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12760   esac \
12761   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12762  ;;
12763   :H)
12764   #
12765   # CONFIG_HEADER
12766   #
12767   if test x"$ac_file" != x-; then
12768     {
12769       $as_echo "/* $configure_input  */" \
12770       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12771     } >"$ac_tmp/config.h" \
12772       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12773     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12774       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12775 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12776     else
12777       rm -f "$ac_file"
12778       mv "$ac_tmp/config.h" "$ac_file" \
12779         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12780     fi
12781   else
12782     $as_echo "/* $configure_input  */" \
12783       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12784       || as_fn_error $? "could not create -" "$LINENO" 5
12785   fi
12786  ;;
12787
12788   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12789 $as_echo "$as_me: executing $ac_file commands" >&6;}
12790  ;;
12791   esac
12792
12793
12794   case $ac_file$ac_mode in
12795     "default-1":C)
12796     for ac_file in $CONFIG_FILES; do
12797       # Support "outfile[:infile[:infile...]]"
12798       case "$ac_file" in
12799         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12800       esac
12801       # PO directories have a Makefile.in generated from Makefile.in.in.
12802       case "$ac_file" in */Makefile.in)
12803         # Adjust a relative srcdir.
12804         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12805         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12806         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12807         # In autoconf-2.13 it is called $ac_given_srcdir.
12808         # In autoconf-2.50 it is called $srcdir.
12809         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12810         case "$ac_given_srcdir" in
12811           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12812           /*) top_srcdir="$ac_given_srcdir" ;;
12813           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12814         esac
12815         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12816           rm -f "$ac_dir/POTFILES"
12817           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12818           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12819           POMAKEFILEDEPS="POTFILES.in"
12820           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12821           # on $ac_dir but don't depend on user-specified configuration
12822           # parameters.
12823           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12824             # The LINGUAS file contains the set of available languages.
12825             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12826               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12827             fi
12828             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12829             # Hide the ALL_LINGUAS assigment from automake.
12830             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12831             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12832           else
12833             # The set of available languages was given in configure.in.
12834             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12835           fi
12836           # Compute POFILES
12837           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12838           # Compute UPDATEPOFILES
12839           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12840           # Compute DUMMYPOFILES
12841           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12842           # Compute GMOFILES
12843           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12844           case "$ac_given_srcdir" in
12845             .) srcdirpre= ;;
12846             *) srcdirpre='$(srcdir)/' ;;
12847           esac
12848           POFILES=
12849           UPDATEPOFILES=
12850           DUMMYPOFILES=
12851           GMOFILES=
12852           for lang in $ALL_LINGUAS; do
12853             POFILES="$POFILES $srcdirpre$lang.po"
12854             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12855             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12856             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12857           done
12858           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12859           # environment variable.
12860           INST_LINGUAS=
12861           if test -n "$ALL_LINGUAS"; then
12862             for presentlang in $ALL_LINGUAS; do
12863               useit=no
12864               if test "%UNSET%" != "$LINGUAS"; then
12865                 desiredlanguages="$LINGUAS"
12866               else
12867                 desiredlanguages="$ALL_LINGUAS"
12868               fi
12869               for desiredlang in $desiredlanguages; do
12870                 # Use the presentlang catalog if desiredlang is
12871                 #   a. equal to presentlang, or
12872                 #   b. a variant of presentlang (because in this case,
12873                 #      presentlang can be used as a fallback for messages
12874                 #      which are not translated in the desiredlang catalog).
12875                 case "$desiredlang" in
12876                   "$presentlang"*) useit=yes;;
12877                 esac
12878               done
12879               if test $useit = yes; then
12880                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12881               fi
12882             done
12883           fi
12884           CATALOGS=
12885           if test -n "$INST_LINGUAS"; then
12886             for lang in $INST_LINGUAS; do
12887               CATALOGS="$CATALOGS $lang.gmo"
12888             done
12889           fi
12890           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12891           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"
12892           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12893             if test -f "$f"; then
12894               case "$f" in
12895                 *.orig | *.bak | *~) ;;
12896                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12897               esac
12898             fi
12899           done
12900         fi
12901         ;;
12902       esac
12903     done ;;
12904
12905   esac
12906 done # for ac_tag
12907
12908
12909 as_fn_exit 0
12910 _ACEOF
12911 ac_clean_files=$ac_clean_files_save
12912
12913 test $ac_write_fail = 0 ||
12914   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12915
12916
12917 # configure is writing to config.log, and then calls config.status.
12918 # config.status does its own redirection, appending to config.log.
12919 # Unfortunately, on DOS this fails, as config.log is still kept open
12920 # by configure, so config.status won't be able to write to it; its
12921 # output is simply discarded.  So we exec the FD to /dev/null,
12922 # effectively closing config.log, so it can be properly (re)opened and
12923 # appended to by config.status.  When coming back to configure, we
12924 # need to make the FD available again.
12925 if test "$no_create" != yes; then
12926   ac_cs_success=:
12927   ac_config_status_args=
12928   test "$silent" = yes &&
12929     ac_config_status_args="$ac_config_status_args --quiet"
12930   exec 5>/dev/null
12931   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12932   exec 5>>config.log
12933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12934   # would make configure fail if this is the last instruction.
12935   $ac_cs_success || as_fn_exit 1
12936 fi
12937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12940 fi
12941
12942 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi