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