gdb/
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101 ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test 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
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
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
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
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
207 fi; }
208 IFS=$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+"$@"}
220 fi
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
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_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.
267 as_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.
277 as_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.
327 if (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 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # 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.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # 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.
362 as_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
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_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.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_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
450 ECHO_C= ECHO_N= ECHO_T=
451 case `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';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (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
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
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 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_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.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 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.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/dummy.c"
555 # Factoring default headers for most tests.
556 ac_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
591 gl_header_list=
592 gl_func_list=
593 ac_subst_vars='am__EXEEXT_FALSE
594 am__EXEEXT_TRUE
595 gltests_LTLIBOBJS
596 gltests_LIBOBJS
597 gl_LTLIBOBJS
598 gl_LIBOBJS
599 LTLIBOBJS
600 LIBOBJS
601 LN_S
602 am__fastdepCC_FALSE
603 am__fastdepCC_TRUE
604 CCDEPMODE
605 AMDEPBACKSLASH
606 AMDEP_FALSE
607 AMDEP_TRUE
608 am__quote
609 am__include
610 DEPDIR
611 am__untar
612 am__tar
613 AMTAR
614 am__leading_dot
615 SET_MAKE
616 AWK
617 mkdir_p
618 MKDIR_P
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 NEXT_AS_FIRST_DIRECTIVE_STRING_H
638 NEXT_STRING_H
639 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
640 NEXT_STDDEF_H
641 GL_GENERATE_STDDEF_H_FALSE
642 GL_GENERATE_STDDEF_H_TRUE
643 STDDEF_H
644 HAVE_WCHAR_T
645 REPLACE_NULL
646 UNDEFINE_STRTOK_R
647 REPLACE_STRTOK_R
648 REPLACE_STRSIGNAL
649 REPLACE_STRNLEN
650 REPLACE_STRNDUP
651 REPLACE_STRNCAT
652 REPLACE_STRERROR_R
653 REPLACE_STRERROR
654 REPLACE_STRCHRNUL
655 REPLACE_STRCASESTR
656 REPLACE_STRSTR
657 REPLACE_STRDUP
658 REPLACE_STPNCPY
659 REPLACE_MEMMEM
660 REPLACE_MEMCHR
661 HAVE_STRVERSCMP
662 HAVE_DECL_STRSIGNAL
663 HAVE_DECL_STRERROR_R
664 HAVE_DECL_STRTOK_R
665 HAVE_STRCASESTR
666 HAVE_STRSEP
667 HAVE_STRPBRK
668 HAVE_DECL_STRNLEN
669 HAVE_DECL_STRNDUP
670 HAVE_DECL_STRDUP
671 HAVE_STRCHRNUL
672 HAVE_STPNCPY
673 HAVE_STPCPY
674 HAVE_RAWMEMCHR
675 HAVE_DECL_MEMRCHR
676 HAVE_MEMPCPY
677 HAVE_DECL_MEMMEM
678 HAVE_MEMCHR
679 HAVE_FFSLL
680 HAVE_FFSL
681 HAVE_MBSLEN
682 GNULIB_STRVERSCMP
683 GNULIB_STRSIGNAL
684 GNULIB_STRERROR_R
685 GNULIB_STRERROR
686 GNULIB_MBSTOK_R
687 GNULIB_MBSSEP
688 GNULIB_MBSSPN
689 GNULIB_MBSPBRK
690 GNULIB_MBSCSPN
691 GNULIB_MBSCASESTR
692 GNULIB_MBSPCASECMP
693 GNULIB_MBSNCASECMP
694 GNULIB_MBSCASECMP
695 GNULIB_MBSSTR
696 GNULIB_MBSRCHR
697 GNULIB_MBSCHR
698 GNULIB_MBSNLEN
699 GNULIB_MBSLEN
700 GNULIB_STRTOK_R
701 GNULIB_STRCASESTR
702 GNULIB_STRSTR
703 GNULIB_STRSEP
704 GNULIB_STRPBRK
705 GNULIB_STRNLEN
706 GNULIB_STRNDUP
707 GNULIB_STRNCAT
708 GNULIB_STRDUP
709 GNULIB_STRCHRNUL
710 GNULIB_STPNCPY
711 GNULIB_STPCPY
712 GNULIB_RAWMEMCHR
713 GNULIB_MEMRCHR
714 GNULIB_MEMPCPY
715 GNULIB_MEMMEM
716 GNULIB_MEMCHR
717 GNULIB_FFSLL
718 GNULIB_FFSL
719 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
720 NEXT_INTTYPES_H
721 UINT64_MAX_EQ_ULONG_MAX
722 UINT32_MAX_LT_UINTMAX_MAX
723 PRIPTR_PREFIX
724 PRI_MACROS_BROKEN
725 INT64_MAX_EQ_LONG_MAX
726 INT32_MAX_LT_INTMAX_MAX
727 REPLACE_STRTOIMAX
728 HAVE_DECL_STRTOUMAX
729 HAVE_DECL_STRTOIMAX
730 HAVE_DECL_IMAXDIV
731 HAVE_DECL_IMAXABS
732 GNULIB_STRTOUMAX
733 GNULIB_STRTOIMAX
734 GNULIB_IMAXDIV
735 GNULIB_IMAXABS
736 GL_GENERATE_STDINT_H_FALSE
737 GL_GENERATE_STDINT_H_TRUE
738 STDINT_H
739 WINT_T_SUFFIX
740 WCHAR_T_SUFFIX
741 SIG_ATOMIC_T_SUFFIX
742 SIZE_T_SUFFIX
743 PTRDIFF_T_SUFFIX
744 HAVE_SIGNED_WINT_T
745 HAVE_SIGNED_WCHAR_T
746 HAVE_SIGNED_SIG_ATOMIC_T
747 BITSIZEOF_WINT_T
748 BITSIZEOF_WCHAR_T
749 BITSIZEOF_SIG_ATOMIC_T
750 BITSIZEOF_SIZE_T
751 BITSIZEOF_PTRDIFF_T
752 APPLE_UNIVERSAL_BUILD
753 HAVE_SYS_BITYPES_H
754 HAVE_SYS_INTTYPES_H
755 HAVE_STDINT_H
756 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
757 NEXT_STDINT_H
758 PRAGMA_COLUMNS
759 PRAGMA_SYSTEM_HEADER
760 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
761 INCLUDE_NEXT
762 HAVE_SYS_TYPES_H
763 HAVE_INTTYPES_H
764 HAVE_WCHAR_H
765 HAVE_UNSIGNED_LONG_LONG_INT
766 HAVE_LONG_LONG_INT
767 GL_COND_LIBTOOL_FALSE
768 GL_COND_LIBTOOL_TRUE
769 target_os
770 target_vendor
771 target_cpu
772 target
773 RANLIB
774 ARFLAGS
775 AR
776 EGREP
777 GREP
778 CPP
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_maintainer_mode
839 enable_dependency_tracking
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_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.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
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'
1235 Try \`$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
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error "missing argument to $ac_option"
1262 fi
1263
1264 if 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
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for 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
1277 do
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"
1291 done
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.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if 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
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error "working directory cannot be determined"
1321 test "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.
1326 if 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
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if 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"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
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.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for 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}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if 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
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
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
1411 Installation 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
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine 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
1448 Program 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
1453 System 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
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462 cat <<\_ACEOF
1463
1464 Optional 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
1473 Some 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
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to the package provider.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if 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
1499 case "$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 ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $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 ;;
1528 esac
1529 ac_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
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 configure
1550 generated by GNU Autoconf 2.64
1551
1552 Copyright (C) 2009 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1557 fi
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.
1566 ac_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"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval 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
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
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.
1604 ac_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"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval 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
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
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.
1643 ac_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; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 else
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; }
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 ac_header_compiler=yes
1666 else
1667 ac_header_compiler=no
1668 fi
1669 rm -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; }
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_cpp "$LINENO"; then :
1681 ac_header_preproc=yes
1682 else
1683 ac_header_preproc=no
1684 fi
1685 rm -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?
1690 case $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 ;;
1709 esac
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 eval "$3=\$ac_header_compiler"
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 fi
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.
1729 ac_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"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval 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;;
1746 esac
1747 eval 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
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760 fi
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.
1771 ac_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; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 eval 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.
1801 ac_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"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval 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
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
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
1849 ac_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.
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 int
1858 main ()
1859 {
1860 static int test_array [1 - 2 * !(($2) >= 0)];
1861 test_array [0] = 0
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if 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
1873 int
1874 main ()
1875 {
1876 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1877 test_array [0] = 0
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=$ac_mid; break
1885 else
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
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 done
1895 else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 int
1900 main ()
1901 {
1902 static int test_array [1 - 2 * !(($2) < 0)];
1903 test_array [0] = 0
1904
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if 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
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1919 test_array [0] = 0
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_lo=$ac_mid; break
1927 else
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
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937 else
1938 ac_lo= ac_hi=
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 # Binary search between lo and hi bounds.
1944 while 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
1949 int
1950 main ()
1951 {
1952 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953 test_array [0] = 0
1954
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid
1961 else
1962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 done
1966 case $ac_lo in #((
1967 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1968 '') ac_retval=1 ;;
1969 esac
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $4
1974 static long int longval () { return $2; }
1975 static unsigned long int ulongval () { return $2; }
1976 #include <stdio.h>
1977 #include <stdlib.h>
1978 int
1979 main ()
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
2007 if ac_fn_c_try_run "$LINENO"; then :
2008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2009 else
2010 ac_retval=1
2011 fi
2012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2013 conftest.$ac_objext conftest.beam conftest.$ac_ext
2014 rm -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
2025 ac_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; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2032 else
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
2056 extern "C"
2057 #endif
2058 char $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
2063 choke me
2064 #endif
2065
2066 int
2067 main ()
2068 {
2069 return $2 ();
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2081 fi
2082 eval 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.
2092 ac_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; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main ()
2105 {
2106 #ifndef $2
2107 (void) $2;
2108 #endif
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$3=yes"
2116 else
2117 eval "$3=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 eval 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
2127 cat >config.log <<_ACEOF
2128 This file contains any messages produced by compilers while
2129 running configure, to aid debugging if configure makes a mistake.
2130
2131 It was created by $as_me, which was
2132 generated by GNU Autoconf 2.64. Invocation command line was
2133
2134 $ $0 $@
2135
2136 _ACEOF
2137 exec 5>>config.log
2138 {
2139 cat <<_ASUNAME
2140 ## --------- ##
2141 ## Platform. ##
2142 ## --------- ##
2143
2144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148 uname -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
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 $as_echo "PATH: $as_dir"
2169 done
2170 IFS=$as_save_IFS
2171
2172 } >&5
2173
2174 cat >&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.
2189 ac_configure_args=
2190 ac_configure_args0=
2191 ac_configure_args1=
2192 ac_must_keep_next=false
2193 for ac_pass in 1 2
2194 do
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
2228 done
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.
2237 trap '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
2332 for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334 done
2335 ac_signal=0
2336
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2339
2340 $as_echo "/* confdefs.h */" > confdefs.h
2341
2342 # Predefined preprocessor variables.
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2346 _ACEOF
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362 _ACEOF
2363
2364 cat >>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.
2371 ac_site_file1=NONE
2372 ac_site_file2=NONE
2373 if test -n "$CONFIG_SITE"; then
2374 ac_site_file1=$CONFIG_SITE
2375 elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378 else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381 fi
2382 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 do
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
2391 done
2392
2393 if 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
2404 else
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
2408 fi
2409
2410 gl_header_list="$gl_header_list wchar.h"
2411 gl_header_list="$gl_header_list stdint.h"
2412 gl_header_list="$gl_header_list inttypes.h"
2413 gl_header_list="$gl_header_list sys/mman.h"
2414 gl_func_list="$gl_func_list mprotect"
2415 # Check that the precious variables saved in the cache have kept the same
2416 # value.
2417 ac_cache_corrupted=false
2418 for 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
2464 done
2465 if $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
2471 fi
2472 ## -------------------- ##
2473 ## Main body of script. ##
2474 ## -------------------- ##
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483 ac_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.
2489 if test "${enable_maintainer_mode+set}" = set; then :
2490 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2491 else
2492 USE_MAINTAINER_MODE=no
2493 fi
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='#'
2500 else
2501 MAINTAINER_MODE_TRUE='#'
2502 MAINTAINER_MODE_FALSE=
2503 fi
2504
2505 MAINT=$MAINTAINER_MODE_TRUE
2506
2507
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 if 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.
2516 set 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; }
2519 if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
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
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 fi
2553 if 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.
2556 set 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; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
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
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if 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; }
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2590
2591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595 yes:)
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;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 CC=$ac_ct_CC
2601 fi
2602 else
2603 CC="$ac_cv_prog_CC"
2604 fi
2605
2606 if 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.
2609 set 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; }
2612 if test "${ac_cv_prog_CC+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
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
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 fi
2646 fi
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set 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; }
2652 if test "${ac_cv_prog_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 ac_prog_rejected=no
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
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
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 if 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
2689 fi
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702 fi
2703 if 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.
2708 set 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; }
2711 if test "${ac_cv_prog_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
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
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744 test -n "$CC" && break
2745 done
2746 fi
2747 if test -z "$CC"; then
2748 ac_ct_CC=$CC
2749 for ac_prog in cl.exe
2750 do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set 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; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
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
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if 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; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 test -n "$ac_ct_CC" && break
2789 done
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
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;}
2798 ac_tool_warned=yes ;;
2799 esac
2800 CC=$ac_ct_CC
2801 fi
2802 fi
2803
2804 fi
2805
2806
2807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809 as_fn_error "no acceptable C compiler found in \$PATH
2810 See \`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
2814 set X $ac_compile
2815 ac_compiler=$2
2816 for ac_option in --version -v -V -qversion; do
2817 { { ac_try="$ac_compiler $ac_option >&5"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval 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; }
2835 done
2836
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839 #include <stdio.h>
2840 int
2841 main ()
2842 {
2843 FILE *f = fopen ("conftest.out", "w");
2844 return ferror (f) || fclose (f) != 0;
2845
2846 ;
2847 return 0;
2848 }
2849 _ACEOF
2850 ac_clean_files_save=$ac_clean_files
2851 ac_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; }
2857 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858
2859 # The possible output files:
2860 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2861
2862 ac_rmfiles=
2863 for ac_file in $ac_files
2864 do
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
2869 done
2870 rm -f $ac_rmfiles
2871
2872 if { { ac_try="$ac_link_default"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval 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.
2888 for ac_file in $ac_files ''
2889 do
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
2912 done
2913 test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
2915 else
2916 ac_file=''
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2919 $as_echo "$ac_file" >&6; }
2920 if test -z "$ac_file"; then :
2921 $as_echo "$as_me: failed program was:" >&5
2922 sed '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
2927 as_fn_error "C compiler cannot create executables
2928 See \`config.log' for more details." "$LINENO" 5; }; }
2929 fi
2930 ac_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.
2937 if 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;;
2942 esac
2943 eval 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;}
2956 as_fn_error "cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." "$LINENO" 5; }
2959 fi
2960 fi
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964
2965 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2966 ac_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; }
2976 if { { ac_try="$ac_link"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval 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'.
2991 for 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
2999 done
3000 else
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error "cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." "$LINENO" 5; }
3005 fi
3006 rm -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
3010 rm -f conftest.$ac_ext
3011 EXEEXT=$ac_cv_exeext
3012 ac_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; }
3015 if test "${ac_cv_objext+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.o conftest.obj
3030 if { { ac_try="$ac_compile"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval 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
3048 done
3049 else
3050 $as_echo "$as_me: failed program was:" >&5
3051 sed '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;}
3055 as_fn_error "cannot compute suffix of object files: cannot compile
3056 See \`config.log' for more details." "$LINENO" 5; }
3057 fi
3058 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3061 $as_echo "$ac_cv_objext" >&6; }
3062 OBJEXT=$ac_cv_objext
3063 ac_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; }
3066 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071
3072 int
3073 main ()
3074 {
3075 #ifndef __GNUC__
3076 choke me
3077 #endif
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_compiler_gnu=yes
3085 else
3086 ac_compiler_gnu=no
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3094 if test $ac_compiler_gnu = yes; then
3095 GCC=yes
3096 else
3097 GCC=
3098 fi
3099 ac_test_CFLAGS=${CFLAGS+set}
3100 ac_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; }
3103 if test "${ac_cv_prog_cc_g+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
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
3113 int
3114 main ()
3115 {
3116
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_cv_prog_cc_g=yes
3123 else
3124 CFLAGS=""
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127
3128 int
3129 main ()
3130 {
3131
3132 ;
3133 return 0;
3134 }
3135 _ACEOF
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137
3138 else
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
3144 int
3145 main ()
3146 {
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_cv_prog_cc_g=yes
3154 fi
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 fi
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3163 $as_echo "$ac_cv_prog_cc_g" >&6; }
3164 if test "$ac_test_CFLAGS" = set; then
3165 CFLAGS=$ac_save_CFLAGS
3166 elif 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
3172 else
3173 if test "$GCC" = yes; then
3174 CFLAGS="-O2"
3175 else
3176 CFLAGS=
3177 fi
3178 fi
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; }
3181 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 ac_cv_prog_cc_c89=no
3185 ac_save_CC=$CC
3186 cat 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. */
3193 struct buf { int x; };
3194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195 static char *e (p, i)
3196 char **p;
3197 int i;
3198 {
3199 return p[i];
3200 }
3201 static 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. */
3218 int 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'
3223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225 int test (int i, double x);
3226 struct s1 {int (*f) (int a);};
3227 struct s2 {int (*f) (double a);};
3228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229 int argc;
3230 char **argv;
3231 int
3232 main ()
3233 {
3234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241 do
3242 CC="$ac_save_CC $ac_arg"
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_c89=$ac_arg
3245 fi
3246 rm -f core conftest.err conftest.$ac_objext
3247 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248 done
3249 rm -f conftest.$ac_ext
3250 CC=$ac_save_CC
3251
3252 fi
3253 # AC_CACHE_VAL
3254 case "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; } ;;
3265 esac
3266 if test "x$ac_cv_prog_cc_c89" != xno; then :
3267
3268 fi
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276 ac_aux_dir=
3277 for 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
3285 done
3286 if test -z "$ac_aux_dir"; then
3287 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3288 fi
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.
3294 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3295 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3296 ac_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; }
3305 if test "${ac_cv_build+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 ac_build_alias=$build_alias
3309 test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311 test "x$ac_build_alias" = x &&
3312 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3313 ac_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
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3318 $as_echo "$ac_cv_build" >&6; }
3319 case $ac_cv_build in
3320 *-*-*) ;;
3321 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3322 esac
3323 build=$ac_cv_build
3324 ac_save_IFS=$IFS; IFS='-'
3325 set x $ac_cv_build
3326 shift
3327 build_cpu=$1
3328 build_vendor=$2
3329 shift; shift
3330 # Remember, the first character of IFS is used to create $*,
3331 # except with old shells:
3332 build_os=$*
3333 IFS=$ac_save_IFS
3334 case $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; }
3339 if test "${ac_cv_host+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344 else
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
3347 fi
3348
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3351 $as_echo "$ac_cv_host" >&6; }
3352 case $ac_cv_host in
3353 *-*-*) ;;
3354 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3355 esac
3356 host=$ac_cv_host
3357 ac_save_IFS=$IFS; IFS='-'
3358 set x $ac_cv_host
3359 shift
3360 host_cpu=$1
3361 host_vendor=$2
3362 shift; shift
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3365 host_os=$*
3366 IFS=$ac_save_IFS
3367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_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.
3379 if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381 fi
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
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
3390 for ac_c_preproc_warn_flag in '' yes
3391 do
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
3407 if ac_fn_c_try_cpp "$LINENO"; then :
3408
3409 else
3410 # Broken: fails on valid input.
3411 continue
3412 fi
3413 rm -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
3421 if ac_fn_c_try_cpp "$LINENO"; then :
3422 # Broken: success on invalid input.
3423 continue
3424 else
3425 # Passes both tests.
3426 ac_preproc_ok=:
3427 break
3428 fi
3429 rm -f conftest.err conftest.$ac_ext
3430
3431 done
3432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433 rm -f conftest.err conftest.$ac_ext
3434 if $ac_preproc_ok; then :
3435 break
3436 fi
3437
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441 fi
3442 CPP=$ac_cv_prog_CPP
3443 else
3444 ac_cv_prog_CPP=$CPP
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3447 $as_echo "$CPP" >&6; }
3448 ac_preproc_ok=false
3449 for ac_c_preproc_warn_flag in '' yes
3450 do
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
3466 if ac_fn_c_try_cpp "$LINENO"; then :
3467
3468 else
3469 # Broken: fails on valid input.
3470 continue
3471 fi
3472 rm -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
3480 if ac_fn_c_try_cpp "$LINENO"; then :
3481 # Broken: success on invalid input.
3482 continue
3483 else
3484 # Passes both tests.
3485 ac_preproc_ok=:
3486 break
3487 fi
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then :
3494
3495 else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." "$LINENO" 5; }
3500 fi
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_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; }
3511 if test "${ac_cv_path_GREP+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
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
3518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519 do
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
3528 case `"$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;;
3552 esac
3553
3554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558 IFS=$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
3562 else
3563 ac_cv_path_GREP=$GREP
3564 fi
3565
3566 fi
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; }
3574 if test "${ac_cv_path_EGREP+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576 else
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
3584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585 do
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
3594 case `"$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;;
3618 esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624 IFS=$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
3628 else
3629 ac_cv_path_EGREP=$EGREP
3630 fi
3631
3632 fi
3633 fi
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; }
3641 if test "${ac_cv_header_stdc+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
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
3651 int
3652 main ()
3653 {
3654
3655 ;
3656 return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_header_stdc=yes
3661 else
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665
3666 if 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
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "memchr" >/dev/null 2>&1; then :
3675
3676 else
3677 ac_cv_header_stdc=no
3678 fi
3679 rm -f conftest*
3680
3681 fi
3682
3683 if 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
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 $EGREP "free" >/dev/null 2>&1; then :
3692
3693 else
3694 ac_cv_header_stdc=no
3695 fi
3696 rm -f conftest*
3697
3698 fi
3699
3700 if 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 :
3704 else
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)))
3721 int
3722 main ()
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
3732 if ac_fn_c_try_run "$LINENO"; then :
3733
3734 else
3735 ac_cv_header_stdc=no
3736 fi
3737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3738 conftest.$ac_objext conftest.beam conftest.$ac_ext
3739 fi
3740
3741 fi
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3744 $as_echo "$ac_cv_header_stdc" >&6; }
3745 if test $ac_cv_header_stdc = yes; then
3746
3747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3748
3749 fi
3750
3751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3753 inttypes.h stdint.h unistd.h
3754 do :
3755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3757 "
3758 eval 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
3764 fi
3765
3766 done
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"
3773 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3774 MINIX=yes
3775 else
3776 MINIX=
3777 fi
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; }
3803 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808
3809 # define __EXTENSIONS__ 1
3810 $ac_includes_default
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_safe_to_define___extensions__=yes
3821 else
3822 ac_cv_safe_to_define___extensions__=no
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
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; }
3846 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852
3853 #ifdef __ACK__
3854 Amsterdam
3855 #endif
3856
3857 _ACEOF
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 $EGREP "Amsterdam" >/dev/null 2>&1; then :
3860 gl_cv_c_amsterdam_compiler=yes
3861 else
3862 gl_cv_c_amsterdam_compiler=no
3863 fi
3864 rm -f conftest*
3865
3866
3867 fi
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.
3879 set 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; }
3882 if test "${ac_cv_prog_AR+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$AR"; then
3886 ac_cv_prog_AR="$AR" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
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
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi
3904 fi
3905 AR=$ac_cv_prog_AR
3906 if test -n "$AR"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3908 $as_echo "$AR" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3913
3914
3915 fi
3916 if 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.
3919 set 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; }
3922 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$ac_ct_AR"; then
3926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
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
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3946 if 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; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953
3954 if test "x$ac_ct_AR" = x; then
3955 AR="ar"
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958 yes:)
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;}
3961 ac_tool_warned=yes ;;
3962 esac
3963 AR=$ac_ct_AR
3964 fi
3965 else
3966 AR="$ac_cv_prog_AR"
3967 fi
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.
3986 set 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; }
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
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
4006 done
4007 done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4015 $as_echo "$RANLIB" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022 fi
4023 if 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.
4026 set 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; }
4029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
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
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4053 if 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; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061 if test "x$ac_ct_RANLIB" = x; then
4062 RANLIB=":"
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
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;}
4068 ac_tool_warned=yes ;;
4069 esac
4070 RANLIB=$ac_ct_RANLIB
4071 fi
4072 else
4073 RANLIB="$ac_cv_prog_RANLIB"
4074 fi
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
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 if 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.
4112 set 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; }
4115 if test "${ac_cv_prog_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -n "$CC"; then
4119 ac_cv_prog_CC="$CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
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
4132 done
4133 done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 CC=$ac_cv_prog_CC
4139 if test -n "$CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141 $as_echo "$CC" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147
4148 fi
4149 if 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.
4152 set 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; }
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
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
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if 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; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191 yes:)
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;}
4194 ac_tool_warned=yes ;;
4195 esac
4196 CC=$ac_ct_CC
4197 fi
4198 else
4199 CC="$ac_cv_prog_CC"
4200 fi
4201
4202 if 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.
4205 set 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; }
4208 if test "${ac_cv_prog_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
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
4225 done
4226 done
4227 IFS=$as_save_IFS
4228
4229 fi
4230 fi
4231 CC=$ac_cv_prog_CC
4232 if test -n "$CC"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234 $as_echo "$CC" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 fi
4239
4240
4241 fi
4242 fi
4243 if test -z "$CC"; then
4244 # Extract the first word of "cc", so it can be a program name with args.
4245 set 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; }
4248 if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 ac_prog_rejected=no
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
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
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 if 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
4285 fi
4286 fi
4287 fi
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296
4297
4298 fi
4299 if 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.
4304 set 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; }
4307 if test "${ac_cv_prog_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
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
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 CC=$ac_cv_prog_CC
4331 if test -n "$CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333 $as_echo "$CC" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 test -n "$CC" && break
4341 done
4342 fi
4343 if test -z "$CC"; then
4344 ac_ct_CC=$CC
4345 for ac_prog in cl.exe
4346 do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348 set 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; }
4351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
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
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372 fi
4373 fi
4374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375 if 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; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383
4384 test -n "$ac_ct_CC" && break
4385 done
4386
4387 if test "x$ac_ct_CC" = x; then
4388 CC=""
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
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;}
4394 ac_tool_warned=yes ;;
4395 esac
4396 CC=$ac_ct_CC
4397 fi
4398 fi
4399
4400 fi
4401
4402
4403 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error "no acceptable C compiler found in \$PATH
4406 See \`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
4410 set X $ac_compile
4411 ac_compiler=$2
4412 for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval 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; }
4431 done
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; }
4435 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440
4441 int
4442 main ()
4443 {
4444 #ifndef __GNUC__
4445 choke me
4446 #endif
4447
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_compiler_gnu=yes
4454 else
4455 ac_compiler_gnu=no
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4463 if test $ac_compiler_gnu = yes; then
4464 GCC=yes
4465 else
4466 GCC=
4467 fi
4468 ac_test_CFLAGS=${CFLAGS+set}
4469 ac_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; }
4472 if test "${ac_cv_prog_cc_g+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
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
4482 int
4483 main ()
4484 {
4485
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_prog_cc_g=yes
4492 else
4493 CFLAGS=""
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506
4507 else
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
4513 int
4514 main ()
4515 {
4516
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_g=yes
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_c_werror_flag=$ac_save_c_werror_flag
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4532 $as_echo "$ac_cv_prog_cc_g" >&6; }
4533 if test "$ac_test_CFLAGS" = set; then
4534 CFLAGS=$ac_save_CFLAGS
4535 elif 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
4541 else
4542 if test "$GCC" = yes; then
4543 CFLAGS="-O2"
4544 else
4545 CFLAGS=
4546 fi
4547 fi
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; }
4550 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 ac_cv_prog_cc_c89=no
4554 ac_save_CC=$CC
4555 cat 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. */
4562 struct buf { int x; };
4563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4564 static char *e (p, i)
4565 char **p;
4566 int i;
4567 {
4568 return p[i];
4569 }
4570 static 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. */
4587 int 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'
4592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4593
4594 int test (int i, double x);
4595 struct s1 {int (*f) (int a);};
4596 struct s2 {int (*f) (double a);};
4597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4598 int argc;
4599 char **argv;
4600 int
4601 main ()
4602 {
4603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4610 do
4611 CC="$ac_save_CC $ac_arg"
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_prog_cc_c89=$ac_arg
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext
4616 test "x$ac_cv_prog_cc_c89" != "xno" && break
4617 done
4618 rm -f conftest.$ac_ext
4619 CC=$ac_save_CC
4620
4621 fi
4622 # AC_CACHE_VAL
4623 case "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; } ;;
4634 esac
4635 if test "x$ac_cv_prog_cc_c89" != xno; then :
4636
4637 fi
4638
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645
4646 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4647
4648
4649 ac_aux_dir=
4650 for 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
4658 done
4659 if test -z "$ac_aux_dir"; then
4660 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4661 fi
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.
4667 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4668 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4669 ac_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; }
4674 if test "${ac_cv_target+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test "x$target_alias" = x; then
4678 ac_cv_target=$ac_cv_host
4679 else
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
4682 fi
4683
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4686 $as_echo "$ac_cv_target" >&6; }
4687 case $ac_cv_target in
4688 *-*-*) ;;
4689 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4690 esac
4691 target=$ac_cv_target
4692 ac_save_IFS=$IFS; IFS='-'
4693 set x $ac_cv_target
4694 shift
4695 target_cpu=$1
4696 target_vendor=$2
4697 shift; shift
4698 # Remember, the first character of IFS is used to create $*,
4699 # except with old shells:
4700 target_os=$*
4701 IFS=$ac_save_IFS
4702 case $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.
4707 test -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; }
4724 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
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;
4746 int
4747 main ()
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
4761 if ac_fn_c_try_link "$LINENO"; then :
4762
4763 else
4764 ac_cv_type_unsigned_long_long_int=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 fi
4769 fi
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; }
4782 if test "${ac_cv_type_long_long_int+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
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 :
4791 else
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
4800 int
4801 main ()
4802 {
4803 long 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
4818 if ac_fn_c_try_run "$LINENO"; then :
4819
4820 else
4821 ac_cv_type_long_long_int=no
4822 fi
4823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4824 conftest.$ac_objext conftest.beam conftest.$ac_ext
4825 fi
4826
4827 fi
4828 fi
4829 fi
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
4843 do :
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4846 eval 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
4852 fi
4853
4854 done
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; }
4864 if test "${gl_cv_have_include_next+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
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
4873 int foo;
4874 #else
4875 #error "include_next doesn't work"
4876 #endif
4877 EOF
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
4883 int foo;
4884 #else
4885 #error "include_next doesn't work"
4886 #endif
4887 EOF
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
4893 EOF
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
4900 if ac_fn_c_try_compile "$LINENO"; then :
4901 gl_cv_have_include_next=yes
4902 else
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
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 gl_cv_have_include_next=buggy
4910 else
4911 gl_cv_have_include_next=no
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 CPPFLAGS="$gl_save_CPPFLAGS"
4918 rm -rf conftestd1a conftestd1b conftestd2
4919
4920 fi
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; }
4944 if test "${gl_cv_pragma_columns+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949
4950 #ifdef __TANDEM
4951 choke me
4952 #endif
4953
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "choke me" >/dev/null 2>&1; then :
4957 gl_cv_pragma_columns=yes
4958 else
4959 gl_cv_pragma_columns=no
4960 fi
4961 rm -f conftest*
4962
4963
4964 fi
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
4989 if 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
5012 fi
5013 rm -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; }
5086 if test "${gl_cv_next_stdint_h+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
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
5128 fi
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; }
5156 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
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
5184 int8_t a1 = INT8_MAX;
5185 int8_t a1min = INT8_MIN;
5186 #endif
5187 #ifdef INT16_MAX
5188 int16_t a2 = INT16_MAX;
5189 int16_t a2min = INT16_MIN;
5190 #endif
5191 #ifdef INT32_MAX
5192 int32_t a3 = INT32_MAX;
5193 int32_t a3min = INT32_MIN;
5194 #endif
5195 #ifdef INT64_MAX
5196 int64_t a4 = INT64_MAX;
5197 int64_t a4min = INT64_MIN;
5198 #endif
5199 #ifdef UINT8_MAX
5200 uint8_t b1 = UINT8_MAX;
5201 #else
5202 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5203 #endif
5204 #ifdef UINT16_MAX
5205 uint16_t b2 = UINT16_MAX;
5206 #endif
5207 #ifdef UINT32_MAX
5208 uint32_t b3 = UINT32_MAX;
5209 #endif
5210 #ifdef UINT64_MAX
5211 uint64_t b4 = UINT64_MAX;
5212 #endif
5213 int_least8_t c1 = INT8_C (0x7f);
5214 int_least8_t c1max = INT_LEAST8_MAX;
5215 int_least8_t c1min = INT_LEAST8_MIN;
5216 int_least16_t c2 = INT16_C (0x7fff);
5217 int_least16_t c2max = INT_LEAST16_MAX;
5218 int_least16_t c2min = INT_LEAST16_MIN;
5219 int_least32_t c3 = INT32_C (0x7fffffff);
5220 int_least32_t c3max = INT_LEAST32_MAX;
5221 int_least32_t c3min = INT_LEAST32_MIN;
5222 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5223 int_least64_t c4max = INT_LEAST64_MAX;
5224 int_least64_t c4min = INT_LEAST64_MIN;
5225 uint_least8_t d1 = UINT8_C (0xff);
5226 uint_least8_t d1max = UINT_LEAST8_MAX;
5227 uint_least16_t d2 = UINT16_C (0xffff);
5228 uint_least16_t d2max = UINT_LEAST16_MAX;
5229 uint_least32_t d3 = UINT32_C (0xffffffff);
5230 uint_least32_t d3max = UINT_LEAST32_MAX;
5231 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5232 uint_least64_t d4max = UINT_LEAST64_MAX;
5233 int_fast8_t e1 = INT_FAST8_MAX;
5234 int_fast8_t e1min = INT_FAST8_MIN;
5235 int_fast16_t e2 = INT_FAST16_MAX;
5236 int_fast16_t e2min = INT_FAST16_MIN;
5237 int_fast32_t e3 = INT_FAST32_MAX;
5238 int_fast32_t e3min = INT_FAST32_MIN;
5239 int_fast64_t e4 = INT_FAST64_MAX;
5240 int_fast64_t e4min = INT_FAST64_MIN;
5241 uint_fast8_t f1 = UINT_FAST8_MAX;
5242 uint_fast16_t f2 = UINT_FAST16_MAX;
5243 uint_fast32_t f3 = UINT_FAST32_MAX;
5244 uint_fast64_t f4 = UINT_FAST64_MAX;
5245 #ifdef INTPTR_MAX
5246 intptr_t g = INTPTR_MAX;
5247 intptr_t gmin = INTPTR_MIN;
5248 #endif
5249 #ifdef UINTPTR_MAX
5250 uintptr_t h = UINTPTR_MAX;
5251 #endif
5252 intmax_t i = INTMAX_MAX;
5253 uintmax_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)))
5262 struct 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
5315 int
5316 main ()
5317 {
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 if test "$cross_compiling" = yes; then :
5325 gl_cv_header_working_stdint_h=yes
5326
5327 else
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
5351 static 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
5380 int
5381 main ()
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
5403 if ac_fn_c_try_run "$LINENO"; then :
5404 gl_cv_header_working_stdint_h=yes
5405 fi
5406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5408 fi
5409
5410
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414 fi
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
5422 do :
5423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5425 eval 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
5431 fi
5432
5433 done
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; }
5456 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5457 $as_echo_n "(cached) " >&6
5458 else
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
5472 else
5473 result=unknown
5474 fi
5475
5476 eval gl_cv_bitsizeof_${gltype}=\$result
5477
5478 fi
5479 eval 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; }
5501 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5502 $as_echo_n "(cached) " >&6
5503 else
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
5517 else
5518 result=unknown
5519 fi
5520
5521 eval gl_cv_bitsizeof_${gltype}=\$result
5522
5523 fi
5524 eval 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; }
5545 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5546 $as_echo_n "(cached) " >&6
5547 else
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];
5562 int
5563 main ()
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 result=yes
5572 else
5573 result=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 eval gl_cv_type_${gltype}_signed=\$result
5577
5578 fi
5579 eval 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; }
5604 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5605 $as_echo_n "(cached) " >&6
5606 else
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;
5640 int
5641 main ()
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 eval gl_cv_type_${gltype}_suffix=\$glsuf
5650 fi
5651 rm -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
5655 fi
5656 eval 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; }
5676 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5677 $as_echo_n "(cached) " >&6
5678 else
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;
5712 int
5713 main ()
5714 {
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 eval gl_cv_type_${gltype}_suffix=\$glsuf
5722 fi
5723 rm -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
5727 fi
5728 eval 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='#'
5753 else
5754 GL_GENERATE_STDINT_H_TRUE='#'
5755 GL_GENERATE_STDINT_H_FALSE=
5756 fi
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; }
5812 if test "${gl_cv_next_inttypes_h+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
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
5854 fi
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; }
5880 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <inttypes.h>
5886
5887 int
5888 main ()
5889 {
5890 #undef $gl_func
5891 (void) $gl_func;
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897 eval "$as_gl_Symbol=yes"
5898 else
5899 eval "$as_gl_Symbol=no"
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 fi
5903 eval 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
5913 fi
5914 done
5915
5916
5917
5918 for ac_header in inttypes.h
5919 do :
5920 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_INTTYPES_H 1
5924 _ACEOF
5925
5926 fi
5927
5928 done
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; }
5933 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939
5940 #include <inttypes.h>
5941 #ifdef PRId32
5942 char *p = PRId32;
5943 #endif
5944
5945 int
5946 main ()
5947 {
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 gt_cv_inttypes_pri_broken=no
5955 else
5956 gt_cv_inttypes_pri_broken=yes
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959
5960 fi
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
5966 cat >>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
5986 do :
5987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5989 eval 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
5995 fi
5996 done
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"
6085 if test "x$ac_cv_func_mmap" = x""yes; then :
6086 gl_have_mmap=yes
6087 else
6088 gl_have_mmap=no
6089 fi
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 cannot identify this map
6103 #endif
6104
6105 _ACEOF
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
6108 gl_have_mmap_anonymous=yes
6109 fi
6110 rm -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 cannot identify this map
6119 #endif
6120
6121 _ACEOF
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "I cannot 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
6128 fi
6129 rm -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; }
6168 if test "${gl_cv_func_memchr_works+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test "$cross_compiling" = yes; then :
6172 gl_cv_func_memchr_works="guessing no"
6173 else
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
6188 int
6189 main ()
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
6229 if ac_fn_c_try_run "$LINENO"; then :
6230 gl_cv_func_memchr_works=yes
6231 else
6232 gl_cv_func_memchr_works=no
6233 fi
6234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6235 conftest.$ac_objext conftest.beam conftest.$ac_ext
6236 fi
6237
6238 fi
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"
6248 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
6249 ac_have_decl=1
6250 else
6251 ac_have_decl=0
6252 fi
6253
6254 cat >>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
6264 do :
6265 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6266 if test "x$ac_cv_func_memmem" = x""yes; then :
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_MEMMEM 1
6269 _ACEOF
6270
6271 fi
6272 done
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; }
6291 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
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
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "Lucky user" >/dev/null 2>&1; then :
6318 gl_cv_func_memmem_works_always="guessing yes"
6319 else
6320 gl_cv_func_memmem_works_always="guessing no"
6321 fi
6322 rm -f conftest*
6323
6324
6325 else
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
6334 int
6335 main ()
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
6353 if ac_fn_c_try_run "$LINENO"; then :
6354 gl_cv_func_memmem_works_always=yes
6355 else
6356 gl_cv_func_memmem_works_always=no
6357 fi
6358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6359 conftest.$ac_objext conftest.beam conftest.$ac_ext
6360 fi
6361
6362
6363 fi
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 case "$gl_cv_func_memmem_works_always" in
6367 *yes) ;;
6368 *)
6369 REPLACE_MEMMEM=1
6370 ;;
6371 esac
6372 fi
6373 :
6374
6375
6376 REPLACE_NULL=0;
6377 HAVE_WCHAR_T=1;
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6381 $as_echo_n "checking for wchar_t... " >&6; }
6382 if test "${gt_cv_c_wchar_t+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <stddef.h>
6388 wchar_t foo = (wchar_t)'\0';
6389 int
6390 main ()
6391 {
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 gt_cv_c_wchar_t=yes
6399 else
6400 gt_cv_c_wchar_t=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6405 $as_echo "$gt_cv_c_wchar_t" >&6; }
6406 if test $gt_cv_c_wchar_t = yes; then
6407
6408 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6409
6410 fi
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6413 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6414 if test "${ac_cv_c_restrict+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 ac_cv_c_restrict=no
6418 # The order here caters to the fact that C++ does not require restrict.
6419 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 typedef int * int_ptr;
6423 int foo (int_ptr $ac_kw ip) {
6424 return ip[0];
6425 }
6426 int
6427 main ()
6428 {
6429 int s[1];
6430 int * $ac_kw t = s;
6431 t[0] = 0;
6432 return foo(t)
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_c_restrict=$ac_kw
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 test "$ac_cv_c_restrict" != no && break
6442 done
6443
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6446 $as_echo "$ac_cv_c_restrict" >&6; }
6447
6448 case $ac_cv_c_restrict in
6449 restrict) ;;
6450 no) $as_echo "#define restrict /**/" >>confdefs.h
6451 ;;
6452 *) cat >>confdefs.h <<_ACEOF
6453 #define restrict $ac_cv_c_restrict
6454 _ACEOF
6455 ;;
6456 esac
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 if test $gl_cv_have_include_next = yes; then
6470 gl_cv_next_string_h='<'string.h'>'
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6473 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6474 if test "${gl_cv_next_string_h+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <string.h>
6481
6482 _ACEOF
6483 case "$host_os" in
6484 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6485 *) gl_absname_cpp="$ac_cpp" ;;
6486 esac
6487
6488 case "$host_os" in
6489 mingw*)
6490 gl_dirsep_regex='[/\\]'
6491 ;;
6492 *)
6493 gl_dirsep_regex='\/'
6494 ;;
6495 esac
6496 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6497
6498 gl_header_literal_regex=`echo 'string.h' \
6499 | sed -e "$gl_make_literal_regex_sed"`
6500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6502 s|^/[^/]|//&|
6503 p
6504 q
6505 }'
6506 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6507 sed -n "$gl_absolute_header_sed"`'"'
6508
6509
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6512 $as_echo "$gl_cv_next_string_h" >&6; }
6513 fi
6514 NEXT_STRING_H=$gl_cv_next_string_h
6515
6516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6518 gl_next_as_first_directive='<'string.h'>'
6519 else
6520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6521 gl_next_as_first_directive=$gl_cv_next_string_h
6522 fi
6523 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
6524
6525
6526
6527
6528
6529
6530 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
6531 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6533 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6534 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <string.h>
6540
6541 int
6542 main ()
6543 {
6544 #undef $gl_func
6545 (void) $gl_func;
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 eval "$as_gl_Symbol=yes"
6552 else
6553 eval "$as_gl_Symbol=no"
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 fi
6557 eval ac_res=\$$as_gl_Symbol
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6559 $as_echo "$ac_res" >&6; }
6560 eval as_val=\$$as_gl_Symbol
6561 if test "x$as_val" = x""yes; then :
6562 cat >>confdefs.h <<_ACEOF
6563 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6564 _ACEOF
6565
6566 eval ac_cv_have_decl_$gl_func=yes
6567 fi
6568 done
6569
6570
6571
6572 if false; then
6573 GL_COND_LIBTOOL_TRUE=
6574 GL_COND_LIBTOOL_FALSE='#'
6575 else
6576 GL_COND_LIBTOOL_TRUE='#'
6577 GL_COND_LIBTOOL_FALSE=
6578 fi
6579
6580 gl_cond_libtool=false
6581 gl_libdeps=
6582 gl_ltlibdeps=
6583 gl_m4_base='import/m4'
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 gl_source_base='import'
6594
6595
6596
6597
6598
6599 PRIPTR_PREFIX=
6600 if test -n "$STDINT_H"; then
6601 PRIPTR_PREFIX='"l"'
6602 else
6603 for glpfx in '' l ll I64; do
6604 case $glpfx in
6605 '') gltype1='int';;
6606 l) gltype1='long int';;
6607 ll) gltype1='long long int';;
6608 I64) gltype1='__int64';;
6609 esac
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <stdint.h>
6613 extern intptr_t foo;
6614 extern $gltype1 foo;
6615 int
6616 main ()
6617 {
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 PRIPTR_PREFIX='"'$glpfx'"'
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 test -n "$PRIPTR_PREFIX" && break
6628 done
6629 fi
6630
6631
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
6634 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
6635 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 /* Work also in C++ mode. */
6641 #define __STDC_LIMIT_MACROS 1
6642
6643 /* Work if build is not clean. */
6644 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6645
6646 #include <limits.h>
6647 #if HAVE_STDINT_H
6648 #include <stdint.h>
6649 #endif
6650
6651 #if defined INT32_MAX && defined INTMAX_MAX
6652 #define CONDITION (INT32_MAX < INTMAX_MAX)
6653 #elif HAVE_LONG_LONG_INT
6654 #define CONDITION (sizeof (int) < sizeof (long long int))
6655 #else
6656 #define CONDITION 0
6657 #endif
6658 int test[CONDITION ? 1 : -1];
6659 int
6660 main ()
6661 {
6662
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
6669 else
6670 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
6675 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
6676 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
6677 INT32_MAX_LT_INTMAX_MAX=1;
6678 else
6679 INT32_MAX_LT_INTMAX_MAX=0;
6680 fi
6681
6682
6683 if test $APPLE_UNIVERSAL_BUILD = 0; then
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
6686 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
6687 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 /* Work also in C++ mode. */
6693 #define __STDC_LIMIT_MACROS 1
6694
6695 /* Work if build is not clean. */
6696 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6697
6698 #include <limits.h>
6699 #if HAVE_STDINT_H
6700 #include <stdint.h>
6701 #endif
6702
6703 #if defined INT64_MAX
6704 #define CONDITION (INT64_MAX == LONG_MAX)
6705 #elif HAVE_LONG_LONG_INT
6706 #define CONDITION (sizeof (long long int) == sizeof (long int))
6707 #else
6708 #define CONDITION 0
6709 #endif
6710 int test[CONDITION ? 1 : -1];
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
6721 else
6722 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 fi
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
6727 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
6728 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
6729 INT64_MAX_EQ_LONG_MAX=1;
6730 else
6731 INT64_MAX_EQ_LONG_MAX=0;
6732 fi
6733
6734
6735 else
6736 INT64_MAX_EQ_LONG_MAX=-1
6737 fi
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
6740 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
6741 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 /* Work also in C++ mode. */
6747 #define __STDC_LIMIT_MACROS 1
6748
6749 /* Work if build is not clean. */
6750 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6751
6752 #include <limits.h>
6753 #if HAVE_STDINT_H
6754 #include <stdint.h>
6755 #endif
6756
6757 #if defined UINT32_MAX && defined UINTMAX_MAX
6758 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
6759 #elif HAVE_LONG_LONG_INT
6760 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
6761 #else
6762 #define CONDITION 0
6763 #endif
6764 int test[CONDITION ? 1 : -1];
6765 int
6766 main ()
6767 {
6768
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
6775 else
6776 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
6781 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
6782 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
6783 UINT32_MAX_LT_UINTMAX_MAX=1;
6784 else
6785 UINT32_MAX_LT_UINTMAX_MAX=0;
6786 fi
6787
6788
6789 if test $APPLE_UNIVERSAL_BUILD = 0; then
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
6792 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
6793 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 /* Work also in C++ mode. */
6799 #define __STDC_LIMIT_MACROS 1
6800
6801 /* Work if build is not clean. */
6802 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6803
6804 #include <limits.h>
6805 #if HAVE_STDINT_H
6806 #include <stdint.h>
6807 #endif
6808
6809 #if defined UINT64_MAX
6810 #define CONDITION (UINT64_MAX == ULONG_MAX)
6811 #elif HAVE_LONG_LONG_INT
6812 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
6813 #else
6814 #define CONDITION 0
6815 #endif
6816 int test[CONDITION ? 1 : -1];
6817 int
6818 main ()
6819 {
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
6827 else
6828 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
6833 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
6834 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
6835 UINT64_MAX_EQ_ULONG_MAX=1;
6836 else
6837 UINT64_MAX_EQ_ULONG_MAX=0;
6838 fi
6839
6840
6841 else
6842 UINT64_MAX_EQ_ULONG_MAX=-1
6843 fi
6844
6845
6846
6847
6848 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
6849
6850
6851
6852
6853
6854
6855
6856
6857 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
6858
6859
6860 for ac_header in bp-sym.h
6861 do :
6862 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6863 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_BP_SYM_H 1
6866 _ACEOF
6867
6868 fi
6869
6870 done
6871
6872
6873 fi
6874
6875
6876
6877
6878
6879 GNULIB_MEMCHR=1
6880
6881
6882
6883
6884
6885 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6886
6887
6888
6889
6890
6891 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6893 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6894 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test "$cross_compiling" = yes; then :
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900
6901 #include <features.h>
6902 #ifdef __GNU_LIBRARY__
6903 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
6904 && !defined __UCLIBC__
6905 Lucky user
6906 #endif
6907 #endif
6908 #ifdef __CYGWIN__
6909 #include <cygwin/version.h>
6910 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
6911 Lucky user
6912 #endif
6913 #endif
6914
6915 _ACEOF
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "Lucky user" >/dev/null 2>&1; then :
6918 gl_cv_func_memmem_works_fast="guessing yes"
6919 else
6920 gl_cv_func_memmem_works_fast="guessing no"
6921 fi
6922 rm -f conftest*
6923
6924
6925 else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928
6929 #include <signal.h> /* for signal */
6930 #include <string.h> /* for memmem */
6931 #include <stdlib.h> /* for malloc */
6932 #include <unistd.h> /* for alarm */
6933 static void quit (int sig) { exit (sig + 128); }
6934
6935 int
6936 main ()
6937 {
6938
6939 int result = 0;
6940 size_t m = 1000000;
6941 char *haystack = (char *) malloc (2 * m + 1);
6942 char *needle = (char *) malloc (m + 1);
6943 /* Failure to compile this test due to missing alarm is okay,
6944 since all such platforms (mingw) also lack memmem. */
6945 signal (SIGALRM, quit);
6946 alarm (5);
6947 /* Check for quadratic performance. */
6948 if (haystack && needle)
6949 {
6950 memset (haystack, 'A', 2 * m);
6951 haystack[2 * m] = 'B';
6952 memset (needle, 'A', m);
6953 needle[m] = 'B';
6954 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
6955 result |= 1;
6956 }
6957 return result;
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_run "$LINENO"; then :
6964 gl_cv_func_memmem_works_fast=yes
6965 else
6966 gl_cv_func_memmem_works_fast=no
6967 fi
6968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6969 conftest.$ac_objext conftest.beam conftest.$ac_ext
6970 fi
6971
6972
6973 fi
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
6975 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
6976 case "$gl_cv_func_memmem_works_fast" in
6977 *yes) ;;
6978 *)
6979 REPLACE_MEMMEM=1
6980 ;;
6981 esac
6982 fi
6983
6984 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
6985
6986
6987
6988
6989
6990
6991
6992
6993 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6994
6995 fi
6996
6997
6998
6999
7000 for ac_func in memmem
7001 do :
7002 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7003 if test "x$ac_cv_func_memmem" = x""yes; then :
7004 cat >>confdefs.h <<_ACEOF
7005 #define HAVE_MEMMEM 1
7006 _ACEOF
7007
7008 fi
7009 done
7010
7011 if test $ac_cv_func_memmem = yes; then
7012 HAVE_MEMMEM=1
7013 else
7014 HAVE_MEMMEM=0
7015 fi
7016
7017 :
7018
7019
7020
7021
7022
7023 if test $ac_cv_have_decl_memmem = no; then
7024 HAVE_DECL_MEMMEM=0
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7027 $as_echo_n "checking whether memmem works... " >&6; }
7028 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test "$cross_compiling" = yes; then :
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034
7035 #ifdef __GNU_LIBRARY__
7036 #include <features.h>
7037 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7038 || __GLIBC_MINOR__ > 12)) \
7039 || (__GLIBC__ > 2)) \
7040 || defined __UCLIBC__
7041 Lucky user
7042 #endif
7043 #elif defined __CYGWIN__
7044 #include <cygwin/version.h>
7045 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7046 Lucky user
7047 #endif
7048 #else
7049 Lucky user
7050 #endif
7051
7052 _ACEOF
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 $EGREP "Lucky user" >/dev/null 2>&1; then :
7055 gl_cv_func_memmem_works_always="guessing yes"
7056 else
7057 gl_cv_func_memmem_works_always="guessing no"
7058 fi
7059 rm -f conftest*
7060
7061
7062 else
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 #include <string.h> /* for memmem */
7067 #define P "_EF_BF_BD"
7068 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7069 #define NEEDLE P P P P P
7070
7071 int
7072 main ()
7073 {
7074
7075 int result = 0;
7076 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7077 result |= 1;
7078 /* Check for empty needle behavior. */
7079 {
7080 const char *haystack = "AAA";
7081 if (memmem (haystack, 3, NULL, 0) != haystack)
7082 result |= 2;
7083 }
7084 return result;
7085
7086 ;
7087 return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_run "$LINENO"; then :
7091 gl_cv_func_memmem_works_always=yes
7092 else
7093 gl_cv_func_memmem_works_always=no
7094 fi
7095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7096 conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 fi
7098
7099
7100 fi
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7102 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
7103 case "$gl_cv_func_memmem_works_always" in
7104 *yes) ;;
7105 *)
7106 REPLACE_MEMMEM=1
7107 ;;
7108 esac
7109 fi
7110 :
7111
7112 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
7113
7114
7115
7116
7117
7118
7119
7120
7121 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
7122
7123 fi
7124
7125
7126
7127
7128
7129 GNULIB_MEMMEM=1
7130
7131
7132
7133
7134
7135 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7136
7137
7138
7139
7140
7141
7142
7143 STDDEF_H=
7144 if test $gt_cv_c_wchar_t = no; then
7145 HAVE_WCHAR_T=0
7146 STDDEF_H=stddef.h
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7149 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7150 if test "${gl_cv_decl_null_works+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 #include <stddef.h>
7156 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7157
7158 int
7159 main ()
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_compile "$LINENO"; then :
7167 gl_cv_decl_null_works=yes
7168 else
7169 gl_cv_decl_null_works=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7174 $as_echo "$gl_cv_decl_null_works" >&6; }
7175 if test $gl_cv_decl_null_works = no; then
7176 REPLACE_NULL=1
7177 STDDEF_H=stddef.h
7178 fi
7179
7180 if test -n "$STDDEF_H"; then
7181 GL_GENERATE_STDDEF_H_TRUE=
7182 GL_GENERATE_STDDEF_H_FALSE='#'
7183 else
7184 GL_GENERATE_STDDEF_H_TRUE='#'
7185 GL_GENERATE_STDDEF_H_FALSE=
7186 fi
7187
7188 if test -n "$STDDEF_H"; then
7189
7190
7191
7192
7193
7194
7195
7196
7197 if test $gl_cv_have_include_next = yes; then
7198 gl_cv_next_stddef_h='<'stddef.h'>'
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7201 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7202 if test "${gl_cv_next_stddef_h+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <stddef.h>
7209
7210 _ACEOF
7211 case "$host_os" in
7212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7213 *) gl_absname_cpp="$ac_cpp" ;;
7214 esac
7215
7216 case "$host_os" in
7217 mingw*)
7218 gl_dirsep_regex='[/\\]'
7219 ;;
7220 *)
7221 gl_dirsep_regex='\/'
7222 ;;
7223 esac
7224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7225
7226 gl_header_literal_regex=`echo 'stddef.h' \
7227 | sed -e "$gl_make_literal_regex_sed"`
7228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7230 s|^/[^/]|//&|
7231 p
7232 q
7233 }'
7234 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7235 sed -n "$gl_absolute_header_sed"`'"'
7236
7237
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7240 $as_echo "$gl_cv_next_stddef_h" >&6; }
7241 fi
7242 NEXT_STDDEF_H=$gl_cv_next_stddef_h
7243
7244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7246 gl_next_as_first_directive='<'stddef.h'>'
7247 else
7248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7249 gl_next_as_first_directive=$gl_cv_next_stddef_h
7250 fi
7251 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7252
7253
7254
7255
7256 fi
7257
7258
7259
7260
7261
7262 # End of code from modules
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 gltests_libdeps=
7273 gltests_ltlibdeps=
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 gl_source_base='tests'
7284 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
7285
7286 gl_module_indicator_condition=$gltests_WITNESS
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 LIBGNU_LIBDEPS="$gl_libdeps"
7297
7298 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7299
7300
7301
7302 # We don't use automake, but gnulib does. This line lets us generate
7303 # its Makefile.in.
7304 am__api_version='1.11'
7305
7306 # Find a good install program. We prefer a C program (faster),
7307 # so one script is as good as another. But avoid the broken or
7308 # incompatible versions:
7309 # SysV /etc/install, /usr/sbin/install
7310 # SunOS /usr/etc/install
7311 # IRIX /sbin/install
7312 # AIX /bin/install
7313 # AmigaOS /C/install, which installs bootblocks on floppy discs
7314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317 # OS/2's system install, which has a completely different semantic
7318 # ./install, which can be erroneously created by make from ./install.sh.
7319 # Reject install programs that cannot install multiple files.
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7322 if test -z "$INSTALL"; then
7323 if test "${ac_cv_path_install+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 # Account for people who put trailing slashes in PATH elements.
7332 case $as_dir/ in #((
7333 ./ | .// | /[cC]/* | \
7334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7336 /usr/ucb/* ) ;;
7337 *)
7338 # OSF1 and SCO ODT 3.0 have their own names for install.
7339 # Don't use installbsd from OSF since it installs stuff as root
7340 # by default.
7341 for ac_prog in ginstall scoinst install; do
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344 if test $ac_prog = install &&
7345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # AIX install. It has an incompatible calling convention.
7347 :
7348 elif test $ac_prog = install &&
7349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # program-specific install script used by HP pwplus--don't use.
7351 :
7352 else
7353 rm -rf conftest.one conftest.two conftest.dir
7354 echo one > conftest.one
7355 echo two > conftest.two
7356 mkdir conftest.dir
7357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7358 test -s conftest.one && test -s conftest.two &&
7359 test -s conftest.dir/conftest.one &&
7360 test -s conftest.dir/conftest.two
7361 then
7362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7363 break 3
7364 fi
7365 fi
7366 fi
7367 done
7368 done
7369 ;;
7370 esac
7371
7372 done
7373 IFS=$as_save_IFS
7374
7375 rm -rf conftest.one conftest.two conftest.dir
7376
7377 fi
7378 if test "${ac_cv_path_install+set}" = set; then
7379 INSTALL=$ac_cv_path_install
7380 else
7381 # As a last resort, use the slow shell script. Don't cache a
7382 # value for INSTALL within a source directory, because that will
7383 # break other packages using the cache if that directory is
7384 # removed, or if the value is a relative name.
7385 INSTALL=$ac_install_sh
7386 fi
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7389 $as_echo "$INSTALL" >&6; }
7390
7391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7392 # It thinks the first close brace ends the variable substitution.
7393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7394
7395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7396
7397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7400 $as_echo_n "checking whether build environment is sane... " >&6; }
7401 # Just in case
7402 sleep 1
7403 echo timestamp > conftest.file
7404 # Reject unsafe characters in $srcdir or the absolute working directory
7405 # name. Accept space and tab only in the latter.
7406 am_lf='
7407 '
7408 case `pwd` in
7409 *[\\\"\#\$\&\'\`$am_lf]*)
7410 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7411 esac
7412 case $srcdir in
7413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7414 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7415 esac
7416
7417 # Do `set' in a subshell so we don't clobber the current shell's
7418 # arguments. Must try -L first in case configure is actually a
7419 # symlink; some systems play weird games with the mod time of symlinks
7420 # (eg FreeBSD returns the mod time of the symlink's containing
7421 # directory).
7422 if (
7423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7424 if test "$*" = "X"; then
7425 # -L didn't work.
7426 set X `ls -t "$srcdir/configure" conftest.file`
7427 fi
7428 rm -f conftest.file
7429 if test "$*" != "X $srcdir/configure conftest.file" \
7430 && test "$*" != "X conftest.file $srcdir/configure"; then
7431
7432 # If neither matched, then we have a broken ls. This can happen
7433 # if, for instance, CONFIG_SHELL is bash and it inherits a
7434 # broken ls alias from the environment. This has actually
7435 # happened. Such a system could not be considered "sane".
7436 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7437 alias in your environment" "$LINENO" 5
7438 fi
7439
7440 test "$2" = conftest.file
7441 )
7442 then
7443 # Ok.
7444 :
7445 else
7446 as_fn_error "newly created file is older than distributed files!
7447 Check your system clock" "$LINENO" 5
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450 $as_echo "yes" >&6; }
7451 test "$program_prefix" != NONE &&
7452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7453 # Use a double $ so make ignores it.
7454 test "$program_suffix" != NONE &&
7455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7456 # Double any \ or $.
7457 # By default was `s,x,x', remove it if useless.
7458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7460
7461 # expand $ac_aux_dir to an absolute path
7462 am_aux_dir=`cd $ac_aux_dir && pwd`
7463
7464 if test x"${MISSING+set}" != xset; then
7465 case $am_aux_dir in
7466 *\ * | *\ *)
7467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7468 *)
7469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7470 esac
7471 fi
7472 # Use eval to expand $SHELL
7473 if eval "$MISSING --run true"; then
7474 am_missing_run="$MISSING --run "
7475 else
7476 am_missing_run=
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7478 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7479 fi
7480
7481 if test x"${install_sh}" != xset; then
7482 case $am_aux_dir in
7483 *\ * | *\ *)
7484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7485 *)
7486 install_sh="\${SHELL} $am_aux_dir/install-sh"
7487 esac
7488 fi
7489
7490 # Installed binaries are usually stripped using `strip' when the user
7491 # run `make install-strip'. However `strip' might not be the right
7492 # tool to use in cross-compilation environments, therefore Automake
7493 # will honor the `STRIP' environment variable to overrule this program.
7494 if test "$cross_compiling" != no; then
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}strip; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_prog_STRIP+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 if test -n "$STRIP"; then
7504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 STRIP=$ac_cv_prog_STRIP
7524 if test -n "$STRIP"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7526 $as_echo "$STRIP" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_STRIP"; then
7535 ac_ct_STRIP=$STRIP
7536 # Extract the first word of "strip", so it can be a program name with args.
7537 set dummy strip; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 if test -n "$ac_ct_STRIP"; then
7544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_ac_ct_STRIP="strip"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7564 if test -n "$ac_ct_STRIP"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7566 $as_echo "$ac_ct_STRIP" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572 if test "x$ac_ct_STRIP" = x; then
7573 STRIP=":"
7574 else
7575 case $cross_compiling:$ac_tool_warned in
7576 yes:)
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579 ac_tool_warned=yes ;;
7580 esac
7581 STRIP=$ac_ct_STRIP
7582 fi
7583 else
7584 STRIP="$ac_cv_prog_STRIP"
7585 fi
7586
7587 fi
7588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7592 if test -z "$MKDIR_P"; then
7593 if test "${ac_cv_path_mkdir+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_prog in mkdir gmkdir; do
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7605 'mkdir (GNU coreutils) '* | \
7606 'mkdir (coreutils) '* | \
7607 'mkdir (fileutils) '4.1*)
7608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7609 break 3;;
7610 esac
7611 done
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617
7618 if test "${ac_cv_path_mkdir+set}" = set; then
7619 MKDIR_P="$ac_cv_path_mkdir -p"
7620 else
7621 # As a last resort, use the slow shell script. Don't cache a
7622 # value for MKDIR_P within a source directory, because that will
7623 # break other packages using the cache if that directory is
7624 # removed, or if the value is a relative name.
7625 test -d ./--version && rmdir ./--version
7626 MKDIR_P="$ac_install_sh -d"
7627 fi
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7630 $as_echo "$MKDIR_P" >&6; }
7631
7632
7633 mkdir_p="$MKDIR_P"
7634 case $mkdir_p in
7635 [\\/$]* | ?:[\\/]*) ;;
7636 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7637 esac
7638
7639 for ac_prog in gawk mawk nawk awk
7640 do
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_AWK+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$AWK"; then
7649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_AWK="$ac_prog"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 AWK=$ac_cv_prog_AWK
7669 if test -n "$AWK"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7671 $as_echo "$AWK" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677
7678 test -n "$AWK" && break
7679 done
7680
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7682 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7683 set x ${MAKE-make}
7684 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7685 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat >conftest.make <<\_ACEOF
7689 SHELL = /bin/sh
7690 all:
7691 @echo '@@@%%%=$(MAKE)=@@@%%%'
7692 _ACEOF
7693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7695 *@@@%%%=?*=@@@%%%*)
7696 eval ac_cv_prog_make_${ac_make}_set=yes;;
7697 *)
7698 eval ac_cv_prog_make_${ac_make}_set=no;;
7699 esac
7700 rm -f conftest.make
7701 fi
7702 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7705 SET_MAKE=
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 SET_MAKE="MAKE=${MAKE-make}"
7710 fi
7711
7712 rm -rf .tst 2>/dev/null
7713 mkdir .tst 2>/dev/null
7714 if test -d .tst; then
7715 am__leading_dot=.
7716 else
7717 am__leading_dot=_
7718 fi
7719 rmdir .tst 2>/dev/null
7720
7721 DEPDIR="${am__leading_dot}deps"
7722
7723 ac_config_commands="$ac_config_commands depfiles"
7724
7725
7726 am_make=${MAKE-make}
7727 cat > confinc << 'END'
7728 am__doit:
7729 @echo this is the am__doit target
7730 .PHONY: am__doit
7731 END
7732 # If we don't find an include directive, just comment out the code.
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7734 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7735 am__include="#"
7736 am__quote=
7737 _am_result=none
7738 # First try GNU make style include.
7739 echo "include confinc" > confmf
7740 # Ignore all kinds of additional output from `make'.
7741 case `$am_make -s -f confmf 2> /dev/null` in #(
7742 *the\ am__doit\ target*)
7743 am__include=include
7744 am__quote=
7745 _am_result=GNU
7746 ;;
7747 esac
7748 # Now try BSD make style include.
7749 if test "$am__include" = "#"; then
7750 echo '.include "confinc"' > confmf
7751 case `$am_make -s -f confmf 2> /dev/null` in #(
7752 *the\ am__doit\ target*)
7753 am__include=.include
7754 am__quote="\""
7755 _am_result=BSD
7756 ;;
7757 esac
7758 fi
7759
7760
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7762 $as_echo "$_am_result" >&6; }
7763 rm -f confinc confmf
7764
7765 # Check whether --enable-dependency-tracking was given.
7766 if test "${enable_dependency_tracking+set}" = set; then :
7767 enableval=$enable_dependency_tracking;
7768 fi
7769
7770 if test "x$enable_dependency_tracking" != xno; then
7771 am_depcomp="$ac_aux_dir/depcomp"
7772 AMDEPBACKSLASH='\'
7773 fi
7774 if test "x$enable_dependency_tracking" != xno; then
7775 AMDEP_TRUE=
7776 AMDEP_FALSE='#'
7777 else
7778 AMDEP_TRUE='#'
7779 AMDEP_FALSE=
7780 fi
7781
7782
7783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7785 # is not polluted with repeated "-I."
7786 am__isrc=' -I$(srcdir)'
7787 # test to see if srcdir already configured
7788 if test -f $srcdir/config.status; then
7789 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7790 fi
7791 fi
7792
7793 # test whether we have cygpath
7794 if test -z "$CYGPATH_W"; then
7795 if (cygpath --version) >/dev/null 2>/dev/null; then
7796 CYGPATH_W='cygpath -w'
7797 else
7798 CYGPATH_W=echo
7799 fi
7800 fi
7801
7802
7803 # Define the identity of the package.
7804 PACKAGE=libgnu
7805 VERSION=UNUSED-VERSION
7806
7807
7808 # Some tools Automake needs.
7809
7810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7811
7812
7813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7814
7815
7816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7817
7818
7819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7820
7821
7822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7823
7824 # We need awk for the "check" target. The system "awk" is bad on
7825 # some platforms.
7826 # Always define AMTAR for backward compatibility.
7827
7828 AMTAR=${AMTAR-"${am_missing_run}tar"}
7829
7830 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7831
7832
7833
7834
7835 depcc="$CC" am_compiler_list=
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7838 $as_echo_n "checking dependency style of $depcc... " >&6; }
7839 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7843 # We make a subdir and do the tests there. Otherwise we can end up
7844 # making bogus files that we don't know about and never remove. For
7845 # instance it was reported that on HP-UX the gcc test will end up
7846 # making a dummy file named `D' -- because `-MD' means `put the output
7847 # in D'.
7848 mkdir conftest.dir
7849 # Copy depcomp to subdir because otherwise we won't find it if we're
7850 # using a relative directory.
7851 cp "$am_depcomp" conftest.dir
7852 cd conftest.dir
7853 # We will build objects and dependencies in a subdirectory because
7854 # it helps to detect inapplicable dependency modes. For instance
7855 # both Tru64's cc and ICC support -MD to output dependencies as a
7856 # side effect of compilation, but ICC will put the dependencies in
7857 # the current directory while Tru64 will put them in the object
7858 # directory.
7859 mkdir sub
7860
7861 am_cv_CC_dependencies_compiler_type=none
7862 if test "$am_compiler_list" = ""; then
7863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7864 fi
7865 am__universal=false
7866 case " $depcc " in #(
7867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7868 esac
7869
7870 for depmode in $am_compiler_list; do
7871 # Setup a source with many dependencies, because some compilers
7872 # like to wrap large dependency lists on column 80 (with \), and
7873 # we should not choose a depcomp mode which is confused by this.
7874 #
7875 # We need to recreate these files for each test, as the compiler may
7876 # overwrite some of them when testing with obscure command lines.
7877 # This happens at least with the AIX C compiler.
7878 : > sub/conftest.c
7879 for i in 1 2 3 4 5 6; do
7880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7882 # Solaris 8's {/usr,}/bin/sh.
7883 touch sub/conftst$i.h
7884 done
7885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7886
7887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7888 # mode. It turns out that the SunPro C++ compiler does not properly
7889 # handle `-M -o', and we need to detect this. Also, some Intel
7890 # versions had trouble with output in subdirs
7891 am__obj=sub/conftest.${OBJEXT-o}
7892 am__minus_obj="-o $am__obj"
7893 case $depmode in
7894 gcc)
7895 # This depmode causes a compiler race in universal mode.
7896 test "$am__universal" = false || continue
7897 ;;
7898 nosideeffect)
7899 # after this tag, mechanisms are not by side-effect, so they'll
7900 # only be used when explicitly requested
7901 if test "x$enable_dependency_tracking" = xyes; then
7902 continue
7903 else
7904 break
7905 fi
7906 ;;
7907 msvisualcpp | msvcmsys)
7908 # This compiler won't grok `-c -o', but also, the minuso test has
7909 # not run yet. These depmodes are late enough in the game, and
7910 # so weak that their functioning should not be impacted.
7911 am__obj=conftest.${OBJEXT-o}
7912 am__minus_obj=
7913 ;;
7914 none) break ;;
7915 esac
7916 if depmode=$depmode \
7917 source=sub/conftest.c object=$am__obj \
7918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7920 >/dev/null 2>conftest.err &&
7921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7925 # icc doesn't choke on unknown options, it will just issue warnings
7926 # or remarks (even with -Werror). So we grep stderr for any message
7927 # that says an option was ignored or not supported.
7928 # When given -MP, icc 7.0 and 7.1 complain thusly:
7929 # icc: Command line warning: ignoring option '-M'; no argument required
7930 # The diagnosis changed in icc 8.0:
7931 # icc: Command line remark: option '-MP' not supported
7932 if (grep 'ignoring option' conftest.err ||
7933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7934 am_cv_CC_dependencies_compiler_type=$depmode
7935 break
7936 fi
7937 fi
7938 done
7939
7940 cd ..
7941 rm -rf conftest.dir
7942 else
7943 am_cv_CC_dependencies_compiler_type=none
7944 fi
7945
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7948 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7950
7951 if
7952 test "x$enable_dependency_tracking" != xno \
7953 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7954 am__fastdepCC_TRUE=
7955 am__fastdepCC_FALSE='#'
7956 else
7957 am__fastdepCC_TRUE='#'
7958 am__fastdepCC_FALSE=
7959 fi
7960
7961
7962
7963
7964 # --------------------- #
7965 # Checks for programs. #
7966 # --------------------- #
7967
7968
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7970 $as_echo_n "checking whether ln -s works... " >&6; }
7971 LN_S=$as_ln_s
7972 if test "$LN_S" = "ln -s"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974 $as_echo "yes" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7977 $as_echo "no, using $LN_S" >&6; }
7978 fi
7979
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$RANLIB"; then
7989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 RANLIB=$ac_cv_prog_RANLIB
8009 if test -n "$RANLIB"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8011 $as_echo "$RANLIB" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 if test -z "$ac_cv_prog_RANLIB"; then
8020 ac_ct_RANLIB=$RANLIB
8021 # Extract the first word of "ranlib", so it can be a program name with args.
8022 set dummy ranlib; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$ac_ct_RANLIB"; then
8029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_ac_ct_RANLIB="ranlib"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8049 if test -n "$ac_ct_RANLIB"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8051 $as_echo "$ac_ct_RANLIB" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057 if test "x$ac_ct_RANLIB" = x; then
8058 RANLIB=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 RANLIB=$ac_ct_RANLIB
8067 fi
8068 else
8069 RANLIB="$ac_cv_prog_RANLIB"
8070 fi
8071
8072
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}ar; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_AR="${ac_tool_prefix}ar"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 AR=$ac_cv_prog_AR
8102 if test -n "$AR"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104 $as_echo "$AR" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_AR"; then
8113 ac_ct_AR=$AR
8114 # Extract the first word of "ar", so it can be a program name with args.
8115 set dummy ar; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 if test -n "$ac_ct_AR"; then
8122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_AR="ar"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8142 if test -n "$ac_ct_AR"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8144 $as_echo "$ac_ct_AR" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150 if test "x$ac_ct_AR" = x; then
8151 AR=""
8152 else
8153 case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157 ac_tool_warned=yes ;;
8158 esac
8159 AR=$ac_ct_AR
8160 fi
8161 else
8162 AR="$ac_cv_prog_AR"
8163 fi
8164
8165
8166 # ---------------------- #
8167 # Checks for libraries. #
8168 # ---------------------- #
8169
8170 ac_config_files="$ac_config_files Makefile import/Makefile"
8171
8172 ac_config_commands="$ac_config_commands default"
8173
8174 cat >confcache <<\_ACEOF
8175 # This file is a shell script that caches the results of configure
8176 # tests run on this system so they can be shared between configure
8177 # scripts and configure runs, see configure's option --config-cache.
8178 # It is not useful on other systems. If it contains results you don't
8179 # want to keep, you may remove or edit it.
8180 #
8181 # config.status only pays attention to the cache file if you give it
8182 # the --recheck option to rerun configure.
8183 #
8184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8186 # following values.
8187
8188 _ACEOF
8189
8190 # The following way of writing the cache mishandles newlines in values,
8191 # but we know of no workaround that is simple, portable, and efficient.
8192 # So, we kill variables containing newlines.
8193 # Ultrix sh set writes to stderr and can't be redirected directly,
8194 # and sets the high bit in the cache file unless we assign to the vars.
8195 (
8196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8197 eval ac_val=\$$ac_var
8198 case $ac_val in #(
8199 *${as_nl}*)
8200 case $ac_var in #(
8201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8202 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8203 esac
8204 case $ac_var in #(
8205 _ | IFS | as_nl) ;; #(
8206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8207 *) { eval $ac_var=; unset $ac_var;} ;;
8208 esac ;;
8209 esac
8210 done
8211
8212 (set) 2>&1 |
8213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8214 *${as_nl}ac_space=\ *)
8215 # `set' does not quote correctly, so add quotes: double-quote
8216 # substitution turns \\\\ into \\, and sed turns \\ into \.
8217 sed -n \
8218 "s/'/'\\\\''/g;
8219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8220 ;; #(
8221 *)
8222 # `set' quotes correctly as required by POSIX, so do not add quotes.
8223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8224 ;;
8225 esac |
8226 sort
8227 ) |
8228 sed '
8229 /^ac_cv_env_/b end
8230 t clear
8231 :clear
8232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8233 t end
8234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8235 :end' >>confcache
8236 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8237 if test -w "$cache_file"; then
8238 test "x$cache_file" != "x/dev/null" &&
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8240 $as_echo "$as_me: updating cache $cache_file" >&6;}
8241 cat confcache >$cache_file
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8245 fi
8246 fi
8247 rm -f confcache
8248
8249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8250 # Let make expand exec_prefix.
8251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8252
8253 DEFS=-DHAVE_CONFIG_H
8254
8255 ac_libobjs=
8256 ac_ltlibobjs=
8257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8258 # 1. Remove the extension, and $U if already installed.
8259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8260 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8262 # will be set to the directory where LIBOBJS objects are built.
8263 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8264 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8265 done
8266 LIBOBJS=$ac_libobjs
8267
8268 LTLIBOBJS=$ac_ltlibobjs
8269
8270
8271 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8272 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8274 fi
8275 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
8276 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
8277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8278 fi
8279 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
8280 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
8281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8282 fi
8283 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
8284 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
8285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8286 fi
8287
8288 gl_libobjs=
8289 gl_ltlibobjs=
8290 if test -n "$gl_LIBOBJS"; then
8291 # Remove the extension.
8292 sed_drop_objext='s/\.o$//;s/\.obj$//'
8293 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8294 gl_libobjs="$gl_libobjs $i.$ac_objext"
8295 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
8296 done
8297 fi
8298 gl_LIBOBJS=$gl_libobjs
8299
8300 gl_LTLIBOBJS=$gl_ltlibobjs
8301
8302
8303
8304 gltests_libobjs=
8305 gltests_ltlibobjs=
8306 if test -n "$gltests_LIBOBJS"; then
8307 # Remove the extension.
8308 sed_drop_objext='s/\.o$//;s/\.obj$//'
8309 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8310 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
8311 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
8312 done
8313 fi
8314 gltests_LIBOBJS=$gltests_libobjs
8315
8316 gltests_LTLIBOBJS=$gltests_ltlibobjs
8317
8318
8319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8320 as_fn_error "conditional \"AMDEP\" was never defined.
8321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8322 fi
8323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8324 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8326 fi
8327 if test -n "$EXEEXT"; then
8328 am__EXEEXT_TRUE=
8329 am__EXEEXT_FALSE='#'
8330 else
8331 am__EXEEXT_TRUE='#'
8332 am__EXEEXT_FALSE=
8333 fi
8334
8335
8336 : ${CONFIG_STATUS=./config.status}
8337 ac_write_fail=0
8338 ac_clean_files_save=$ac_clean_files
8339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8341 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8342 as_write_fail=0
8343 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8344 #! $SHELL
8345 # Generated by $as_me.
8346 # Run this file to recreate the current configuration.
8347 # Compiler output produced by configure, useful for debugging
8348 # configure, is in config.log if it exists.
8349
8350 debug=false
8351 ac_cs_recheck=false
8352 ac_cs_silent=false
8353
8354 SHELL=\${CONFIG_SHELL-$SHELL}
8355 export SHELL
8356 _ASEOF
8357 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8358 ## -------------------- ##
8359 ## M4sh Initialization. ##
8360 ## -------------------- ##
8361
8362 # Be more Bourne compatible
8363 DUALCASE=1; export DUALCASE # for MKS sh
8364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8365 emulate sh
8366 NULLCMD=:
8367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8368 # is contrary to our usage. Disable this feature.
8369 alias -g '${1+"$@"}'='"$@"'
8370 setopt NO_GLOB_SUBST
8371 else
8372 case `(set -o) 2>/dev/null` in #(
8373 *posix*) :
8374 set -o posix ;; #(
8375 *) :
8376 ;;
8377 esac
8378 fi
8379
8380
8381 as_nl='
8382 '
8383 export as_nl
8384 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8385 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8388 # Prefer a ksh shell builtin over an external printf program on Solaris,
8389 # but without wasting forks for bash or zsh.
8390 if test -z "$BASH_VERSION$ZSH_VERSION" \
8391 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8392 as_echo='print -r --'
8393 as_echo_n='print -rn --'
8394 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8395 as_echo='printf %s\n'
8396 as_echo_n='printf %s'
8397 else
8398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8399 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8400 as_echo_n='/usr/ucb/echo -n'
8401 else
8402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8403 as_echo_n_body='eval
8404 arg=$1;
8405 case $arg in #(
8406 *"$as_nl"*)
8407 expr "X$arg" : "X\\(.*\\)$as_nl";
8408 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8409 esac;
8410 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8411 '
8412 export as_echo_n_body
8413 as_echo_n='sh -c $as_echo_n_body as_echo'
8414 fi
8415 export as_echo_body
8416 as_echo='sh -c $as_echo_body as_echo'
8417 fi
8418
8419 # The user is always right.
8420 if test "${PATH_SEPARATOR+set}" != set; then
8421 PATH_SEPARATOR=:
8422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8423 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8424 PATH_SEPARATOR=';'
8425 }
8426 fi
8427
8428
8429 # IFS
8430 # We need space, tab and new line, in precisely that order. Quoting is
8431 # there to prevent editors from complaining about space-tab.
8432 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8433 # splitting by setting IFS to empty value.)
8434 IFS=" "" $as_nl"
8435
8436 # Find who we are. Look in the path if we contain no directory separator.
8437 case $0 in #((
8438 *[\\/]* ) as_myself=$0 ;;
8439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8445 done
8446 IFS=$as_save_IFS
8447
8448 ;;
8449 esac
8450 # We did not find ourselves, most probably we were run as `sh COMMAND'
8451 # in which case we are not to be found in the path.
8452 if test "x$as_myself" = x; then
8453 as_myself=$0
8454 fi
8455 if test ! -f "$as_myself"; then
8456 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8457 exit 1
8458 fi
8459
8460 # Unset variables that we do not need and which cause bugs (e.g. in
8461 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8462 # suppresses any "Segmentation fault" message there. '((' could
8463 # trigger a bug in pdksh 5.2.14.
8464 for as_var in BASH_ENV ENV MAIL MAILPATH
8465 do eval test x\${$as_var+set} = xset \
8466 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8467 done
8468 PS1='$ '
8469 PS2='> '
8470 PS4='+ '
8471
8472 # NLS nuisances.
8473 LC_ALL=C
8474 export LC_ALL
8475 LANGUAGE=C
8476 export LANGUAGE
8477
8478 # CDPATH.
8479 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8480
8481
8482 # as_fn_error ERROR [LINENO LOG_FD]
8483 # ---------------------------------
8484 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8485 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8486 # script with status $?, using 1 if that was 0.
8487 as_fn_error ()
8488 {
8489 as_status=$?; test $as_status -eq 0 && as_status=1
8490 if test "$3"; then
8491 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8492 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8493 fi
8494 $as_echo "$as_me: error: $1" >&2
8495 as_fn_exit $as_status
8496 } # as_fn_error
8497
8498
8499 # as_fn_set_status STATUS
8500 # -----------------------
8501 # Set $? to STATUS, without forking.
8502 as_fn_set_status ()
8503 {
8504 return $1
8505 } # as_fn_set_status
8506
8507 # as_fn_exit STATUS
8508 # -----------------
8509 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8510 as_fn_exit ()
8511 {
8512 set +e
8513 as_fn_set_status $1
8514 exit $1
8515 } # as_fn_exit
8516
8517 # as_fn_unset VAR
8518 # ---------------
8519 # Portably unset VAR.
8520 as_fn_unset ()
8521 {
8522 { eval $1=; unset $1;}
8523 }
8524 as_unset=as_fn_unset
8525 # as_fn_append VAR VALUE
8526 # ----------------------
8527 # Append the text in VALUE to the end of the definition contained in VAR. Take
8528 # advantage of any shell optimizations that allow amortized linear growth over
8529 # repeated appends, instead of the typical quadratic growth present in naive
8530 # implementations.
8531 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8532 eval 'as_fn_append ()
8533 {
8534 eval $1+=\$2
8535 }'
8536 else
8537 as_fn_append ()
8538 {
8539 eval $1=\$$1\$2
8540 }
8541 fi # as_fn_append
8542
8543 # as_fn_arith ARG...
8544 # ------------------
8545 # Perform arithmetic evaluation on the ARGs, and store the result in the
8546 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8547 # must be portable across $(()) and expr.
8548 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8549 eval 'as_fn_arith ()
8550 {
8551 as_val=$(( $* ))
8552 }'
8553 else
8554 as_fn_arith ()
8555 {
8556 as_val=`expr "$@" || test $? -eq 1`
8557 }
8558 fi # as_fn_arith
8559
8560
8561 if expr a : '\(a\)' >/dev/null 2>&1 &&
8562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8563 as_expr=expr
8564 else
8565 as_expr=false
8566 fi
8567
8568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8569 as_basename=basename
8570 else
8571 as_basename=false
8572 fi
8573
8574 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8575 as_dirname=dirname
8576 else
8577 as_dirname=false
8578 fi
8579
8580 as_me=`$as_basename -- "$0" ||
8581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8582 X"$0" : 'X\(//\)$' \| \
8583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8584 $as_echo X/"$0" |
8585 sed '/^.*\/\([^/][^/]*\)\/*$/{
8586 s//\1/
8587 q
8588 }
8589 /^X\/\(\/\/\)$/{
8590 s//\1/
8591 q
8592 }
8593 /^X\/\(\/\).*/{
8594 s//\1/
8595 q
8596 }
8597 s/.*/./; q'`
8598
8599 # Avoid depending upon Character Ranges.
8600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8603 as_cr_digits='0123456789'
8604 as_cr_alnum=$as_cr_Letters$as_cr_digits
8605
8606 ECHO_C= ECHO_N= ECHO_T=
8607 case `echo -n x` in #(((((
8608 -n*)
8609 case `echo 'xy\c'` in
8610 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8611 xy) ECHO_C='\c';;
8612 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8613 ECHO_T=' ';;
8614 esac;;
8615 *)
8616 ECHO_N='-n';;
8617 esac
8618
8619 rm -f conf$$ conf$$.exe conf$$.file
8620 if test -d conf$$.dir; then
8621 rm -f conf$$.dir/conf$$.file
8622 else
8623 rm -f conf$$.dir
8624 mkdir conf$$.dir 2>/dev/null
8625 fi
8626 if (echo >conf$$.file) 2>/dev/null; then
8627 if ln -s conf$$.file conf$$ 2>/dev/null; then
8628 as_ln_s='ln -s'
8629 # ... but there are two gotchas:
8630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8632 # In both cases, we have to default to `cp -p'.
8633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8634 as_ln_s='cp -p'
8635 elif ln conf$$.file conf$$ 2>/dev/null; then
8636 as_ln_s=ln
8637 else
8638 as_ln_s='cp -p'
8639 fi
8640 else
8641 as_ln_s='cp -p'
8642 fi
8643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8644 rmdir conf$$.dir 2>/dev/null
8645
8646
8647 # as_fn_mkdir_p
8648 # -------------
8649 # Create "$as_dir" as a directory, including parents if necessary.
8650 as_fn_mkdir_p ()
8651 {
8652
8653 case $as_dir in #(
8654 -*) as_dir=./$as_dir;;
8655 esac
8656 test -d "$as_dir" || eval $as_mkdir_p || {
8657 as_dirs=
8658 while :; do
8659 case $as_dir in #(
8660 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8661 *) as_qdir=$as_dir;;
8662 esac
8663 as_dirs="'$as_qdir' $as_dirs"
8664 as_dir=`$as_dirname -- "$as_dir" ||
8665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8666 X"$as_dir" : 'X\(//\)[^/]' \| \
8667 X"$as_dir" : 'X\(//\)$' \| \
8668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8669 $as_echo X"$as_dir" |
8670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8671 s//\1/
8672 q
8673 }
8674 /^X\(\/\/\)[^/].*/{
8675 s//\1/
8676 q
8677 }
8678 /^X\(\/\/\)$/{
8679 s//\1/
8680 q
8681 }
8682 /^X\(\/\).*/{
8683 s//\1/
8684 q
8685 }
8686 s/.*/./; q'`
8687 test -d "$as_dir" && break
8688 done
8689 test -z "$as_dirs" || eval "mkdir $as_dirs"
8690 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8691
8692
8693 } # as_fn_mkdir_p
8694 if mkdir -p . 2>/dev/null; then
8695 as_mkdir_p='mkdir -p "$as_dir"'
8696 else
8697 test -d ./-p && rmdir ./-p
8698 as_mkdir_p=false
8699 fi
8700
8701 if test -x / >/dev/null 2>&1; then
8702 as_test_x='test -x'
8703 else
8704 if ls -dL / >/dev/null 2>&1; then
8705 as_ls_L_option=L
8706 else
8707 as_ls_L_option=
8708 fi
8709 as_test_x='
8710 eval sh -c '\''
8711 if test -d "$1"; then
8712 test -d "$1/.";
8713 else
8714 case $1 in #(
8715 -*)set "./$1";;
8716 esac;
8717 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8718 ???[sx]*):;;*)false;;esac;fi
8719 '\'' sh
8720 '
8721 fi
8722 as_executable_p=$as_test_x
8723
8724 # Sed expression to map a string onto a valid CPP name.
8725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8726
8727 # Sed expression to map a string onto a valid variable name.
8728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8729
8730
8731 exec 6>&1
8732 ## ----------------------------------- ##
8733 ## Main body of $CONFIG_STATUS script. ##
8734 ## ----------------------------------- ##
8735 _ASEOF
8736 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8737
8738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8739 # Save the log message, to keep $0 and so on meaningful, and to
8740 # report actual input values of CONFIG_FILES etc. instead of their
8741 # values after options handling.
8742 ac_log="
8743 This file was extended by $as_me, which was
8744 generated by GNU Autoconf 2.64. Invocation command line was
8745
8746 CONFIG_FILES = $CONFIG_FILES
8747 CONFIG_HEADERS = $CONFIG_HEADERS
8748 CONFIG_LINKS = $CONFIG_LINKS
8749 CONFIG_COMMANDS = $CONFIG_COMMANDS
8750 $ $0 $@
8751
8752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8753 "
8754
8755 _ACEOF
8756
8757 case $ac_config_files in *"
8758 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8759 esac
8760
8761 case $ac_config_headers in *"
8762 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8763 esac
8764
8765
8766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8767 # Files that config.status was made for.
8768 config_files="$ac_config_files"
8769 config_headers="$ac_config_headers"
8770 config_commands="$ac_config_commands"
8771
8772 _ACEOF
8773
8774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8775 ac_cs_usage="\
8776 \`$as_me' instantiates files and other configuration actions
8777 from templates according to the current configuration. Unless the files
8778 and actions are specified as TAGs, all are instantiated by default.
8779
8780 Usage: $0 [OPTION]... [TAG]...
8781
8782 -h, --help print this help, then exit
8783 -V, --version print version number and configuration settings, then exit
8784 -q, --quiet, --silent
8785 do not print progress messages
8786 -d, --debug don't remove temporary files
8787 --recheck update $as_me by reconfiguring in the same conditions
8788 --file=FILE[:TEMPLATE]
8789 instantiate the configuration file FILE
8790 --header=FILE[:TEMPLATE]
8791 instantiate the configuration header FILE
8792
8793 Configuration files:
8794 $config_files
8795
8796 Configuration headers:
8797 $config_headers
8798
8799 Configuration commands:
8800 $config_commands
8801
8802 Report bugs to the package provider."
8803
8804 _ACEOF
8805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8806 ac_cs_version="\\
8807 config.status
8808 configured by $0, generated by GNU Autoconf 2.64,
8809 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8810
8811 Copyright (C) 2009 Free Software Foundation, Inc.
8812 This config.status script is free software; the Free Software Foundation
8813 gives unlimited permission to copy, distribute and modify it."
8814
8815 ac_pwd='$ac_pwd'
8816 srcdir='$srcdir'
8817 INSTALL='$INSTALL'
8818 MKDIR_P='$MKDIR_P'
8819 AWK='$AWK'
8820 test -n "\$AWK" || AWK=awk
8821 _ACEOF
8822
8823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8824 # The default lists apply if the user does not specify any file.
8825 ac_need_defaults=:
8826 while test $# != 0
8827 do
8828 case $1 in
8829 --*=*)
8830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8832 ac_shift=:
8833 ;;
8834 *)
8835 ac_option=$1
8836 ac_optarg=$2
8837 ac_shift=shift
8838 ;;
8839 esac
8840
8841 case $ac_option in
8842 # Handling of the options.
8843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8844 ac_cs_recheck=: ;;
8845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8846 $as_echo "$ac_cs_version"; exit ;;
8847 --debug | --debu | --deb | --de | --d | -d )
8848 debug=: ;;
8849 --file | --fil | --fi | --f )
8850 $ac_shift
8851 case $ac_optarg in
8852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8853 esac
8854 as_fn_append CONFIG_FILES " '$ac_optarg'"
8855 ac_need_defaults=false;;
8856 --header | --heade | --head | --hea )
8857 $ac_shift
8858 case $ac_optarg in
8859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8860 esac
8861 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8862 ac_need_defaults=false;;
8863 --he | --h)
8864 # Conflict between --help and --header
8865 as_fn_error "ambiguous option: \`$1'
8866 Try \`$0 --help' for more information.";;
8867 --help | --hel | -h )
8868 $as_echo "$ac_cs_usage"; exit ;;
8869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8871 ac_cs_silent=: ;;
8872
8873 # This is an error.
8874 -*) as_fn_error "unrecognized option: \`$1'
8875 Try \`$0 --help' for more information." ;;
8876
8877 *) as_fn_append ac_config_targets " $1"
8878 ac_need_defaults=false ;;
8879
8880 esac
8881 shift
8882 done
8883
8884 ac_configure_extra_args=
8885
8886 if $ac_cs_silent; then
8887 exec 6>/dev/null
8888 ac_configure_extra_args="$ac_configure_extra_args --silent"
8889 fi
8890
8891 _ACEOF
8892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8893 if \$ac_cs_recheck; then
8894 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8895 shift
8896 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8897 CONFIG_SHELL='$SHELL'
8898 export CONFIG_SHELL
8899 exec "\$@"
8900 fi
8901
8902 _ACEOF
8903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8904 exec 5>>config.log
8905 {
8906 echo
8907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8908 ## Running $as_me. ##
8909 _ASBOX
8910 $as_echo "$ac_log"
8911 } >&5
8912
8913 _ACEOF
8914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8915 #
8916 # INIT-COMMANDS
8917 #
8918 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8919
8920 _ACEOF
8921
8922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8923
8924 # Handling of arguments.
8925 for ac_config_target in $ac_config_targets
8926 do
8927 case $ac_config_target in
8928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8931 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
8932 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8933
8934 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8935 esac
8936 done
8937
8938
8939 # If the user did not use the arguments to specify the items to instantiate,
8940 # then the envvar interface is used. Set only those that are not.
8941 # We use the long form for the default assignment because of an extremely
8942 # bizarre bug on SunOS 4.1.3.
8943 if $ac_need_defaults; then
8944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8947 fi
8948
8949 # Have a temporary directory for convenience. Make it in the build tree
8950 # simply because there is no reason against having it here, and in addition,
8951 # creating and moving files from /tmp can sometimes cause problems.
8952 # Hook for its removal unless debugging.
8953 # Note that there is a small window in which the directory will not be cleaned:
8954 # after its creation but before its name has been assigned to `$tmp'.
8955 $debug ||
8956 {
8957 tmp=
8958 trap 'exit_status=$?
8959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8960 ' 0
8961 trap 'as_fn_exit 1' 1 2 13 15
8962 }
8963 # Create a (secure) tmp directory for tmp files.
8964
8965 {
8966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8967 test -n "$tmp" && test -d "$tmp"
8968 } ||
8969 {
8970 tmp=./conf$$-$RANDOM
8971 (umask 077 && mkdir "$tmp")
8972 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8973
8974 # Set up the scripts for CONFIG_FILES section.
8975 # No need to generate them if there are no CONFIG_FILES.
8976 # This happens for instance with `./config.status config.h'.
8977 if test -n "$CONFIG_FILES"; then
8978
8979
8980 ac_cr=`echo X | tr X '\015'`
8981 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8982 # But we know of no other shell where ac_cr would be empty at this
8983 # point, so we can use a bashism as a fallback.
8984 if test "x$ac_cr" = x; then
8985 eval ac_cr=\$\'\\r\'
8986 fi
8987 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8988 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8989 ac_cs_awk_cr='\r'
8990 else
8991 ac_cs_awk_cr=$ac_cr
8992 fi
8993
8994 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8995 _ACEOF
8996
8997
8998 {
8999 echo "cat >conf$$subs.awk <<_ACEOF" &&
9000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9001 echo "_ACEOF"
9002 } >conf$$subs.sh ||
9003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9004 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9005 ac_delim='%!_!# '
9006 for ac_last_try in false false false false false :; do
9007 . ./conf$$subs.sh ||
9008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9009
9010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9011 if test $ac_delim_n = $ac_delim_num; then
9012 break
9013 elif $ac_last_try; then
9014 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9015 else
9016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9017 fi
9018 done
9019 rm -f conf$$subs.sh
9020
9021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9022 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9023 _ACEOF
9024 sed -n '
9025 h
9026 s/^/S["/; s/!.*/"]=/
9027 p
9028 g
9029 s/^[^!]*!//
9030 :repl
9031 t repl
9032 s/'"$ac_delim"'$//
9033 t delim
9034 :nl
9035 h
9036 s/\(.\{148\}\).*/\1/
9037 t more1
9038 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9039 p
9040 n
9041 b repl
9042 :more1
9043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9044 p
9045 g
9046 s/.\{148\}//
9047 t nl
9048 :delim
9049 h
9050 s/\(.\{148\}\).*/\1/
9051 t more2
9052 s/["\\]/\\&/g; s/^/"/; s/$/"/
9053 p
9054 b
9055 :more2
9056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9057 p
9058 g
9059 s/.\{148\}//
9060 t delim
9061 ' <conf$$subs.awk | sed '
9062 /^[^""]/{
9063 N
9064 s/\n//
9065 }
9066 ' >>$CONFIG_STATUS || ac_write_fail=1
9067 rm -f conf$$subs.awk
9068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069 _ACAWK
9070 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9071 for (key in S) S_is_set[key] = 1
9072 FS = "\a"
9073
9074 }
9075 {
9076 line = $ 0
9077 nfields = split(line, field, "@")
9078 substed = 0
9079 len = length(field[1])
9080 for (i = 2; i < nfields; i++) {
9081 key = field[i]
9082 keylen = length(key)
9083 if (S_is_set[key]) {
9084 value = S[key]
9085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9086 len += length(value) + length(field[++i])
9087 substed = 1
9088 } else
9089 len += 1 + keylen
9090 }
9091
9092 print line
9093 }
9094
9095 _ACAWK
9096 _ACEOF
9097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9098 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9100 else
9101 cat
9102 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9103 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9104 _ACEOF
9105
9106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9107 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9108 # trailing colons and then remove the whole line if VPATH becomes empty
9109 # (actually we leave an empty line to preserve line numbers).
9110 if test "x$srcdir" = x.; then
9111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9112 s/:*\$(srcdir):*/:/
9113 s/:*\${srcdir}:*/:/
9114 s/:*@srcdir@:*/:/
9115 s/^\([^=]*=[ ]*\):*/\1/
9116 s/:*$//
9117 s/^[^=]*=[ ]*$//
9118 }'
9119 fi
9120
9121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9122 fi # test -n "$CONFIG_FILES"
9123
9124 # Set up the scripts for CONFIG_HEADERS section.
9125 # No need to generate them if there are no CONFIG_HEADERS.
9126 # This happens for instance with `./config.status Makefile'.
9127 if test -n "$CONFIG_HEADERS"; then
9128 cat >"$tmp/defines.awk" <<\_ACAWK ||
9129 BEGIN {
9130 _ACEOF
9131
9132 # Transform confdefs.h into an awk script `defines.awk', embedded as
9133 # here-document in config.status, that substitutes the proper values into
9134 # config.h.in to produce config.h.
9135
9136 # Create a delimiter string that does not exist in confdefs.h, to ease
9137 # handling of long lines.
9138 ac_delim='%!_!# '
9139 for ac_last_try in false false :; do
9140 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9141 if test -z "$ac_t"; then
9142 break
9143 elif $ac_last_try; then
9144 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9145 else
9146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9147 fi
9148 done
9149
9150 # For the awk script, D is an array of macro values keyed by name,
9151 # likewise P contains macro parameters if any. Preserve backslash
9152 # newline sequences.
9153
9154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9155 sed -n '
9156 s/.\{148\}/&'"$ac_delim"'/g
9157 t rset
9158 :rset
9159 s/^[ ]*#[ ]*define[ ][ ]*/ /
9160 t def
9161 d
9162 :def
9163 s/\\$//
9164 t bsnl
9165 s/["\\]/\\&/g
9166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9167 D["\1"]=" \3"/p
9168 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9169 d
9170 :bsnl
9171 s/["\\]/\\&/g
9172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9173 D["\1"]=" \3\\\\\\n"\\/p
9174 t cont
9175 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9176 t cont
9177 d
9178 :cont
9179 n
9180 s/.\{148\}/&'"$ac_delim"'/g
9181 t clear
9182 :clear
9183 s/\\$//
9184 t bsnlc
9185 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9186 d
9187 :bsnlc
9188 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9189 b cont
9190 ' <confdefs.h | sed '
9191 s/'"$ac_delim"'/"\\\
9192 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9193
9194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9195 for (key in D) D_is_set[key] = 1
9196 FS = "\a"
9197 }
9198 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9199 line = \$ 0
9200 split(line, arg, " ")
9201 if (arg[1] == "#") {
9202 defundef = arg[2]
9203 mac1 = arg[3]
9204 } else {
9205 defundef = substr(arg[1], 2)
9206 mac1 = arg[2]
9207 }
9208 split(mac1, mac2, "(") #)
9209 macro = mac2[1]
9210 prefix = substr(line, 1, index(line, defundef) - 1)
9211 if (D_is_set[macro]) {
9212 # Preserve the white space surrounding the "#".
9213 print prefix "define", macro P[macro] D[macro]
9214 next
9215 } else {
9216 # Replace #undef with comments. This is necessary, for example,
9217 # in the case of _POSIX_SOURCE, which is predefined and required
9218 # on some systems where configure will not decide to define it.
9219 if (defundef == "undef") {
9220 print "/*", prefix defundef, macro, "*/"
9221 next
9222 }
9223 }
9224 }
9225 { print }
9226 _ACAWK
9227 _ACEOF
9228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9229 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9230 fi # test -n "$CONFIG_HEADERS"
9231
9232
9233 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9234 shift
9235 for ac_tag
9236 do
9237 case $ac_tag in
9238 :[FHLC]) ac_mode=$ac_tag; continue;;
9239 esac
9240 case $ac_mode$ac_tag in
9241 :[FHL]*:*);;
9242 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9243 :[FH]-) ac_tag=-:-;;
9244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9245 esac
9246 ac_save_IFS=$IFS
9247 IFS=:
9248 set x $ac_tag
9249 IFS=$ac_save_IFS
9250 shift
9251 ac_file=$1
9252 shift
9253
9254 case $ac_mode in
9255 :L) ac_source=$1;;
9256 :[FH])
9257 ac_file_inputs=
9258 for ac_f
9259 do
9260 case $ac_f in
9261 -) ac_f="$tmp/stdin";;
9262 *) # Look for the file first in the build tree, then in the source tree
9263 # (if the path is not absolute). The absolute path cannot be DOS-style,
9264 # because $ac_f cannot contain `:'.
9265 test -f "$ac_f" ||
9266 case $ac_f in
9267 [\\/$]*) false;;
9268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9269 esac ||
9270 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9271 esac
9272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9273 as_fn_append ac_file_inputs " '$ac_f'"
9274 done
9275
9276 # Let's still pretend it is `configure' which instantiates (i.e., don't
9277 # use $as_me), people would be surprised to read:
9278 # /* config.h. Generated by config.status. */
9279 configure_input='Generated from '`
9280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9281 `' by configure.'
9282 if test x"$ac_file" != x-; then
9283 configure_input="$ac_file. $configure_input"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9285 $as_echo "$as_me: creating $ac_file" >&6;}
9286 fi
9287 # Neutralize special characters interpreted by sed in replacement strings.
9288 case $configure_input in #(
9289 *\&* | *\|* | *\\* )
9290 ac_sed_conf_input=`$as_echo "$configure_input" |
9291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9292 *) ac_sed_conf_input=$configure_input;;
9293 esac
9294
9295 case $ac_tag in
9296 *:-:* | *:-) cat >"$tmp/stdin" \
9297 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9298 esac
9299 ;;
9300 esac
9301
9302 ac_dir=`$as_dirname -- "$ac_file" ||
9303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$ac_file" : 'X\(//\)[^/]' \| \
9305 X"$ac_file" : 'X\(//\)$' \| \
9306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9307 $as_echo X"$ac_file" |
9308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9309 s//\1/
9310 q
9311 }
9312 /^X\(\/\/\)[^/].*/{
9313 s//\1/
9314 q
9315 }
9316 /^X\(\/\/\)$/{
9317 s//\1/
9318 q
9319 }
9320 /^X\(\/\).*/{
9321 s//\1/
9322 q
9323 }
9324 s/.*/./; q'`
9325 as_dir="$ac_dir"; as_fn_mkdir_p
9326 ac_builddir=.
9327
9328 case "$ac_dir" in
9329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9330 *)
9331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9332 # A ".." for each directory in $ac_dir_suffix.
9333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9334 case $ac_top_builddir_sub in
9335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9337 esac ;;
9338 esac
9339 ac_abs_top_builddir=$ac_pwd
9340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9341 # for backward compatibility:
9342 ac_top_builddir=$ac_top_build_prefix
9343
9344 case $srcdir in
9345 .) # We are building in place.
9346 ac_srcdir=.
9347 ac_top_srcdir=$ac_top_builddir_sub
9348 ac_abs_top_srcdir=$ac_pwd ;;
9349 [\\/]* | ?:[\\/]* ) # Absolute name.
9350 ac_srcdir=$srcdir$ac_dir_suffix;
9351 ac_top_srcdir=$srcdir
9352 ac_abs_top_srcdir=$srcdir ;;
9353 *) # Relative name.
9354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9355 ac_top_srcdir=$ac_top_build_prefix$srcdir
9356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9357 esac
9358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9359
9360
9361 case $ac_mode in
9362 :F)
9363 #
9364 # CONFIG_FILE
9365 #
9366
9367 case $INSTALL in
9368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9370 esac
9371 ac_MKDIR_P=$MKDIR_P
9372 case $MKDIR_P in
9373 [\\/$]* | ?:[\\/]* ) ;;
9374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9375 esac
9376 _ACEOF
9377
9378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9379 # If the template does not know about datarootdir, expand it.
9380 # FIXME: This hack should be removed a few years after 2.60.
9381 ac_datarootdir_hack=; ac_datarootdir_seen=
9382 ac_sed_dataroot='
9383 /datarootdir/ {
9384 p
9385 q
9386 }
9387 /@datadir@/p
9388 /@docdir@/p
9389 /@infodir@/p
9390 /@localedir@/p
9391 /@mandir@/p'
9392 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9393 *datarootdir*) ac_datarootdir_seen=yes;;
9394 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9396 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9397 _ACEOF
9398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9399 ac_datarootdir_hack='
9400 s&@datadir@&$datadir&g
9401 s&@docdir@&$docdir&g
9402 s&@infodir@&$infodir&g
9403 s&@localedir@&$localedir&g
9404 s&@mandir@&$mandir&g
9405 s&\\\${datarootdir}&$datarootdir&g' ;;
9406 esac
9407 _ACEOF
9408
9409 # Neutralize VPATH when `$srcdir' = `.'.
9410 # Shell code in configure.ac might set extrasub.
9411 # FIXME: do we really want to maintain this feature?
9412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9413 ac_sed_extra="$ac_vpsub
9414 $extrasub
9415 _ACEOF
9416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9417 :t
9418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9419 s|@configure_input@|$ac_sed_conf_input|;t t
9420 s&@top_builddir@&$ac_top_builddir_sub&;t t
9421 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9422 s&@srcdir@&$ac_srcdir&;t t
9423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9424 s&@top_srcdir@&$ac_top_srcdir&;t t
9425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9426 s&@builddir@&$ac_builddir&;t t
9427 s&@abs_builddir@&$ac_abs_builddir&;t t
9428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9429 s&@INSTALL@&$ac_INSTALL&;t t
9430 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9431 $ac_datarootdir_hack
9432 "
9433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9434 || as_fn_error "could not create $ac_file" "$LINENO" 5
9435
9436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9440 which seems to be undefined. Please make sure it is defined." >&5
9441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9442 which seems to be undefined. Please make sure it is defined." >&2;}
9443
9444 rm -f "$tmp/stdin"
9445 case $ac_file in
9446 -) cat "$tmp/out" && rm -f "$tmp/out";;
9447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9448 esac \
9449 || as_fn_error "could not create $ac_file" "$LINENO" 5
9450 ;;
9451 :H)
9452 #
9453 # CONFIG_HEADER
9454 #
9455 if test x"$ac_file" != x-; then
9456 {
9457 $as_echo "/* $configure_input */" \
9458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9459 } >"$tmp/config.h" \
9460 || as_fn_error "could not create $ac_file" "$LINENO" 5
9461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9464 else
9465 rm -f "$ac_file"
9466 mv "$tmp/config.h" "$ac_file" \
9467 || as_fn_error "could not create $ac_file" "$LINENO" 5
9468 fi
9469 else
9470 $as_echo "/* $configure_input */" \
9471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9472 || as_fn_error "could not create -" "$LINENO" 5
9473 fi
9474 # Compute "$ac_file"'s index in $config_headers.
9475 _am_arg="$ac_file"
9476 _am_stamp_count=1
9477 for _am_header in $config_headers :; do
9478 case $_am_header in
9479 $_am_arg | $_am_arg:* )
9480 break ;;
9481 * )
9482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9483 esac
9484 done
9485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487 X"$_am_arg" : 'X\(//\)[^/]' \| \
9488 X"$_am_arg" : 'X\(//\)$' \| \
9489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9490 $as_echo X"$_am_arg" |
9491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9492 s//\1/
9493 q
9494 }
9495 /^X\(\/\/\)[^/].*/{
9496 s//\1/
9497 q
9498 }
9499 /^X\(\/\/\)$/{
9500 s//\1/
9501 q
9502 }
9503 /^X\(\/\).*/{
9504 s//\1/
9505 q
9506 }
9507 s/.*/./; q'`/stamp-h$_am_stamp_count
9508 ;;
9509
9510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9511 $as_echo "$as_me: executing $ac_file commands" >&6;}
9512 ;;
9513 esac
9514
9515
9516 case $ac_file$ac_mode in
9517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9519 # are listed without --file. Let's play safe and only enable the eval
9520 # if we detect the quoting.
9521 case $CONFIG_FILES in
9522 *\'*) eval set x "$CONFIG_FILES" ;;
9523 *) set x $CONFIG_FILES ;;
9524 esac
9525 shift
9526 for mf
9527 do
9528 # Strip MF so we end up with the name of the file.
9529 mf=`echo "$mf" | sed -e 's/:.*$//'`
9530 # Check whether this is an Automake generated Makefile or not.
9531 # We used to match only the files named `Makefile.in', but
9532 # some people rename them; so instead we look at the file content.
9533 # Grep'ing the first line is not enough: some people post-process
9534 # each Makefile.in and add a new line on top of each file to say so.
9535 # Grep'ing the whole file is not good either: AIX grep has a line
9536 # limit of 2048, but all sed's we know have understand at least 4000.
9537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9538 dirpart=`$as_dirname -- "$mf" ||
9539 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9540 X"$mf" : 'X\(//\)[^/]' \| \
9541 X"$mf" : 'X\(//\)$' \| \
9542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9543 $as_echo X"$mf" |
9544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9545 s//\1/
9546 q
9547 }
9548 /^X\(\/\/\)[^/].*/{
9549 s//\1/
9550 q
9551 }
9552 /^X\(\/\/\)$/{
9553 s//\1/
9554 q
9555 }
9556 /^X\(\/\).*/{
9557 s//\1/
9558 q
9559 }
9560 s/.*/./; q'`
9561 else
9562 continue
9563 fi
9564 # Extract the definition of DEPDIR, am__include, and am__quote
9565 # from the Makefile without running `make'.
9566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9567 test -z "$DEPDIR" && continue
9568 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9569 test -z "am__include" && continue
9570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9571 # When using ansi2knr, U may be empty or an underscore; expand it
9572 U=`sed -n 's/^U = //p' < "$mf"`
9573 # Find all dependency output files, they are included files with
9574 # $(DEPDIR) in their names. We invoke sed twice because it is the
9575 # simplest approach to changing $(DEPDIR) to its actual value in the
9576 # expansion.
9577 for file in `sed -n "
9578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9580 # Make sure the directory exists.
9581 test -f "$dirpart/$file" && continue
9582 fdir=`$as_dirname -- "$file" ||
9583 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9584 X"$file" : 'X\(//\)[^/]' \| \
9585 X"$file" : 'X\(//\)$' \| \
9586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9587 $as_echo X"$file" |
9588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9589 s//\1/
9590 q
9591 }
9592 /^X\(\/\/\)[^/].*/{
9593 s//\1/
9594 q
9595 }
9596 /^X\(\/\/\)$/{
9597 s//\1/
9598 q
9599 }
9600 /^X\(\/\).*/{
9601 s//\1/
9602 q
9603 }
9604 s/.*/./; q'`
9605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9606 # echo "creating $dirpart/$file"
9607 echo '# dummy' > "$dirpart/$file"
9608 done
9609 done
9610 }
9611 ;;
9612 "default":C)
9613 case x$CONFIG_HEADERS in
9614 xconfig.h:config.in)
9615 echo > stamp-h ;;
9616 esac
9617 ;;
9618
9619 esac
9620 done # for ac_tag
9621
9622
9623 as_fn_exit 0
9624 _ACEOF
9625 ac_clean_files=$ac_clean_files_save
9626
9627 test $ac_write_fail = 0 ||
9628 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9629
9630
9631 # configure is writing to config.log, and then calls config.status.
9632 # config.status does its own redirection, appending to config.log.
9633 # Unfortunately, on DOS this fails, as config.log is still kept open
9634 # by configure, so config.status won't be able to write to it; its
9635 # output is simply discarded. So we exec the FD to /dev/null,
9636 # effectively closing config.log, so it can be properly (re)opened and
9637 # appended to by config.status. When coming back to configure, we
9638 # need to make the FD available again.
9639 if test "$no_create" != yes; then
9640 ac_cs_success=:
9641 ac_config_status_args=
9642 test "$silent" = yes &&
9643 ac_config_status_args="$ac_config_status_args --quiet"
9644 exec 5>/dev/null
9645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9646 exec 5>>config.log
9647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9648 # would make configure fail if this is the last instruction.
9649 $ac_cs_success || as_fn_exit $?
9650 fi
9651 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9653 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9654 fi
9655
9656
9657 exit 0
This page took 0.301953 seconds and 5 git commands to generate.