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