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