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