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