gdb:
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="import/dummy.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
591gl_header_list=
592gl_func_list=
593ac_subst_vars='am__EXEEXT_FALSE
594am__EXEEXT_TRUE
595gltests_LTLIBOBJS
596gltests_LIBOBJS
597gl_LTLIBOBJS
598gl_LIBOBJS
599LTLIBOBJS
600LIBOBJS
601LN_S
602am__fastdepCC_FALSE
603am__fastdepCC_TRUE
604CCDEPMODE
605AMDEPBACKSLASH
606AMDEP_FALSE
607AMDEP_TRUE
608am__quote
609am__include
610DEPDIR
611am__untar
612am__tar
613AMTAR
614am__leading_dot
615SET_MAKE
616AWK
617mkdir_p
618MKDIR_P
619INSTALL_STRIP_PROGRAM
620STRIP
621install_sh
622MAKEINFO
623AUTOHEADER
624AUTOMAKE
625AUTOCONF
626ACLOCAL
627VERSION
628PACKAGE
629CYGPATH_W
630am__isrc
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634LIBGNU_LTLIBDEPS
635LIBGNU_LIBDEPS
636gltests_WITNESS
637NEXT_AS_FIRST_DIRECTIVE_STRING_H
638NEXT_STRING_H
639NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
640NEXT_STDDEF_H
641GL_GENERATE_STDDEF_H_FALSE
642GL_GENERATE_STDDEF_H_TRUE
643STDDEF_H
644HAVE_WCHAR_T
645REPLACE_NULL
646UNDEFINE_STRTOK_R
647REPLACE_STRTOK_R
648REPLACE_STRSIGNAL
649REPLACE_STRNLEN
650REPLACE_STRNDUP
651REPLACE_STRNCAT
652REPLACE_STRERROR_R
653REPLACE_STRERROR
654REPLACE_STRCHRNUL
655REPLACE_STRCASESTR
656REPLACE_STRSTR
657REPLACE_STRDUP
658REPLACE_STPNCPY
659REPLACE_MEMMEM
660REPLACE_MEMCHR
661HAVE_STRVERSCMP
662HAVE_DECL_STRSIGNAL
663HAVE_DECL_STRERROR_R
664HAVE_DECL_STRTOK_R
665HAVE_STRCASESTR
666HAVE_STRSEP
667HAVE_STRPBRK
668HAVE_DECL_STRNLEN
669HAVE_DECL_STRNDUP
670HAVE_DECL_STRDUP
671HAVE_STRCHRNUL
672HAVE_STPNCPY
673HAVE_STPCPY
674HAVE_RAWMEMCHR
675HAVE_DECL_MEMRCHR
676HAVE_MEMPCPY
677HAVE_DECL_MEMMEM
678HAVE_MEMCHR
679HAVE_FFSLL
680HAVE_FFSL
681HAVE_MBSLEN
682GNULIB_STRVERSCMP
683GNULIB_STRSIGNAL
684GNULIB_STRERROR_R
685GNULIB_STRERROR
686GNULIB_MBSTOK_R
687GNULIB_MBSSEP
688GNULIB_MBSSPN
689GNULIB_MBSPBRK
690GNULIB_MBSCSPN
691GNULIB_MBSCASESTR
692GNULIB_MBSPCASECMP
693GNULIB_MBSNCASECMP
694GNULIB_MBSCASECMP
695GNULIB_MBSSTR
696GNULIB_MBSRCHR
697GNULIB_MBSCHR
698GNULIB_MBSNLEN
699GNULIB_MBSLEN
700GNULIB_STRTOK_R
701GNULIB_STRCASESTR
702GNULIB_STRSTR
703GNULIB_STRSEP
704GNULIB_STRPBRK
705GNULIB_STRNLEN
706GNULIB_STRNDUP
707GNULIB_STRNCAT
708GNULIB_STRDUP
709GNULIB_STRCHRNUL
710GNULIB_STPNCPY
711GNULIB_STPCPY
712GNULIB_RAWMEMCHR
713GNULIB_MEMRCHR
714GNULIB_MEMPCPY
715GNULIB_MEMMEM
716GNULIB_MEMCHR
717GNULIB_FFSLL
718GNULIB_FFSL
719NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
720NEXT_INTTYPES_H
721UINT64_MAX_EQ_ULONG_MAX
722UINT32_MAX_LT_UINTMAX_MAX
723PRIPTR_PREFIX
724PRI_MACROS_BROKEN
725INT64_MAX_EQ_LONG_MAX
726INT32_MAX_LT_INTMAX_MAX
727REPLACE_STRTOIMAX
728HAVE_DECL_STRTOUMAX
729HAVE_DECL_STRTOIMAX
730HAVE_DECL_IMAXDIV
731HAVE_DECL_IMAXABS
732GNULIB_STRTOUMAX
733GNULIB_STRTOIMAX
734GNULIB_IMAXDIV
735GNULIB_IMAXABS
736GL_GENERATE_STDINT_H_FALSE
737GL_GENERATE_STDINT_H_TRUE
738STDINT_H
739WINT_T_SUFFIX
740WCHAR_T_SUFFIX
741SIG_ATOMIC_T_SUFFIX
742SIZE_T_SUFFIX
743PTRDIFF_T_SUFFIX
744HAVE_SIGNED_WINT_T
745HAVE_SIGNED_WCHAR_T
746HAVE_SIGNED_SIG_ATOMIC_T
747BITSIZEOF_WINT_T
748BITSIZEOF_WCHAR_T
749BITSIZEOF_SIG_ATOMIC_T
750BITSIZEOF_SIZE_T
751BITSIZEOF_PTRDIFF_T
752APPLE_UNIVERSAL_BUILD
753HAVE_SYS_BITYPES_H
754HAVE_SYS_INTTYPES_H
755HAVE_STDINT_H
756NEXT_AS_FIRST_DIRECTIVE_STDINT_H
757NEXT_STDINT_H
758PRAGMA_COLUMNS
759PRAGMA_SYSTEM_HEADER
760INCLUDE_NEXT_AS_FIRST_DIRECTIVE
761INCLUDE_NEXT
762HAVE_SYS_TYPES_H
763HAVE_INTTYPES_H
764HAVE_WCHAR_H
765HAVE_UNSIGNED_LONG_LONG_INT
766HAVE_LONG_LONG_INT
767GL_COND_LIBTOOL_FALSE
768GL_COND_LIBTOOL_TRUE
769target_os
770target_vendor
771target_cpu
772target
773RANLIB
774ARFLAGS
775AR
776EGREP
777GREP
778CPP
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794MAINT
795MAINTAINER_MODE_FALSE
796MAINTAINER_MODE_TRUE
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
835ac_subst_files=''
836ac_user_opts='
837enable_option_checking
838enable_maintainer_mode
839enable_dependency_tracking
840'
841 ac_precious_vars='build_alias
842host_alias
843target_alias
844CC
845CFLAGS
846LDFLAGS
847LIBS
848CPPFLAGS
849CPP'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193"with_$ac_useropt"
1194"*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information."
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 ;;
1255
1256 esac
1257done
1258
1259if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error "working directory cannot be determined"
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error "pwd does not report name of working directory"
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334$as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356else
1357 ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1366 pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391\`configure' configures this package to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444_ACEOF
1445
1446 cat <<\_ACEOF
1447
1448Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461
1462 cat <<\_ACEOF
1463
1464Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-maintainer-mode enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
1472
1473Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CPP C preprocessor
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to the package provider.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548 cat <<\_ACEOF
1549configure
1550generated by GNU Autoconf 2.64
1551
1552Copyright (C) 2009 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556 exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_cpp LINENO
1602# ----------------------
1603# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_cpp ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } >/dev/null && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632fi
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
1635
1636} # ac_fn_c_try_cpp
1637
1638# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1641# the include files in INCLUDES and setting the cache variable VAR
1642# accordingly.
1643ac_fn_c_check_header_mongrel ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655else
1656 # Is the header compilable?
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1658$as_echo_n "checking $2 usability... " >&6; }
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665 ac_header_compiler=yes
1666else
1667 ac_header_compiler=no
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1671$as_echo "$ac_header_compiler" >&6; }
1672
1673# Is the header present?
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1675$as_echo_n "checking $2 presence... " >&6; }
1676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_cpp "$LINENO"; then :
1681 ac_header_preproc=yes
1682else
1683 ac_header_preproc=no
1684fi
1685rm -f conftest.err conftest.$ac_ext
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1687$as_echo "$ac_header_preproc" >&6; }
1688
1689# So? What about this header?
1690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1691 yes:no: )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1693$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1697 no:yes:* )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1699$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1701$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1703$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1705$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709esac
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714else
1715 eval "$3=\$ac_header_compiler"
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720fi
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_mongrel
1724
1725# ac_fn_c_try_run LINENO
1726# ----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728# that executables *can* be run.
1729ac_fn_c_try_run ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1764
1765} # ac_fn_c_try_run
1766
1767# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists and can be compiled using the include files in
1770# INCLUDES, setting the cache variable VAR accordingly.
1771ac_fn_c_check_header_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_compile
1797
1798# ac_fn_c_try_link LINENO
1799# -----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_link ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 $as_test_x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842} # ac_fn_c_try_link
1843
1844# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1845# --------------------------------------------
1846# Tries to find the compile-time value of EXPR in a program that includes
1847# INCLUDES, setting VAR accordingly. Returns whether the value could be
1848# computed
1849ac_fn_c_compute_int ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if test "$cross_compiling" = yes; then
1853 # Depending upon the size, compute the lo and hi bounds.
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857int
1858main ()
1859{
1860static int test_array [1 - 2 * !(($2) >= 0)];
1861test_array [0] = 0
1862
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_lo=0 ac_mid=0
1869 while :; do
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1877test_array [0] = 0
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=$ac_mid; break
1885else
1886 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1887 if test $ac_lo -le $ac_mid; then
1888 ac_lo= ac_hi=
1889 break
1890 fi
1891 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 done
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
1902static int test_array [1 - 2 * !(($2) < 0)];
1903test_array [0] = 0
1904
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=-1 ac_mid=-1
1911 while :; do
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1919test_array [0] = 0
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_lo=$ac_mid; break
1927else
1928 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1929 if test $ac_mid -le $ac_hi; then
1930 ac_lo= ac_hi=
1931 break
1932 fi
1933 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937else
1938 ac_lo= ac_hi=
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943# Binary search between lo and hi bounds.
1944while test "x$ac_lo" != "x$ac_hi"; do
1945 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953test_array [0] = 0
1954
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid
1961else
1962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965done
1966case $ac_lo in #((
1967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1968'') ac_retval=1 ;;
1969esac
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974static long int longval () { return $2; }
1975static unsigned long int ulongval () { return $2; }
1976#include <stdio.h>
1977#include <stdlib.h>
1978int
1979main ()
1980{
1981
1982 FILE *f = fopen ("conftest.val", "w");
1983 if (! f)
1984 return 1;
1985 if (($2) < 0)
1986 {
1987 long int i = longval ();
1988 if (i != ($2))
1989 return 1;
1990 fprintf (f, "%ld", i);
1991 }
1992 else
1993 {
1994 unsigned long int i = ulongval ();
1995 if (i != ($2))
1996 return 1;
1997 fprintf (f, "%lu", i);
1998 }
1999 /* Do not output a trailing newline, as this causes \r\n confusion
2000 on some platforms. */
2001 return ferror (f) || fclose (f) != 0;
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_run "$LINENO"; then :
2008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2009else
2010 ac_retval=1
2011fi
2012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2013 conftest.$ac_objext conftest.beam conftest.$ac_ext
2014rm -f conftest.val
2015
2016 fi
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 return $ac_retval
2019
2020} # ac_fn_c_compute_int
2021
2022# ac_fn_c_check_func LINENO FUNC VAR
2023# ----------------------------------
2024# Tests whether FUNC exists, setting the cache variable VAR accordingly
2025ac_fn_c_check_func ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037#define $2 innocuous_$2
2038
2039/* System header to define __stub macros and hopefully few prototypes,
2040 which can conflict with char $2 (); below.
2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042 <limits.h> exists even on freestanding compilers. */
2043
2044#ifdef __STDC__
2045# include <limits.h>
2046#else
2047# include <assert.h>
2048#endif
2049
2050#undef $2
2051
2052/* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055#ifdef __cplusplus
2056extern "C"
2057#endif
2058char $2 ();
2059/* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062#if defined __stub_$2 || defined __stub___$2
2063choke me
2064#endif
2065
2066int
2067main ()
2068{
2069return $2 ();
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076else
2077 eval "$3=no"
2078fi
2079rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2081fi
2082eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084$as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087} # ac_fn_c_check_func
2088
2089# ac_fn_c_check_decl LINENO SYMBOL VAR
2090# ------------------------------------
2091# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2092ac_fn_c_check_decl ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2096$as_echo_n "checking whether $2 is declared... " >&6; }
2097if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2099else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106#ifndef $2
2107 (void) $2;
2108#endif
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$3=yes"
2116else
2117 eval "$3=no"
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125
2126} # ac_fn_c_check_decl
2127cat >config.log <<_ACEOF
2128This file contains any messages produced by compilers while
2129running configure, to aid debugging if configure makes a mistake.
2130
2131It was created by $as_me, which was
2132generated by GNU Autoconf 2.64. Invocation command line was
2133
2134 $ $0 $@
2135
2136_ACEOF
2137exec 5>>config.log
2138{
2139cat <<_ASUNAME
2140## --------- ##
2141## Platform. ##
2142## --------- ##
2143
2144hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148uname -v = `(uname -v) 2>/dev/null || echo unknown`
2149
2150/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2151/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2152
2153/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2154/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2155/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2156/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2157/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2158/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2159/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2160
2161_ASUNAME
2162
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 $as_echo "PATH: $as_dir"
2169 done
2170IFS=$as_save_IFS
2171
2172} >&5
2173
2174cat >&5 <<_ACEOF
2175
2176
2177## ----------- ##
2178## Core tests. ##
2179## ----------- ##
2180
2181_ACEOF
2182
2183
2184# Keep a trace of the command line.
2185# Strip out --no-create and --no-recursion so they do not pile up.
2186# Strip out --silent because we don't want to record it for future runs.
2187# Also quote any args containing shell meta-characters.
2188# Make two passes to allow for proper duplicate-argument suppression.
2189ac_configure_args=
2190ac_configure_args0=
2191ac_configure_args1=
2192ac_must_keep_next=false
2193for ac_pass in 1 2
2194do
2195 for ac_arg
2196 do
2197 case $ac_arg in
2198 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2200 | -silent | --silent | --silen | --sile | --sil)
2201 continue ;;
2202 *\'*)
2203 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 esac
2205 case $ac_pass in
2206 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2207 2)
2208 as_fn_append ac_configure_args1 " '$ac_arg'"
2209 if test $ac_must_keep_next = true; then
2210 ac_must_keep_next=false # Got value, back to normal.
2211 else
2212 case $ac_arg in
2213 *=* | --config-cache | -C | -disable-* | --disable-* \
2214 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2215 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2216 | -with-* | --with-* | -without-* | --without-* | --x)
2217 case "$ac_configure_args0 " in
2218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2219 esac
2220 ;;
2221 -* ) ac_must_keep_next=true ;;
2222 esac
2223 fi
2224 as_fn_append ac_configure_args " '$ac_arg'"
2225 ;;
2226 esac
2227 done
2228done
2229{ ac_configure_args0=; unset ac_configure_args0;}
2230{ ac_configure_args1=; unset ac_configure_args1;}
2231
2232# When interrupted or exit'd, cleanup temporary files, and complete
2233# config.log. We remove comments because anyway the quotes in there
2234# would cause problems or look ugly.
2235# WARNING: Use '\'' to represent an apostrophe within the trap.
2236# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2237trap 'exit_status=$?
2238 # Save into config.log some information that might help in debugging.
2239 {
2240 echo
2241
2242 cat <<\_ASBOX
2243## ---------------- ##
2244## Cache variables. ##
2245## ---------------- ##
2246_ASBOX
2247 echo
2248 # The following way of writing the cache mishandles newlines in values,
2249(
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2262 esac ;;
2263 esac
2264 done
2265 (set) 2>&1 |
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2268 sed -n \
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
2272 *)
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274 ;;
2275 esac |
2276 sort
2277)
2278 echo
2279
2280 cat <<\_ASBOX
2281## ----------------- ##
2282## Output variables. ##
2283## ----------------- ##
2284_ASBOX
2285 echo
2286 for ac_var in $ac_subst_vars
2287 do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in
2290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 esac
2292 $as_echo "$ac_var='\''$ac_val'\''"
2293 done | sort
2294 echo
2295
2296 if test -n "$ac_subst_files"; then
2297 cat <<\_ASBOX
2298## ------------------- ##
2299## File substitutions. ##
2300## ------------------- ##
2301_ASBOX
2302 echo
2303 for ac_var in $ac_subst_files
2304 do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in
2307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308 esac
2309 $as_echo "$ac_var='\''$ac_val'\''"
2310 done | sort
2311 echo
2312 fi
2313
2314 if test -s confdefs.h; then
2315 cat <<\_ASBOX
2316## ----------- ##
2317## confdefs.h. ##
2318## ----------- ##
2319_ASBOX
2320 echo
2321 cat confdefs.h
2322 echo
2323 fi
2324 test "$ac_signal" != 0 &&
2325 $as_echo "$as_me: caught signal $ac_signal"
2326 $as_echo "$as_me: exit $exit_status"
2327 } >&5
2328 rm -f core *.core core.conftest.* &&
2329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330 exit $exit_status
2331' 0
2332for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334done
2335ac_signal=0
2336
2337# confdefs.h avoids OS command line length limits that DEFS can exceed.
2338rm -f -r conftest* confdefs.h
2339
2340$as_echo "/* confdefs.h */" > confdefs.h
2341
2342# Predefined preprocessor variables.
2343
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_NAME "$PACKAGE_NAME"
2346_ACEOF
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350_ACEOF
2351
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_VERSION "$PACKAGE_VERSION"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_STRING "$PACKAGE_STRING"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_URL "$PACKAGE_URL"
2366_ACEOF
2367
2368
2369# Let the site file select an alternate cache file if it wants to.
2370# Prefer an explicitly selected file to automatically selected ones.
2371ac_site_file1=NONE
2372ac_site_file2=NONE
2373if test -n "$CONFIG_SITE"; then
2374 ac_site_file1=$CONFIG_SITE
2375elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381fi
2382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383do
2384 test "x$ac_site_file" = xNONE && continue
2385 if test -r "$ac_site_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388 sed 's/^/| /' "$ac_site_file" >&5
2389 . "$ac_site_file"
2390 fi
2391done
2392
2393if test -r "$cache_file"; then
2394 # Some versions of bash will fail to source /dev/null (special
2395 # files actually), so we avoid doing that.
2396 if test -f "$cache_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398$as_echo "$as_me: loading cache $cache_file" >&6;}
2399 case $cache_file in
2400 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401 *) . "./$cache_file";;
2402 esac
2403 fi
2404else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406$as_echo "$as_me: creating cache $cache_file" >&6;}
2407 >$cache_file
2408fi
2409
2410gl_header_list="$gl_header_list wchar.h"
2411gl_header_list="$gl_header_list stdint.h"
2412gl_header_list="$gl_header_list inttypes.h"
2413gl_header_list="$gl_header_list sys/mman.h"
2414gl_func_list="$gl_func_list mprotect"
2415# Check that the precious variables saved in the cache have kept the same
2416# value.
2417ac_cache_corrupted=false
2418for ac_var in $ac_precious_vars; do
2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420 eval ac_new_set=\$ac_env_${ac_var}_set
2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422 eval ac_new_val=\$ac_env_${ac_var}_value
2423 case $ac_old_set,$ac_new_set in
2424 set,)
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2428 ,set)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,);;
2433 *)
2434 if test "x$ac_old_val" != "x$ac_new_val"; then
2435 # differences in whitespace do not lead to failure.
2436 ac_old_val_w=`echo x $ac_old_val`
2437 ac_new_val_w=`echo x $ac_new_val`
2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441 ac_cache_corrupted=:
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445 eval $ac_var=\$ac_old_val
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 fi;;
2452 esac
2453 # Pass precious variables to config.status.
2454 if test "$ac_new_set" = set; then
2455 case $ac_new_val in
2456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 *) ac_arg=$ac_var=$ac_new_val ;;
2458 esac
2459 case " $ac_configure_args " in
2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462 esac
2463 fi
2464done
2465if $ac_cache_corrupted; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471fi
2472## -------------------- ##
2473## Main body of script. ##
2474## -------------------- ##
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483ac_config_headers="$ac_config_headers config.h:config.in"
2484
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2487$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2488 # Check whether --enable-maintainer-mode was given.
2489if test "${enable_maintainer_mode+set}" = set; then :
2490 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2491else
2492 USE_MAINTAINER_MODE=no
2493fi
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2496$as_echo "$USE_MAINTAINER_MODE" >&6; }
2497 if test $USE_MAINTAINER_MODE = yes; then
2498 MAINTAINER_MODE_TRUE=
2499 MAINTAINER_MODE_FALSE='#'
2500else
2501 MAINTAINER_MODE_TRUE='#'
2502 MAINTAINER_MODE_FALSE=
2503fi
2504
2505 MAINT=$MAINTAINER_MODE_TRUE
2506
2507
2508
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537 done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
2546else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552fi
2553if test -z "$ac_cv_prog_CC"; then
2554 ac_ct_CC=$CC
2555 # Extract the first word of "gcc", so it can be a program name with args.
2556set dummy gcc; ac_word=$2
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="gcc"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577 done
2578IFS=$as_save_IFS
2579
2580fi
2581fi
2582ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583if test -n "$ac_ct_CC"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2585$as_echo "$ac_ct_CC" >&6; }
2586else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588$as_echo "no" >&6; }
2589fi
2590
2591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598ac_tool_warned=yes ;;
2599esac
2600 CC=$ac_ct_CC
2601 fi
2602else
2603 CC="$ac_cv_prog_CC"
2604fi
2605
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609set dummy ${ac_tool_prefix}cc; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_CC+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630 done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638$as_echo "$CC" >&6; }
2639else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644
2645 fi
2646fi
2647if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649set dummy cc; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if test "${ac_cv_prog_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657else
2658 ac_prog_rejected=no
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2669 fi
2670 ac_cv_prog_CC="cc"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2681 shift
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2686 shift
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2688 fi
2689fi
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702fi
2703if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2706 do
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729 done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737$as_echo "$CC" >&6; }
2738else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744 test -n "$CC" && break
2745 done
2746fi
2747if test -z "$CC"; then
2748 ac_ct_CC=$CC
2749 for ac_prog in cl.exe
2750do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752set dummy $ac_prog; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773 done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781$as_echo "$ac_ct_CC" >&6; }
2782else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788 test -n "$ac_ct_CC" && break
2789done
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795yes:)
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798ac_tool_warned=yes ;;
2799esac
2800 CC=$ac_ct_CC
2801 fi
2802fi
2803
2804fi
2805
2806
2807test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809as_fn_error "no acceptable C compiler found in \$PATH
2810See \`config.log' for more details." "$LINENO" 5; }
2811
2812# Provide some information about the compiler.
2813$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2814set X $ac_compile
2815ac_compiler=$2
2816for ac_option in --version -v -V -qversion; do
2817 { { ac_try="$ac_compiler $ac_option >&5"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823$as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2825 ac_status=$?
2826 if test -s conftest.err; then
2827 sed '10a\
2828... rest of stderr output deleted ...
2829 10q' conftest.err >conftest.er1
2830 cat conftest.er1 >&5
2831 rm -f conftest.er1 conftest.err
2832 fi
2833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834 test $ac_status = 0; }
2835done
2836
2837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839#include <stdio.h>
2840int
2841main ()
2842{
2843FILE *f = fopen ("conftest.out", "w");
2844 return ferror (f) || fclose (f) != 0;
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850ac_clean_files_save=$ac_clean_files
2851ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2852# Try to create an executable without -o first, disregard a.out.
2853# It will help us diagnose broken compilers, and finding out an intuition
2854# of exeext.
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2856$as_echo_n "checking for C compiler default output file name... " >&6; }
2857ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858
2859# The possible output files:
2860ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2861
2862ac_rmfiles=
2863for ac_file in $ac_files
2864do
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2867 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868 esac
2869done
2870rm -f $ac_rmfiles
2871
2872if { { ac_try="$ac_link_default"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link_default") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
2883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2884# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2885# in a Makefile. We should not override ac_cv_exeext if it was cached,
2886# so that the user can short-circuit this test for compilers unknown to
2887# Autoconf.
2888for ac_file in $ac_files ''
2889do
2890 test -f "$ac_file" || continue
2891 case $ac_file in
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2893 ;;
2894 [ab].out )
2895 # We found the default executable, but exeext='' is most
2896 # certainly right.
2897 break;;
2898 *.* )
2899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2900 then :; else
2901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 fi
2903 # We set ac_cv_exeext here because the later test for it is not
2904 # safe: cross compilers may not add the suffix if given an `-o'
2905 # argument, so we may need to know it at that point already.
2906 # Even if this section looks crufty: it has the advantage of
2907 # actually working.
2908 break;;
2909 * )
2910 break;;
2911 esac
2912done
2913test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
2915else
2916 ac_file=''
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2919$as_echo "$ac_file" >&6; }
2920if test -z "$ac_file"; then :
2921 $as_echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926{ as_fn_set_status 77
2927as_fn_error "C compiler cannot create executables
2928See \`config.log' for more details." "$LINENO" 5; }; }
2929fi
2930ac_exeext=$ac_cv_exeext
2931
2932# Check that the compiler produces executables we can run. If not, either
2933# the compiler is broken, or we cross compile.
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2935$as_echo_n "checking whether the C compiler works... " >&6; }
2936# If not cross compiling, check that we can run a simple program.
2937if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
2939 { { case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945 (eval "$ac_try") 2>&5
2946 ac_status=$?
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }; }; then
2949 cross_compiling=no
2950 else
2951 if test "$cross_compiling" = maybe; then
2952 cross_compiling=yes
2953 else
2954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956as_fn_error "cannot run C compiled programs.
2957If you meant to cross compile, use \`--host'.
2958See \`config.log' for more details." "$LINENO" 5; }
2959 fi
2960 fi
2961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963$as_echo "yes" >&6; }
2964
2965rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2966ac_clean_files=$ac_clean_files_save
2967# Check that the compiler produces executables we can run. If not, either
2968# the compiler is broken, or we cross compile.
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2970$as_echo_n "checking whether we are cross compiling... " >&6; }
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2972$as_echo "$cross_compiling" >&6; }
2973
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2975$as_echo_n "checking for suffix of executables... " >&6; }
2976if { { ac_try="$ac_link"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_link") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; then :
2987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2989# work properly (i.e., refer to `conftest.exe'), while it won't with
2990# `rm'.
2991for ac_file in conftest.exe conftest conftest.*; do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 break;;
2997 * ) break;;
2998 esac
2999done
3000else
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error "cannot compute suffix of executables: cannot compile and link
3004See \`config.log' for more details." "$LINENO" 5; }
3005fi
3006rm -f conftest$ac_cv_exeext
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3008$as_echo "$ac_cv_exeext" >&6; }
3009
3010rm -f conftest.$ac_ext
3011EXEEXT=$ac_cv_exeext
3012ac_exeext=$EXEEXT
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3014$as_echo_n "checking for suffix of object files... " >&6; }
3015if test "${ac_cv_objext+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020
3021int
3022main ()
3023{
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.o conftest.obj
3030if { { ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_compile") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; then :
3041 for ac_file in conftest.o conftest.obj conftest.*; do
3042 test -f "$ac_file" || continue;
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3046 break;;
3047 esac
3048done
3049else
3050 $as_echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error "cannot compute suffix of object files: cannot compile
3056See \`config.log' for more details." "$LINENO" 5; }
3057fi
3058rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3061$as_echo "$ac_cv_objext" >&6; }
3062OBJEXT=$ac_cv_objext
3063ac_objext=$OBJEXT
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3066if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068else
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076 choke me
3077#endif
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_compiler_gnu=yes
3085else
3086 ac_compiler_gnu=no
3087fi
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3094if test $ac_compiler_gnu = yes; then
3095 GCC=yes
3096else
3097 GCC=
3098fi
3099ac_test_CFLAGS=${CFLAGS+set}
3100ac_save_CFLAGS=$CFLAGS
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3102$as_echo_n "checking whether $CC accepts -g... " >&6; }
3103if test "${ac_cv_prog_cc_g+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105else
3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_cv_prog_cc_g=yes
3123else
3124 CFLAGS=""
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136if ac_fn_c_try_compile "$LINENO"; then :
3137
3138else
3139 ac_c_werror_flag=$ac_save_c_werror_flag
3140 CFLAGS="-g"
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_cv_prog_cc_g=yes
3154fi
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3163$as_echo "$ac_cv_prog_cc_g" >&6; }
3164if test "$ac_test_CFLAGS" = set; then
3165 CFLAGS=$ac_save_CFLAGS
3166elif test $ac_cv_prog_cc_g = yes; then
3167 if test "$GCC" = yes; then
3168 CFLAGS="-g -O2"
3169 else
3170 CFLAGS="-g"
3171 fi
3172else
3173 if test "$GCC" = yes; then
3174 CFLAGS="-O2"
3175 else
3176 CFLAGS=
3177 fi
3178fi
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3181if test "${ac_cv_prog_cc_c89+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 ac_cv_prog_cc_c89=no
3185ac_save_CC=$CC
3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h. */
3188#include <stdarg.h>
3189#include <stdio.h>
3190#include <sys/types.h>
3191#include <sys/stat.h>
3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193struct buf { int x; };
3194FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195static char *e (p, i)
3196 char **p;
3197 int i;
3198{
3199 return p[i];
3200}
3201static char *f (char * (*g) (char **, int), char **p, ...)
3202{
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3209}
3210
3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222#define FOO(x) 'x'
3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225int test (int i, double x);
3226struct s1 {int (*f) (int a);};
3227struct s2 {int (*f) (double a);};
3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229int argc;
3230char **argv;
3231int
3232main ()
3233{
3234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241do
3242 CC="$ac_save_CC $ac_arg"
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_c89=$ac_arg
3245fi
3246rm -f core conftest.err conftest.$ac_objext
3247 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248done
3249rm -f conftest.$ac_ext
3250CC=$ac_save_CC
3251
3252fi
3253# AC_CACHE_VAL
3254case "x$ac_cv_prog_cc_c89" in
3255 x)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3257$as_echo "none needed" >&6; } ;;
3258 xno)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3260$as_echo "unsupported" >&6; } ;;
3261 *)
3262 CC="$CC $ac_cv_prog_cc_c89"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3265esac
3266if test "x$ac_cv_prog_cc_c89" != xno; then :
3267
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276ac_aux_dir=
3277for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3278 for ac_t in install-sh install.sh shtool; do
3279 if test -f "$ac_dir/$ac_t"; then
3280 ac_aux_dir=$ac_dir
3281 ac_install_sh="$ac_aux_dir/$ac_t -c"
3282 break 2
3283 fi
3284 done
3285done
3286if test -z "$ac_aux_dir"; then
3287 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3288fi
3289
3290# These three variables are undocumented and unsupported,
3291# and are intended to be withdrawn in a future Autoconf release.
3292# They can cause serious problems if a builder's source tree is in a directory
3293# whose full name contains unusual characters.
3294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3297
3298
3299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3301 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3302
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3304$as_echo_n "checking build system type... " >&6; }
3305if test "${ac_cv_build+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
3312 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3314 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3315
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
3321*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3338$as_echo_n "checking host system type... " >&6; }
3339if test "${ac_cv_host+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3346 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3347fi
3348
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
3354*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
3370
3371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3377$as_echo_n "checking how to run the C preprocessor... " >&6; }
3378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381fi
3382if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 do
3389 ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h. */
3400#ifdef __STDC__
3401# include <limits.h>
3402#else
3403# include <assert.h>
3404#endif
3405 Syntax error
3406_ACEOF
3407if ac_fn_c_try_cpp "$LINENO"; then :
3408
3409else
3410 # Broken: fails on valid input.
3411continue
3412fi
3413rm -f conftest.err conftest.$ac_ext
3414
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h. */
3419#include <ac_nonexistent.h>
3420_ACEOF
3421if ac_fn_c_try_cpp "$LINENO"; then :
3422 # Broken: success on invalid input.
3423continue
3424else
3425 # Passes both tests.
3426ac_preproc_ok=:
3427break
3428fi
3429rm -f conftest.err conftest.$ac_ext
3430
3431done
3432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433rm -f conftest.err conftest.$ac_ext
3434if $ac_preproc_ok; then :
3435 break
3436fi
3437
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441fi
3442 CPP=$ac_cv_prog_CPP
3443else
3444 ac_cv_prog_CPP=$CPP
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3447$as_echo "$CPP" >&6; }
3448ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h. */
3459#ifdef __STDC__
3460# include <limits.h>
3461#else
3462# include <assert.h>
3463#endif
3464 Syntax error
3465_ACEOF
3466if ac_fn_c_try_cpp "$LINENO"; then :
3467
3468else
3469 # Broken: fails on valid input.
3470continue
3471fi
3472rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
3478#include <ac_nonexistent.h>
3479_ACEOF
3480if ac_fn_c_try_cpp "$LINENO"; then :
3481 # Broken: success on invalid input.
3482continue
3483else
3484 # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
3488rm -f conftest.err conftest.$ac_ext
3489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492rm -f conftest.err conftest.$ac_ext
3493if $ac_preproc_ok; then :
3494
3495else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error "C preprocessor \"$CPP\" fails sanity check
3499See \`config.log' for more details." "$LINENO" 5; }
3500fi
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3511if test "${ac_cv_path_GREP+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513else
3514 if test -z "$GREP"; then
3515 ac_path_GREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in grep ggrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3526# Check for GNU ac_path_GREP and select it if it is found.
3527 # Check for GNU $ac_path_GREP
3528case `"$ac_path_GREP" --version 2>&1` in
3529*GNU*)
3530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3531*)
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3535 do
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'GREP' >> "conftest.nl"
3540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_GREP="$ac_path_GREP"
3546 ac_path_GREP_max=$ac_count
3547 fi
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552esac
3553
3554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_GREP"; then
3560 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3561 fi
3562else
3563 ac_cv_path_GREP=$GREP
3564fi
3565
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3568$as_echo "$ac_cv_path_GREP" >&6; }
3569 GREP="$ac_cv_path_GREP"
3570
3571
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3573$as_echo_n "checking for egrep... " >&6; }
3574if test "${ac_cv_path_EGREP+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3578 then ac_cv_path_EGREP="$GREP -E"
3579 else
3580 if test -z "$EGREP"; then
3581 ac_path_EGREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in egrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3592# Check for GNU ac_path_EGREP and select it if it is found.
3593 # Check for GNU $ac_path_EGREP
3594case `"$ac_path_EGREP" --version 2>&1` in
3595*GNU*)
3596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597*)
3598 ac_count=0
3599 $as_echo_n 0123456789 >"conftest.in"
3600 while :
3601 do
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 $as_echo 'EGREP' >> "conftest.nl"
3606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 as_fn_arith $ac_count + 1 && ac_count=$as_val
3609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_EGREP="$ac_path_EGREP"
3612 ac_path_EGREP_max=$ac_count
3613 fi
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624IFS=$as_save_IFS
3625 if test -z "$ac_cv_path_EGREP"; then
3626 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3627 fi
3628else
3629 ac_cv_path_EGREP=$EGREP
3630fi
3631
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3635$as_echo "$ac_cv_path_EGREP" >&6; }
3636 EGREP="$ac_cv_path_EGREP"
3637
3638
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3640$as_echo_n "checking for ANSI C header files... " >&6; }
3641if test "${ac_cv_header_stdc+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646#include <stdlib.h>
3647#include <stdarg.h>
3648#include <string.h>
3649#include <float.h>
3650
3651int
3652main ()
3653{
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_header_stdc=yes
3661else
3662 ac_cv_header_stdc=no
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665
3666if test $ac_cv_header_stdc = yes; then
3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h. */
3670#include <string.h>
3671
3672_ACEOF
3673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "memchr" >/dev/null 2>&1; then :
3675
3676else
3677 ac_cv_header_stdc=no
3678fi
3679rm -f conftest*
3680
3681fi
3682
3683if test $ac_cv_header_stdc = yes; then
3684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687#include <stdlib.h>
3688
3689_ACEOF
3690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 $EGREP "free" >/dev/null 2>&1; then :
3692
3693else
3694 ac_cv_header_stdc=no
3695fi
3696rm -f conftest*
3697
3698fi
3699
3700if test $ac_cv_header_stdc = yes; then
3701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3702 if test "$cross_compiling" = yes; then :
3703 :
3704else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h. */
3707#include <ctype.h>
3708#include <stdlib.h>
3709#if ((' ' & 0x0FF) == 0x020)
3710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3712#else
3713# define ISLOWER(c) \
3714 (('a' <= (c) && (c) <= 'i') \
3715 || ('j' <= (c) && (c) <= 'r') \
3716 || ('s' <= (c) && (c) <= 'z'))
3717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3718#endif
3719
3720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3721int
3722main ()
3723{
3724 int i;
3725 for (i = 0; i < 256; i++)
3726 if (XOR (islower (i), ISLOWER (i))
3727 || toupper (i) != TOUPPER (i))
3728 return 2;
3729 return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_run "$LINENO"; then :
3733
3734else
3735 ac_cv_header_stdc=no
3736fi
3737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3738 conftest.$ac_objext conftest.beam conftest.$ac_ext
3739fi
3740
3741fi
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3744$as_echo "$ac_cv_header_stdc" >&6; }
3745if test $ac_cv_header_stdc = yes; then
3746
3747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3748
3749fi
3750
3751# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3753 inttypes.h stdint.h unistd.h
3754do :
3755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3757"
3758eval as_val=\$$as_ac_Header
3759 if test "x$as_val" = x""yes; then :
3760 cat >>confdefs.h <<_ACEOF
3761#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3762_ACEOF
3763
3764fi
3765
3766done
3767
3768
3769
3770
3771
3772 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3773if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3774 MINIX=yes
3775else
3776 MINIX=
3777fi
3778
3779
3780 if test "$MINIX" = yes; then
3781
3782$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3783
3784
3785$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3786
3787
3788$as_echo "#define _MINIX 1" >>confdefs.h
3789
3790 fi
3791
3792 case "$host_os" in
3793 hpux*)
3794
3795$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3796
3797 ;;
3798 esac
3799
3800
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3802$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3803if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808
3809# define __EXTENSIONS__ 1
3810 $ac_includes_default
3811int
3812main ()
3813{
3814
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_safe_to_define___extensions__=yes
3821else
3822 ac_cv_safe_to_define___extensions__=no
3823fi
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3827$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3828 test $ac_cv_safe_to_define___extensions__ = yes &&
3829 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3830
3831 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3832
3833 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3834
3835 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3836
3837 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3838
3839 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3840
3841
3842
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
3845$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
3846if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848else
3849
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h. */
3852
3853#ifdef __ACK__
3854Amsterdam
3855#endif
3856
3857_ACEOF
3858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 $EGREP "Amsterdam" >/dev/null 2>&1; then :
3860 gl_cv_c_amsterdam_compiler=yes
3861else
3862 gl_cv_c_amsterdam_compiler=no
3863fi
3864rm -f conftest*
3865
3866
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
3869$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
3870 if test -z "$AR"; then
3871 if test $gl_cv_c_amsterdam_compiler = yes; then
3872 AR='cc -c.a'
3873 if test -z "$ARFLAGS"; then
3874 ARFLAGS='-o'
3875 fi
3876 else
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3879set dummy ${ac_tool_prefix}ar; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if test "${ac_cv_prog_AR+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884else
3885 if test -n "$AR"; then
3886 ac_cv_prog_AR="$AR" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_AR="${ac_tool_prefix}ar"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
3900 done
3901IFS=$as_save_IFS
3902
3903fi
3904fi
3905AR=$ac_cv_prog_AR
3906if test -n "$AR"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3908$as_echo "$AR" >&6; }
3909else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912fi
3913
3914
3915fi
3916if test -z "$ac_cv_prog_AR"; then
3917 ac_ct_AR=$AR
3918 # Extract the first word of "ar", so it can be a program name with args.
3919set dummy ar; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
3922if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924else
3925 if test -n "$ac_ct_AR"; then
3926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_ac_ct_AR="ar"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944fi
3945ac_ct_AR=$ac_cv_prog_ac_ct_AR
3946if test -n "$ac_ct_AR"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3948$as_echo "$ac_ct_AR" >&6; }
3949else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954 if test "x$ac_ct_AR" = x; then
3955 AR="ar"
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958yes:)
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961ac_tool_warned=yes ;;
3962esac
3963 AR=$ac_ct_AR
3964 fi
3965else
3966 AR="$ac_cv_prog_AR"
3967fi
3968
3969 if test -z "$ARFLAGS"; then
3970 ARFLAGS='cru'
3971 fi
3972 fi
3973 else
3974 if test -z "$ARFLAGS"; then
3975 ARFLAGS='cru'
3976 fi
3977 fi
3978
3979
3980 if test -z "$RANLIB"; then
3981 if test $gl_cv_c_amsterdam_compiler = yes; then
3982 RANLIB=':'
3983 else
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988$as_echo_n "checking for $ac_word... " >&6; }
3989if test "${ac_cv_prog_RANLIB+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994else
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
4007 done
4008IFS=$as_save_IFS
4009
4010fi
4011fi
4012RANLIB=$ac_cv_prog_RANLIB
4013if test -n "$RANLIB"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4015$as_echo "$RANLIB" >&6; }
4016else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019fi
4020
4021
4022fi
4023if test -z "$ac_cv_prog_RANLIB"; then
4024 ac_ct_RANLIB=$RANLIB
4025 # Extract the first word of "ranlib", so it can be a program name with args.
4026set dummy ranlib; ac_word=$2
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028$as_echo_n "checking for $ac_word... " >&6; }
4029if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031else
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_RANLIB="ranlib"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046done
4047 done
4048IFS=$as_save_IFS
4049
4050fi
4051fi
4052ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4053if test -n "$ac_ct_RANLIB"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4055$as_echo "$ac_ct_RANLIB" >&6; }
4056else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058$as_echo "no" >&6; }
4059fi
4060
4061 if test "x$ac_ct_RANLIB" = x; then
4062 RANLIB=":"
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065yes:)
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068ac_tool_warned=yes ;;
4069esac
4070 RANLIB=$ac_ct_RANLIB
4071 fi
4072else
4073 RANLIB="$ac_cv_prog_RANLIB"
4074fi
4075
4076 fi
4077 fi
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 # Code from module extensions:
4089
4090 # Code from module include_next:
4091 # Code from module inttypes:
4092 # Code from module inttypes-incomplete:
4093 # Code from module memchr:
4094 # Code from module memmem:
4095 # Code from module memmem-simple:
4096 # Code from module multiarch:
4097 # Code from module snippet/arg-nonnull:
4098 # Code from module snippet/c++defs:
4099 # Code from module snippet/warn-on-use:
4100 # Code from module stddef:
4101 # Code from module stdint:
4102 # Code from module string:
4103 # Code from module update-copyright:
4104
4105ac_ext=c
4106ac_cpp='$CPP $CPPFLAGS'
4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4112set dummy ${ac_tool_prefix}gcc; ac_word=$2
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if test "${ac_cv_prog_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$CC"; then
4119 ac_cv_prog_CC="$CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4131 fi
4132done
4133 done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138CC=$ac_cv_prog_CC
4139if test -n "$CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141$as_echo "$CC" >&6; }
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147
4148fi
4149if test -z "$ac_cv_prog_CC"; then
4150 ac_ct_CC=$CC
4151 # Extract the first word of "gcc", so it can be a program name with args.
4152set dummy gcc; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_ac_ct_CC="gcc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173 done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179if test -n "$ac_ct_CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181$as_echo "$ac_ct_CC" >&6; }
4182else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196 CC=$ac_ct_CC
4197 fi
4198else
4199 CC="$ac_cv_prog_CC"
4200fi
4201
4202if test -z "$CC"; then
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}cc; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_CC="${ac_tool_prefix}cc"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225done
4226 done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231CC=$ac_cv_prog_CC
4232if test -n "$CC"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234$as_echo "$CC" >&6; }
4235else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241 fi
4242fi
4243if test -z "$CC"; then
4244 # Extract the first word of "cc", so it can be a program name with args.
4245set dummy cc; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
4248if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254 ac_prog_rejected=no
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4263 ac_prog_rejected=yes
4264 continue
4265 fi
4266 ac_cv_prog_CC="cc"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270done
4271 done
4272IFS=$as_save_IFS
4273
4274if test $ac_prog_rejected = yes; then
4275 # We found a bogon in the path, so make sure we never use it.
4276 set dummy $ac_cv_prog_CC
4277 shift
4278 if test $# != 0; then
4279 # We chose a different compiler from the bogus one.
4280 # However, it has the same basename, so the bogon will be chosen
4281 # first if we set CC to just the basename; use the full file name.
4282 shift
4283 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4284 fi
4285fi
4286fi
4287fi
4288CC=$ac_cv_prog_CC
4289if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291$as_echo "$CC" >&6; }
4292else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297
4298fi
4299if test -z "$CC"; then
4300 if test -n "$ac_tool_prefix"; then
4301 for ac_prog in cl.exe
4302 do
4303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330CC=$ac_cv_prog_CC
4331if test -n "$CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333$as_echo "$CC" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340 test -n "$CC" && break
4341 done
4342fi
4343if test -z "$CC"; then
4344 ac_ct_CC=$CC
4345 for ac_prog in cl.exe
4346do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353else
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_CC="$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368done
4369 done
4370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4377$as_echo "$ac_ct_CC" >&6; }
4378else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
4381fi
4382
4383
4384 test -n "$ac_ct_CC" && break
4385done
4386
4387 if test "x$ac_ct_CC" = x; then
4388 CC=""
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391yes:)
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394ac_tool_warned=yes ;;
4395esac
4396 CC=$ac_ct_CC
4397 fi
4398fi
4399
4400fi
4401
4402
4403test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405as_fn_error "no acceptable C compiler found in \$PATH
4406See \`config.log' for more details." "$LINENO" 5; }
4407
4408# Provide some information about the compiler.
4409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4410set X $ac_compile
4411ac_compiler=$2
4412for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
4414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421 ac_status=$?
4422 if test -s conftest.err; then
4423 sed '10a\
4424... rest of stderr output deleted ...
4425 10q' conftest.err >conftest.er1
4426 cat conftest.er1 >&5
4427 rm -f conftest.er1 conftest.err
4428 fi
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4431done
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4435if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int
4442main ()
4443{
4444#ifndef __GNUC__
4445 choke me
4446#endif
4447
4448 ;
4449 return 0;
4450}
4451_ACEOF
4452if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_compiler_gnu=yes
4454else
4455 ac_compiler_gnu=no
4456fi
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458ac_cv_c_compiler_gnu=$ac_compiler_gnu
4459
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4462$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4463if test $ac_compiler_gnu = yes; then
4464 GCC=yes
4465else
4466 GCC=
4467fi
4468ac_test_CFLAGS=${CFLAGS+set}
4469ac_save_CFLAGS=$CFLAGS
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4471$as_echo_n "checking whether $CC accepts -g... " >&6; }
4472if test "${ac_cv_prog_cc_g+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474else
4475 ac_save_c_werror_flag=$ac_c_werror_flag
4476 ac_c_werror_flag=yes
4477 ac_cv_prog_cc_g=no
4478 CFLAGS="-g"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481
4482int
4483main ()
4484{
4485
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_prog_cc_g=yes
4492else
4493 CFLAGS=""
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506
4507else
4508 ac_c_werror_flag=$ac_save_c_werror_flag
4509 CFLAGS="-g"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h. */
4512
4513int
4514main ()
4515{
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_g=yes
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_c_werror_flag=$ac_save_c_werror_flag
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4532$as_echo "$ac_cv_prog_cc_g" >&6; }
4533if test "$ac_test_CFLAGS" = set; then
4534 CFLAGS=$ac_save_CFLAGS
4535elif test $ac_cv_prog_cc_g = yes; then
4536 if test "$GCC" = yes; then
4537 CFLAGS="-g -O2"
4538 else
4539 CFLAGS="-g"
4540 fi
4541else
4542 if test "$GCC" = yes; then
4543 CFLAGS="-O2"
4544 else
4545 CFLAGS=
4546 fi
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4550if test "${ac_cv_prog_cc_c89+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_cv_prog_cc_c89=no
4554ac_save_CC=$CC
4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h. */
4557#include <stdarg.h>
4558#include <stdio.h>
4559#include <sys/types.h>
4560#include <sys/stat.h>
4561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4562struct buf { int x; };
4563FILE * (*rcsopen) (struct buf *, struct stat *, int);
4564static char *e (p, i)
4565 char **p;
4566 int i;
4567{
4568 return p[i];
4569}
4570static char *f (char * (*g) (char **, int), char **p, ...)
4571{
4572 char *s;
4573 va_list v;
4574 va_start (v,p);
4575 s = g (p, va_arg (v,int));
4576 va_end (v);
4577 return s;
4578}
4579
4580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4581 function prototypes and stuff, but not '\xHH' hex character constants.
4582 These don't provoke an error unfortunately, instead are silently treated
4583 as 'x'. The following induces an error, until -std is added to get
4584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4585 array size at least. It's necessary to write '\x00'==0 to get something
4586 that's true only with -std. */
4587int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4588
4589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4590 inside strings and character constants. */
4591#define FOO(x) 'x'
4592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4593
4594int test (int i, double x);
4595struct s1 {int (*f) (int a);};
4596struct s2 {int (*f) (double a);};
4597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4598int argc;
4599char **argv;
4600int
4601main ()
4602{
4603return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4604 ;
4605 return 0;
4606}
4607_ACEOF
4608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4610do
4611 CC="$ac_save_CC $ac_arg"
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_prog_cc_c89=$ac_arg
4614fi
4615rm -f core conftest.err conftest.$ac_objext
4616 test "x$ac_cv_prog_cc_c89" != "xno" && break
4617done
4618rm -f conftest.$ac_ext
4619CC=$ac_save_CC
4620
4621fi
4622# AC_CACHE_VAL
4623case "x$ac_cv_prog_cc_c89" in
4624 x)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4626$as_echo "none needed" >&6; } ;;
4627 xno)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4629$as_echo "unsupported" >&6; } ;;
4630 *)
4631 CC="$CC $ac_cv_prog_cc_c89"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4634esac
4635if test "x$ac_cv_prog_cc_c89" != xno; then :
4636
4637fi
4638
4639ac_ext=c
4640ac_cpp='$CPP $CPPFLAGS'
4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645
4646am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4647
4648
4649ac_aux_dir=
4650for ac_dir in ../.. "$srcdir"/../..; do
4651 for ac_t in install-sh install.sh shtool; do
4652 if test -f "$ac_dir/$ac_t"; then
4653 ac_aux_dir=$ac_dir
4654 ac_install_sh="$ac_aux_dir/$ac_t -c"
4655 break 2
4656 fi
4657 done
4658done
4659if test -z "$ac_aux_dir"; then
4660 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4661fi
4662
4663# These three variables are undocumented and unsupported,
4664# and are intended to be withdrawn in a future Autoconf release.
4665# They can cause serious problems if a builder's source tree is in a directory
4666# whose full name contains unusual characters.
4667ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4668ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4669ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4673$as_echo_n "checking target system type... " >&6; }
4674if test "${ac_cv_target+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676else
4677 if test "x$target_alias" = x; then
4678 ac_cv_target=$ac_cv_host
4679else
4680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4681 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4682fi
4683
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4686$as_echo "$ac_cv_target" >&6; }
4687case $ac_cv_target in
4688*-*-*) ;;
4689*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4690esac
4691target=$ac_cv_target
4692ac_save_IFS=$IFS; IFS='-'
4693set x $ac_cv_target
4694shift
4695target_cpu=$1
4696target_vendor=$2
4697shift; shift
4698# Remember, the first character of IFS is used to create $*,
4699# except with old shells:
4700target_os=$*
4701IFS=$ac_save_IFS
4702case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4703
4704
4705# The aliases save the names the user supplied, while $host etc.
4706# will get canonicalized.
4707test -n "$target_alias" &&
4708 test "$program_prefix$program_suffix$program_transform_name" = \
4709 NONENONEs,x,x, &&
4710 program_prefix=${target_alias}-
4711
4712
4713
4714
4715
4716
4717
4718 LIBC_FATAL_STDERR_=1
4719 export LIBC_FATAL_STDERR_
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4723$as_echo_n "checking for unsigned long long int... " >&6; }
4724if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 ac_cv_type_unsigned_long_long_int=yes
4728 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731
4732 /* For now, do not test the preprocessor; as of 2007 there are too many
4733 implementations with broken preprocessors. Perhaps this can
4734 be revisited in 2012. In the meantime, code should not expect
4735 #if to work with literals wider than 32 bits. */
4736 /* Test literals. */
4737 long long int ll = 9223372036854775807ll;
4738 long long int nll = -9223372036854775807LL;
4739 unsigned long long int ull = 18446744073709551615ULL;
4740 /* Test constant expressions. */
4741 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4742 ? 1 : -1)];
4743 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4744 ? 1 : -1)];
4745 int i = 63;
4746int
4747main ()
4748{
4749/* Test availability of runtime routines for shift and division. */
4750 long long int llmax = 9223372036854775807ll;
4751 unsigned long long int ullmax = 18446744073709551615ull;
4752 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4753 | (llmax / ll) | (llmax % ll)
4754 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4755 | (ullmax / ull) | (ullmax % ull));
4756 ;
4757 return 0;
4758}
4759
4760_ACEOF
4761if ac_fn_c_try_link "$LINENO"; then :
4762
4763else
4764 ac_cv_type_unsigned_long_long_int=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 fi
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4771$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4772 if test $ac_cv_type_unsigned_long_long_int = yes; then
4773
4774$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4775
4776 fi
4777
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4781$as_echo_n "checking for long long int... " >&6; }
4782if test "${ac_cv_type_long_long_int+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 ac_cv_type_long_long_int=yes
4786 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4787 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4788 if test $ac_cv_type_long_long_int = yes; then
4789 if test "$cross_compiling" = yes; then :
4790 :
4791else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h. */
4794#include <limits.h>
4795 #ifndef LLONG_MAX
4796 # define HALF \
4797 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4798 # define LLONG_MAX (HALF - 1 + HALF)
4799 #endif
4800int
4801main ()
4802{
4803long long int n = 1;
4804 int i;
4805 for (i = 0; ; i++)
4806 {
4807 long long int m = n << i;
4808 if (m >> i != n)
4809 return 1;
4810 if (LLONG_MAX / 2 < m)
4811 break;
4812 }
4813 return 0;
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_run "$LINENO"; then :
4819
4820else
4821 ac_cv_type_long_long_int=no
4822fi
4823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4824 conftest.$ac_objext conftest.beam conftest.$ac_ext
4825fi
4826
4827 fi
4828 fi
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4831$as_echo "$ac_cv_type_long_long_int" >&6; }
4832 if test $ac_cv_type_long_long_int = yes; then
4833
4834$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4835
4836 fi
4837
4838
4839
4840
4841
4842 for ac_header in $gl_header_list
4843do :
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4846eval as_val=\$$as_ac_Header
4847 if test "x$as_val" = x""yes; then :
4848 cat >>confdefs.h <<_ACEOF
4849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850_ACEOF
4851
4852fi
4853
4854done
4855
4856
4857
4858
4859
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4863$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4864if test "${gl_cv_have_include_next+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866else
4867 rm -rf conftestd1a conftestd1b conftestd2
4868 mkdir conftestd1a conftestd1b conftestd2
4869 cat <<EOF > conftestd1a/conftest.h
4870#define DEFINED_IN_CONFTESTD1
4871#include_next <conftest.h>
4872#ifdef DEFINED_IN_CONFTESTD2
4873int foo;
4874#else
4875#error "include_next doesn't work"
4876#endif
4877EOF
4878 cat <<EOF > conftestd1b/conftest.h
4879#define DEFINED_IN_CONFTESTD1
4880#include <stdio.h>
4881#include_next <conftest.h>
4882#ifdef DEFINED_IN_CONFTESTD2
4883int foo;
4884#else
4885#error "include_next doesn't work"
4886#endif
4887EOF
4888 cat <<EOF > conftestd2/conftest.h
4889#ifndef DEFINED_IN_CONFTESTD1
4890#error "include_next test doesn't work"
4891#endif
4892#define DEFINED_IN_CONFTESTD2
4893EOF
4894 gl_save_CPPFLAGS="$CPPFLAGS"
4895 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898#include <conftest.h>
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901 gl_cv_have_include_next=yes
4902else
4903 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906#include <conftest.h>
4907_ACEOF
4908if ac_fn_c_try_compile "$LINENO"; then :
4909 gl_cv_have_include_next=buggy
4910else
4911 gl_cv_have_include_next=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 CPPFLAGS="$gl_save_CPPFLAGS"
4918 rm -rf conftestd1a conftestd1b conftestd2
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4922$as_echo "$gl_cv_have_include_next" >&6; }
4923 PRAGMA_SYSTEM_HEADER=
4924 if test $gl_cv_have_include_next = yes; then
4925 INCLUDE_NEXT=include_next
4926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4927 if test -n "$GCC"; then
4928 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
4929 fi
4930 else
4931 if test $gl_cv_have_include_next = buggy; then
4932 INCLUDE_NEXT=include
4933 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4934 else
4935 INCLUDE_NEXT=include
4936 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
4937 fi
4938 fi
4939
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
4943$as_echo_n "checking whether system header files limit the line length... " >&6; }
4944if test "${gl_cv_pragma_columns+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h. */
4949
4950#ifdef __TANDEM
4951choke me
4952#endif
4953
4954_ACEOF
4955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "choke me" >/dev/null 2>&1; then :
4957 gl_cv_pragma_columns=yes
4958else
4959 gl_cv_pragma_columns=no
4960fi
4961rm -f conftest*
4962
4963
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
4966$as_echo "$gl_cv_pragma_columns" >&6; }
4967 if test $gl_cv_pragma_columns = yes; then
4968 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
4969 else
4970 PRAGMA_COLUMNS=
4971 fi
4972
4973
4974
4975
4976
4977
4978
4979
4980 gl_cv_c_multiarch=no
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h. */
4983#ifndef __APPLE_CC__
4984 not a universal capable compiler
4985 #endif
4986 typedef int dummy;
4987
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"; then :
4990
4991 arch=
4992 prev=
4993 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
4994 if test -n "$prev"; then
4995 case $word in
4996 i?86 | x86_64 | ppc | ppc64)
4997 if test -z "$arch" || test "$arch" = "$word"; then
4998 arch="$word"
4999 else
5000 gl_cv_c_multiarch=yes
5001 fi
5002 ;;
5003 esac
5004 prev=
5005 else
5006 if test "x$word" = "x-arch"; then
5007 prev=arch
5008 fi
5009 fi
5010 done
5011
5012fi
5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 if test $gl_cv_c_multiarch = yes; then
5015 APPLE_UNIVERSAL_BUILD=1
5016 else
5017 APPLE_UNIVERSAL_BUILD=0
5018 fi
5019
5020
5021
5022
5023
5024 if test $ac_cv_type_long_long_int = yes; then
5025 HAVE_LONG_LONG_INT=1
5026 else
5027 HAVE_LONG_LONG_INT=0
5028 fi
5029
5030
5031 if test $ac_cv_type_unsigned_long_long_int = yes; then
5032 HAVE_UNSIGNED_LONG_LONG_INT=1
5033 else
5034 HAVE_UNSIGNED_LONG_LONG_INT=0
5035 fi
5036
5037
5038
5039 :
5040
5041
5042
5043
5044
5045 if test $ac_cv_header_wchar_h = yes; then
5046 HAVE_WCHAR_H=1
5047 else
5048 HAVE_WCHAR_H=0
5049 fi
5050
5051
5052 if test $ac_cv_header_inttypes_h = yes; then
5053 HAVE_INTTYPES_H=1
5054 else
5055 HAVE_INTTYPES_H=0
5056 fi
5057
5058
5059 if test $ac_cv_header_sys_types_h = yes; then
5060 HAVE_SYS_TYPES_H=1
5061 else
5062 HAVE_SYS_TYPES_H=0
5063 fi
5064
5065
5066
5067
5068
5069
5070
5071
5072 :
5073
5074
5075
5076
5077
5078
5079
5080
5081 if test $gl_cv_have_include_next = yes; then
5082 gl_cv_next_stdint_h='<'stdint.h'>'
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5085$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5086if test "${gl_cv_next_stdint_h+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088else
5089
5090 if test $ac_cv_header_stdint_h = yes; then
5091
5092
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095#include <stdint.h>
5096
5097_ACEOF
5098 case "$host_os" in
5099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5100 *) gl_absname_cpp="$ac_cpp" ;;
5101 esac
5102
5103 case "$host_os" in
5104 mingw*)
5105 gl_dirsep_regex='[/\\]'
5106 ;;
5107 *)
5108 gl_dirsep_regex='\/'
5109 ;;
5110 esac
5111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5112
5113 gl_header_literal_regex=`echo 'stdint.h' \
5114 | sed -e "$gl_make_literal_regex_sed"`
5115 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5117 s|^/[^/]|//&|
5118 p
5119 q
5120 }'
5121 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5122 sed -n "$gl_absolute_header_sed"`'"'
5123 else
5124 gl_cv_next_stdint_h='<'stdint.h'>'
5125 fi
5126
5127
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5130$as_echo "$gl_cv_next_stdint_h" >&6; }
5131 fi
5132 NEXT_STDINT_H=$gl_cv_next_stdint_h
5133
5134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5136 gl_next_as_first_directive='<'stdint.h'>'
5137 else
5138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5139 gl_next_as_first_directive=$gl_cv_next_stdint_h
5140 fi
5141 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5142
5143
5144
5145
5146 if test $ac_cv_header_stdint_h = yes; then
5147 HAVE_STDINT_H=1
5148 else
5149 HAVE_STDINT_H=0
5150 fi
5151
5152
5153 if test $ac_cv_header_stdint_h = yes; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5155$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5156if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 gl_cv_header_working_stdint_h=no
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162
5163
5164#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5165#include <stdint.h>
5166/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5167#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5168#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5169#endif
5170
5171
5172 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5173 included before <wchar.h>. */
5174 #include <stddef.h>
5175 #include <signal.h>
5176 #if HAVE_WCHAR_H
5177 # include <stdio.h>
5178 # include <time.h>
5179 # include <wchar.h>
5180 #endif
5181
5182
5183#ifdef INT8_MAX
5184int8_t a1 = INT8_MAX;
5185int8_t a1min = INT8_MIN;
5186#endif
5187#ifdef INT16_MAX
5188int16_t a2 = INT16_MAX;
5189int16_t a2min = INT16_MIN;
5190#endif
5191#ifdef INT32_MAX
5192int32_t a3 = INT32_MAX;
5193int32_t a3min = INT32_MIN;
5194#endif
5195#ifdef INT64_MAX
5196int64_t a4 = INT64_MAX;
5197int64_t a4min = INT64_MIN;
5198#endif
5199#ifdef UINT8_MAX
5200uint8_t b1 = UINT8_MAX;
5201#else
5202typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5203#endif
5204#ifdef UINT16_MAX
5205uint16_t b2 = UINT16_MAX;
5206#endif
5207#ifdef UINT32_MAX
5208uint32_t b3 = UINT32_MAX;
5209#endif
5210#ifdef UINT64_MAX
5211uint64_t b4 = UINT64_MAX;
5212#endif
5213int_least8_t c1 = INT8_C (0x7f);
5214int_least8_t c1max = INT_LEAST8_MAX;
5215int_least8_t c1min = INT_LEAST8_MIN;
5216int_least16_t c2 = INT16_C (0x7fff);
5217int_least16_t c2max = INT_LEAST16_MAX;
5218int_least16_t c2min = INT_LEAST16_MIN;
5219int_least32_t c3 = INT32_C (0x7fffffff);
5220int_least32_t c3max = INT_LEAST32_MAX;
5221int_least32_t c3min = INT_LEAST32_MIN;
5222int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5223int_least64_t c4max = INT_LEAST64_MAX;
5224int_least64_t c4min = INT_LEAST64_MIN;
5225uint_least8_t d1 = UINT8_C (0xff);
5226uint_least8_t d1max = UINT_LEAST8_MAX;
5227uint_least16_t d2 = UINT16_C (0xffff);
5228uint_least16_t d2max = UINT_LEAST16_MAX;
5229uint_least32_t d3 = UINT32_C (0xffffffff);
5230uint_least32_t d3max = UINT_LEAST32_MAX;
5231uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5232uint_least64_t d4max = UINT_LEAST64_MAX;
5233int_fast8_t e1 = INT_FAST8_MAX;
5234int_fast8_t e1min = INT_FAST8_MIN;
5235int_fast16_t e2 = INT_FAST16_MAX;
5236int_fast16_t e2min = INT_FAST16_MIN;
5237int_fast32_t e3 = INT_FAST32_MAX;
5238int_fast32_t e3min = INT_FAST32_MIN;
5239int_fast64_t e4 = INT_FAST64_MAX;
5240int_fast64_t e4min = INT_FAST64_MIN;
5241uint_fast8_t f1 = UINT_FAST8_MAX;
5242uint_fast16_t f2 = UINT_FAST16_MAX;
5243uint_fast32_t f3 = UINT_FAST32_MAX;
5244uint_fast64_t f4 = UINT_FAST64_MAX;
5245#ifdef INTPTR_MAX
5246intptr_t g = INTPTR_MAX;
5247intptr_t gmin = INTPTR_MIN;
5248#endif
5249#ifdef UINTPTR_MAX
5250uintptr_t h = UINTPTR_MAX;
5251#endif
5252intmax_t i = INTMAX_MAX;
5253uintmax_t j = UINTMAX_MAX;
5254
5255#include <limits.h> /* for CHAR_BIT */
5256#define TYPE_MINIMUM(t) \
5257 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5258#define TYPE_MAXIMUM(t) \
5259 ((t) ((t) 0 < (t) -1 \
5260 ? (t) -1 \
5261 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5262struct s {
5263 int check_PTRDIFF:
5264 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5265 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5266 ? 1 : -1;
5267 /* Detect bug in FreeBSD 6.0 / ia64. */
5268 int check_SIG_ATOMIC:
5269 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5270 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5271 ? 1 : -1;
5272 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5273 int check_WCHAR:
5274 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5275 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5276 ? 1 : -1;
5277 /* Detect bug in mingw. */
5278 int check_WINT:
5279 WINT_MIN == TYPE_MINIMUM (wint_t)
5280 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5281 ? 1 : -1;
5282
5283 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5284 int check_UINT8_C:
5285 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5286 int check_UINT16_C:
5287 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5288
5289 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5290#ifdef UINT8_MAX
5291 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5292#endif
5293#ifdef UINT16_MAX
5294 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5295#endif
5296#ifdef UINT32_MAX
5297 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5298#endif
5299#ifdef UINT64_MAX
5300 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5301#endif
5302 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5303 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5304 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5305 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5306 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5307 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5308 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5309 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5310 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5311 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5312 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5313};
5314
5315int
5316main ()
5317{
5318
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323if ac_fn_c_try_compile "$LINENO"; then :
5324 if test "$cross_compiling" = yes; then :
5325 gl_cv_header_working_stdint_h=yes
5326
5327else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h. */
5330
5331
5332#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5333#include <stdint.h>
5334
5335
5336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5337 included before <wchar.h>. */
5338 #include <stddef.h>
5339 #include <signal.h>
5340 #if HAVE_WCHAR_H
5341 # include <stdio.h>
5342 # include <time.h>
5343 # include <wchar.h>
5344 #endif
5345
5346
5347#include <stdio.h>
5348#include <string.h>
5349#define MVAL(macro) MVAL1(macro)
5350#define MVAL1(expression) #expression
5351static const char *macro_values[] =
5352 {
5353#ifdef INT8_MAX
5354 MVAL (INT8_MAX),
5355#endif
5356#ifdef INT16_MAX
5357 MVAL (INT16_MAX),
5358#endif
5359#ifdef INT32_MAX
5360 MVAL (INT32_MAX),
5361#endif
5362#ifdef INT64_MAX
5363 MVAL (INT64_MAX),
5364#endif
5365#ifdef UINT8_MAX
5366 MVAL (UINT8_MAX),
5367#endif
5368#ifdef UINT16_MAX
5369 MVAL (UINT16_MAX),
5370#endif
5371#ifdef UINT32_MAX
5372 MVAL (UINT32_MAX),
5373#endif
5374#ifdef UINT64_MAX
5375 MVAL (UINT64_MAX),
5376#endif
5377 NULL
5378 };
5379
5380int
5381main ()
5382{
5383
5384 const char **mv;
5385 for (mv = macro_values; *mv != NULL; mv++)
5386 {
5387 const char *value = *mv;
5388 /* Test whether it looks like a cast expression. */
5389 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5390 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5391 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5392 || strncmp (value, "((int)"/*)*/, 6) == 0
5393 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5394 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5395 return mv - macro_values + 1;
5396 }
5397 return 0;
5398
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_run "$LINENO"; then :
5404 gl_cv_header_working_stdint_h=yes
5405fi
5406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409
5410
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5416$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5417 fi
5418 if test "$gl_cv_header_working_stdint_h" = yes; then
5419 STDINT_H=
5420 else
5421 for ac_header in sys/inttypes.h sys/bitypes.h
5422do :
5423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5425eval as_val=\$$as_ac_Header
5426 if test "x$as_val" = x""yes; then :
5427 cat >>confdefs.h <<_ACEOF
5428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429_ACEOF
5430
5431fi
5432
5433done
5434
5435 if test $ac_cv_header_sys_inttypes_h = yes; then
5436 HAVE_SYS_INTTYPES_H=1
5437 else
5438 HAVE_SYS_INTTYPES_H=0
5439 fi
5440
5441 if test $ac_cv_header_sys_bitypes_h = yes; then
5442 HAVE_SYS_BITYPES_H=1
5443 else
5444 HAVE_SYS_BITYPES_H=0
5445 fi
5446
5447
5448
5449
5450 if test $APPLE_UNIVERSAL_BUILD = 0; then
5451
5452
5453 for gltype in ptrdiff_t size_t ; do
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5455$as_echo_n "checking for bit size of $gltype... " >&6; }
5456if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5457 $as_echo_n "(cached) " >&6
5458else
5459 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5460 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5461 included before <wchar.h>. */
5462 #include <stddef.h>
5463 #include <signal.h>
5464 #if HAVE_WCHAR_H
5465 # include <stdio.h>
5466 # include <time.h>
5467 # include <wchar.h>
5468 #endif
5469
5470#include <limits.h>"; then :
5471
5472else
5473 result=unknown
5474fi
5475
5476 eval gl_cv_bitsizeof_${gltype}=\$result
5477
5478fi
5479eval ac_res=\$gl_cv_bitsizeof_${gltype}
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5481$as_echo "$ac_res" >&6; }
5482 eval result=\$gl_cv_bitsizeof_${gltype}
5483 if test $result = unknown; then
5484 result=0
5485 fi
5486 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5487 cat >>confdefs.h <<_ACEOF
5488#define BITSIZEOF_${GLTYPE} $result
5489_ACEOF
5490
5491 eval BITSIZEOF_${GLTYPE}=\$result
5492 done
5493
5494
5495 fi
5496
5497
5498 for gltype in sig_atomic_t wchar_t wint_t ; do
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5500$as_echo_n "checking for bit size of $gltype... " >&6; }
5501if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5506 included before <wchar.h>. */
5507 #include <stddef.h>
5508 #include <signal.h>
5509 #if HAVE_WCHAR_H
5510 # include <stdio.h>
5511 # include <time.h>
5512 # include <wchar.h>
5513 #endif
5514
5515#include <limits.h>"; then :
5516
5517else
5518 result=unknown
5519fi
5520
5521 eval gl_cv_bitsizeof_${gltype}=\$result
5522
5523fi
5524eval ac_res=\$gl_cv_bitsizeof_${gltype}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5526$as_echo "$ac_res" >&6; }
5527 eval result=\$gl_cv_bitsizeof_${gltype}
5528 if test $result = unknown; then
5529 result=0
5530 fi
5531 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5532 cat >>confdefs.h <<_ACEOF
5533#define BITSIZEOF_${GLTYPE} $result
5534_ACEOF
5535
5536 eval BITSIZEOF_${GLTYPE}=\$result
5537 done
5538
5539
5540
5541
5542 for gltype in sig_atomic_t wchar_t wint_t ; do
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5544$as_echo_n "checking whether $gltype is signed... " >&6; }
5545if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550
5551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5552 included before <wchar.h>. */
5553 #include <stddef.h>
5554 #include <signal.h>
5555 #if HAVE_WCHAR_H
5556 # include <stdio.h>
5557 # include <time.h>
5558 # include <wchar.h>
5559 #endif
5560
5561 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5562int
5563main ()
5564{
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571 result=yes
5572else
5573 result=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 eval gl_cv_type_${gltype}_signed=\$result
5577
5578fi
5579eval ac_res=\$gl_cv_type_${gltype}_signed
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5581$as_echo "$ac_res" >&6; }
5582 eval result=\$gl_cv_type_${gltype}_signed
5583 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5584 if test "$result" = yes; then
5585 cat >>confdefs.h <<_ACEOF
5586#define HAVE_SIGNED_${GLTYPE} 1
5587_ACEOF
5588
5589 eval HAVE_SIGNED_${GLTYPE}=1
5590 else
5591 eval HAVE_SIGNED_${GLTYPE}=0
5592 fi
5593 done
5594
5595
5596 gl_cv_type_ptrdiff_t_signed=yes
5597 gl_cv_type_size_t_signed=no
5598 if test $APPLE_UNIVERSAL_BUILD = 0; then
5599
5600
5601 for gltype in ptrdiff_t size_t ; do
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5603$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5604if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 eval gl_cv_type_${gltype}_suffix=no
5608 eval result=\$gl_cv_type_${gltype}_signed
5609 if test "$result" = yes; then
5610 glsufu=
5611 else
5612 glsufu=u
5613 fi
5614 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5615 case $glsuf in
5616 '') gltype1='int';;
5617 l) gltype1='long int';;
5618 ll) gltype1='long long int';;
5619 i64) gltype1='__int64';;
5620 u) gltype1='unsigned int';;
5621 ul) gltype1='unsigned long int';;
5622 ull) gltype1='unsigned long long int';;
5623 ui64)gltype1='unsigned __int64';;
5624 esac
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627
5628 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5629 included before <wchar.h>. */
5630 #include <stddef.h>
5631 #include <signal.h>
5632 #if HAVE_WCHAR_H
5633 # include <stdio.h>
5634 # include <time.h>
5635 # include <wchar.h>
5636 #endif
5637
5638 extern $gltype foo;
5639 extern $gltype1 foo;
5640int
5641main ()
5642{
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 eval gl_cv_type_${gltype}_suffix=\$glsuf
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 eval result=\$gl_cv_type_${gltype}_suffix
5653 test "$result" != no && break
5654 done
5655fi
5656eval ac_res=\$gl_cv_type_${gltype}_suffix
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5658$as_echo "$ac_res" >&6; }
5659 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5660 eval result=\$gl_cv_type_${gltype}_suffix
5661 test "$result" = no && result=
5662 eval ${GLTYPE}_SUFFIX=\$result
5663 cat >>confdefs.h <<_ACEOF
5664#define ${GLTYPE}_SUFFIX $result
5665_ACEOF
5666
5667 done
5668
5669
5670 fi
5671
5672
5673 for gltype in sig_atomic_t wchar_t wint_t ; do
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5675$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5676if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5677 $as_echo_n "(cached) " >&6
5678else
5679 eval gl_cv_type_${gltype}_suffix=no
5680 eval result=\$gl_cv_type_${gltype}_signed
5681 if test "$result" = yes; then
5682 glsufu=
5683 else
5684 glsufu=u
5685 fi
5686 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5687 case $glsuf in
5688 '') gltype1='int';;
5689 l) gltype1='long int';;
5690 ll) gltype1='long long int';;
5691 i64) gltype1='__int64';;
5692 u) gltype1='unsigned int';;
5693 ul) gltype1='unsigned long int';;
5694 ull) gltype1='unsigned long long int';;
5695 ui64)gltype1='unsigned __int64';;
5696 esac
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h. */
5699
5700 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5701 included before <wchar.h>. */
5702 #include <stddef.h>
5703 #include <signal.h>
5704 #if HAVE_WCHAR_H
5705 # include <stdio.h>
5706 # include <time.h>
5707 # include <wchar.h>
5708 #endif
5709
5710 extern $gltype foo;
5711 extern $gltype1 foo;
5712int
5713main ()
5714{
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 eval gl_cv_type_${gltype}_suffix=\$glsuf
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 eval result=\$gl_cv_type_${gltype}_suffix
5725 test "$result" != no && break
5726 done
5727fi
5728eval ac_res=\$gl_cv_type_${gltype}_suffix
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5730$as_echo "$ac_res" >&6; }
5731 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5732 eval result=\$gl_cv_type_${gltype}_suffix
5733 test "$result" = no && result=
5734 eval ${GLTYPE}_SUFFIX=\$result
5735 cat >>confdefs.h <<_ACEOF
5736#define ${GLTYPE}_SUFFIX $result
5737_ACEOF
5738
5739 done
5740
5741
5742
5743 if test $BITSIZEOF_WINT_T -lt 32; then
5744 BITSIZEOF_WINT_T=32
5745 fi
5746
5747 STDINT_H=stdint.h
5748 fi
5749
5750 if test -n "$STDINT_H"; then
5751 GL_GENERATE_STDINT_H_TRUE=
5752 GL_GENERATE_STDINT_H_FALSE='#'
5753else
5754 GL_GENERATE_STDINT_H_TRUE='#'
5755 GL_GENERATE_STDINT_H_FALSE=
5756fi
5757
5758
5759
5760
5761
5762
5763
5764
5765 GNULIB_IMAXABS=0;
5766 GNULIB_IMAXDIV=0;
5767 GNULIB_STRTOIMAX=0;
5768 GNULIB_STRTOUMAX=0;
5769 HAVE_DECL_IMAXABS=1;
5770 HAVE_DECL_IMAXDIV=1;
5771 HAVE_DECL_STRTOIMAX=1;
5772 HAVE_DECL_STRTOUMAX=1;
5773 REPLACE_STRTOIMAX=0;
5774 INT32_MAX_LT_INTMAX_MAX=1;
5775 INT64_MAX_EQ_LONG_MAX='defined _LP64';
5776 PRI_MACROS_BROKEN=0;
5777 PRIPTR_PREFIX=__PRIPTR_PREFIX;
5778 UINT32_MAX_LT_UINTMAX_MAX=1;
5779 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
5780
5781
5782
5783
5784 :
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 :
5799
5800
5801
5802
5803
5804
5805
5806
5807 if test $gl_cv_have_include_next = yes; then
5808 gl_cv_next_inttypes_h='<'inttypes.h'>'
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
5811$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
5812if test "${gl_cv_next_inttypes_h+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815
5816 if test $ac_cv_header_inttypes_h = yes; then
5817
5818
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include <inttypes.h>
5822
5823_ACEOF
5824 case "$host_os" in
5825 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5826 *) gl_absname_cpp="$ac_cpp" ;;
5827 esac
5828
5829 case "$host_os" in
5830 mingw*)
5831 gl_dirsep_regex='[/\\]'
5832 ;;
5833 *)
5834 gl_dirsep_regex='\/'
5835 ;;
5836 esac
5837 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5838
5839 gl_header_literal_regex=`echo 'inttypes.h' \
5840 | sed -e "$gl_make_literal_regex_sed"`
5841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5843 s|^/[^/]|//&|
5844 p
5845 q
5846 }'
5847 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5848 sed -n "$gl_absolute_header_sed"`'"'
5849 else
5850 gl_cv_next_inttypes_h='<'inttypes.h'>'
5851 fi
5852
5853
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
5856$as_echo "$gl_cv_next_inttypes_h" >&6; }
5857 fi
5858 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
5859
5860 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5862 gl_next_as_first_directive='<'inttypes.h'>'
5863 else
5864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5865 gl_next_as_first_directive=$gl_cv_next_inttypes_h
5866 fi
5867 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
5868
5869
5870
5871
5872
5873
5874
5875
5876 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
5877 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5879$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5880if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h. */
5885#include <inttypes.h>
5886
5887int
5888main ()
5889{
5890#undef $gl_func
5891 (void) $gl_func;
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897 eval "$as_gl_Symbol=yes"
5898else
5899 eval "$as_gl_Symbol=no"
5900fi
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902fi
5903eval ac_res=\$$as_gl_Symbol
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5905$as_echo "$ac_res" >&6; }
5906 eval as_val=\$$as_gl_Symbol
5907 if test "x$as_val" = x""yes; then :
5908 cat >>confdefs.h <<_ACEOF
5909#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5910_ACEOF
5911
5912 eval ac_cv_have_decl_$gl_func=yes
5913fi
5914 done
5915
5916
5917
5918 for ac_header in inttypes.h
5919do :
5920 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5921if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5922 cat >>confdefs.h <<_ACEOF
5923#define HAVE_INTTYPES_H 1
5924_ACEOF
5925
5926fi
5927
5928done
5929
5930 if test $ac_cv_header_inttypes_h = yes; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5932$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5933if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935else
5936
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h. */
5939
5940#include <inttypes.h>
5941#ifdef PRId32
5942char *p = PRId32;
5943#endif
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"; then :
5954 gt_cv_inttypes_pri_broken=no
5955else
5956 gt_cv_inttypes_pri_broken=yes
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5962$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5963 fi
5964 if test "$gt_cv_inttypes_pri_broken" = yes; then
5965
5966cat >>confdefs.h <<_ACEOF
5967#define PRI_MACROS_BROKEN 1
5968_ACEOF
5969
5970 PRI_MACROS_BROKEN=1
5971 else
5972 PRI_MACROS_BROKEN=0
5973 fi
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 for ac_func in $gl_func_list
5986do :
5987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5989eval as_val=\$$as_ac_var
5990 if test "x$as_val" = x""yes; then :
5991 cat >>confdefs.h <<_ACEOF
5992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5993_ACEOF
5994
5995fi
5996done
5997
5998
5999
6000
6001
6002
6003 GNULIB_FFSL=0;
6004 GNULIB_FFSLL=0;
6005 GNULIB_MEMCHR=0;
6006 GNULIB_MEMMEM=0;
6007 GNULIB_MEMPCPY=0;
6008 GNULIB_MEMRCHR=0;
6009 GNULIB_RAWMEMCHR=0;
6010 GNULIB_STPCPY=0;
6011 GNULIB_STPNCPY=0;
6012 GNULIB_STRCHRNUL=0;
6013 GNULIB_STRDUP=0;
6014 GNULIB_STRNCAT=0;
6015 GNULIB_STRNDUP=0;
6016 GNULIB_STRNLEN=0;
6017 GNULIB_STRPBRK=0;
6018 GNULIB_STRSEP=0;
6019 GNULIB_STRSTR=0;
6020 GNULIB_STRCASESTR=0;
6021 GNULIB_STRTOK_R=0;
6022 GNULIB_MBSLEN=0;
6023 GNULIB_MBSNLEN=0;
6024 GNULIB_MBSCHR=0;
6025 GNULIB_MBSRCHR=0;
6026 GNULIB_MBSSTR=0;
6027 GNULIB_MBSCASECMP=0;
6028 GNULIB_MBSNCASECMP=0;
6029 GNULIB_MBSPCASECMP=0;
6030 GNULIB_MBSCASESTR=0;
6031 GNULIB_MBSCSPN=0;
6032 GNULIB_MBSPBRK=0;
6033 GNULIB_MBSSPN=0;
6034 GNULIB_MBSSEP=0;
6035 GNULIB_MBSTOK_R=0;
6036 GNULIB_STRERROR=0;
6037 GNULIB_STRERROR_R=0;
6038 GNULIB_STRSIGNAL=0;
6039 GNULIB_STRVERSCMP=0;
6040 HAVE_MBSLEN=0;
6041 HAVE_FFSL=1;
6042 HAVE_FFSLL=1;
6043 HAVE_MEMCHR=1;
6044 HAVE_DECL_MEMMEM=1;
6045 HAVE_MEMPCPY=1;
6046 HAVE_DECL_MEMRCHR=1;
6047 HAVE_RAWMEMCHR=1;
6048 HAVE_STPCPY=1;
6049 HAVE_STPNCPY=1;
6050 HAVE_STRCHRNUL=1;
6051 HAVE_DECL_STRDUP=1;
6052 HAVE_DECL_STRNDUP=1;
6053 HAVE_DECL_STRNLEN=1;
6054 HAVE_STRPBRK=1;
6055 HAVE_STRSEP=1;
6056 HAVE_STRCASESTR=1;
6057 HAVE_DECL_STRTOK_R=1;
6058 HAVE_DECL_STRERROR_R=1;
6059 HAVE_DECL_STRSIGNAL=1;
6060 HAVE_STRVERSCMP=1;
6061 REPLACE_MEMCHR=0;
6062 REPLACE_MEMMEM=0;
6063 REPLACE_STPNCPY=0;
6064 REPLACE_STRDUP=0;
6065 REPLACE_STRSTR=0;
6066 REPLACE_STRCASESTR=0;
6067 REPLACE_STRCHRNUL=0;
6068 REPLACE_STRERROR=0;
6069 REPLACE_STRERROR_R=0;
6070 REPLACE_STRNCAT=0;
6071 REPLACE_STRNDUP=0;
6072 REPLACE_STRNLEN=0;
6073 REPLACE_STRSIGNAL=0;
6074 REPLACE_STRTOK_R=0;
6075 UNDEFINE_STRTOK_R=0;
6076
6077
6078
6079
6080
6081 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6082 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6083 # irrelevant for anonymous mappings.
6084 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6085if test "x$ac_cv_func_mmap" = x""yes; then :
6086 gl_have_mmap=yes
6087else
6088 gl_have_mmap=no
6089fi
6090
6091
6092 # Try to allow MAP_ANONYMOUS.
6093 gl_have_mmap_anonymous=no
6094 if test $gl_have_mmap = yes; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6096$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h. */
6099
6100#include <sys/mman.h>
6101#ifdef MAP_ANONYMOUS
6102 I cant identify this map
6103#endif
6104
6105_ACEOF
6106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
6108 gl_have_mmap_anonymous=yes
6109fi
6110rm -f conftest*
6111
6112 if test $gl_have_mmap_anonymous != yes; then
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h. */
6115
6116#include <sys/mman.h>
6117#ifdef MAP_ANON
6118 I cant identify this map
6119#endif
6120
6121_ACEOF
6122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
6124
6125$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6126
6127 gl_have_mmap_anonymous=yes
6128fi
6129rm -f conftest*
6130
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6133$as_echo "$gl_have_mmap_anonymous" >&6; }
6134 if test $gl_have_mmap_anonymous = yes; then
6135
6136$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6137
6138 fi
6139 fi
6140
6141
6142 :
6143
6144
6145
6146
6147
6148
6149 :
6150
6151
6152
6153
6154
6155
6156
6157
6158 if test $HAVE_MEMCHR = 1; then
6159 # Detect platform-specific bugs in some versions of glibc:
6160 # memchr should not dereference anything with length 0
6161 # http://bugzilla.redhat.com/499689
6162 # memchr should not dereference overestimated length after a match
6163 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6164 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6165 # Assume that memchr works on platforms that lack mprotect.
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6167$as_echo_n "checking whether memchr works... " >&6; }
6168if test "${gl_cv_func_memchr_works+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 if test "$cross_compiling" = yes; then :
6172 gl_cv_func_memchr_works="guessing no"
6173else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h. */
6176
6177#include <string.h>
6178#if HAVE_SYS_MMAN_H
6179# include <fcntl.h>
6180# include <unistd.h>
6181# include <sys/types.h>
6182# include <sys/mman.h>
6183# ifndef MAP_FILE
6184# define MAP_FILE 0
6185# endif
6186#endif
6187
6188int
6189main ()
6190{
6191
6192 int result = 0;
6193 char *fence = NULL;
6194#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6195# if HAVE_MAP_ANONYMOUS
6196 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6197 const int fd = -1;
6198# else /* !HAVE_MAP_ANONYMOUS */
6199 const int flags = MAP_FILE | MAP_PRIVATE;
6200 int fd = open ("/dev/zero", O_RDONLY, 0666);
6201 if (fd >= 0)
6202# endif
6203 {
6204 int pagesize = getpagesize ();
6205 char *two_pages =
6206 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6207 flags, fd, 0);
6208 if (two_pages != (char *)(-1)
6209 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6210 fence = two_pages + pagesize;
6211 }
6212#endif
6213 if (fence)
6214 {
6215 if (memchr (fence, 0, 0))
6216 result |= 1;
6217 strcpy (fence - 9, "12345678");
6218 if (memchr (fence - 9, 0, 79) != fence - 1)
6219 result |= 2;
6220 if (memchr (fence - 1, 0, 3) != fence - 1)
6221 result |= 4;
6222 }
6223 return result;
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_run "$LINENO"; then :
6230 gl_cv_func_memchr_works=yes
6231else
6232 gl_cv_func_memchr_works=no
6233fi
6234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6235 conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6240$as_echo "$gl_cv_func_memchr_works" >&6; }
6241 if test "$gl_cv_func_memchr_works" != yes; then
6242 REPLACE_MEMCHR=1
6243 fi
6244 fi
6245
6246
6247 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6248if test "x$ac_cv_have_decl_memmem" = x""yes; then :
6249 ac_have_decl=1
6250else
6251 ac_have_decl=0
6252fi
6253
6254cat >>confdefs.h <<_ACEOF
6255#define HAVE_DECL_MEMMEM $ac_have_decl
6256_ACEOF
6257
6258
6259
6260
6261
6262
6263 for ac_func in memmem
6264do :
6265 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6266if test "x$ac_cv_func_memmem" = x""yes; then :
6267 cat >>confdefs.h <<_ACEOF
6268#define HAVE_MEMMEM 1
6269_ACEOF
6270
6271fi
6272done
6273
6274 if test $ac_cv_func_memmem = yes; then
6275 HAVE_MEMMEM=1
6276 else
6277 HAVE_MEMMEM=0
6278 fi
6279
6280 :
6281
6282
6283
6284
6285
6286 if test $ac_cv_have_decl_memmem = no; then
6287 HAVE_DECL_MEMMEM=0
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
6290$as_echo_n "checking whether memmem works... " >&6; }
6291if test "${gl_cv_func_memmem_works_always+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 if test "$cross_compiling" = yes; then :
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h. */
6297
6298#ifdef __GNU_LIBRARY__
6299 #include <features.h>
6300 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
6301 || __GLIBC_MINOR__ > 12)) \
6302 || (__GLIBC__ > 2)) \
6303 || defined __UCLIBC__
6304 Lucky user
6305 #endif
6306#elif defined __CYGWIN__
6307 #include <cygwin/version.h>
6308 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
6309 Lucky user
6310 #endif
6311#else
6312 Lucky user
6313#endif
6314
6315_ACEOF
6316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "Lucky user" >/dev/null 2>&1; then :
6318 gl_cv_func_memmem_works_always=yes
6319else
6320 gl_cv_func_memmem_works_always="guessing no"
6321fi
6322rm -f conftest*
6323
6324
6325else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h. */
6328
6329#include <string.h> /* for memmem */
6330#define P "_EF_BF_BD"
6331#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
6332#define NEEDLE P P P P P
6333
6334int
6335main ()
6336{
6337
6338 int result = 0;
6339 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
6340 result |= 1;
6341 /* Check for empty needle behavior. */
6342 {
6343 const char *haystack = "AAA";
6344 if (memmem (haystack, 3, NULL, 0) != haystack)
6345 result |= 2;
6346 }
6347 return result;
6348
6349 ;
6350 return 0;
6351}
6352_ACEOF
6353if ac_fn_c_try_run "$LINENO"; then :
6354 gl_cv_func_memmem_works_always=yes
6355else
6356 gl_cv_func_memmem_works_always=no
6357fi
6358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6359 conftest.$ac_objext conftest.beam conftest.$ac_ext
6360fi
6361
6362
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
6365$as_echo "$gl_cv_func_memmem_works_always" >&6; }
6366 if test "$gl_cv_func_memmem_works_always" != yes; then
6367 REPLACE_MEMMEM=1
6368 fi
6369 fi
6370 :
6371
6372
6373 REPLACE_NULL=0;
6374 HAVE_WCHAR_T=1;
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6378$as_echo_n "checking for wchar_t... " >&6; }
6379if test "${gt_cv_c_wchar_t+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6381else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h. */
6384#include <stddef.h>
6385 wchar_t foo = (wchar_t)'\0';
6386int
6387main ()
6388{
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395 gt_cv_c_wchar_t=yes
6396else
6397 gt_cv_c_wchar_t=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6402$as_echo "$gt_cv_c_wchar_t" >&6; }
6403 if test $gt_cv_c_wchar_t = yes; then
6404
6405$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6406
6407 fi
6408
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6410$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6411if test "${ac_cv_c_restrict+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6413else
6414 ac_cv_c_restrict=no
6415 # The order here caters to the fact that C++ does not require restrict.
6416 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h. */
6419typedef int * int_ptr;
6420 int foo (int_ptr $ac_kw ip) {
6421 return ip[0];
6422 }
6423int
6424main ()
6425{
6426int s[1];
6427 int * $ac_kw t = s;
6428 t[0] = 0;
6429 return foo(t)
6430 ;
6431 return 0;
6432}
6433_ACEOF
6434if ac_fn_c_try_compile "$LINENO"; then :
6435 ac_cv_c_restrict=$ac_kw
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 test "$ac_cv_c_restrict" != no && break
6439 done
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6443$as_echo "$ac_cv_c_restrict" >&6; }
6444
6445 case $ac_cv_c_restrict in
6446 restrict) ;;
6447 no) $as_echo "#define restrict /**/" >>confdefs.h
6448 ;;
6449 *) cat >>confdefs.h <<_ACEOF
6450#define restrict $ac_cv_c_restrict
6451_ACEOF
6452 ;;
6453 esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 if test $gl_cv_have_include_next = yes; then
6467 gl_cv_next_string_h='<'string.h'>'
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6470$as_echo_n "checking absolute name of <string.h>... " >&6; }
6471if test "${gl_cv_next_string_h+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473else
6474
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477#include <string.h>
6478
6479_ACEOF
6480 case "$host_os" in
6481 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6482 *) gl_absname_cpp="$ac_cpp" ;;
6483 esac
6484
6485 case "$host_os" in
6486 mingw*)
6487 gl_dirsep_regex='[/\\]'
6488 ;;
6489 *)
6490 gl_dirsep_regex='\/'
6491 ;;
6492 esac
6493 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6494
6495 gl_header_literal_regex=`echo 'string.h' \
6496 | sed -e "$gl_make_literal_regex_sed"`
6497 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6498 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6499 s|^/[^/]|//&|
6500 p
6501 q
6502 }'
6503 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6504 sed -n "$gl_absolute_header_sed"`'"'
6505
6506
6507fi
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6509$as_echo "$gl_cv_next_string_h" >&6; }
6510 fi
6511 NEXT_STRING_H=$gl_cv_next_string_h
6512
6513 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6515 gl_next_as_first_directive='<'string.h'>'
6516 else
6517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6518 gl_next_as_first_directive=$gl_cv_next_string_h
6519 fi
6520 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
6521
6522
6523
6524
6525
6526
6527 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
6528 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6530$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6531if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6532 $as_echo_n "(cached) " >&6
6533else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536#include <string.h>
6537
6538int
6539main ()
6540{
6541#undef $gl_func
6542 (void) $gl_func;
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547if ac_fn_c_try_compile "$LINENO"; then :
6548 eval "$as_gl_Symbol=yes"
6549else
6550 eval "$as_gl_Symbol=no"
6551fi
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553fi
6554eval ac_res=\$$as_gl_Symbol
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556$as_echo "$ac_res" >&6; }
6557 eval as_val=\$$as_gl_Symbol
6558 if test "x$as_val" = x""yes; then :
6559 cat >>confdefs.h <<_ACEOF
6560#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6561_ACEOF
6562
6563 eval ac_cv_have_decl_$gl_func=yes
6564fi
6565 done
6566
6567
6568
6569 if false; then
6570 GL_COND_LIBTOOL_TRUE=
6571 GL_COND_LIBTOOL_FALSE='#'
6572else
6573 GL_COND_LIBTOOL_TRUE='#'
6574 GL_COND_LIBTOOL_FALSE=
6575fi
6576
6577 gl_cond_libtool=false
6578 gl_libdeps=
6579 gl_ltlibdeps=
6580 gl_m4_base='import/m4'
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 gl_source_base='import'
6591
6592
6593
6594
6595
6596 PRIPTR_PREFIX=
6597 if test -n "$STDINT_H"; then
6598 PRIPTR_PREFIX='"l"'
6599 else
6600 for glpfx in '' l ll I64; do
6601 case $glpfx in
6602 '') gltype1='int';;
6603 l) gltype1='long int';;
6604 ll) gltype1='long long int';;
6605 I64) gltype1='__int64';;
6606 esac
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h. */
6609#include <stdint.h>
6610 extern intptr_t foo;
6611 extern $gltype1 foo;
6612int
6613main ()
6614{
6615
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620if ac_fn_c_try_compile "$LINENO"; then :
6621 PRIPTR_PREFIX='"'$glpfx'"'
6622fi
6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 test -n "$PRIPTR_PREFIX" && break
6625 done
6626 fi
6627
6628
6629
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
6631$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
6632if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h. */
6637/* Work also in C++ mode. */
6638 #define __STDC_LIMIT_MACROS 1
6639
6640 /* Work if build is not clean. */
6641 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6642
6643 #include <limits.h>
6644 #if HAVE_STDINT_H
6645 #include <stdint.h>
6646 #endif
6647
6648 #if defined INT32_MAX && defined INTMAX_MAX
6649 #define CONDITION (INT32_MAX < INTMAX_MAX)
6650 #elif HAVE_LONG_LONG_INT
6651 #define CONDITION (sizeof (int) < sizeof (long long int))
6652 #else
6653 #define CONDITION 0
6654 #endif
6655 int test[CONDITION ? 1 : -1];
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664if ac_fn_c_try_compile "$LINENO"; then :
6665 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
6666else
6667 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
6672$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
6673 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
6674 INT32_MAX_LT_INTMAX_MAX=1;
6675 else
6676 INT32_MAX_LT_INTMAX_MAX=0;
6677 fi
6678
6679
6680 if test $APPLE_UNIVERSAL_BUILD = 0; then
6681
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
6683$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
6684if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h. */
6689/* Work also in C++ mode. */
6690 #define __STDC_LIMIT_MACROS 1
6691
6692 /* Work if build is not clean. */
6693 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6694
6695 #include <limits.h>
6696 #if HAVE_STDINT_H
6697 #include <stdint.h>
6698 #endif
6699
6700 #if defined INT64_MAX
6701 #define CONDITION (INT64_MAX == LONG_MAX)
6702 #elif HAVE_LONG_LONG_INT
6703 #define CONDITION (sizeof (long long int) == sizeof (long int))
6704 #else
6705 #define CONDITION 0
6706 #endif
6707 int test[CONDITION ? 1 : -1];
6708int
6709main ()
6710{
6711
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716if ac_fn_c_try_compile "$LINENO"; then :
6717 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
6718else
6719 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
6720fi
6721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
6724$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
6725 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
6726 INT64_MAX_EQ_LONG_MAX=1;
6727 else
6728 INT64_MAX_EQ_LONG_MAX=0;
6729 fi
6730
6731
6732 else
6733 INT64_MAX_EQ_LONG_MAX=-1
6734 fi
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
6737$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
6738if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740else
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h. */
6743/* Work also in C++ mode. */
6744 #define __STDC_LIMIT_MACROS 1
6745
6746 /* Work if build is not clean. */
6747 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6748
6749 #include <limits.h>
6750 #if HAVE_STDINT_H
6751 #include <stdint.h>
6752 #endif
6753
6754 #if defined UINT32_MAX && defined UINTMAX_MAX
6755 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
6756 #elif HAVE_LONG_LONG_INT
6757 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
6758 #else
6759 #define CONDITION 0
6760 #endif
6761 int test[CONDITION ? 1 : -1];
6762int
6763main ()
6764{
6765
6766 ;
6767 return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_compile "$LINENO"; then :
6771 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
6772else
6773 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776fi
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
6778$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
6779 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
6780 UINT32_MAX_LT_UINTMAX_MAX=1;
6781 else
6782 UINT32_MAX_LT_UINTMAX_MAX=0;
6783 fi
6784
6785
6786 if test $APPLE_UNIVERSAL_BUILD = 0; then
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
6789$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
6790if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h. */
6795/* Work also in C++ mode. */
6796 #define __STDC_LIMIT_MACROS 1
6797
6798 /* Work if build is not clean. */
6799 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6800
6801 #include <limits.h>
6802 #if HAVE_STDINT_H
6803 #include <stdint.h>
6804 #endif
6805
6806 #if defined UINT64_MAX
6807 #define CONDITION (UINT64_MAX == ULONG_MAX)
6808 #elif HAVE_LONG_LONG_INT
6809 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
6810 #else
6811 #define CONDITION 0
6812 #endif
6813 int test[CONDITION ? 1 : -1];
6814int
6815main ()
6816{
6817
6818 ;
6819 return 0;
6820}
6821_ACEOF
6822if ac_fn_c_try_compile "$LINENO"; then :
6823 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
6824else
6825 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
6830$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
6831 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
6832 UINT64_MAX_EQ_ULONG_MAX=1;
6833 else
6834 UINT64_MAX_EQ_ULONG_MAX=0;
6835 fi
6836
6837
6838 else
6839 UINT64_MAX_EQ_ULONG_MAX=-1
6840 fi
6841
6842
6843
6844
6845if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
6846
6847
6848
6849
6850
6851
6852
6853
6854 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
6855
6856
6857 for ac_header in bp-sym.h
6858do :
6859 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6860if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
6861 cat >>confdefs.h <<_ACEOF
6862#define HAVE_BP_SYM_H 1
6863_ACEOF
6864
6865fi
6866
6867done
6868
6869
6870fi
6871
6872
6873
6874
6875
6876 GNULIB_MEMCHR=1
6877
6878
6879
6880
6881
6882$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6883
6884
6885
6886
6887
6888 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6890$as_echo_n "checking whether memmem works in linear time... " >&6; }
6891if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test "$cross_compiling" = yes; then :
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h. */
6897
6898#include <features.h>
6899#ifdef __GNU_LIBRARY__
6900 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
6901 && !defined __UCLIBC__
6902 Lucky user
6903 #endif
6904#endif
6905#ifdef __CYGWIN__
6906 #include <cygwin/version.h>
6907 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
6908 Lucky user
6909 #endif
6910#endif
6911
6912_ACEOF
6913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "Lucky user" >/dev/null 2>&1; then :
6915 gl_cv_func_memmem_works_fast=yes
6916else
6917 gl_cv_func_memmem_works_fast="guessing no"
6918fi
6919rm -f conftest*
6920
6921
6922else
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h. */
6925
6926#include <signal.h> /* for signal */
6927#include <string.h> /* for memmem */
6928#include <stdlib.h> /* for malloc */
6929#include <unistd.h> /* for alarm */
6930static void quit (int sig) { exit (sig + 128); }
6931
6932int
6933main ()
6934{
6935
6936 int result = 0;
6937 size_t m = 1000000;
6938 char *haystack = (char *) malloc (2 * m + 1);
6939 char *needle = (char *) malloc (m + 1);
6940 /* Failure to compile this test due to missing alarm is okay,
6941 since all such platforms (mingw) also lack memmem. */
6942 signal (SIGALRM, quit);
6943 alarm (5);
6944 /* Check for quadratic performance. */
6945 if (haystack && needle)
6946 {
6947 memset (haystack, 'A', 2 * m);
6948 haystack[2 * m] = 'B';
6949 memset (needle, 'A', m);
6950 needle[m] = 'B';
6951 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
6952 result |= 1;
6953 }
6954 return result;
6955
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960if ac_fn_c_try_run "$LINENO"; then :
6961 gl_cv_func_memmem_works_fast=yes
6962else
6963 gl_cv_func_memmem_works_fast=no
6964fi
6965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6966 conftest.$ac_objext conftest.beam conftest.$ac_ext
6967fi
6968
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
6972$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
6973 if test "$gl_cv_func_memmem_works_fast" != yes; then
6974 REPLACE_MEMMEM=1
6975 fi
6976 fi
6977
6978if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
6979
6980
6981
6982
6983
6984
6985
6986
6987 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6988
6989fi
6990
6991
6992
6993
6994 for ac_func in memmem
6995do :
6996 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6997if test "x$ac_cv_func_memmem" = x""yes; then :
6998 cat >>confdefs.h <<_ACEOF
6999#define HAVE_MEMMEM 1
7000_ACEOF
7001
7002fi
7003done
7004
7005 if test $ac_cv_func_memmem = yes; then
7006 HAVE_MEMMEM=1
7007 else
7008 HAVE_MEMMEM=0
7009 fi
7010
7011 :
7012
7013
7014
7015
7016
7017 if test $ac_cv_have_decl_memmem = no; then
7018 HAVE_DECL_MEMMEM=0
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7021$as_echo_n "checking whether memmem works... " >&6; }
7022if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024else
7025 if test "$cross_compiling" = yes; then :
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h. */
7028
7029#ifdef __GNU_LIBRARY__
7030 #include <features.h>
7031 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7032 || __GLIBC_MINOR__ > 12)) \
7033 || (__GLIBC__ > 2)) \
7034 || defined __UCLIBC__
7035 Lucky user
7036 #endif
7037#elif defined __CYGWIN__
7038 #include <cygwin/version.h>
7039 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7040 Lucky user
7041 #endif
7042#else
7043 Lucky user
7044#endif
7045
7046_ACEOF
7047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "Lucky user" >/dev/null 2>&1; then :
7049 gl_cv_func_memmem_works_always=yes
7050else
7051 gl_cv_func_memmem_works_always="guessing no"
7052fi
7053rm -f conftest*
7054
7055
7056else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h. */
7059
7060#include <string.h> /* for memmem */
7061#define P "_EF_BF_BD"
7062#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7063#define NEEDLE P P P P P
7064
7065int
7066main ()
7067{
7068
7069 int result = 0;
7070 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7071 result |= 1;
7072 /* Check for empty needle behavior. */
7073 {
7074 const char *haystack = "AAA";
7075 if (memmem (haystack, 3, NULL, 0) != haystack)
7076 result |= 2;
7077 }
7078 return result;
7079
7080 ;
7081 return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_run "$LINENO"; then :
7085 gl_cv_func_memmem_works_always=yes
7086else
7087 gl_cv_func_memmem_works_always=no
7088fi
7089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7090 conftest.$ac_objext conftest.beam conftest.$ac_ext
7091fi
7092
7093
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7096$as_echo "$gl_cv_func_memmem_works_always" >&6; }
7097 if test "$gl_cv_func_memmem_works_always" != yes; then
7098 REPLACE_MEMMEM=1
7099 fi
7100 fi
7101 :
7102
7103if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
7104
7105
7106
7107
7108
7109
7110
7111
7112 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
7113
7114fi
7115
7116
7117
7118
7119
7120 GNULIB_MEMMEM=1
7121
7122
7123
7124
7125
7126$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7127
7128
7129
7130
7131
7132
7133
7134 STDDEF_H=
7135 if test $gt_cv_c_wchar_t = no; then
7136 HAVE_WCHAR_T=0
7137 STDDEF_H=stddef.h
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7140$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7141if test "${gl_cv_decl_null_works+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7143else
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h. */
7146#include <stddef.h>
7147 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7148
7149int
7150main ()
7151{
7152
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157if ac_fn_c_try_compile "$LINENO"; then :
7158 gl_cv_decl_null_works=yes
7159else
7160 gl_cv_decl_null_works=no
7161fi
7162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7165$as_echo "$gl_cv_decl_null_works" >&6; }
7166 if test $gl_cv_decl_null_works = no; then
7167 REPLACE_NULL=1
7168 STDDEF_H=stddef.h
7169 fi
7170
7171 if test -n "$STDDEF_H"; then
7172 GL_GENERATE_STDDEF_H_TRUE=
7173 GL_GENERATE_STDDEF_H_FALSE='#'
7174else
7175 GL_GENERATE_STDDEF_H_TRUE='#'
7176 GL_GENERATE_STDDEF_H_FALSE=
7177fi
7178
7179 if test -n "$STDDEF_H"; then
7180
7181
7182
7183
7184
7185
7186
7187
7188 if test $gl_cv_have_include_next = yes; then
7189 gl_cv_next_stddef_h='<'stddef.h'>'
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7192$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7193if test "${gl_cv_next_stddef_h+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7195else
7196
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h. */
7199#include <stddef.h>
7200
7201_ACEOF
7202 case "$host_os" in
7203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7204 *) gl_absname_cpp="$ac_cpp" ;;
7205 esac
7206
7207 case "$host_os" in
7208 mingw*)
7209 gl_dirsep_regex='[/\\]'
7210 ;;
7211 *)
7212 gl_dirsep_regex='\/'
7213 ;;
7214 esac
7215 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7216
7217 gl_header_literal_regex=`echo 'stddef.h' \
7218 | sed -e "$gl_make_literal_regex_sed"`
7219 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7220 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7221 s|^/[^/]|//&|
7222 p
7223 q
7224 }'
7225 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7226 sed -n "$gl_absolute_header_sed"`'"'
7227
7228
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7231$as_echo "$gl_cv_next_stddef_h" >&6; }
7232 fi
7233 NEXT_STDDEF_H=$gl_cv_next_stddef_h
7234
7235 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7237 gl_next_as_first_directive='<'stddef.h'>'
7238 else
7239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7240 gl_next_as_first_directive=$gl_cv_next_stddef_h
7241 fi
7242 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7243
7244
7245
7246
7247 fi
7248
7249
7250
7251
7252
7253 # End of code from modules
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 gltests_libdeps=
7264 gltests_ltlibdeps=
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 gl_source_base='tests'
7275 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7276
7277 gl_module_indicator_condition=$gltests_WITNESS
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 LIBGNU_LIBDEPS="$gl_libdeps"
7288
7289 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7290
7291
7292
7293# We don't use automake, but gnulib does. This line lets us generate
7294# its Makefile.in.
7295am__api_version='1.11'
7296
7297# Find a good install program. We prefer a C program (faster),
7298# so one script is as good as another. But avoid the broken or
7299# incompatible versions:
7300# SysV /etc/install, /usr/sbin/install
7301# SunOS /usr/etc/install
7302# IRIX /sbin/install
7303# AIX /bin/install
7304# AmigaOS /C/install, which installs bootblocks on floppy discs
7305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7308# OS/2's system install, which has a completely different semantic
7309# ./install, which can be erroneously created by make from ./install.sh.
7310# Reject install programs that cannot install multiple files.
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7312$as_echo_n "checking for a BSD-compatible install... " >&6; }
7313if test -z "$INSTALL"; then
7314if test "${ac_cv_path_install+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 # Account for people who put trailing slashes in PATH elements.
7323case $as_dir/ in #((
7324 ./ | .// | /[cC]/* | \
7325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7326 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7327 /usr/ucb/* ) ;;
7328 *)
7329 # OSF1 and SCO ODT 3.0 have their own names for install.
7330 # Don't use installbsd from OSF since it installs stuff as root
7331 # by default.
7332 for ac_prog in ginstall scoinst install; do
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7335 if test $ac_prog = install &&
7336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7337 # AIX install. It has an incompatible calling convention.
7338 :
7339 elif test $ac_prog = install &&
7340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7341 # program-specific install script used by HP pwplus--don't use.
7342 :
7343 else
7344 rm -rf conftest.one conftest.two conftest.dir
7345 echo one > conftest.one
7346 echo two > conftest.two
7347 mkdir conftest.dir
7348 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7349 test -s conftest.one && test -s conftest.two &&
7350 test -s conftest.dir/conftest.one &&
7351 test -s conftest.dir/conftest.two
7352 then
7353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7354 break 3
7355 fi
7356 fi
7357 fi
7358 done
7359 done
7360 ;;
7361esac
7362
7363 done
7364IFS=$as_save_IFS
7365
7366rm -rf conftest.one conftest.two conftest.dir
7367
7368fi
7369 if test "${ac_cv_path_install+set}" = set; then
7370 INSTALL=$ac_cv_path_install
7371 else
7372 # As a last resort, use the slow shell script. Don't cache a
7373 # value for INSTALL within a source directory, because that will
7374 # break other packages using the cache if that directory is
7375 # removed, or if the value is a relative name.
7376 INSTALL=$ac_install_sh
7377 fi
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7380$as_echo "$INSTALL" >&6; }
7381
7382# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7383# It thinks the first close brace ends the variable substitution.
7384test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7385
7386test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7387
7388test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7389
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7391$as_echo_n "checking whether build environment is sane... " >&6; }
7392# Just in case
7393sleep 1
7394echo timestamp > conftest.file
7395# Reject unsafe characters in $srcdir or the absolute working directory
7396# name. Accept space and tab only in the latter.
7397am_lf='
7398'
7399case `pwd` in
7400 *[\\\"\#\$\&\'\`$am_lf]*)
7401 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7402esac
7403case $srcdir in
7404 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7405 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7406esac
7407
7408# Do `set' in a subshell so we don't clobber the current shell's
7409# arguments. Must try -L first in case configure is actually a
7410# symlink; some systems play weird games with the mod time of symlinks
7411# (eg FreeBSD returns the mod time of the symlink's containing
7412# directory).
7413if (
7414 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7415 if test "$*" = "X"; then
7416 # -L didn't work.
7417 set X `ls -t "$srcdir/configure" conftest.file`
7418 fi
7419 rm -f conftest.file
7420 if test "$*" != "X $srcdir/configure conftest.file" \
7421 && test "$*" != "X conftest.file $srcdir/configure"; then
7422
7423 # If neither matched, then we have a broken ls. This can happen
7424 # if, for instance, CONFIG_SHELL is bash and it inherits a
7425 # broken ls alias from the environment. This has actually
7426 # happened. Such a system could not be considered "sane".
7427 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7428alias in your environment" "$LINENO" 5
7429 fi
7430
7431 test "$2" = conftest.file
7432 )
7433then
7434 # Ok.
7435 :
7436else
7437 as_fn_error "newly created file is older than distributed files!
7438Check your system clock" "$LINENO" 5
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441$as_echo "yes" >&6; }
7442test "$program_prefix" != NONE &&
7443 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7444# Use a double $ so make ignores it.
7445test "$program_suffix" != NONE &&
7446 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7447# Double any \ or $.
7448# By default was `s,x,x', remove it if useless.
7449ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7450program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7451
7452# expand $ac_aux_dir to an absolute path
7453am_aux_dir=`cd $ac_aux_dir && pwd`
7454
7455if test x"${MISSING+set}" != xset; then
7456 case $am_aux_dir in
7457 *\ * | *\ *)
7458 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7459 *)
7460 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7461 esac
7462fi
7463# Use eval to expand $SHELL
7464if eval "$MISSING --run true"; then
7465 am_missing_run="$MISSING --run "
7466else
7467 am_missing_run=
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7469$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7470fi
7471
7472if test x"${install_sh}" != xset; then
7473 case $am_aux_dir in
7474 *\ * | *\ *)
7475 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7476 *)
7477 install_sh="\${SHELL} $am_aux_dir/install-sh"
7478 esac
7479fi
7480
7481# Installed binaries are usually stripped using `strip' when the user
7482# run `make install-strip'. However `strip' might not be the right
7483# tool to use in cross-compilation environments, therefore Automake
7484# will honor the `STRIP' environment variable to overrule this program.
7485if test "$cross_compiling" != no; then
7486 if test -n "$ac_tool_prefix"; then
7487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}strip; ac_word=$2
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
7491if test "${ac_cv_prog_STRIP+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493else
7494 if test -n "$STRIP"; then
7495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509 done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514STRIP=$ac_cv_prog_STRIP
7515if test -n "$STRIP"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7517$as_echo "$STRIP" >&6; }
7518else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523
7524fi
7525if test -z "$ac_cv_prog_STRIP"; then
7526 ac_ct_STRIP=$STRIP
7527 # Extract the first word of "strip", so it can be a program name with args.
7528set dummy strip; ac_word=$2
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
7531if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7533else
7534 if test -n "$ac_ct_STRIP"; then
7535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 ac_cv_prog_ac_ct_STRIP="strip"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548done
7549 done
7550IFS=$as_save_IFS
7551
7552fi
7553fi
7554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7555if test -n "$ac_ct_STRIP"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7557$as_echo "$ac_ct_STRIP" >&6; }
7558else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
7563 if test "x$ac_ct_STRIP" = x; then
7564 STRIP=":"
7565 else
7566 case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570ac_tool_warned=yes ;;
7571esac
7572 STRIP=$ac_ct_STRIP
7573 fi
7574else
7575 STRIP="$ac_cv_prog_STRIP"
7576fi
7577
7578fi
7579INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7580
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7582$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7583if test -z "$MKDIR_P"; then
7584 if test "${ac_cv_path_mkdir+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_prog in mkdir gmkdir; do
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7595 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7596 'mkdir (GNU coreutils) '* | \
7597 'mkdir (coreutils) '* | \
7598 'mkdir (fileutils) '4.1*)
7599 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7600 break 3;;
7601 esac
7602 done
7603 done
7604 done
7605IFS=$as_save_IFS
7606
7607fi
7608
7609 if test "${ac_cv_path_mkdir+set}" = set; then
7610 MKDIR_P="$ac_cv_path_mkdir -p"
7611 else
7612 # As a last resort, use the slow shell script. Don't cache a
7613 # value for MKDIR_P within a source directory, because that will
7614 # break other packages using the cache if that directory is
7615 # removed, or if the value is a relative name.
7616 test -d ./--version && rmdir ./--version
7617 MKDIR_P="$ac_install_sh -d"
7618 fi
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7621$as_echo "$MKDIR_P" >&6; }
7622
7623
7624mkdir_p="$MKDIR_P"
7625case $mkdir_p in
7626 [\\/$]* | ?:[\\/]*) ;;
7627 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7628esac
7629
7630for ac_prog in gawk mawk nawk awk
7631do
7632 # Extract the first word of "$ac_prog", so it can be a program name with args.
7633set dummy $ac_prog; ac_word=$2
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635$as_echo_n "checking for $ac_word... " >&6; }
7636if test "${ac_cv_prog_AWK+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638else
7639 if test -n "$AWK"; then
7640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7641else
7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_AWK="$ac_prog"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653done
7654 done
7655IFS=$as_save_IFS
7656
7657fi
7658fi
7659AWK=$ac_cv_prog_AWK
7660if test -n "$AWK"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7662$as_echo "$AWK" >&6; }
7663else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665$as_echo "no" >&6; }
7666fi
7667
7668
7669 test -n "$AWK" && break
7670done
7671
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7673$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7674set x ${MAKE-make}
7675ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7676if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7677 $as_echo_n "(cached) " >&6
7678else
7679 cat >conftest.make <<\_ACEOF
7680SHELL = /bin/sh
7681all:
7682 @echo '@@@%%%=$(MAKE)=@@@%%%'
7683_ACEOF
7684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7685case `${MAKE-make} -f conftest.make 2>/dev/null` in
7686 *@@@%%%=?*=@@@%%%*)
7687 eval ac_cv_prog_make_${ac_make}_set=yes;;
7688 *)
7689 eval ac_cv_prog_make_${ac_make}_set=no;;
7690esac
7691rm -f conftest.make
7692fi
7693if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7695$as_echo "yes" >&6; }
7696 SET_MAKE=
7697else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700 SET_MAKE="MAKE=${MAKE-make}"
7701fi
7702
7703rm -rf .tst 2>/dev/null
7704mkdir .tst 2>/dev/null
7705if test -d .tst; then
7706 am__leading_dot=.
7707else
7708 am__leading_dot=_
7709fi
7710rmdir .tst 2>/dev/null
7711
7712DEPDIR="${am__leading_dot}deps"
7713
7714ac_config_commands="$ac_config_commands depfiles"
7715
7716
7717am_make=${MAKE-make}
7718cat > confinc << 'END'
7719am__doit:
7720 @echo this is the am__doit target
7721.PHONY: am__doit
7722END
7723# If we don't find an include directive, just comment out the code.
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7725$as_echo_n "checking for style of include used by $am_make... " >&6; }
7726am__include="#"
7727am__quote=
7728_am_result=none
7729# First try GNU make style include.
7730echo "include confinc" > confmf
7731# Ignore all kinds of additional output from `make'.
7732case `$am_make -s -f confmf 2> /dev/null` in #(
7733*the\ am__doit\ target*)
7734 am__include=include
7735 am__quote=
7736 _am_result=GNU
7737 ;;
7738esac
7739# Now try BSD make style include.
7740if test "$am__include" = "#"; then
7741 echo '.include "confinc"' > confmf
7742 case `$am_make -s -f confmf 2> /dev/null` in #(
7743 *the\ am__doit\ target*)
7744 am__include=.include
7745 am__quote="\""
7746 _am_result=BSD
7747 ;;
7748 esac
7749fi
7750
7751
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7753$as_echo "$_am_result" >&6; }
7754rm -f confinc confmf
7755
7756# Check whether --enable-dependency-tracking was given.
7757if test "${enable_dependency_tracking+set}" = set; then :
7758 enableval=$enable_dependency_tracking;
7759fi
7760
7761if test "x$enable_dependency_tracking" != xno; then
7762 am_depcomp="$ac_aux_dir/depcomp"
7763 AMDEPBACKSLASH='\'
7764fi
7765 if test "x$enable_dependency_tracking" != xno; then
7766 AMDEP_TRUE=
7767 AMDEP_FALSE='#'
7768else
7769 AMDEP_TRUE='#'
7770 AMDEP_FALSE=
7771fi
7772
7773
7774if test "`cd $srcdir && pwd`" != "`pwd`"; then
7775 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7776 # is not polluted with repeated "-I."
7777 am__isrc=' -I$(srcdir)'
7778 # test to see if srcdir already configured
7779 if test -f $srcdir/config.status; then
7780 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7781 fi
7782fi
7783
7784# test whether we have cygpath
7785if test -z "$CYGPATH_W"; then
7786 if (cygpath --version) >/dev/null 2>/dev/null; then
7787 CYGPATH_W='cygpath -w'
7788 else
7789 CYGPATH_W=echo
7790 fi
7791fi
7792
7793
7794# Define the identity of the package.
7795 PACKAGE=libgnu
7796 VERSION=UNUSED-VERSION
7797
7798
7799# Some tools Automake needs.
7800
7801ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7802
7803
7804AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7805
7806
7807AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7808
7809
7810AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7811
7812
7813MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7814
7815# We need awk for the "check" target. The system "awk" is bad on
7816# some platforms.
7817# Always define AMTAR for backward compatibility.
7818
7819AMTAR=${AMTAR-"${am_missing_run}tar"}
7820
7821am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7822
7823
7824
7825
7826depcc="$CC" am_compiler_list=
7827
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7829$as_echo_n "checking dependency style of $depcc... " >&6; }
7830if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832else
7833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7834 # We make a subdir and do the tests there. Otherwise we can end up
7835 # making bogus files that we don't know about and never remove. For
7836 # instance it was reported that on HP-UX the gcc test will end up
7837 # making a dummy file named `D' -- because `-MD' means `put the output
7838 # in D'.
7839 mkdir conftest.dir
7840 # Copy depcomp to subdir because otherwise we won't find it if we're
7841 # using a relative directory.
7842 cp "$am_depcomp" conftest.dir
7843 cd conftest.dir
7844 # We will build objects and dependencies in a subdirectory because
7845 # it helps to detect inapplicable dependency modes. For instance
7846 # both Tru64's cc and ICC support -MD to output dependencies as a
7847 # side effect of compilation, but ICC will put the dependencies in
7848 # the current directory while Tru64 will put them in the object
7849 # directory.
7850 mkdir sub
7851
7852 am_cv_CC_dependencies_compiler_type=none
7853 if test "$am_compiler_list" = ""; then
7854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7855 fi
7856 am__universal=false
7857 case " $depcc " in #(
7858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7859 esac
7860
7861 for depmode in $am_compiler_list; do
7862 # Setup a source with many dependencies, because some compilers
7863 # like to wrap large dependency lists on column 80 (with \), and
7864 # we should not choose a depcomp mode which is confused by this.
7865 #
7866 # We need to recreate these files for each test, as the compiler may
7867 # overwrite some of them when testing with obscure command lines.
7868 # This happens at least with the AIX C compiler.
7869 : > sub/conftest.c
7870 for i in 1 2 3 4 5 6; do
7871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7873 # Solaris 8's {/usr,}/bin/sh.
7874 touch sub/conftst$i.h
7875 done
7876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7877
7878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7879 # mode. It turns out that the SunPro C++ compiler does not properly
7880 # handle `-M -o', and we need to detect this. Also, some Intel
7881 # versions had trouble with output in subdirs
7882 am__obj=sub/conftest.${OBJEXT-o}
7883 am__minus_obj="-o $am__obj"
7884 case $depmode in
7885 gcc)
7886 # This depmode causes a compiler race in universal mode.
7887 test "$am__universal" = false || continue
7888 ;;
7889 nosideeffect)
7890 # after this tag, mechanisms are not by side-effect, so they'll
7891 # only be used when explicitly requested
7892 if test "x$enable_dependency_tracking" = xyes; then
7893 continue
7894 else
7895 break
7896 fi
7897 ;;
7898 msvisualcpp | msvcmsys)
7899 # This compiler won't grok `-c -o', but also, the minuso test has
7900 # not run yet. These depmodes are late enough in the game, and
7901 # so weak that their functioning should not be impacted.
7902 am__obj=conftest.${OBJEXT-o}
7903 am__minus_obj=
7904 ;;
7905 none) break ;;
7906 esac
7907 if depmode=$depmode \
7908 source=sub/conftest.c object=$am__obj \
7909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7911 >/dev/null 2>conftest.err &&
7912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7916 # icc doesn't choke on unknown options, it will just issue warnings
7917 # or remarks (even with -Werror). So we grep stderr for any message
7918 # that says an option was ignored or not supported.
7919 # When given -MP, icc 7.0 and 7.1 complain thusly:
7920 # icc: Command line warning: ignoring option '-M'; no argument required
7921 # The diagnosis changed in icc 8.0:
7922 # icc: Command line remark: option '-MP' not supported
7923 if (grep 'ignoring option' conftest.err ||
7924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7925 am_cv_CC_dependencies_compiler_type=$depmode
7926 break
7927 fi
7928 fi
7929 done
7930
7931 cd ..
7932 rm -rf conftest.dir
7933else
7934 am_cv_CC_dependencies_compiler_type=none
7935fi
7936
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7939$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7940CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7941
7942 if
7943 test "x$enable_dependency_tracking" != xno \
7944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7945 am__fastdepCC_TRUE=
7946 am__fastdepCC_FALSE='#'
7947else
7948 am__fastdepCC_TRUE='#'
7949 am__fastdepCC_FALSE=
7950fi
7951
7952
7953
7954
7955# --------------------- #
7956# Checks for programs. #
7957# --------------------- #
7958
7959
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7961$as_echo_n "checking whether ln -s works... " >&6; }
7962LN_S=$as_ln_s
7963if test "$LN_S" = "ln -s"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965$as_echo "yes" >&6; }
7966else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7968$as_echo "no, using $LN_S" >&6; }
7969fi
7970
7971if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_RANLIB+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978else
7979 if test -n "$RANLIB"; then
7980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999RANLIB=$ac_cv_prog_RANLIB
8000if test -n "$RANLIB"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8002$as_echo "$RANLIB" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_prog_RANLIB"; then
8011 ac_ct_RANLIB=$RANLIB
8012 # Extract the first word of "ranlib", so it can be a program name with args.
8013set dummy ranlib; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018else
8019 if test -n "$ac_ct_RANLIB"; then
8020 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_ac_ct_RANLIB="ranlib"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033done
8034 done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8040if test -n "$ac_ct_RANLIB"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8042$as_echo "$ac_ct_RANLIB" >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048 if test "x$ac_ct_RANLIB" = x; then
8049 RANLIB=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057 RANLIB=$ac_ct_RANLIB
8058 fi
8059else
8060 RANLIB="$ac_cv_prog_RANLIB"
8061fi
8062
8063
8064if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8066set dummy ${ac_tool_prefix}ar; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if test "${ac_cv_prog_AR+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR="$AR" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_AR="${ac_tool_prefix}ar"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087 done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092AR=$ac_cv_prog_AR
8093if test -n "$AR"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8095$as_echo "$AR" >&6; }
8096else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102fi
8103if test -z "$ac_cv_prog_AR"; then
8104 ac_ct_AR=$AR
8105 # Extract the first word of "ar", so it can be a program name with args.
8106set dummy ar; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 if test -n "$ac_ct_AR"; then
8113 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_ac_ct_AR="ar"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127 done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_AR=$ac_cv_prog_ac_ct_AR
8133if test -n "$ac_ct_AR"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8135$as_echo "$ac_ct_AR" >&6; }
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141 if test "x$ac_ct_AR" = x; then
8142 AR=""
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150 AR=$ac_ct_AR
8151 fi
8152else
8153 AR="$ac_cv_prog_AR"
8154fi
8155
8156
8157# ---------------------- #
8158# Checks for libraries. #
8159# ---------------------- #
8160
8161ac_config_files="$ac_config_files Makefile import/Makefile"
8162
8163ac_config_commands="$ac_config_commands default"
8164
8165cat >confcache <<\_ACEOF
8166# This file is a shell script that caches the results of configure
8167# tests run on this system so they can be shared between configure
8168# scripts and configure runs, see configure's option --config-cache.
8169# It is not useful on other systems. If it contains results you don't
8170# want to keep, you may remove or edit it.
8171#
8172# config.status only pays attention to the cache file if you give it
8173# the --recheck option to rerun configure.
8174#
8175# `ac_cv_env_foo' variables (set or unset) will be overridden when
8176# loading this file, other *unset* `ac_cv_foo' will be assigned the
8177# following values.
8178
8179_ACEOF
8180
8181# The following way of writing the cache mishandles newlines in values,
8182# but we know of no workaround that is simple, portable, and efficient.
8183# So, we kill variables containing newlines.
8184# Ultrix sh set writes to stderr and can't be redirected directly,
8185# and sets the high bit in the cache file unless we assign to the vars.
8186(
8187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8188 eval ac_val=\$$ac_var
8189 case $ac_val in #(
8190 *${as_nl}*)
8191 case $ac_var in #(
8192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8194 esac
8195 case $ac_var in #(
8196 _ | IFS | as_nl) ;; #(
8197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8198 *) { eval $ac_var=; unset $ac_var;} ;;
8199 esac ;;
8200 esac
8201 done
8202
8203 (set) 2>&1 |
8204 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8205 *${as_nl}ac_space=\ *)
8206 # `set' does not quote correctly, so add quotes: double-quote
8207 # substitution turns \\\\ into \\, and sed turns \\ into \.
8208 sed -n \
8209 "s/'/'\\\\''/g;
8210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8211 ;; #(
8212 *)
8213 # `set' quotes correctly as required by POSIX, so do not add quotes.
8214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8215 ;;
8216 esac |
8217 sort
8218) |
8219 sed '
8220 /^ac_cv_env_/b end
8221 t clear
8222 :clear
8223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8224 t end
8225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8226 :end' >>confcache
8227if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8228 if test -w "$cache_file"; then
8229 test "x$cache_file" != "x/dev/null" &&
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8231$as_echo "$as_me: updating cache $cache_file" >&6;}
8232 cat confcache >$cache_file
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8235$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8236 fi
8237fi
8238rm -f confcache
8239
8240test "x$prefix" = xNONE && prefix=$ac_default_prefix
8241# Let make expand exec_prefix.
8242test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8243
8244DEFS=-DHAVE_CONFIG_H
8245
8246ac_libobjs=
8247ac_ltlibobjs=
8248for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8249 # 1. Remove the extension, and $U if already installed.
8250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8253 # will be set to the directory where LIBOBJS objects are built.
8254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8256done
8257LIBOBJS=$ac_libobjs
8258
8259LTLIBOBJS=$ac_ltlibobjs
8260
8261
8262if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8263 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8264Usually this means the macro was only invoked conditionally." "$LINENO" 5
8265fi
8266if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
8267 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
8268Usually this means the macro was only invoked conditionally." "$LINENO" 5
8269fi
8270if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
8271 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
8272Usually this means the macro was only invoked conditionally." "$LINENO" 5
8273fi
8274if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
8275 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
8276Usually this means the macro was only invoked conditionally." "$LINENO" 5
8277fi
8278
8279 gl_libobjs=
8280 gl_ltlibobjs=
8281 if test -n "$gl_LIBOBJS"; then
8282 # Remove the extension.
8283 sed_drop_objext='s/\.o$//;s/\.obj$//'
8284 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8285 gl_libobjs="$gl_libobjs $i.$ac_objext"
8286 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
8287 done
8288 fi
8289 gl_LIBOBJS=$gl_libobjs
8290
8291 gl_LTLIBOBJS=$gl_ltlibobjs
8292
8293
8294
8295 gltests_libobjs=
8296 gltests_ltlibobjs=
8297 if test -n "$gltests_LIBOBJS"; then
8298 # Remove the extension.
8299 sed_drop_objext='s/\.o$//;s/\.obj$//'
8300 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8301 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
8302 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
8303 done
8304 fi
8305 gltests_LIBOBJS=$gltests_libobjs
8306
8307 gltests_LTLIBOBJS=$gltests_ltlibobjs
8308
8309
8310if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8311 as_fn_error "conditional \"AMDEP\" was never defined.
8312Usually this means the macro was only invoked conditionally." "$LINENO" 5
8313fi
8314if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8315 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8316Usually this means the macro was only invoked conditionally." "$LINENO" 5
8317fi
8318 if test -n "$EXEEXT"; then
8319 am__EXEEXT_TRUE=
8320 am__EXEEXT_FALSE='#'
8321else
8322 am__EXEEXT_TRUE='#'
8323 am__EXEEXT_FALSE=
8324fi
8325
8326
8327: ${CONFIG_STATUS=./config.status}
8328ac_write_fail=0
8329ac_clean_files_save=$ac_clean_files
8330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8333as_write_fail=0
8334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8335#! $SHELL
8336# Generated by $as_me.
8337# Run this file to recreate the current configuration.
8338# Compiler output produced by configure, useful for debugging
8339# configure, is in config.log if it exists.
8340
8341debug=false
8342ac_cs_recheck=false
8343ac_cs_silent=false
8344
8345SHELL=\${CONFIG_SHELL-$SHELL}
8346export SHELL
8347_ASEOF
8348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8349## -------------------- ##
8350## M4sh Initialization. ##
8351## -------------------- ##
8352
8353# Be more Bourne compatible
8354DUALCASE=1; export DUALCASE # for MKS sh
8355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8356 emulate sh
8357 NULLCMD=:
8358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8359 # is contrary to our usage. Disable this feature.
8360 alias -g '${1+"$@"}'='"$@"'
8361 setopt NO_GLOB_SUBST
8362else
8363 case `(set -o) 2>/dev/null` in #(
8364 *posix*) :
8365 set -o posix ;; #(
8366 *) :
8367 ;;
8368esac
8369fi
8370
8371
8372as_nl='
8373'
8374export as_nl
8375# Printing a long string crashes Solaris 7 /usr/bin/printf.
8376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8379# Prefer a ksh shell builtin over an external printf program on Solaris,
8380# but without wasting forks for bash or zsh.
8381if test -z "$BASH_VERSION$ZSH_VERSION" \
8382 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8383 as_echo='print -r --'
8384 as_echo_n='print -rn --'
8385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8386 as_echo='printf %s\n'
8387 as_echo_n='printf %s'
8388else
8389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8391 as_echo_n='/usr/ucb/echo -n'
8392 else
8393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8394 as_echo_n_body='eval
8395 arg=$1;
8396 case $arg in #(
8397 *"$as_nl"*)
8398 expr "X$arg" : "X\\(.*\\)$as_nl";
8399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8400 esac;
8401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8402 '
8403 export as_echo_n_body
8404 as_echo_n='sh -c $as_echo_n_body as_echo'
8405 fi
8406 export as_echo_body
8407 as_echo='sh -c $as_echo_body as_echo'
8408fi
8409
8410# The user is always right.
8411if test "${PATH_SEPARATOR+set}" != set; then
8412 PATH_SEPARATOR=:
8413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8415 PATH_SEPARATOR=';'
8416 }
8417fi
8418
8419
8420# IFS
8421# We need space, tab and new line, in precisely that order. Quoting is
8422# there to prevent editors from complaining about space-tab.
8423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8424# splitting by setting IFS to empty value.)
8425IFS=" "" $as_nl"
8426
8427# Find who we are. Look in the path if we contain no directory separator.
8428case $0 in #((
8429 *[\\/]* ) as_myself=$0 ;;
8430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8436 done
8437IFS=$as_save_IFS
8438
8439 ;;
8440esac
8441# We did not find ourselves, most probably we were run as `sh COMMAND'
8442# in which case we are not to be found in the path.
8443if test "x$as_myself" = x; then
8444 as_myself=$0
8445fi
8446if test ! -f "$as_myself"; then
8447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8448 exit 1
8449fi
8450
8451# Unset variables that we do not need and which cause bugs (e.g. in
8452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8453# suppresses any "Segmentation fault" message there. '((' could
8454# trigger a bug in pdksh 5.2.14.
8455for as_var in BASH_ENV ENV MAIL MAILPATH
8456do eval test x\${$as_var+set} = xset \
8457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8458done
8459PS1='$ '
8460PS2='> '
8461PS4='+ '
8462
8463# NLS nuisances.
8464LC_ALL=C
8465export LC_ALL
8466LANGUAGE=C
8467export LANGUAGE
8468
8469# CDPATH.
8470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8471
8472
8473# as_fn_error ERROR [LINENO LOG_FD]
8474# ---------------------------------
8475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8477# script with status $?, using 1 if that was 0.
8478as_fn_error ()
8479{
8480 as_status=$?; test $as_status -eq 0 && as_status=1
8481 if test "$3"; then
8482 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8484 fi
8485 $as_echo "$as_me: error: $1" >&2
8486 as_fn_exit $as_status
8487} # as_fn_error
8488
8489
8490# as_fn_set_status STATUS
8491# -----------------------
8492# Set $? to STATUS, without forking.
8493as_fn_set_status ()
8494{
8495 return $1
8496} # as_fn_set_status
8497
8498# as_fn_exit STATUS
8499# -----------------
8500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8501as_fn_exit ()
8502{
8503 set +e
8504 as_fn_set_status $1
8505 exit $1
8506} # as_fn_exit
8507
8508# as_fn_unset VAR
8509# ---------------
8510# Portably unset VAR.
8511as_fn_unset ()
8512{
8513 { eval $1=; unset $1;}
8514}
8515as_unset=as_fn_unset
8516# as_fn_append VAR VALUE
8517# ----------------------
8518# Append the text in VALUE to the end of the definition contained in VAR. Take
8519# advantage of any shell optimizations that allow amortized linear growth over
8520# repeated appends, instead of the typical quadratic growth present in naive
8521# implementations.
8522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8523 eval 'as_fn_append ()
8524 {
8525 eval $1+=\$2
8526 }'
8527else
8528 as_fn_append ()
8529 {
8530 eval $1=\$$1\$2
8531 }
8532fi # as_fn_append
8533
8534# as_fn_arith ARG...
8535# ------------------
8536# Perform arithmetic evaluation on the ARGs, and store the result in the
8537# global $as_val. Take advantage of shells that can avoid forks. The arguments
8538# must be portable across $(()) and expr.
8539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8540 eval 'as_fn_arith ()
8541 {
8542 as_val=$(( $* ))
8543 }'
8544else
8545 as_fn_arith ()
8546 {
8547 as_val=`expr "$@" || test $? -eq 1`
8548 }
8549fi # as_fn_arith
8550
8551
8552if expr a : '\(a\)' >/dev/null 2>&1 &&
8553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8554 as_expr=expr
8555else
8556 as_expr=false
8557fi
8558
8559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8560 as_basename=basename
8561else
8562 as_basename=false
8563fi
8564
8565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8566 as_dirname=dirname
8567else
8568 as_dirname=false
8569fi
8570
8571as_me=`$as_basename -- "$0" ||
8572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8573 X"$0" : 'X\(//\)$' \| \
8574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8575$as_echo X/"$0" |
8576 sed '/^.*\/\([^/][^/]*\)\/*$/{
8577 s//\1/
8578 q
8579 }
8580 /^X\/\(\/\/\)$/{
8581 s//\1/
8582 q
8583 }
8584 /^X\/\(\/\).*/{
8585 s//\1/
8586 q
8587 }
8588 s/.*/./; q'`
8589
8590# Avoid depending upon Character Ranges.
8591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8594as_cr_digits='0123456789'
8595as_cr_alnum=$as_cr_Letters$as_cr_digits
8596
8597ECHO_C= ECHO_N= ECHO_T=
8598case `echo -n x` in #(((((
8599-n*)
8600 case `echo 'xy\c'` in
8601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8602 xy) ECHO_C='\c';;
8603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8604 ECHO_T=' ';;
8605 esac;;
8606*)
8607 ECHO_N='-n';;
8608esac
8609
8610rm -f conf$$ conf$$.exe conf$$.file
8611if test -d conf$$.dir; then
8612 rm -f conf$$.dir/conf$$.file
8613else
8614 rm -f conf$$.dir
8615 mkdir conf$$.dir 2>/dev/null
8616fi
8617if (echo >conf$$.file) 2>/dev/null; then
8618 if ln -s conf$$.file conf$$ 2>/dev/null; then
8619 as_ln_s='ln -s'
8620 # ... but there are two gotchas:
8621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8623 # In both cases, we have to default to `cp -p'.
8624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8625 as_ln_s='cp -p'
8626 elif ln conf$$.file conf$$ 2>/dev/null; then
8627 as_ln_s=ln
8628 else
8629 as_ln_s='cp -p'
8630 fi
8631else
8632 as_ln_s='cp -p'
8633fi
8634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8635rmdir conf$$.dir 2>/dev/null
8636
8637
8638# as_fn_mkdir_p
8639# -------------
8640# Create "$as_dir" as a directory, including parents if necessary.
8641as_fn_mkdir_p ()
8642{
8643
8644 case $as_dir in #(
8645 -*) as_dir=./$as_dir;;
8646 esac
8647 test -d "$as_dir" || eval $as_mkdir_p || {
8648 as_dirs=
8649 while :; do
8650 case $as_dir in #(
8651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8652 *) as_qdir=$as_dir;;
8653 esac
8654 as_dirs="'$as_qdir' $as_dirs"
8655 as_dir=`$as_dirname -- "$as_dir" ||
8656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8657 X"$as_dir" : 'X\(//\)[^/]' \| \
8658 X"$as_dir" : 'X\(//\)$' \| \
8659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8660$as_echo X"$as_dir" |
8661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8662 s//\1/
8663 q
8664 }
8665 /^X\(\/\/\)[^/].*/{
8666 s//\1/
8667 q
8668 }
8669 /^X\(\/\/\)$/{
8670 s//\1/
8671 q
8672 }
8673 /^X\(\/\).*/{
8674 s//\1/
8675 q
8676 }
8677 s/.*/./; q'`
8678 test -d "$as_dir" && break
8679 done
8680 test -z "$as_dirs" || eval "mkdir $as_dirs"
8681 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8682
8683
8684} # as_fn_mkdir_p
8685if mkdir -p . 2>/dev/null; then
8686 as_mkdir_p='mkdir -p "$as_dir"'
8687else
8688 test -d ./-p && rmdir ./-p
8689 as_mkdir_p=false
8690fi
8691
8692if test -x / >/dev/null 2>&1; then
8693 as_test_x='test -x'
8694else
8695 if ls -dL / >/dev/null 2>&1; then
8696 as_ls_L_option=L
8697 else
8698 as_ls_L_option=
8699 fi
8700 as_test_x='
8701 eval sh -c '\''
8702 if test -d "$1"; then
8703 test -d "$1/.";
8704 else
8705 case $1 in #(
8706 -*)set "./$1";;
8707 esac;
8708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8709 ???[sx]*):;;*)false;;esac;fi
8710 '\'' sh
8711 '
8712fi
8713as_executable_p=$as_test_x
8714
8715# Sed expression to map a string onto a valid CPP name.
8716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8717
8718# Sed expression to map a string onto a valid variable name.
8719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8720
8721
8722exec 6>&1
8723## ----------------------------------- ##
8724## Main body of $CONFIG_STATUS script. ##
8725## ----------------------------------- ##
8726_ASEOF
8727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8728
8729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8730# Save the log message, to keep $0 and so on meaningful, and to
8731# report actual input values of CONFIG_FILES etc. instead of their
8732# values after options handling.
8733ac_log="
8734This file was extended by $as_me, which was
8735generated by GNU Autoconf 2.64. Invocation command line was
8736
8737 CONFIG_FILES = $CONFIG_FILES
8738 CONFIG_HEADERS = $CONFIG_HEADERS
8739 CONFIG_LINKS = $CONFIG_LINKS
8740 CONFIG_COMMANDS = $CONFIG_COMMANDS
8741 $ $0 $@
8742
8743on `(hostname || uname -n) 2>/dev/null | sed 1q`
8744"
8745
8746_ACEOF
8747
8748case $ac_config_files in *"
8749"*) set x $ac_config_files; shift; ac_config_files=$*;;
8750esac
8751
8752case $ac_config_headers in *"
8753"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8754esac
8755
8756
8757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8758# Files that config.status was made for.
8759config_files="$ac_config_files"
8760config_headers="$ac_config_headers"
8761config_commands="$ac_config_commands"
8762
8763_ACEOF
8764
8765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8766ac_cs_usage="\
8767\`$as_me' instantiates files and other configuration actions
8768from templates according to the current configuration. Unless the files
8769and actions are specified as TAGs, all are instantiated by default.
8770
8771Usage: $0 [OPTION]... [TAG]...
8772
8773 -h, --help print this help, then exit
8774 -V, --version print version number and configuration settings, then exit
8775 -q, --quiet, --silent
8776 do not print progress messages
8777 -d, --debug don't remove temporary files
8778 --recheck update $as_me by reconfiguring in the same conditions
8779 --file=FILE[:TEMPLATE]
8780 instantiate the configuration file FILE
8781 --header=FILE[:TEMPLATE]
8782 instantiate the configuration header FILE
8783
8784Configuration files:
8785$config_files
8786
8787Configuration headers:
8788$config_headers
8789
8790Configuration commands:
8791$config_commands
8792
8793Report bugs to the package provider."
8794
8795_ACEOF
8796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8797ac_cs_version="\\
8798config.status
8799configured by $0, generated by GNU Autoconf 2.64,
8800 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8801
8802Copyright (C) 2009 Free Software Foundation, Inc.
8803This config.status script is free software; the Free Software Foundation
8804gives unlimited permission to copy, distribute and modify it."
8805
8806ac_pwd='$ac_pwd'
8807srcdir='$srcdir'
8808INSTALL='$INSTALL'
8809MKDIR_P='$MKDIR_P'
8810AWK='$AWK'
8811test -n "\$AWK" || AWK=awk
8812_ACEOF
8813
8814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8815# The default lists apply if the user does not specify any file.
8816ac_need_defaults=:
8817while test $# != 0
8818do
8819 case $1 in
8820 --*=*)
8821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8823 ac_shift=:
8824 ;;
8825 *)
8826 ac_option=$1
8827 ac_optarg=$2
8828 ac_shift=shift
8829 ;;
8830 esac
8831
8832 case $ac_option in
8833 # Handling of the options.
8834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8835 ac_cs_recheck=: ;;
8836 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8837 $as_echo "$ac_cs_version"; exit ;;
8838 --debug | --debu | --deb | --de | --d | -d )
8839 debug=: ;;
8840 --file | --fil | --fi | --f )
8841 $ac_shift
8842 case $ac_optarg in
8843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8844 esac
8845 as_fn_append CONFIG_FILES " '$ac_optarg'"
8846 ac_need_defaults=false;;
8847 --header | --heade | --head | --hea )
8848 $ac_shift
8849 case $ac_optarg in
8850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8851 esac
8852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8853 ac_need_defaults=false;;
8854 --he | --h)
8855 # Conflict between --help and --header
8856 as_fn_error "ambiguous option: \`$1'
8857Try \`$0 --help' for more information.";;
8858 --help | --hel | -h )
8859 $as_echo "$ac_cs_usage"; exit ;;
8860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8862 ac_cs_silent=: ;;
8863
8864 # This is an error.
8865 -*) as_fn_error "unrecognized option: \`$1'
8866Try \`$0 --help' for more information." ;;
8867
8868 *) as_fn_append ac_config_targets " $1"
8869 ac_need_defaults=false ;;
8870
8871 esac
8872 shift
8873done
8874
8875ac_configure_extra_args=
8876
8877if $ac_cs_silent; then
8878 exec 6>/dev/null
8879 ac_configure_extra_args="$ac_configure_extra_args --silent"
8880fi
8881
8882_ACEOF
8883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8884if \$ac_cs_recheck; then
8885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8886 shift
8887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8888 CONFIG_SHELL='$SHELL'
8889 export CONFIG_SHELL
8890 exec "\$@"
8891fi
8892
8893_ACEOF
8894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8895exec 5>>config.log
8896{
8897 echo
8898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8899## Running $as_me. ##
8900_ASBOX
8901 $as_echo "$ac_log"
8902} >&5
8903
8904_ACEOF
8905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8906#
8907# INIT-COMMANDS
8908#
8909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8910
8911_ACEOF
8912
8913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8914
8915# Handling of arguments.
8916for ac_config_target in $ac_config_targets
8917do
8918 case $ac_config_target in
8919 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8921 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8922 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
8923 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8924
8925 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8926 esac
8927done
8928
8929
8930# If the user did not use the arguments to specify the items to instantiate,
8931# then the envvar interface is used. Set only those that are not.
8932# We use the long form for the default assignment because of an extremely
8933# bizarre bug on SunOS 4.1.3.
8934if $ac_need_defaults; then
8935 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8936 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8937 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8938fi
8939
8940# Have a temporary directory for convenience. Make it in the build tree
8941# simply because there is no reason against having it here, and in addition,
8942# creating and moving files from /tmp can sometimes cause problems.
8943# Hook for its removal unless debugging.
8944# Note that there is a small window in which the directory will not be cleaned:
8945# after its creation but before its name has been assigned to `$tmp'.
8946$debug ||
8947{
8948 tmp=
8949 trap 'exit_status=$?
8950 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8951' 0
8952 trap 'as_fn_exit 1' 1 2 13 15
8953}
8954# Create a (secure) tmp directory for tmp files.
8955
8956{
8957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8958 test -n "$tmp" && test -d "$tmp"
8959} ||
8960{
8961 tmp=./conf$$-$RANDOM
8962 (umask 077 && mkdir "$tmp")
8963} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8964
8965# Set up the scripts for CONFIG_FILES section.
8966# No need to generate them if there are no CONFIG_FILES.
8967# This happens for instance with `./config.status config.h'.
8968if test -n "$CONFIG_FILES"; then
8969
8970
8971ac_cr=`echo X | tr X '\015'`
8972# On cygwin, bash can eat \r inside `` if the user requested igncr.
8973# But we know of no other shell where ac_cr would be empty at this
8974# point, so we can use a bashism as a fallback.
8975if test "x$ac_cr" = x; then
8976 eval ac_cr=\$\'\\r\'
8977fi
8978ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8979if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8980 ac_cs_awk_cr='\r'
8981else
8982 ac_cs_awk_cr=$ac_cr
8983fi
8984
8985echo 'BEGIN {' >"$tmp/subs1.awk" &&
8986_ACEOF
8987
8988
8989{
8990 echo "cat >conf$$subs.awk <<_ACEOF" &&
8991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8992 echo "_ACEOF"
8993} >conf$$subs.sh ||
8994 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8995ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8996ac_delim='%!_!# '
8997for ac_last_try in false false false false false :; do
8998 . ./conf$$subs.sh ||
8999 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9000
9001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9002 if test $ac_delim_n = $ac_delim_num; then
9003 break
9004 elif $ac_last_try; then
9005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9006 else
9007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9008 fi
9009done
9010rm -f conf$$subs.sh
9011
9012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9013cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9014_ACEOF
9015sed -n '
9016h
9017s/^/S["/; s/!.*/"]=/
9018p
9019g
9020s/^[^!]*!//
9021:repl
9022t repl
9023s/'"$ac_delim"'$//
9024t delim
9025:nl
9026h
9027s/\(.\{148\}\).*/\1/
9028t more1
9029s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9030p
9031n
9032b repl
9033:more1
9034s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9035p
9036g
9037s/.\{148\}//
9038t nl
9039:delim
9040h
9041s/\(.\{148\}\).*/\1/
9042t more2
9043s/["\\]/\\&/g; s/^/"/; s/$/"/
9044p
9045b
9046:more2
9047s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9048p
9049g
9050s/.\{148\}//
9051t delim
9052' <conf$$subs.awk | sed '
9053/^[^""]/{
9054 N
9055 s/\n//
9056}
9057' >>$CONFIG_STATUS || ac_write_fail=1
9058rm -f conf$$subs.awk
9059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9060_ACAWK
9061cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9062 for (key in S) S_is_set[key] = 1
9063 FS = "\a"
9064
9065}
9066{
9067 line = $ 0
9068 nfields = split(line, field, "@")
9069 substed = 0
9070 len = length(field[1])
9071 for (i = 2; i < nfields; i++) {
9072 key = field[i]
9073 keylen = length(key)
9074 if (S_is_set[key]) {
9075 value = S[key]
9076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9077 len += length(value) + length(field[++i])
9078 substed = 1
9079 } else
9080 len += 1 + keylen
9081 }
9082
9083 print line
9084}
9085
9086_ACAWK
9087_ACEOF
9088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9089if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9091else
9092 cat
9093fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9094 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9095_ACEOF
9096
9097# VPATH may cause trouble with some makes, so we remove $(srcdir),
9098# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9099# trailing colons and then remove the whole line if VPATH becomes empty
9100# (actually we leave an empty line to preserve line numbers).
9101if test "x$srcdir" = x.; then
9102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9103s/:*\$(srcdir):*/:/
9104s/:*\${srcdir}:*/:/
9105s/:*@srcdir@:*/:/
9106s/^\([^=]*=[ ]*\):*/\1/
9107s/:*$//
9108s/^[^=]*=[ ]*$//
9109}'
9110fi
9111
9112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9113fi # test -n "$CONFIG_FILES"
9114
9115# Set up the scripts for CONFIG_HEADERS section.
9116# No need to generate them if there are no CONFIG_HEADERS.
9117# This happens for instance with `./config.status Makefile'.
9118if test -n "$CONFIG_HEADERS"; then
9119cat >"$tmp/defines.awk" <<\_ACAWK ||
9120BEGIN {
9121_ACEOF
9122
9123# Transform confdefs.h into an awk script `defines.awk', embedded as
9124# here-document in config.status, that substitutes the proper values into
9125# config.h.in to produce config.h.
9126
9127# Create a delimiter string that does not exist in confdefs.h, to ease
9128# handling of long lines.
9129ac_delim='%!_!# '
9130for ac_last_try in false false :; do
9131 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9132 if test -z "$ac_t"; then
9133 break
9134 elif $ac_last_try; then
9135 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9136 else
9137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9138 fi
9139done
9140
9141# For the awk script, D is an array of macro values keyed by name,
9142# likewise P contains macro parameters if any. Preserve backslash
9143# newline sequences.
9144
9145ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9146sed -n '
9147s/.\{148\}/&'"$ac_delim"'/g
9148t rset
9149:rset
9150s/^[ ]*#[ ]*define[ ][ ]*/ /
9151t def
9152d
9153:def
9154s/\\$//
9155t bsnl
9156s/["\\]/\\&/g
9157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9158D["\1"]=" \3"/p
9159s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9160d
9161:bsnl
9162s/["\\]/\\&/g
9163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9164D["\1"]=" \3\\\\\\n"\\/p
9165t cont
9166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9167t cont
9168d
9169:cont
9170n
9171s/.\{148\}/&'"$ac_delim"'/g
9172t clear
9173:clear
9174s/\\$//
9175t bsnlc
9176s/["\\]/\\&/g; s/^/"/; s/$/"/p
9177d
9178:bsnlc
9179s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9180b cont
9181' <confdefs.h | sed '
9182s/'"$ac_delim"'/"\\\
9183"/g' >>$CONFIG_STATUS || ac_write_fail=1
9184
9185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9186 for (key in D) D_is_set[key] = 1
9187 FS = "\a"
9188}
9189/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9190 line = \$ 0
9191 split(line, arg, " ")
9192 if (arg[1] == "#") {
9193 defundef = arg[2]
9194 mac1 = arg[3]
9195 } else {
9196 defundef = substr(arg[1], 2)
9197 mac1 = arg[2]
9198 }
9199 split(mac1, mac2, "(") #)
9200 macro = mac2[1]
9201 prefix = substr(line, 1, index(line, defundef) - 1)
9202 if (D_is_set[macro]) {
9203 # Preserve the white space surrounding the "#".
9204 print prefix "define", macro P[macro] D[macro]
9205 next
9206 } else {
9207 # Replace #undef with comments. This is necessary, for example,
9208 # in the case of _POSIX_SOURCE, which is predefined and required
9209 # on some systems where configure will not decide to define it.
9210 if (defundef == "undef") {
9211 print "/*", prefix defundef, macro, "*/"
9212 next
9213 }
9214 }
9215}
9216{ print }
9217_ACAWK
9218_ACEOF
9219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9220 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9221fi # test -n "$CONFIG_HEADERS"
9222
9223
9224eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9225shift
9226for ac_tag
9227do
9228 case $ac_tag in
9229 :[FHLC]) ac_mode=$ac_tag; continue;;
9230 esac
9231 case $ac_mode$ac_tag in
9232 :[FHL]*:*);;
9233 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9234 :[FH]-) ac_tag=-:-;;
9235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9236 esac
9237 ac_save_IFS=$IFS
9238 IFS=:
9239 set x $ac_tag
9240 IFS=$ac_save_IFS
9241 shift
9242 ac_file=$1
9243 shift
9244
9245 case $ac_mode in
9246 :L) ac_source=$1;;
9247 :[FH])
9248 ac_file_inputs=
9249 for ac_f
9250 do
9251 case $ac_f in
9252 -) ac_f="$tmp/stdin";;
9253 *) # Look for the file first in the build tree, then in the source tree
9254 # (if the path is not absolute). The absolute path cannot be DOS-style,
9255 # because $ac_f cannot contain `:'.
9256 test -f "$ac_f" ||
9257 case $ac_f in
9258 [\\/$]*) false;;
9259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9260 esac ||
9261 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9262 esac
9263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9264 as_fn_append ac_file_inputs " '$ac_f'"
9265 done
9266
9267 # Let's still pretend it is `configure' which instantiates (i.e., don't
9268 # use $as_me), people would be surprised to read:
9269 # /* config.h. Generated by config.status. */
9270 configure_input='Generated from '`
9271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9272 `' by configure.'
9273 if test x"$ac_file" != x-; then
9274 configure_input="$ac_file. $configure_input"
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9276$as_echo "$as_me: creating $ac_file" >&6;}
9277 fi
9278 # Neutralize special characters interpreted by sed in replacement strings.
9279 case $configure_input in #(
9280 *\&* | *\|* | *\\* )
9281 ac_sed_conf_input=`$as_echo "$configure_input" |
9282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9283 *) ac_sed_conf_input=$configure_input;;
9284 esac
9285
9286 case $ac_tag in
9287 *:-:* | *:-) cat >"$tmp/stdin" \
9288 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9289 esac
9290 ;;
9291 esac
9292
9293 ac_dir=`$as_dirname -- "$ac_file" ||
9294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9295 X"$ac_file" : 'X\(//\)[^/]' \| \
9296 X"$ac_file" : 'X\(//\)$' \| \
9297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9298$as_echo X"$ac_file" |
9299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9300 s//\1/
9301 q
9302 }
9303 /^X\(\/\/\)[^/].*/{
9304 s//\1/
9305 q
9306 }
9307 /^X\(\/\/\)$/{
9308 s//\1/
9309 q
9310 }
9311 /^X\(\/\).*/{
9312 s//\1/
9313 q
9314 }
9315 s/.*/./; q'`
9316 as_dir="$ac_dir"; as_fn_mkdir_p
9317 ac_builddir=.
9318
9319case "$ac_dir" in
9320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9321*)
9322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9323 # A ".." for each directory in $ac_dir_suffix.
9324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9325 case $ac_top_builddir_sub in
9326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9328 esac ;;
9329esac
9330ac_abs_top_builddir=$ac_pwd
9331ac_abs_builddir=$ac_pwd$ac_dir_suffix
9332# for backward compatibility:
9333ac_top_builddir=$ac_top_build_prefix
9334
9335case $srcdir in
9336 .) # We are building in place.
9337 ac_srcdir=.
9338 ac_top_srcdir=$ac_top_builddir_sub
9339 ac_abs_top_srcdir=$ac_pwd ;;
9340 [\\/]* | ?:[\\/]* ) # Absolute name.
9341 ac_srcdir=$srcdir$ac_dir_suffix;
9342 ac_top_srcdir=$srcdir
9343 ac_abs_top_srcdir=$srcdir ;;
9344 *) # Relative name.
9345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9346 ac_top_srcdir=$ac_top_build_prefix$srcdir
9347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9348esac
9349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9350
9351
9352 case $ac_mode in
9353 :F)
9354 #
9355 # CONFIG_FILE
9356 #
9357
9358 case $INSTALL in
9359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9361 esac
9362 ac_MKDIR_P=$MKDIR_P
9363 case $MKDIR_P in
9364 [\\/$]* | ?:[\\/]* ) ;;
9365 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9366 esac
9367_ACEOF
9368
9369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9370# If the template does not know about datarootdir, expand it.
9371# FIXME: This hack should be removed a few years after 2.60.
9372ac_datarootdir_hack=; ac_datarootdir_seen=
9373ac_sed_dataroot='
9374/datarootdir/ {
9375 p
9376 q
9377}
9378/@datadir@/p
9379/@docdir@/p
9380/@infodir@/p
9381/@localedir@/p
9382/@mandir@/p'
9383case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9384*datarootdir*) ac_datarootdir_seen=yes;;
9385*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9387$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9388_ACEOF
9389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9390 ac_datarootdir_hack='
9391 s&@datadir@&$datadir&g
9392 s&@docdir@&$docdir&g
9393 s&@infodir@&$infodir&g
9394 s&@localedir@&$localedir&g
9395 s&@mandir@&$mandir&g
9396 s&\\\${datarootdir}&$datarootdir&g' ;;
9397esac
9398_ACEOF
9399
9400# Neutralize VPATH when `$srcdir' = `.'.
9401# Shell code in configure.ac might set extrasub.
9402# FIXME: do we really want to maintain this feature?
9403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9404ac_sed_extra="$ac_vpsub
9405$extrasub
9406_ACEOF
9407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9408:t
9409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9410s|@configure_input@|$ac_sed_conf_input|;t t
9411s&@top_builddir@&$ac_top_builddir_sub&;t t
9412s&@top_build_prefix@&$ac_top_build_prefix&;t t
9413s&@srcdir@&$ac_srcdir&;t t
9414s&@abs_srcdir@&$ac_abs_srcdir&;t t
9415s&@top_srcdir@&$ac_top_srcdir&;t t
9416s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9417s&@builddir@&$ac_builddir&;t t
9418s&@abs_builddir@&$ac_abs_builddir&;t t
9419s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9420s&@INSTALL@&$ac_INSTALL&;t t
9421s&@MKDIR_P@&$ac_MKDIR_P&;t t
9422$ac_datarootdir_hack
9423"
9424eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9425 || as_fn_error "could not create $ac_file" "$LINENO" 5
9426
9427test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9428 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9431which seems to be undefined. Please make sure it is defined." >&5
9432$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9433which seems to be undefined. Please make sure it is defined." >&2;}
9434
9435 rm -f "$tmp/stdin"
9436 case $ac_file in
9437 -) cat "$tmp/out" && rm -f "$tmp/out";;
9438 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9439 esac \
9440 || as_fn_error "could not create $ac_file" "$LINENO" 5
9441 ;;
9442 :H)
9443 #
9444 # CONFIG_HEADER
9445 #
9446 if test x"$ac_file" != x-; then
9447 {
9448 $as_echo "/* $configure_input */" \
9449 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9450 } >"$tmp/config.h" \
9451 || as_fn_error "could not create $ac_file" "$LINENO" 5
9452 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9454$as_echo "$as_me: $ac_file is unchanged" >&6;}
9455 else
9456 rm -f "$ac_file"
9457 mv "$tmp/config.h" "$ac_file" \
9458 || as_fn_error "could not create $ac_file" "$LINENO" 5
9459 fi
9460 else
9461 $as_echo "/* $configure_input */" \
9462 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9463 || as_fn_error "could not create -" "$LINENO" 5
9464 fi
9465# Compute "$ac_file"'s index in $config_headers.
9466_am_arg="$ac_file"
9467_am_stamp_count=1
9468for _am_header in $config_headers :; do
9469 case $_am_header in
9470 $_am_arg | $_am_arg:* )
9471 break ;;
9472 * )
9473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9474 esac
9475done
9476echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9477$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9478 X"$_am_arg" : 'X\(//\)[^/]' \| \
9479 X"$_am_arg" : 'X\(//\)$' \| \
9480 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9481$as_echo X"$_am_arg" |
9482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9483 s//\1/
9484 q
9485 }
9486 /^X\(\/\/\)[^/].*/{
9487 s//\1/
9488 q
9489 }
9490 /^X\(\/\/\)$/{
9491 s//\1/
9492 q
9493 }
9494 /^X\(\/\).*/{
9495 s//\1/
9496 q
9497 }
9498 s/.*/./; q'`/stamp-h$_am_stamp_count
9499 ;;
9500
9501 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9502$as_echo "$as_me: executing $ac_file commands" >&6;}
9503 ;;
9504 esac
9505
9506
9507 case $ac_file$ac_mode in
9508 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9509 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9510 # are listed without --file. Let's play safe and only enable the eval
9511 # if we detect the quoting.
9512 case $CONFIG_FILES in
9513 *\'*) eval set x "$CONFIG_FILES" ;;
9514 *) set x $CONFIG_FILES ;;
9515 esac
9516 shift
9517 for mf
9518 do
9519 # Strip MF so we end up with the name of the file.
9520 mf=`echo "$mf" | sed -e 's/:.*$//'`
9521 # Check whether this is an Automake generated Makefile or not.
9522 # We used to match only the files named `Makefile.in', but
9523 # some people rename them; so instead we look at the file content.
9524 # Grep'ing the first line is not enough: some people post-process
9525 # each Makefile.in and add a new line on top of each file to say so.
9526 # Grep'ing the whole file is not good either: AIX grep has a line
9527 # limit of 2048, but all sed's we know have understand at least 4000.
9528 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9529 dirpart=`$as_dirname -- "$mf" ||
9530$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9531 X"$mf" : 'X\(//\)[^/]' \| \
9532 X"$mf" : 'X\(//\)$' \| \
9533 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9534$as_echo X"$mf" |
9535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9536 s//\1/
9537 q
9538 }
9539 /^X\(\/\/\)[^/].*/{
9540 s//\1/
9541 q
9542 }
9543 /^X\(\/\/\)$/{
9544 s//\1/
9545 q
9546 }
9547 /^X\(\/\).*/{
9548 s//\1/
9549 q
9550 }
9551 s/.*/./; q'`
9552 else
9553 continue
9554 fi
9555 # Extract the definition of DEPDIR, am__include, and am__quote
9556 # from the Makefile without running `make'.
9557 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9558 test -z "$DEPDIR" && continue
9559 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9560 test -z "am__include" && continue
9561 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9562 # When using ansi2knr, U may be empty or an underscore; expand it
9563 U=`sed -n 's/^U = //p' < "$mf"`
9564 # Find all dependency output files, they are included files with
9565 # $(DEPDIR) in their names. We invoke sed twice because it is the
9566 # simplest approach to changing $(DEPDIR) to its actual value in the
9567 # expansion.
9568 for file in `sed -n "
9569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9571 # Make sure the directory exists.
9572 test -f "$dirpart/$file" && continue
9573 fdir=`$as_dirname -- "$file" ||
9574$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9575 X"$file" : 'X\(//\)[^/]' \| \
9576 X"$file" : 'X\(//\)$' \| \
9577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9578$as_echo X"$file" |
9579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9580 s//\1/
9581 q
9582 }
9583 /^X\(\/\/\)[^/].*/{
9584 s//\1/
9585 q
9586 }
9587 /^X\(\/\/\)$/{
9588 s//\1/
9589 q
9590 }
9591 /^X\(\/\).*/{
9592 s//\1/
9593 q
9594 }
9595 s/.*/./; q'`
9596 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9597 # echo "creating $dirpart/$file"
9598 echo '# dummy' > "$dirpart/$file"
9599 done
9600 done
9601}
9602 ;;
9603 "default":C)
9604case x$CONFIG_HEADERS in
9605xconfig.h:config.in)
9606echo > stamp-h ;;
9607esac
9608 ;;
9609
9610 esac
9611done # for ac_tag
9612
9613
9614as_fn_exit 0
9615_ACEOF
9616ac_clean_files=$ac_clean_files_save
9617
9618test $ac_write_fail = 0 ||
9619 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9620
9621
9622# configure is writing to config.log, and then calls config.status.
9623# config.status does its own redirection, appending to config.log.
9624# Unfortunately, on DOS this fails, as config.log is still kept open
9625# by configure, so config.status won't be able to write to it; its
9626# output is simply discarded. So we exec the FD to /dev/null,
9627# effectively closing config.log, so it can be properly (re)opened and
9628# appended to by config.status. When coming back to configure, we
9629# need to make the FD available again.
9630if test "$no_create" != yes; then
9631 ac_cs_success=:
9632 ac_config_status_args=
9633 test "$silent" = yes &&
9634 ac_config_status_args="$ac_config_status_args --quiet"
9635 exec 5>/dev/null
9636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9637 exec 5>>config.log
9638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9639 # would make configure fail if this is the last instruction.
9640 $ac_cs_success || as_fn_exit $?
9641fi
9642if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9644$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9645fi
9646
9647
9648exit 0
This page took 0.375015 seconds and 4 git commands to generate.