Move many configure checks to common.m4
[deliverable/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 SELFTEST_FALSE
628 SELFTEST_TRUE
629 LTLIBIPT
630 LIBIPT
631 HAVE_LIBIPT
632 PTHREAD_CFLAGS
633 PTHREAD_LIBS
634 PTHREAD_CC
635 ax_pthread_config
636 SED
637 ALLOCA
638 CATOBJEXT
639 GENCAT
640 INSTOBJEXT
641 DATADIRNAME
642 CATALOGS
643 POSUB
644 GMSGFMT
645 XGETTEXT
646 INCINTL
647 LIBINTL_DEP
648 LIBINTL
649 USE_NLS
650 CXX_DIALECT
651 HAVE_CXX11
652 EGREP
653 GREP
654 CPP
655 RANLIB
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 ac_ct_CXX
660 CXXFLAGS
661 CXX
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 AM_BACKSLASH
680 AM_DEFAULT_VERBOSITY
681 AM_DEFAULT_V
682 AM_V
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_plugins
766 enable_largefile
767 with_intel_pt
768 with_gnu_ld
769 enable_rpath
770 with_libipt_prefix
771 enable_unit_tests
772 '
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CXX
782 CXXFLAGS
783 CCC
784 CPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-maintainer-mode
1405 enable make rules and dependencies not useful (and
1406 sometimes confusing) to the casual installer
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-plugins Enable support for plugins
1414 --disable-largefile omit support for large files
1415 --disable-rpath do not hardcode runtime library paths
1416 --enable-unit-tests Enable the inclusion of unit tests when compiling
1417 GDB
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1423 --with-gnu-ld assume the C compiler uses GNU ld default=no
1424 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1425 --without-libipt-prefix don't search for libipt in includedir and libdir
1426
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CPP C preprocessor
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to the package provider.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 gdbsupport configure 1.0
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555 } # ac_fn_c_try_compile
1556
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_cxx_try_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_header_mongrel ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 else
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660 else
1661 ac_header_compiler=no
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1666
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676 else
1677 ac_header_preproc=no
1678 fi
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1682
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 eval "$3=\$ac_header_compiler"
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_mongrel
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839 # -------------------------------------------
1840 # Tests whether TYPE exists after having included INCLUDES, setting cache
1841 # variable VAR accordingly.
1842 ac_fn_c_check_type ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main ()
1856 {
1857 if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 int
1868 main ()
1869 {
1870 if (sizeof (($2)))
1871 return 0;
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877
1878 else
1879 eval "$3=yes"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_type
1891
1892 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893 # --------------------------------------------
1894 # Tries to find the compile-time value of EXPR in a program that includes
1895 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1896 # computed
1897 ac_fn_c_compute_int ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if test "$cross_compiling" = yes; then
1901 # Depending upon the size, compute the lo and hi bounds.
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 static int test_array [1 - 2 * !(($2) >= 0)];
1909 test_array [0] = 0;
1910 return test_array [0];
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_lo=0 ac_mid=0
1918 while :; do
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main ()
1924 {
1925 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926 test_array [0] = 0;
1927 return test_array [0];
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid; break
1935 else
1936 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937 if test $ac_lo -le $ac_mid; then
1938 ac_lo= ac_hi=
1939 break
1940 fi
1941 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 done
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 int
1950 main ()
1951 {
1952 static int test_array [1 - 2 * !(($2) < 0)];
1953 test_array [0] = 0;
1954 return test_array [0];
1955
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_hi=-1 ac_mid=-1
1962 while :; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 int
1967 main ()
1968 {
1969 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=$ac_mid; break
1979 else
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 done
1989 else
1990 ac_lo= ac_hi=
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 test_array [0] = 0;
2006 return test_array [0];
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_hi=$ac_mid
2014 else
2015 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 case $ac_lo in #((
2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021 '') ac_retval=1 ;;
2022 esac
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 static long int longval () { return $2; }
2028 static unsigned long int ulongval () { return $2; }
2029 #include <stdio.h>
2030 #include <stdlib.h>
2031 int
2032 main ()
2033 {
2034
2035 FILE *f = fopen ("conftest.val", "w");
2036 if (! f)
2037 return 1;
2038 if (($2) < 0)
2039 {
2040 long int i = longval ();
2041 if (i != ($2))
2042 return 1;
2043 fprintf (f, "%ld", i);
2044 }
2045 else
2046 {
2047 unsigned long int i = ulongval ();
2048 if (i != ($2))
2049 return 1;
2050 fprintf (f, "%lu", i);
2051 }
2052 /* Do not output a trailing newline, as this causes \r\n confusion
2053 on some platforms. */
2054 return ferror (f) || fclose (f) != 0;
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_run "$LINENO"; then :
2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 else
2063 ac_retval=1
2064 fi
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2068
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_compute_int
2074
2075 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2076 # ---------------------------------------------
2077 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078 # accordingly.
2079 ac_fn_c_check_decl ()
2080 {
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 as_decl_name=`echo $2|sed 's/ *(.*//'`
2083 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 #ifndef $as_decl_name
2096 #ifdef __cplusplus
2097 (void) $as_decl_use;
2098 #else
2099 (void) $as_decl_name;
2100 #endif
2101 #endif
2102
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_decl
2120
2121 # ac_fn_c_check_func LINENO FUNC VAR
2122 # ----------------------------------
2123 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2124 ac_fn_c_check_func ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128 $as_echo_n "checking for $2... " >&6; }
2129 if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131 else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2136 #define $2 innocuous_$2
2137
2138 /* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $2 (); below.
2140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2141 <limits.h> exists even on freestanding compilers. */
2142
2143 #ifdef __STDC__
2144 # include <limits.h>
2145 #else
2146 # include <assert.h>
2147 #endif
2148
2149 #undef $2
2150
2151 /* Override any GCC internal prototype to avoid an error.
2152 Use char because int might match the return type of a GCC
2153 builtin and then its argument prototype would still apply. */
2154 #ifdef __cplusplus
2155 extern "C"
2156 #endif
2157 char $2 ();
2158 /* The GNU C library defines this for functions which it implements
2159 to always fail with ENOSYS. Some functions are actually named
2160 something starting with __ and the normal name is an alias. */
2161 #if defined __stub_$2 || defined __stub___$2
2162 choke me
2163 #endif
2164
2165 int
2166 main ()
2167 {
2168 return $2 ();
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_link "$LINENO"; then :
2174 eval "$3=yes"
2175 else
2176 eval "$3=no"
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext \
2179 conftest$ac_exeext conftest.$ac_ext
2180 fi
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185
2186 } # ac_fn_c_check_func
2187
2188 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2189 # ----------------------------------------------------
2190 # Tries to find if the field MEMBER exists in type AGGR, after including
2191 # INCLUDES, setting cache variable VAR accordingly.
2192 ac_fn_c_check_member ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2196 $as_echo_n "checking for $2.$3... " >&6; }
2197 if eval \${$4+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $5
2203 int
2204 main ()
2205 {
2206 static $2 ac_aggr;
2207 if (ac_aggr.$3)
2208 return 0;
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 eval "$4=yes"
2215 else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 $5
2219 int
2220 main ()
2221 {
2222 static $2 ac_aggr;
2223 if (sizeof ac_aggr.$3)
2224 return 0;
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$4=yes"
2231 else
2232 eval "$4=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 eval ac_res=\$$4
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243 } # ac_fn_c_check_member
2244
2245 # ac_fn_cxx_try_link LINENO
2246 # -------------------------
2247 # Try to link conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_cxx_try_link ()
2249 {
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext conftest$ac_exeext
2252 if { { ac_try="$ac_link"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_cxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest$ac_exeext && {
2271 test "$cross_compiling" = yes ||
2272 test -x conftest$ac_exeext
2273 }; then :
2274 ac_retval=0
2275 else
2276 $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280 fi
2281 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283 # interfere with the next link command; also delete a directory that is
2284 # left behind by Apple's compiler. We do this before executing the actions.
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289 } # ac_fn_cxx_try_link
2290
2291 # ac_fn_cxx_check_func LINENO FUNC VAR
2292 # ------------------------------------
2293 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2294 ac_fn_cxx_check_func ()
2295 {
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298 $as_echo_n "checking for $2... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306 #define $2 innocuous_$2
2307
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2312
2313 #ifdef __STDC__
2314 # include <limits.h>
2315 #else
2316 # include <assert.h>
2317 #endif
2318
2319 #undef $2
2320
2321 /* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2324 #ifdef __cplusplus
2325 extern "C"
2326 #endif
2327 char $2 ();
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined __stub_$2 || defined __stub___$2
2332 choke me
2333 #endif
2334
2335 int
2336 main ()
2337 {
2338 return $2 ();
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_cxx_try_link "$LINENO"; then :
2344 eval "$3=yes"
2345 else
2346 eval "$3=no"
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext \
2349 conftest$ac_exeext conftest.$ac_ext
2350 fi
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355
2356 } # ac_fn_cxx_check_func
2357 cat >config.log <<_ACEOF
2358 This file contains any messages produced by compilers while
2359 running configure, to aid debugging if configure makes a mistake.
2360
2361 It was created by gdbsupport $as_me 1.0, which was
2362 generated by GNU Autoconf 2.69. Invocation command line was
2363
2364 $ $0 $@
2365
2366 _ACEOF
2367 exec 5>>config.log
2368 {
2369 cat <<_ASUNAME
2370 ## --------- ##
2371 ## Platform. ##
2372 ## --------- ##
2373
2374 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2375 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2376 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2377 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2378 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2379
2380 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2381 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2382
2383 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2384 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2385 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2386 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2387 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2388 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2389 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390
2391 _ASUNAME
2392
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 $as_echo "PATH: $as_dir"
2399 done
2400 IFS=$as_save_IFS
2401
2402 } >&5
2403
2404 cat >&5 <<_ACEOF
2405
2406
2407 ## ----------- ##
2408 ## Core tests. ##
2409 ## ----------- ##
2410
2411 _ACEOF
2412
2413
2414 # Keep a trace of the command line.
2415 # Strip out --no-create and --no-recursion so they do not pile up.
2416 # Strip out --silent because we don't want to record it for future runs.
2417 # Also quote any args containing shell meta-characters.
2418 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_configure_args=
2420 ac_configure_args0=
2421 ac_configure_args1=
2422 ac_must_keep_next=false
2423 for ac_pass in 1 2
2424 do
2425 for ac_arg
2426 do
2427 case $ac_arg in
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2431 continue ;;
2432 *\'*)
2433 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 esac
2435 case $ac_pass in
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2437 2)
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2441 else
2442 case $ac_arg in
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 esac
2450 ;;
2451 -* ) ac_must_keep_next=true ;;
2452 esac
2453 fi
2454 as_fn_append ac_configure_args " '$ac_arg'"
2455 ;;
2456 esac
2457 done
2458 done
2459 { ac_configure_args0=; unset ac_configure_args0;}
2460 { ac_configure_args1=; unset ac_configure_args1;}
2461
2462 # When interrupted or exit'd, cleanup temporary files, and complete
2463 # config.log. We remove comments because anyway the quotes in there
2464 # would cause problems or look ugly.
2465 # WARNING: Use '\'' to represent an apostrophe within the trap.
2466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467 trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2469 {
2470 echo
2471
2472 $as_echo "## ---------------- ##
2473 ## Cache variables. ##
2474 ## ---------------- ##"
2475 echo
2476 # The following way of writing the cache mishandles newlines in values,
2477 (
2478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in #(
2481 *${as_nl}*)
2482 case $ac_var in #(
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 esac
2486 case $ac_var in #(
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2490 esac ;;
2491 esac
2492 done
2493 (set) 2>&1 |
2494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2496 sed -n \
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 ;; #(
2500 *)
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2502 ;;
2503 esac |
2504 sort
2505 )
2506 echo
2507
2508 $as_echo "## ----------------- ##
2509 ## Output variables. ##
2510 ## ----------------- ##"
2511 echo
2512 for ac_var in $ac_subst_vars
2513 do
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 $as_echo "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2521
2522 if test -n "$ac_subst_files"; then
2523 $as_echo "## ------------------- ##
2524 ## File substitutions. ##
2525 ## ------------------- ##"
2526 echo
2527 for ac_var in $ac_subst_files
2528 do
2529 eval ac_val=\$$ac_var
2530 case $ac_val in
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 esac
2533 $as_echo "$ac_var='\''$ac_val'\''"
2534 done | sort
2535 echo
2536 fi
2537
2538 if test -s confdefs.h; then
2539 $as_echo "## ----------- ##
2540 ## confdefs.h. ##
2541 ## ----------- ##"
2542 echo
2543 cat confdefs.h
2544 echo
2545 fi
2546 test "$ac_signal" != 0 &&
2547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
2549 } >&5
2550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 exit $exit_status
2553 ' 0
2554 for ac_signal in 1 2 13 15; do
2555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556 done
2557 ac_signal=0
2558
2559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2560 rm -f -r conftest* confdefs.h
2561
2562 $as_echo "/* confdefs.h */" > confdefs.h
2563
2564 # Predefined preprocessor variables.
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572 _ACEOF
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576 _ACEOF
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_STRING "$PACKAGE_STRING"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_URL "$PACKAGE_URL"
2588 _ACEOF
2589
2590
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2593 ac_site_file1=NONE
2594 ac_site_file2=NONE
2595 if test -n "$CONFIG_SITE"; then
2596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2601 esac
2602 elif test "x$prefix" != xNONE; then
2603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
2605 else
2606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
2608 fi
2609 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2610 do
2611 test "x$ac_site_file" = xNONE && continue
2612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615 sed 's/^/| /' "$ac_site_file" >&5
2616 . "$ac_site_file" \
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "failed to load site script $ac_site_file
2620 See \`config.log' for more details" "$LINENO" 5; }
2621 fi
2622 done
2623
2624 if test -r "$cache_file"; then
2625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629 $as_echo "$as_me: loading cache $cache_file" >&6;}
2630 case $cache_file in
2631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
2633 esac
2634 fi
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637 $as_echo "$as_me: creating cache $cache_file" >&6;}
2638 >$cache_file
2639 fi
2640
2641 as_fn_append ac_header_list " stdlib.h"
2642 as_fn_append ac_header_list " unistd.h"
2643 as_fn_append ac_header_list " sys/param.h"
2644 # Check that the precious variables saved in the cache have kept the same
2645 # value.
2646 ac_cache_corrupted=false
2647 for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2653 set,)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2655 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2657 ,set)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,);;
2662 *)
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x $ac_old_val`
2666 ac_new_val_w=`echo x $ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670 ac_cache_corrupted=:
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2673 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2680 fi;;
2681 esac
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2684 case $ac_new_val in
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2687 esac
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2691 esac
2692 fi
2693 done
2694 if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700 fi
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2704
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711
2712
2713
2714
2715
2716 ac_config_headers="$ac_config_headers support-config.h:config.in"
2717
2718 ac_aux_dir=
2719 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2720 if test -f "$ac_dir/install-sh"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/install-sh -c"
2723 break
2724 elif test -f "$ac_dir/install.sh"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/install.sh -c"
2727 break
2728 elif test -f "$ac_dir/shtool"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/shtool install -c"
2731 break
2732 fi
2733 done
2734 if test -z "$ac_aux_dir"; then
2735 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2736 fi
2737
2738 # These three variables are undocumented and unsupported,
2739 # and are intended to be withdrawn in a future Autoconf release.
2740 # They can cause serious problems if a builder's source tree is in a directory
2741 # whose full name contains unusual characters.
2742 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2743 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2744 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745
2746
2747 # Make sure we can run config.sub.
2748 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2749 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2752 $as_echo_n "checking build system type... " >&6; }
2753 if ${ac_cv_build+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 ac_build_alias=$build_alias
2757 test "x$ac_build_alias" = x &&
2758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2759 test "x$ac_build_alias" = x &&
2760 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2761 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2763
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2766 $as_echo "$ac_cv_build" >&6; }
2767 case $ac_cv_build in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2770 esac
2771 build=$ac_cv_build
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_build
2774 shift
2775 build_cpu=$1
2776 build_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 build_os=$*
2781 IFS=$ac_save_IFS
2782 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2783
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2786 $as_echo_n "checking host system type... " >&6; }
2787 if ${ac_cv_host+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test "x$host_alias" = x; then
2791 ac_cv_host=$ac_cv_build
2792 else
2793 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2795 fi
2796
2797 fi
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2799 $as_echo "$ac_cv_host" >&6; }
2800 case $ac_cv_host in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803 esac
2804 host=$ac_cv_host
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_host
2807 shift
2808 host_cpu=$1
2809 host_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 host_os=$*
2814 IFS=$ac_save_IFS
2815 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2819 $as_echo_n "checking target system type... " >&6; }
2820 if ${ac_cv_target+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test "x$target_alias" = x; then
2824 ac_cv_target=$ac_cv_host
2825 else
2826 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2828 fi
2829
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2832 $as_echo "$ac_cv_target" >&6; }
2833 case $ac_cv_target in
2834 *-*-*) ;;
2835 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2836 esac
2837 target=$ac_cv_target
2838 ac_save_IFS=$IFS; IFS='-'
2839 set x $ac_cv_target
2840 shift
2841 target_cpu=$1
2842 target_vendor=$2
2843 shift; shift
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2846 target_os=$*
2847 IFS=$ac_save_IFS
2848 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2849
2850
2851 # The aliases save the names the user supplied, while $host etc.
2852 # will get canonicalized.
2853 test -n "$target_alias" &&
2854 test "$program_prefix$program_suffix$program_transform_name" = \
2855 NONENONEs,x,x, &&
2856 program_prefix=${target_alias}-
2857
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2860 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2861 # Check whether --enable-maintainer-mode was given.
2862 if test "${enable_maintainer_mode+set}" = set; then :
2863 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2864 else
2865 USE_MAINTAINER_MODE=no
2866 fi
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2869 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2870 if test $USE_MAINTAINER_MODE = yes; then
2871 MAINTAINER_MODE_TRUE=
2872 MAINTAINER_MODE_FALSE='#'
2873 else
2874 MAINTAINER_MODE_TRUE='#'
2875 MAINTAINER_MODE_FALSE=
2876 fi
2877
2878 MAINT=$MAINTAINER_MODE_TRUE
2879
2880
2881 ac_aux_dir=
2882 for ac_dir in .. "$srcdir"/..; do
2883 if test -f "$ac_dir/install-sh"; then
2884 ac_aux_dir=$ac_dir
2885 ac_install_sh="$ac_aux_dir/install-sh -c"
2886 break
2887 elif test -f "$ac_dir/install.sh"; then
2888 ac_aux_dir=$ac_dir
2889 ac_install_sh="$ac_aux_dir/install.sh -c"
2890 break
2891 elif test -f "$ac_dir/shtool"; then
2892 ac_aux_dir=$ac_dir
2893 ac_install_sh="$ac_aux_dir/shtool install -c"
2894 break
2895 fi
2896 done
2897 if test -z "$ac_aux_dir"; then
2898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2899 fi
2900
2901 # These three variables are undocumented and unsupported,
2902 # and are intended to be withdrawn in a future Autoconf release.
2903 # They can cause serious problems if a builder's source tree is in a directory
2904 # whose full name contains unusual characters.
2905 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2906 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2907 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2908
2909
2910 am__api_version='1.15'
2911
2912 # Find a good install program. We prefer a C program (faster),
2913 # so one script is as good as another. But avoid the broken or
2914 # incompatible versions:
2915 # SysV /etc/install, /usr/sbin/install
2916 # SunOS /usr/etc/install
2917 # IRIX /sbin/install
2918 # AIX /bin/install
2919 # AmigaOS /C/install, which installs bootblocks on floppy discs
2920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2923 # OS/2's system install, which has a completely different semantic
2924 # ./install, which can be erroneously created by make from ./install.sh.
2925 # Reject install programs that cannot install multiple files.
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2927 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2928 if test -z "$INSTALL"; then
2929 if ${ac_cv_path_install+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 # Account for people who put trailing slashes in PATH elements.
2938 case $as_dir/ in #((
2939 ./ | .// | /[cC]/* | \
2940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2942 /usr/ucb/* ) ;;
2943 *)
2944 # OSF1 and SCO ODT 3.0 have their own names for install.
2945 # Don't use installbsd from OSF since it installs stuff as root
2946 # by default.
2947 for ac_prog in ginstall scoinst install; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2950 if test $ac_prog = install &&
2951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2952 # AIX install. It has an incompatible calling convention.
2953 :
2954 elif test $ac_prog = install &&
2955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2956 # program-specific install script used by HP pwplus--don't use.
2957 :
2958 else
2959 rm -rf conftest.one conftest.two conftest.dir
2960 echo one > conftest.one
2961 echo two > conftest.two
2962 mkdir conftest.dir
2963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2964 test -s conftest.one && test -s conftest.two &&
2965 test -s conftest.dir/conftest.one &&
2966 test -s conftest.dir/conftest.two
2967 then
2968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2969 break 3
2970 fi
2971 fi
2972 fi
2973 done
2974 done
2975 ;;
2976 esac
2977
2978 done
2979 IFS=$as_save_IFS
2980
2981 rm -rf conftest.one conftest.two conftest.dir
2982
2983 fi
2984 if test "${ac_cv_path_install+set}" = set; then
2985 INSTALL=$ac_cv_path_install
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for INSTALL within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 INSTALL=$ac_install_sh
2992 fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2995 $as_echo "$INSTALL" >&6; }
2996
2997 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2998 # It thinks the first close brace ends the variable substitution.
2999 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000
3001 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002
3003 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3006 $as_echo_n "checking whether build environment is sane... " >&6; }
3007 # Reject unsafe characters in $srcdir or the absolute working directory
3008 # name. Accept space and tab only in the latter.
3009 am_lf='
3010 '
3011 case `pwd` in
3012 *[\\\"\#\$\&\'\`$am_lf]*)
3013 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3014 esac
3015 case $srcdir in
3016 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3017 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3018 esac
3019
3020 # Do 'set' in a subshell so we don't clobber the current shell's
3021 # arguments. Must try -L first in case configure is actually a
3022 # symlink; some systems play weird games with the mod time of symlinks
3023 # (eg FreeBSD returns the mod time of the symlink's containing
3024 # directory).
3025 if (
3026 am_has_slept=no
3027 for am_try in 1 2; do
3028 echo "timestamp, slept: $am_has_slept" > conftest.file
3029 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3030 if test "$*" = "X"; then
3031 # -L didn't work.
3032 set X `ls -t "$srcdir/configure" conftest.file`
3033 fi
3034 if test "$*" != "X $srcdir/configure conftest.file" \
3035 && test "$*" != "X conftest.file $srcdir/configure"; then
3036
3037 # If neither matched, then we have a broken ls. This can happen
3038 # if, for instance, CONFIG_SHELL is bash and it inherits a
3039 # broken ls alias from the environment. This has actually
3040 # happened. Such a system could not be considered "sane".
3041 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3042 alias in your environment" "$LINENO" 5
3043 fi
3044 if test "$2" = conftest.file || test $am_try -eq 2; then
3045 break
3046 fi
3047 # Just in case.
3048 sleep 1
3049 am_has_slept=yes
3050 done
3051 test "$2" = conftest.file
3052 )
3053 then
3054 # Ok.
3055 :
3056 else
3057 as_fn_error $? "newly created file is older than distributed files!
3058 Check your system clock" "$LINENO" 5
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061 $as_echo "yes" >&6; }
3062 # If we didn't sleep, we still need to ensure time stamps of config.status and
3063 # generated files are strictly newer.
3064 am_sleep_pid=
3065 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3066 ( sleep 1 ) &
3067 am_sleep_pid=$!
3068 fi
3069
3070 rm -f conftest.file
3071
3072 test "$program_prefix" != NONE &&
3073 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3074 # Use a double $ so make ignores it.
3075 test "$program_suffix" != NONE &&
3076 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3077 # Double any \ or $.
3078 # By default was `s,x,x', remove it if useless.
3079 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3080 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3081
3082 # Expand $ac_aux_dir to an absolute path.
3083 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3084
3085 if test x"${MISSING+set}" != xset; then
3086 case $am_aux_dir in
3087 *\ * | *\ *)
3088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3089 *)
3090 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3091 esac
3092 fi
3093 # Use eval to expand $SHELL
3094 if eval "$MISSING --is-lightweight"; then
3095 am_missing_run="$MISSING "
3096 else
3097 am_missing_run=
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3099 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100 fi
3101
3102 if test x"${install_sh+set}" != xset; then
3103 case $am_aux_dir in
3104 *\ * | *\ *)
3105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106 *)
3107 install_sh="\${SHELL} $am_aux_dir/install-sh"
3108 esac
3109 fi
3110
3111 # Installed binaries are usually stripped using 'strip' when the user
3112 # run "make install-strip". However 'strip' might not be the right
3113 # tool to use in cross-compilation environments, therefore Automake
3114 # will honor the 'STRIP' environment variable to overrule this program.
3115 if test "$cross_compiling" != no; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}strip; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_STRIP+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$STRIP"; then
3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 STRIP=$ac_cv_prog_STRIP
3145 if test -n "$STRIP"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147 $as_echo "$STRIP" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_STRIP"; then
3156 ac_ct_STRIP=$STRIP
3157 # Extract the first word of "strip", so it can be a program name with args.
3158 set dummy strip; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_STRIP"; then
3165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_STRIP="strip"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3185 if test -n "$ac_ct_STRIP"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3187 $as_echo "$ac_ct_STRIP" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_STRIP" = x; then
3194 STRIP=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 STRIP=$ac_ct_STRIP
3203 fi
3204 else
3205 STRIP="$ac_cv_prog_STRIP"
3206 fi
3207
3208 fi
3209 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3212 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3213 if test -z "$MKDIR_P"; then
3214 if ${ac_cv_path_mkdir+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_prog in mkdir gmkdir; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3226 'mkdir (GNU coreutils) '* | \
3227 'mkdir (coreutils) '* | \
3228 'mkdir (fileutils) '4.1*)
3229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3230 break 3;;
3231 esac
3232 done
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238
3239 test -d ./--version && rmdir ./--version
3240 if test "${ac_cv_path_mkdir+set}" = set; then
3241 MKDIR_P="$ac_cv_path_mkdir -p"
3242 else
3243 # As a last resort, use the slow shell script. Don't cache a
3244 # value for MKDIR_P within a source directory, because that will
3245 # break other packages using the cache if that directory is
3246 # removed, or if the value is a relative name.
3247 MKDIR_P="$ac_install_sh -d"
3248 fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3251 $as_echo "$MKDIR_P" >&6; }
3252
3253 for ac_prog in gawk mawk nawk awk
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_AWK+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$AWK"; then
3263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_AWK="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 AWK=$ac_cv_prog_AWK
3283 if test -n "$AWK"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3285 $as_echo "$AWK" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$AWK" && break
3293 done
3294
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3296 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3297 set x ${MAKE-make}
3298 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3299 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 cat >conftest.make <<\_ACEOF
3303 SHELL = /bin/sh
3304 all:
3305 @echo '@@@%%%=$(MAKE)=@@@%%%'
3306 _ACEOF
3307 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3308 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3309 *@@@%%%=?*=@@@%%%*)
3310 eval ac_cv_prog_make_${ac_make}_set=yes;;
3311 *)
3312 eval ac_cv_prog_make_${ac_make}_set=no;;
3313 esac
3314 rm -f conftest.make
3315 fi
3316 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319 SET_MAKE=
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 SET_MAKE="MAKE=${MAKE-make}"
3324 fi
3325
3326 rm -rf .tst 2>/dev/null
3327 mkdir .tst 2>/dev/null
3328 if test -d .tst; then
3329 am__leading_dot=.
3330 else
3331 am__leading_dot=_
3332 fi
3333 rmdir .tst 2>/dev/null
3334
3335 # Check whether --enable-silent-rules was given.
3336 if test "${enable_silent_rules+set}" = set; then :
3337 enableval=$enable_silent_rules;
3338 fi
3339
3340 case $enable_silent_rules in # (((
3341 yes) AM_DEFAULT_VERBOSITY=0;;
3342 no) AM_DEFAULT_VERBOSITY=1;;
3343 *) AM_DEFAULT_VERBOSITY=1;;
3344 esac
3345 am_make=${MAKE-make}
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3347 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3348 if ${am_cv_make_support_nested_variables+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if $as_echo 'TRUE=$(BAR$(V))
3352 BAR0=false
3353 BAR1=true
3354 V=1
3355 am__doit:
3356 @$(TRUE)
3357 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358 am_cv_make_support_nested_variables=yes
3359 else
3360 am_cv_make_support_nested_variables=no
3361 fi
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3365 if test $am_cv_make_support_nested_variables = yes; then
3366 AM_V='$(V)'
3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368 else
3369 AM_V=$AM_DEFAULT_VERBOSITY
3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371 fi
3372 AM_BACKSLASH='\'
3373
3374 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376 # is not polluted with repeated "-I."
3377 am__isrc=' -I$(srcdir)'
3378 # test to see if srcdir already configured
3379 if test -f $srcdir/config.status; then
3380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381 fi
3382 fi
3383
3384 # test whether we have cygpath
3385 if test -z "$CYGPATH_W"; then
3386 if (cygpath --version) >/dev/null 2>/dev/null; then
3387 CYGPATH_W='cygpath -w'
3388 else
3389 CYGPATH_W=echo
3390 fi
3391 fi
3392
3393
3394 # Define the identity of the package.
3395 PACKAGE='gdbsupport'
3396 VERSION='1.0'
3397
3398
3399 cat >>confdefs.h <<_ACEOF
3400 #define PACKAGE "$PACKAGE"
3401 _ACEOF
3402
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define VERSION "$VERSION"
3406 _ACEOF
3407
3408 # Some tools Automake needs.
3409
3410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411
3412
3413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414
3415
3416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417
3418
3419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420
3421
3422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3423
3424 # For better backward compatibility. To be removed once Automake 1.9.x
3425 # dies out for good. For more background, see:
3426 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3427 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3428 mkdir_p='$(MKDIR_P)'
3429
3430 # We need awk for the "check" target (and possibly the TAP driver). The
3431 # system "awk" is bad on some platforms.
3432 # Always define AMTAR for backward compatibility. Yes, it's still used
3433 # in the wild :-( We should find a proper way to deprecate it ...
3434 AMTAR='$${TAR-tar}'
3435
3436
3437 # We'll loop over all known methods to create a tar archive until one works.
3438 _am_tools='gnutar pax cpio none'
3439
3440 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3441
3442
3443
3444
3445
3446
3447 # POSIX will say in a future version that running "rm -f" with no argument
3448 # is OK; and we want to be able to make that assumption in our Makefile
3449 # recipes. So use an aggressive probe to check that the usage we want is
3450 # actually supported "in the wild" to an acceptable degree.
3451 # See automake bug#10828.
3452 # To make any issue more visible, cause the running configure to be aborted
3453 # by default if the 'rm' program in use doesn't match our expectations; the
3454 # user can still override this though.
3455 if rm -f && rm -fr && rm -rf; then : OK; else
3456 cat >&2 <<'END'
3457 Oops!
3458
3459 Your 'rm' program seems unable to run without file operands specified
3460 on the command line, even when the '-f' option is present. This is contrary
3461 to the behaviour of most rm programs out there, and not conforming with
3462 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3463
3464 Please tell bug-automake@gnu.org about your system, including the value
3465 of your $PATH and any error possibly output before this message. This
3466 can help us improve future automake versions.
3467
3468 END
3469 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3470 echo 'Configuration will proceed anyway, since you have set the' >&2
3471 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3472 echo >&2
3473 else
3474 cat >&2 <<'END'
3475 Aborting the configuration process, to ensure you take notice of the issue.
3476
3477 You can download and install GNU coreutils to get an 'rm' implementation
3478 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3479
3480 If you want to complete the configuration process using your problematic
3481 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3482 to "yes", and re-run configure.
3483
3484 END
3485 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3486 fi
3487 fi
3488
3489 # Check whether --enable-silent-rules was given.
3490 if test "${enable_silent_rules+set}" = set; then :
3491 enableval=$enable_silent_rules;
3492 fi
3493
3494 case $enable_silent_rules in # (((
3495 yes) AM_DEFAULT_VERBOSITY=0;;
3496 no) AM_DEFAULT_VERBOSITY=1;;
3497 *) AM_DEFAULT_VERBOSITY=0;;
3498 esac
3499 am_make=${MAKE-make}
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3501 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3502 if ${am_cv_make_support_nested_variables+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if $as_echo 'TRUE=$(BAR$(V))
3506 BAR0=false
3507 BAR1=true
3508 V=1
3509 am__doit:
3510 @$(TRUE)
3511 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3512 am_cv_make_support_nested_variables=yes
3513 else
3514 am_cv_make_support_nested_variables=no
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3518 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3519 if test $am_cv_make_support_nested_variables = yes; then
3520 AM_V='$(V)'
3521 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3522 else
3523 AM_V=$AM_DEFAULT_VERBOSITY
3524 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3525 fi
3526 AM_BACKSLASH='\'
3527
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3621 fi
3622 else
3623 CC="$ac_cv_prog_CC"
3624 fi
3625
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 fi
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3689 fi
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694 done
3695 done
3696 IFS=$as_save_IFS
3697
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3708 fi
3709 fi
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$CC" && break
3765 done
3766 fi
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3770 do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807
3808 test -n "$ac_ct_CC" && break
3809 done
3810
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3821 fi
3822 fi
3823
3824 fi
3825
3826
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details" "$LINENO" 5; }
3831
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 fi
3852 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3856
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 $as_echo_n "checking whether the C compiler works... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3882 do
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3889
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3907 do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911 ;;
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 fi
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3927 * )
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933 else
3934 ac_file=''
3935 fi
3936 if test -z "$ac_file"; then :
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error 77 "C compiler cannot create executables
3945 See \`config.log' for more details" "$LINENO" 5; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3951 $as_echo_n "checking for C compiler default output file name... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3953 $as_echo "$ac_file" >&6; }
3954 ac_exeext=$ac_cv_exeext
3955
3956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3957 ac_clean_files=$ac_clean_files_save
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 # `rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 break;;
3981 * ) break;;
3982 esac
3983 done
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details" "$LINENO" 5; }
3989 fi
3990 rm -f conftest conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3993
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3996 ac_exeext=$EXEEXT
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <stdio.h>
4000 int
4001 main ()
4002 {
4003 FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 ac_clean_files="$ac_clean_files conftest.out"
4011 # Check that the compiler produces executables we can run. If not, either
4012 # the compiler is broken, or we cross compile.
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4014 $as_echo_n "checking whether we are cross compiling... " >&6; }
4015 if test "$cross_compiling" != yes; then
4016 { { ac_try="$ac_link"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027 if { ac_try='./conftest$ac_cv_exeext'
4028 { { case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_try") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4038 cross_compiling=no
4039 else
4040 if test "$cross_compiling" = maybe; then
4041 cross_compiling=yes
4042 else
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot run C compiled programs.
4046 If you meant to cross compile, use \`--host'.
4047 See \`config.log' for more details" "$LINENO" 5; }
4048 fi
4049 fi
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052 $as_echo "$cross_compiling" >&6; }
4053
4054 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4055 ac_clean_files=$ac_clean_files_save
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057 $as_echo_n "checking for suffix of object files... " >&6; }
4058 if ${ac_cv_objext+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.o conftest.obj
4073 if { { ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_compile") 2>&5
4081 ac_status=$?
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 for ac_file in conftest.o conftest.obj conftest.*; do
4085 test -f "$ac_file" || continue;
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4089 break;;
4090 esac
4091 done
4092 else
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "cannot compute suffix of object files: cannot compile
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4104 $as_echo "$ac_cv_objext" >&6; }
4105 OBJEXT=$ac_cv_objext
4106 ac_objext=$OBJEXT
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109 if ${ac_cv_c_compiler_gnu+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118 #ifndef __GNUC__
4119 choke me
4120 #endif
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
4128 else
4129 ac_compiler_gnu=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137 if test $ac_compiler_gnu = yes; then
4138 GCC=yes
4139 else
4140 GCC=
4141 fi
4142 ac_test_CFLAGS=${CFLAGS+set}
4143 ac_save_CFLAGS=$CFLAGS
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4146 if ${ac_cv_prog_cc_g+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main ()
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
4166 else
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180
4181 else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main ()
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 $as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224 if ${ac_cv_prog_cc_c89+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_cv_prog_cc_c89=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 struct stat;
4234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235 struct buf { int x; };
4236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237 static char *e (p, i)
4238 char **p;
4239 int i;
4240 {
4241 return p[i];
4242 }
4243 static char *f (char * (*g) (char **, int), char **p, ...)
4244 {
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4251 }
4252
4253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261
4262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264 #define FOO(x) 'x'
4265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266
4267 int test (int i, double x);
4268 struct s1 {int (*f) (int a);};
4269 struct s2 {int (*f) (double a);};
4270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271 int argc;
4272 char **argv;
4273 int
4274 main ()
4275 {
4276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283 do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 done
4291 rm -f conftest.$ac_ext
4292 CC=$ac_save_CC
4293
4294 fi
4295 # AC_CACHE_VAL
4296 case "x$ac_cv_prog_cc_c89" in
4297 x)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
4303 *)
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307 esac
4308 if test "x$ac_cv_prog_cc_c89" != xno; then :
4309
4310 fi
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4324 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4325 if ${am_cv_prog_cc_c_o+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 int
4332 main ()
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 # Make sure it works both with $CC and with simple cc.
4340 # Following AC_PROG_CC_C_O, we do the test twice because some
4341 # compilers refuse to overwrite an existing .o file with -o,
4342 # though they will create one.
4343 am_cv_prog_cc_c_o=yes
4344 for am_i in 1 2; do
4345 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4346 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } \
4350 && test -f conftest2.$ac_objext; then
4351 : OK
4352 else
4353 am_cv_prog_cc_c_o=no
4354 break
4355 fi
4356 done
4357 rm -f core conftest*
4358 unset am_i
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4361 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4362 if test "$am_cv_prog_cc_c_o" != yes; then
4363 # Losing compiler, so override with the script.
4364 # FIXME: It is wrong to rewrite CC.
4365 # But if we don't then we get into trouble of one sort or another.
4366 # A longer-term fix would be to have automake use am__CC in this case,
4367 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4368 CC="$am_aux_dir/compile $CC"
4369 fi
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376 DEPDIR="${am__leading_dot}deps"
4377
4378 ac_config_commands="$ac_config_commands depfiles"
4379
4380
4381 am_make=${MAKE-make}
4382 cat > confinc << 'END'
4383 am__doit:
4384 @echo this is the am__doit target
4385 .PHONY: am__doit
4386 END
4387 # If we don't find an include directive, just comment out the code.
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4389 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4390 am__include="#"
4391 am__quote=
4392 _am_result=none
4393 # First try GNU make style include.
4394 echo "include confinc" > confmf
4395 # Ignore all kinds of additional output from 'make'.
4396 case `$am_make -s -f confmf 2> /dev/null` in #(
4397 *the\ am__doit\ target*)
4398 am__include=include
4399 am__quote=
4400 _am_result=GNU
4401 ;;
4402 esac
4403 # Now try BSD make style include.
4404 if test "$am__include" = "#"; then
4405 echo '.include "confinc"' > confmf
4406 case `$am_make -s -f confmf 2> /dev/null` in #(
4407 *the\ am__doit\ target*)
4408 am__include=.include
4409 am__quote="\""
4410 _am_result=BSD
4411 ;;
4412 esac
4413 fi
4414
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4417 $as_echo "$_am_result" >&6; }
4418 rm -f confinc confmf
4419
4420 # Check whether --enable-dependency-tracking was given.
4421 if test "${enable_dependency_tracking+set}" = set; then :
4422 enableval=$enable_dependency_tracking;
4423 fi
4424
4425 if test "x$enable_dependency_tracking" != xno; then
4426 am_depcomp="$ac_aux_dir/depcomp"
4427 AMDEPBACKSLASH='\'
4428 am__nodep='_no'
4429 fi
4430 if test "x$enable_dependency_tracking" != xno; then
4431 AMDEP_TRUE=
4432 AMDEP_FALSE='#'
4433 else
4434 AMDEP_TRUE='#'
4435 AMDEP_FALSE=
4436 fi
4437
4438
4439
4440 depcc="$CC" am_compiler_list=
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4443 $as_echo_n "checking dependency style of $depcc... " >&6; }
4444 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448 # We make a subdir and do the tests there. Otherwise we can end up
4449 # making bogus files that we don't know about and never remove. For
4450 # instance it was reported that on HP-UX the gcc test will end up
4451 # making a dummy file named 'D' -- because '-MD' means "put the output
4452 # in D".
4453 rm -rf conftest.dir
4454 mkdir conftest.dir
4455 # Copy depcomp to subdir because otherwise we won't find it if we're
4456 # using a relative directory.
4457 cp "$am_depcomp" conftest.dir
4458 cd conftest.dir
4459 # We will build objects and dependencies in a subdirectory because
4460 # it helps to detect inapplicable dependency modes. For instance
4461 # both Tru64's cc and ICC support -MD to output dependencies as a
4462 # side effect of compilation, but ICC will put the dependencies in
4463 # the current directory while Tru64 will put them in the object
4464 # directory.
4465 mkdir sub
4466
4467 am_cv_CC_dependencies_compiler_type=none
4468 if test "$am_compiler_list" = ""; then
4469 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4470 fi
4471 am__universal=false
4472 case " $depcc " in #(
4473 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4474 esac
4475
4476 for depmode in $am_compiler_list; do
4477 # Setup a source with many dependencies, because some compilers
4478 # like to wrap large dependency lists on column 80 (with \), and
4479 # we should not choose a depcomp mode which is confused by this.
4480 #
4481 # We need to recreate these files for each test, as the compiler may
4482 # overwrite some of them when testing with obscure command lines.
4483 # This happens at least with the AIX C compiler.
4484 : > sub/conftest.c
4485 for i in 1 2 3 4 5 6; do
4486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4487 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4488 # Solaris 10 /bin/sh.
4489 echo '/* dummy */' > sub/conftst$i.h
4490 done
4491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492
4493 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4494 # mode. It turns out that the SunPro C++ compiler does not properly
4495 # handle '-M -o', and we need to detect this. Also, some Intel
4496 # versions had trouble with output in subdirs.
4497 am__obj=sub/conftest.${OBJEXT-o}
4498 am__minus_obj="-o $am__obj"
4499 case $depmode in
4500 gcc)
4501 # This depmode causes a compiler race in universal mode.
4502 test "$am__universal" = false || continue
4503 ;;
4504 nosideeffect)
4505 # After this tag, mechanisms are not by side-effect, so they'll
4506 # only be used when explicitly requested.
4507 if test "x$enable_dependency_tracking" = xyes; then
4508 continue
4509 else
4510 break
4511 fi
4512 ;;
4513 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4514 # This compiler won't grok '-c -o', but also, the minuso test has
4515 # not run yet. These depmodes are late enough in the game, and
4516 # so weak that their functioning should not be impacted.
4517 am__obj=conftest.${OBJEXT-o}
4518 am__minus_obj=
4519 ;;
4520 none) break ;;
4521 esac
4522 if depmode=$depmode \
4523 source=sub/conftest.c object=$am__obj \
4524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4525 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4526 >/dev/null 2>conftest.err &&
4527 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4529 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4531 # icc doesn't choke on unknown options, it will just issue warnings
4532 # or remarks (even with -Werror). So we grep stderr for any message
4533 # that says an option was ignored or not supported.
4534 # When given -MP, icc 7.0 and 7.1 complain thusly:
4535 # icc: Command line warning: ignoring option '-M'; no argument required
4536 # The diagnosis changed in icc 8.0:
4537 # icc: Command line remark: option '-MP' not supported
4538 if (grep 'ignoring option' conftest.err ||
4539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4540 am_cv_CC_dependencies_compiler_type=$depmode
4541 break
4542 fi
4543 fi
4544 done
4545
4546 cd ..
4547 rm -rf conftest.dir
4548 else
4549 am_cv_CC_dependencies_compiler_type=none
4550 fi
4551
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4554 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4556
4557 if
4558 test "x$enable_dependency_tracking" != xno \
4559 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4560 am__fastdepCC_TRUE=
4561 am__fastdepCC_FALSE='#'
4562 else
4563 am__fastdepCC_TRUE='#'
4564 am__fastdepCC_FALSE=
4565 fi
4566
4567
4568 ac_ext=cpp
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573 if test -z "$CXX"; then
4574 if test -n "$CCC"; then
4575 CXX=$CCC
4576 else
4577 if test -n "$ac_tool_prefix"; then
4578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4579 do
4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_CXX+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$CXX"; then
4588 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 CXX=$ac_cv_prog_CXX
4608 if test -n "$CXX"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4610 $as_echo "$CXX" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617 test -n "$CXX" && break
4618 done
4619 fi
4620 if test -z "$CXX"; then
4621 ac_ct_CXX=$CXX
4622 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4623 do
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$ac_ct_CXX"; then
4632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_ac_ct_CXX="$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4652 if test -n "$ac_ct_CXX"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4654 $as_echo "$ac_ct_CXX" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 test -n "$ac_ct_CXX" && break
4662 done
4663
4664 if test "x$ac_ct_CXX" = x; then
4665 CXX="g++"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673 CXX=$ac_ct_CXX
4674 fi
4675 fi
4676
4677 fi
4678 fi
4679 # Provide some information about the compiler.
4680 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4681 set X $ac_compile
4682 ac_compiler=$2
4683 for ac_option in --version -v -V -qversion; do
4684 { { ac_try="$ac_compiler $ac_option >&5"
4685 case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4692 ac_status=$?
4693 if test -s conftest.err; then
4694 sed '10a\
4695 ... rest of stderr output deleted ...
4696 10q' conftest.err >conftest.er1
4697 cat conftest.er1 >&5
4698 fi
4699 rm -f conftest.er1 conftest.err
4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701 test $ac_status = 0; }
4702 done
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4705 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4706 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main ()
4714 {
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725 else
4726 ac_compiler_gnu=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4730
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4733 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4734 if test $ac_compiler_gnu = yes; then
4735 GXX=yes
4736 else
4737 GXX=
4738 fi
4739 ac_test_CXXFLAGS=${CXXFLAGS+set}
4740 ac_save_CXXFLAGS=$CXXFLAGS
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4742 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4743 if ${ac_cv_prog_cxx_g+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4747 ac_cxx_werror_flag=yes
4748 ac_cv_prog_cxx_g=no
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
4763 else
4764 CXXFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_cxx_try_compile "$LINENO"; then :
4777
4778 else
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4780 CXXFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_cxx_try_compile "$LINENO"; then :
4793 ac_cv_prog_cxx_g=yes
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4803 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4804 if test "$ac_test_CXXFLAGS" = set; then
4805 CXXFLAGS=$ac_save_CXXFLAGS
4806 elif test $ac_cv_prog_cxx_g = yes; then
4807 if test "$GXX" = yes; then
4808 CXXFLAGS="-g -O2"
4809 else
4810 CXXFLAGS="-g"
4811 fi
4812 else
4813 if test "$GXX" = yes; then
4814 CXXFLAGS="-O2"
4815 else
4816 CXXFLAGS=
4817 fi
4818 fi
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825 depcc="$CXX" am_compiler_list=
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4828 $as_echo_n "checking dependency style of $depcc... " >&6; }
4829 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833 # We make a subdir and do the tests there. Otherwise we can end up
4834 # making bogus files that we don't know about and never remove. For
4835 # instance it was reported that on HP-UX the gcc test will end up
4836 # making a dummy file named 'D' -- because '-MD' means "put the output
4837 # in D".
4838 rm -rf conftest.dir
4839 mkdir conftest.dir
4840 # Copy depcomp to subdir because otherwise we won't find it if we're
4841 # using a relative directory.
4842 cp "$am_depcomp" conftest.dir
4843 cd conftest.dir
4844 # We will build objects and dependencies in a subdirectory because
4845 # it helps to detect inapplicable dependency modes. For instance
4846 # both Tru64's cc and ICC support -MD to output dependencies as a
4847 # side effect of compilation, but ICC will put the dependencies in
4848 # the current directory while Tru64 will put them in the object
4849 # directory.
4850 mkdir sub
4851
4852 am_cv_CXX_dependencies_compiler_type=none
4853 if test "$am_compiler_list" = ""; then
4854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4855 fi
4856 am__universal=false
4857 case " $depcc " in #(
4858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4859 esac
4860
4861 for depmode in $am_compiler_list; do
4862 # Setup a source with many dependencies, because some compilers
4863 # like to wrap large dependency lists on column 80 (with \), and
4864 # we should not choose a depcomp mode which is confused by this.
4865 #
4866 # We need to recreate these files for each test, as the compiler may
4867 # overwrite some of them when testing with obscure command lines.
4868 # This happens at least with the AIX C compiler.
4869 : > sub/conftest.c
4870 for i in 1 2 3 4 5 6; do
4871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4872 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4873 # Solaris 10 /bin/sh.
4874 echo '/* dummy */' > sub/conftst$i.h
4875 done
4876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4877
4878 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4879 # mode. It turns out that the SunPro C++ compiler does not properly
4880 # handle '-M -o', and we need to detect this. Also, some Intel
4881 # versions had trouble with output in subdirs.
4882 am__obj=sub/conftest.${OBJEXT-o}
4883 am__minus_obj="-o $am__obj"
4884 case $depmode in
4885 gcc)
4886 # This depmode causes a compiler race in universal mode.
4887 test "$am__universal" = false || continue
4888 ;;
4889 nosideeffect)
4890 # After this tag, mechanisms are not by side-effect, so they'll
4891 # only be used when explicitly requested.
4892 if test "x$enable_dependency_tracking" = xyes; then
4893 continue
4894 else
4895 break
4896 fi
4897 ;;
4898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4899 # This compiler won't grok '-c -o', but also, the minuso test has
4900 # not run yet. These depmodes are late enough in the game, and
4901 # so weak that their functioning should not be impacted.
4902 am__obj=conftest.${OBJEXT-o}
4903 am__minus_obj=
4904 ;;
4905 none) break ;;
4906 esac
4907 if depmode=$depmode \
4908 source=sub/conftest.c object=$am__obj \
4909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4911 >/dev/null 2>conftest.err &&
4912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4916 # icc doesn't choke on unknown options, it will just issue warnings
4917 # or remarks (even with -Werror). So we grep stderr for any message
4918 # that says an option was ignored or not supported.
4919 # When given -MP, icc 7.0 and 7.1 complain thusly:
4920 # icc: Command line warning: ignoring option '-M'; no argument required
4921 # The diagnosis changed in icc 8.0:
4922 # icc: Command line remark: option '-MP' not supported
4923 if (grep 'ignoring option' conftest.err ||
4924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4925 am_cv_CXX_dependencies_compiler_type=$depmode
4926 break
4927 fi
4928 fi
4929 done
4930
4931 cd ..
4932 rm -rf conftest.dir
4933 else
4934 am_cv_CXX_dependencies_compiler_type=none
4935 fi
4936
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4939 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4940 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4941
4942 if
4943 test "x$enable_dependency_tracking" != xno \
4944 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4945 am__fastdepCXX_TRUE=
4946 am__fastdepCXX_FALSE='#'
4947 else
4948 am__fastdepCXX_TRUE='#'
4949 am__fastdepCXX_FALSE=
4950 fi
4951
4952
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_RANLIB+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$RANLIB"; then
4962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 RANLIB=$ac_cv_prog_RANLIB
4982 if test -n "$RANLIB"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4984 $as_echo "$RANLIB" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991 fi
4992 if test -z "$ac_cv_prog_RANLIB"; then
4993 ac_ct_RANLIB=$RANLIB
4994 # Extract the first word of "ranlib", so it can be a program name with args.
4995 set dummy ranlib; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$ac_ct_RANLIB"; then
5002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5024 $as_echo "$ac_ct_RANLIB" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030 if test "x$ac_ct_RANLIB" = x; then
5031 RANLIB=":"
5032 else
5033 case $cross_compiling:$ac_tool_warned in
5034 yes:)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5038 esac
5039 RANLIB=$ac_ct_RANLIB
5040 fi
5041 else
5042 RANLIB="$ac_cv_prog_RANLIB"
5043 fi
5044
5045
5046
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5054 # On Suns, sometimes $CPP names a directory.
5055 if test -n "$CPP" && test -d "$CPP"; then
5056 CPP=
5057 fi
5058 if test -z "$CPP"; then
5059 if ${ac_cv_prog_CPP+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 # Double quotes because CPP needs to be expanded
5063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5064 do
5065 ac_preproc_ok=false
5066 for ac_c_preproc_warn_flag in '' yes
5067 do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #ifdef __STDC__
5077 # include <limits.h>
5078 #else
5079 # include <assert.h>
5080 #endif
5081 Syntax error
5082 _ACEOF
5083 if ac_fn_c_try_cpp "$LINENO"; then :
5084
5085 else
5086 # Broken: fails on valid input.
5087 continue
5088 fi
5089 rm -f conftest.err conftest.i conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5096 _ACEOF
5097 if ac_fn_c_try_cpp "$LINENO"; then :
5098 # Broken: success on invalid input.
5099 continue
5100 else
5101 # Passes both tests.
5102 ac_preproc_ok=:
5103 break
5104 fi
5105 rm -f conftest.err conftest.i conftest.$ac_ext
5106
5107 done
5108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109 rm -f conftest.i conftest.err conftest.$ac_ext
5110 if $ac_preproc_ok; then :
5111 break
5112 fi
5113
5114 done
5115 ac_cv_prog_CPP=$CPP
5116
5117 fi
5118 CPP=$ac_cv_prog_CPP
5119 else
5120 ac_cv_prog_CPP=$CPP
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5123 $as_echo "$CPP" >&6; }
5124 ac_preproc_ok=false
5125 for ac_c_preproc_warn_flag in '' yes
5126 do
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #ifdef __STDC__
5136 # include <limits.h>
5137 #else
5138 # include <assert.h>
5139 #endif
5140 Syntax error
5141 _ACEOF
5142 if ac_fn_c_try_cpp "$LINENO"; then :
5143
5144 else
5145 # Broken: fails on valid input.
5146 continue
5147 fi
5148 rm -f conftest.err conftest.i conftest.$ac_ext
5149
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <ac_nonexistent.h>
5155 _ACEOF
5156 if ac_fn_c_try_cpp "$LINENO"; then :
5157 # Broken: success on invalid input.
5158 continue
5159 else
5160 # Passes both tests.
5161 ac_preproc_ok=:
5162 break
5163 fi
5164 rm -f conftest.err conftest.i conftest.$ac_ext
5165
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.i conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then :
5170
5171 else
5172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5175 See \`config.log' for more details" "$LINENO" 5; }
5176 fi
5177
5178 ac_ext=c
5179 ac_cpp='$CPP $CPPFLAGS'
5180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5187 if ${ac_cv_path_GREP+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -z "$GREP"; then
5191 ac_path_GREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in grep ggrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5201 as_fn_executable_p "$ac_path_GREP" || continue
5202 # Check for GNU ac_path_GREP and select it if it is found.
5203 # Check for GNU $ac_path_GREP
5204 case `"$ac_path_GREP" --version 2>&1` in
5205 *GNU*)
5206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5207 *)
5208 ac_count=0
5209 $as_echo_n 0123456789 >"conftest.in"
5210 while :
5211 do
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 $as_echo 'GREP' >> "conftest.nl"
5216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
5219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_GREP="$ac_path_GREP"
5222 ac_path_GREP_max=$ac_count
5223 fi
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5226 done
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228 esac
5229
5230 $ac_path_GREP_found && break 3
5231 done
5232 done
5233 done
5234 IFS=$as_save_IFS
5235 if test -z "$ac_cv_path_GREP"; then
5236 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5237 fi
5238 else
5239 ac_cv_path_GREP=$GREP
5240 fi
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5244 $as_echo "$ac_cv_path_GREP" >&6; }
5245 GREP="$ac_cv_path_GREP"
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5249 $as_echo_n "checking for egrep... " >&6; }
5250 if ${ac_cv_path_EGREP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5254 then ac_cv_path_EGREP="$GREP -E"
5255 else
5256 if test -z "$EGREP"; then
5257 ac_path_EGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in egrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5267 as_fn_executable_p "$ac_path_EGREP" || continue
5268 # Check for GNU ac_path_EGREP and select it if it is found.
5269 # Check for GNU $ac_path_EGREP
5270 case `"$ac_path_EGREP" --version 2>&1` in
5271 *GNU*)
5272 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5273 *)
5274 ac_count=0
5275 $as_echo_n 0123456789 >"conftest.in"
5276 while :
5277 do
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'EGREP' >> "conftest.nl"
5282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_EGREP="$ac_path_EGREP"
5288 ac_path_EGREP_max=$ac_count
5289 fi
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296 $ac_path_EGREP_found && break 3
5297 done
5298 done
5299 done
5300 IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_EGREP"; then
5302 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303 fi
5304 else
5305 ac_cv_path_EGREP=$EGREP
5306 fi
5307
5308 fi
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5311 $as_echo "$ac_cv_path_EGREP" >&6; }
5312 EGREP="$ac_cv_path_EGREP"
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5316 $as_echo_n "checking for ANSI C header files... " >&6; }
5317 if ${ac_cv_header_stdc+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <stdlib.h>
5323 #include <stdarg.h>
5324 #include <string.h>
5325 #include <float.h>
5326
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_header_stdc=yes
5337 else
5338 ac_cv_header_stdc=no
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341
5342 if test $ac_cv_header_stdc = yes; then
5343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <string.h>
5347
5348 _ACEOF
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "memchr" >/dev/null 2>&1; then :
5351
5352 else
5353 ac_cv_header_stdc=no
5354 fi
5355 rm -f conftest*
5356
5357 fi
5358
5359 if test $ac_cv_header_stdc = yes; then
5360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <stdlib.h>
5364
5365 _ACEOF
5366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "free" >/dev/null 2>&1; then :
5368
5369 else
5370 ac_cv_header_stdc=no
5371 fi
5372 rm -f conftest*
5373
5374 fi
5375
5376 if test $ac_cv_header_stdc = yes; then
5377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5378 if test "$cross_compiling" = yes; then :
5379 :
5380 else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <ctype.h>
5384 #include <stdlib.h>
5385 #if ((' ' & 0x0FF) == 0x020)
5386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5388 #else
5389 # define ISLOWER(c) \
5390 (('a' <= (c) && (c) <= 'i') \
5391 || ('j' <= (c) && (c) <= 'r') \
5392 || ('s' <= (c) && (c) <= 'z'))
5393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5394 #endif
5395
5396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5397 int
5398 main ()
5399 {
5400 int i;
5401 for (i = 0; i < 256; i++)
5402 if (XOR (islower (i), ISLOWER (i))
5403 || toupper (i) != TOUPPER (i))
5404 return 2;
5405 return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_run "$LINENO"; then :
5409
5410 else
5411 ac_cv_header_stdc=no
5412 fi
5413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5414 conftest.$ac_objext conftest.beam conftest.$ac_ext
5415 fi
5416
5417 fi
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5420 $as_echo "$ac_cv_header_stdc" >&6; }
5421 if test $ac_cv_header_stdc = yes; then
5422
5423 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5424
5425 fi
5426
5427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5429 inttypes.h stdint.h unistd.h
5430 do :
5431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5433 "
5434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5435 cat >>confdefs.h <<_ACEOF
5436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5437 _ACEOF
5438
5439 fi
5440
5441 done
5442
5443
5444
5445 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5446 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5447 MINIX=yes
5448 else
5449 MINIX=
5450 fi
5451
5452
5453 if test "$MINIX" = yes; then
5454
5455 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5456
5457
5458 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5459
5460
5461 $as_echo "#define _MINIX 1" >>confdefs.h
5462
5463 fi
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5467 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5468 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473
5474 # define __EXTENSIONS__ 1
5475 $ac_includes_default
5476 int
5477 main ()
5478 {
5479
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_safe_to_define___extensions__=yes
5486 else
5487 ac_cv_safe_to_define___extensions__=no
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5492 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5493 test $ac_cv_safe_to_define___extensions__ = yes &&
5494 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5495
5496 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5497
5498 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5499
5500 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5501
5502 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5503
5504
5505
5506 # The tests for host and target for $enable_largefile require
5507 # canonical names.
5508
5509
5510
5511 # As the $enable_largefile decision depends on --enable-plugins we must set it
5512 # even in directories otherwise not depending on the $plugins option.
5513
5514
5515 maybe_plugins=no
5516 for ac_header in dlfcn.h
5517 do :
5518 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5519 "
5520 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5521 cat >>confdefs.h <<_ACEOF
5522 #define HAVE_DLFCN_H 1
5523 _ACEOF
5524 maybe_plugins=yes
5525 fi
5526
5527 done
5528
5529 for ac_header in windows.h
5530 do :
5531 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5532 "
5533 if test "x$ac_cv_header_windows_h" = xyes; then :
5534 cat >>confdefs.h <<_ACEOF
5535 #define HAVE_WINDOWS_H 1
5536 _ACEOF
5537 maybe_plugins=yes
5538 fi
5539
5540 done
5541
5542
5543 # Check whether --enable-plugins was given.
5544 if test "${enable_plugins+set}" = set; then :
5545 enableval=$enable_plugins; case "${enableval}" in
5546 no) plugins=no ;;
5547 *) plugins=yes
5548 if test "$maybe_plugins" != "yes" ; then
5549 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5550 fi ;;
5551 esac
5552 else
5553 plugins=$maybe_plugins
5554
5555 fi
5556
5557 if test "$plugins" = "yes"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5559 $as_echo_n "checking for library containing dlsym... " >&6; }
5560 if ${ac_cv_search_dlsym+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 ac_func_search_save_LIBS=$LIBS
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char dlsym ();
5574 int
5575 main ()
5576 {
5577 return dlsym ();
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 for ac_lib in '' dl; do
5583 if test -z "$ac_lib"; then
5584 ac_res="none required"
5585 else
5586 ac_res=-l$ac_lib
5587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5588 fi
5589 if ac_fn_c_try_link "$LINENO"; then :
5590 ac_cv_search_dlsym=$ac_res
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext
5594 if ${ac_cv_search_dlsym+:} false; then :
5595 break
5596 fi
5597 done
5598 if ${ac_cv_search_dlsym+:} false; then :
5599
5600 else
5601 ac_cv_search_dlsym=no
5602 fi
5603 rm conftest.$ac_ext
5604 LIBS=$ac_func_search_save_LIBS
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5607 $as_echo "$ac_cv_search_dlsym" >&6; }
5608 ac_res=$ac_cv_search_dlsym
5609 if test "$ac_res" != no; then :
5610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5611
5612 fi
5613
5614 fi
5615
5616
5617 case "${host}" in
5618 sparc-*-solaris*|i[3-7]86-*-solaris*)
5619 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5620 # are mutually exclusive; and without procfs support, the bfd/ elf module
5621 # cannot provide certain routines such as elfcore_write_prpsinfo
5622 # or elfcore_write_prstatus. So unless the user explicitly requested
5623 # large-file support through the --enable-largefile switch, disable
5624 # large-file support in favor of procfs support.
5625 test "${target}" = "${host}" -a "x$plugins" = xno \
5626 && : ${enable_largefile="no"}
5627 ;;
5628 esac
5629
5630 # Check whether --enable-largefile was given.
5631 if test "${enable_largefile+set}" = set; then :
5632 enableval=$enable_largefile;
5633 fi
5634
5635 if test "$enable_largefile" != no; then
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5638 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5639 if ${ac_cv_sys_largefile_CC+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 ac_cv_sys_largefile_CC=no
5643 if test "$GCC" != yes; then
5644 ac_save_CC=$CC
5645 while :; do
5646 # IRIX 6.2 and later do not support large files by default,
5647 # so use the C compiler's -n32 option if that helps.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5658 ? 1 : -1];
5659 int
5660 main ()
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 break
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext
5671 CC="$CC -n32"
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_sys_largefile_CC=' -n32'; break
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext
5676 break
5677 done
5678 CC=$ac_save_CC
5679 rm -f conftest.$ac_ext
5680 fi
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5683 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5684 if test "$ac_cv_sys_largefile_CC" != no; then
5685 CC=$CC$ac_cv_sys_largefile_CC
5686 fi
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5689 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5690 if ${ac_cv_sys_file_offset_bits+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 while :; do
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5704 ? 1 : -1];
5705 int
5706 main ()
5707 {
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 ac_cv_sys_file_offset_bits=no; break
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 #define _FILE_OFFSET_BITS 64
5720 #include <sys/types.h>
5721 /* Check that off_t can represent 2**63 - 1 correctly.
5722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5723 since some C++ compilers masquerading as C compilers
5724 incorrectly reject 9223372036854775807. */
5725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5727 && LARGE_OFF_T % 2147483647 == 1)
5728 ? 1 : -1];
5729 int
5730 main ()
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 ac_cv_sys_file_offset_bits=64; break
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_sys_file_offset_bits=unknown
5742 break
5743 done
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5746 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5747 case $ac_cv_sys_file_offset_bits in #(
5748 no | unknown) ;;
5749 *)
5750 cat >>confdefs.h <<_ACEOF
5751 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5752 _ACEOF
5753 ;;
5754 esac
5755 rm -rf conftest*
5756 if test $ac_cv_sys_file_offset_bits = unknown; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5758 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5759 if ${ac_cv_sys_large_files+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 while :; do
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5773 ? 1 : -1];
5774 int
5775 main ()
5776 {
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"; then :
5783 ac_cv_sys_large_files=no; break
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #define _LARGE_FILES 1
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5797 ? 1 : -1];
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_sys_large_files=1; break
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ac_cv_sys_large_files=unknown
5811 break
5812 done
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5815 $as_echo "$ac_cv_sys_large_files" >&6; }
5816 case $ac_cv_sys_large_files in #(
5817 no | unknown) ;;
5818 *)
5819 cat >>confdefs.h <<_ACEOF
5820 #define _LARGE_FILES $ac_cv_sys_large_files
5821 _ACEOF
5822 ;;
5823 esac
5824 rm -rf conftest*
5825 fi
5826
5827
5828 fi
5829
5830
5831 ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_CC+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$CC"; then
5845 ac_cv_prog_CC="$CC" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 CC=$ac_cv_prog_CC
5865 if test -n "$CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5867 $as_echo "$CC" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_CC"; then
5876 ac_ct_CC=$CC
5877 # Extract the first word of "gcc", so it can be a program name with args.
5878 set dummy gcc; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_CC"; then
5885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_CC="gcc"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5905 if test -n "$ac_ct_CC"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5907 $as_echo "$ac_ct_CC" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_CC" = x; then
5914 CC=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 CC=$ac_ct_CC
5923 fi
5924 else
5925 CC="$ac_cv_prog_CC"
5926 fi
5927
5928 if test -z "$CC"; then
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}cc; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_CC+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$CC"; then
5938 ac_cv_prog_CC="$CC" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_CC="${ac_tool_prefix}cc"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 CC=$ac_cv_prog_CC
5958 if test -n "$CC"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5960 $as_echo "$CC" >&6; }
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967 fi
5968 fi
5969 if test -z "$CC"; then
5970 # Extract the first word of "cc", so it can be a program name with args.
5971 set dummy cc; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_CC+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$CC"; then
5978 ac_cv_prog_CC="$CC" # Let the user override the test.
5979 else
5980 ac_prog_rejected=no
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5989 ac_prog_rejected=yes
5990 continue
5991 fi
5992 ac_cv_prog_CC="cc"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 if test $ac_prog_rejected = yes; then
6001 # We found a bogon in the path, so make sure we never use it.
6002 set dummy $ac_cv_prog_CC
6003 shift
6004 if test $# != 0; then
6005 # We chose a different compiler from the bogus one.
6006 # However, it has the same basename, so the bogon will be chosen
6007 # first if we set CC to just the basename; use the full file name.
6008 shift
6009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6010 fi
6011 fi
6012 fi
6013 fi
6014 CC=$ac_cv_prog_CC
6015 if test -n "$CC"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017 $as_echo "$CC" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 fi
6025 if test -z "$CC"; then
6026 if test -n "$ac_tool_prefix"; then
6027 for ac_prog in cl.exe
6028 do
6029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_CC+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$CC"; then
6037 ac_cv_prog_CC="$CC" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 CC=$ac_cv_prog_CC
6057 if test -n "$CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6059 $as_echo "$CC" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 test -n "$CC" && break
6067 done
6068 fi
6069 if test -z "$CC"; then
6070 ac_ct_CC=$CC
6071 for ac_prog in cl.exe
6072 do
6073 # Extract the first word of "$ac_prog", so it can be a program name with args.
6074 set dummy $ac_prog; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$ac_ct_CC"; then
6081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_ac_ct_CC="$ac_prog"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6101 if test -n "$ac_ct_CC"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6103 $as_echo "$ac_ct_CC" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 test -n "$ac_ct_CC" && break
6111 done
6112
6113 if test "x$ac_ct_CC" = x; then
6114 CC=""
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122 CC=$ac_ct_CC
6123 fi
6124 fi
6125
6126 fi
6127
6128
6129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6131 as_fn_error $? "no acceptable C compiler found in \$PATH
6132 See \`config.log' for more details" "$LINENO" 5; }
6133
6134 # Provide some information about the compiler.
6135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6136 set X $ac_compile
6137 ac_compiler=$2
6138 for ac_option in --version -v -V -qversion; do
6139 { { ac_try="$ac_compiler $ac_option >&5"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6145 $as_echo "$ac_try_echo"; } >&5
6146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6147 ac_status=$?
6148 if test -s conftest.err; then
6149 sed '10a\
6150 ... rest of stderr output deleted ...
6151 10q' conftest.err >conftest.er1
6152 cat conftest.er1 >&5
6153 fi
6154 rm -f conftest.er1 conftest.err
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }
6157 done
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6160 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6161 if ${ac_cv_c_compiler_gnu+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167 int
6168 main ()
6169 {
6170 #ifndef __GNUC__
6171 choke me
6172 #endif
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 ac_compiler_gnu=yes
6180 else
6181 ac_compiler_gnu=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6185
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6188 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6189 if test $ac_compiler_gnu = yes; then
6190 GCC=yes
6191 else
6192 GCC=
6193 fi
6194 ac_test_CFLAGS=${CFLAGS+set}
6195 ac_save_CFLAGS=$CFLAGS
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6197 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6198 if ${ac_cv_prog_cc_g+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 ac_save_c_werror_flag=$ac_c_werror_flag
6202 ac_c_werror_flag=yes
6203 ac_cv_prog_cc_g=no
6204 CFLAGS="-g"
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207
6208 int
6209 main ()
6210 {
6211
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_cv_prog_cc_g=yes
6218 else
6219 CFLAGS=""
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222
6223 int
6224 main ()
6225 {
6226
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232
6233 else
6234 ac_c_werror_flag=$ac_save_c_werror_flag
6235 CFLAGS="-g"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 ac_cv_prog_cc_g=yes
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 ac_c_werror_flag=$ac_save_c_werror_flag
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6258 $as_echo "$ac_cv_prog_cc_g" >&6; }
6259 if test "$ac_test_CFLAGS" = set; then
6260 CFLAGS=$ac_save_CFLAGS
6261 elif test $ac_cv_prog_cc_g = yes; then
6262 if test "$GCC" = yes; then
6263 CFLAGS="-g -O2"
6264 else
6265 CFLAGS="-g"
6266 fi
6267 else
6268 if test "$GCC" = yes; then
6269 CFLAGS="-O2"
6270 else
6271 CFLAGS=
6272 fi
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6275 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6276 if ${ac_cv_prog_cc_c89+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 ac_cv_prog_cc_c89=no
6280 ac_save_CC=$CC
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <stdarg.h>
6284 #include <stdio.h>
6285 struct stat;
6286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6287 struct buf { int x; };
6288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6289 static char *e (p, i)
6290 char **p;
6291 int i;
6292 {
6293 return p[i];
6294 }
6295 static char *f (char * (*g) (char **, int), char **p, ...)
6296 {
6297 char *s;
6298 va_list v;
6299 va_start (v,p);
6300 s = g (p, va_arg (v,int));
6301 va_end (v);
6302 return s;
6303 }
6304
6305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6306 function prototypes and stuff, but not '\xHH' hex character constants.
6307 These don't provoke an error unfortunately, instead are silently treated
6308 as 'x'. The following induces an error, until -std is added to get
6309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6310 array size at least. It's necessary to write '\x00'==0 to get something
6311 that's true only with -std. */
6312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6313
6314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6315 inside strings and character constants. */
6316 #define FOO(x) 'x'
6317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6318
6319 int test (int i, double x);
6320 struct s1 {int (*f) (int a);};
6321 struct s2 {int (*f) (double a);};
6322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6323 int argc;
6324 char **argv;
6325 int
6326 main ()
6327 {
6328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6335 do
6336 CC="$ac_save_CC $ac_arg"
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 ac_cv_prog_cc_c89=$ac_arg
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext
6341 test "x$ac_cv_prog_cc_c89" != "xno" && break
6342 done
6343 rm -f conftest.$ac_ext
6344 CC=$ac_save_CC
6345
6346 fi
6347 # AC_CACHE_VAL
6348 case "x$ac_cv_prog_cc_c89" in
6349 x)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6351 $as_echo "none needed" >&6; } ;;
6352 xno)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6354 $as_echo "unsupported" >&6; } ;;
6355 *)
6356 CC="$CC $ac_cv_prog_cc_c89"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6358 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6359 esac
6360 if test "x$ac_cv_prog_cc_c89" != xno; then :
6361
6362 fi
6363
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370 ac_ext=c
6371 ac_cpp='$CPP $CPPFLAGS'
6372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6376 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6377 if ${am_cv_prog_cc_c_o+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382
6383 int
6384 main ()
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 # Make sure it works both with $CC and with simple cc.
6392 # Following AC_PROG_CC_C_O, we do the test twice because some
6393 # compilers refuse to overwrite an existing .o file with -o,
6394 # though they will create one.
6395 am_cv_prog_cc_c_o=yes
6396 for am_i in 1 2; do
6397 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6398 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } \
6402 && test -f conftest2.$ac_objext; then
6403 : OK
6404 else
6405 am_cv_prog_cc_c_o=no
6406 break
6407 fi
6408 done
6409 rm -f core conftest*
6410 unset am_i
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6413 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6414 if test "$am_cv_prog_cc_c_o" != yes; then
6415 # Losing compiler, so override with the script.
6416 # FIXME: It is wrong to rewrite CC.
6417 # But if we don't then we get into trouble of one sort or another.
6418 # A longer-term fix would be to have automake use am__CC in this case,
6419 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6420 CC="$am_aux_dir/compile $CC"
6421 fi
6422 ac_ext=c
6423 ac_cpp='$CPP $CPPFLAGS'
6424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
6428
6429 depcc="$CC" am_compiler_list=
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6432 $as_echo_n "checking dependency style of $depcc... " >&6; }
6433 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6437 # We make a subdir and do the tests there. Otherwise we can end up
6438 # making bogus files that we don't know about and never remove. For
6439 # instance it was reported that on HP-UX the gcc test will end up
6440 # making a dummy file named 'D' -- because '-MD' means "put the output
6441 # in D".
6442 rm -rf conftest.dir
6443 mkdir conftest.dir
6444 # Copy depcomp to subdir because otherwise we won't find it if we're
6445 # using a relative directory.
6446 cp "$am_depcomp" conftest.dir
6447 cd conftest.dir
6448 # We will build objects and dependencies in a subdirectory because
6449 # it helps to detect inapplicable dependency modes. For instance
6450 # both Tru64's cc and ICC support -MD to output dependencies as a
6451 # side effect of compilation, but ICC will put the dependencies in
6452 # the current directory while Tru64 will put them in the object
6453 # directory.
6454 mkdir sub
6455
6456 am_cv_CC_dependencies_compiler_type=none
6457 if test "$am_compiler_list" = ""; then
6458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6459 fi
6460 am__universal=false
6461 case " $depcc " in #(
6462 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6463 esac
6464
6465 for depmode in $am_compiler_list; do
6466 # Setup a source with many dependencies, because some compilers
6467 # like to wrap large dependency lists on column 80 (with \), and
6468 # we should not choose a depcomp mode which is confused by this.
6469 #
6470 # We need to recreate these files for each test, as the compiler may
6471 # overwrite some of them when testing with obscure command lines.
6472 # This happens at least with the AIX C compiler.
6473 : > sub/conftest.c
6474 for i in 1 2 3 4 5 6; do
6475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6477 # Solaris 10 /bin/sh.
6478 echo '/* dummy */' > sub/conftst$i.h
6479 done
6480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6481
6482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6483 # mode. It turns out that the SunPro C++ compiler does not properly
6484 # handle '-M -o', and we need to detect this. Also, some Intel
6485 # versions had trouble with output in subdirs.
6486 am__obj=sub/conftest.${OBJEXT-o}
6487 am__minus_obj="-o $am__obj"
6488 case $depmode in
6489 gcc)
6490 # This depmode causes a compiler race in universal mode.
6491 test "$am__universal" = false || continue
6492 ;;
6493 nosideeffect)
6494 # After this tag, mechanisms are not by side-effect, so they'll
6495 # only be used when explicitly requested.
6496 if test "x$enable_dependency_tracking" = xyes; then
6497 continue
6498 else
6499 break
6500 fi
6501 ;;
6502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6503 # This compiler won't grok '-c -o', but also, the minuso test has
6504 # not run yet. These depmodes are late enough in the game, and
6505 # so weak that their functioning should not be impacted.
6506 am__obj=conftest.${OBJEXT-o}
6507 am__minus_obj=
6508 ;;
6509 none) break ;;
6510 esac
6511 if depmode=$depmode \
6512 source=sub/conftest.c object=$am__obj \
6513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6515 >/dev/null 2>conftest.err &&
6516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6520 # icc doesn't choke on unknown options, it will just issue warnings
6521 # or remarks (even with -Werror). So we grep stderr for any message
6522 # that says an option was ignored or not supported.
6523 # When given -MP, icc 7.0 and 7.1 complain thusly:
6524 # icc: Command line warning: ignoring option '-M'; no argument required
6525 # The diagnosis changed in icc 8.0:
6526 # icc: Command line remark: option '-MP' not supported
6527 if (grep 'ignoring option' conftest.err ||
6528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6529 am_cv_CC_dependencies_compiler_type=$depmode
6530 break
6531 fi
6532 fi
6533 done
6534
6535 cd ..
6536 rm -rf conftest.dir
6537 else
6538 am_cv_CC_dependencies_compiler_type=none
6539 fi
6540
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6543 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6545
6546 if
6547 test "x$enable_dependency_tracking" != xno \
6548 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6549 am__fastdepCC_TRUE=
6550 am__fastdepCC_FALSE='#'
6551 else
6552 am__fastdepCC_TRUE='#'
6553 am__fastdepCC_FALSE=
6554 fi
6555
6556
6557 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6558
6559
6560 # We require a C++11 compiler. Check if one is available, and if
6561 # necessary, set CXX_DIALECT to some -std=xxx switch.
6562
6563 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6564 ac_ext=cpp
6565 ac_cpp='$CXXCPP $CPPFLAGS'
6566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6569 CXX_DIALECT=""
6570 ac_success=no
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6572 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6573 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578
6579
6580 // If the compiler admits that it is not ready for C++11, why torture it?
6581 // Hopefully, this will speed up the test.
6582
6583 #ifndef __cplusplus
6584
6585 #error "This is not a C++ compiler"
6586
6587 #elif __cplusplus < 201103L
6588
6589 #error "This is not a C++11 compiler"
6590
6591 #else
6592
6593 namespace cxx11
6594 {
6595
6596 namespace test_static_assert
6597 {
6598
6599 template <typename T>
6600 struct check
6601 {
6602 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6603 };
6604
6605 }
6606
6607 namespace test_final_override
6608 {
6609
6610 struct Base
6611 {
6612 virtual void f() {}
6613 };
6614
6615 struct Derived : public Base
6616 {
6617 virtual void f() override {}
6618 };
6619
6620 }
6621
6622 namespace test_double_right_angle_brackets
6623 {
6624
6625 template < typename T >
6626 struct check {};
6627
6628 typedef check<void> single_type;
6629 typedef check<check<void>> double_type;
6630 typedef check<check<check<void>>> triple_type;
6631 typedef check<check<check<check<void>>>> quadruple_type;
6632
6633 }
6634
6635 namespace test_decltype
6636 {
6637
6638 int
6639 f()
6640 {
6641 int a = 1;
6642 decltype(a) b = 2;
6643 return a + b;
6644 }
6645
6646 }
6647
6648 namespace test_type_deduction
6649 {
6650
6651 template < typename T1, typename T2 >
6652 struct is_same
6653 {
6654 static const bool value = false;
6655 };
6656
6657 template < typename T >
6658 struct is_same<T, T>
6659 {
6660 static const bool value = true;
6661 };
6662
6663 template < typename T1, typename T2 >
6664 auto
6665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6666 {
6667 return a1 + a2;
6668 }
6669
6670 int
6671 test(const int c, volatile int v)
6672 {
6673 static_assert(is_same<int, decltype(0)>::value == true, "");
6674 static_assert(is_same<int, decltype(c)>::value == false, "");
6675 static_assert(is_same<int, decltype(v)>::value == false, "");
6676 auto ac = c;
6677 auto av = v;
6678 auto sumi = ac + av + 'x';
6679 auto sumf = ac + av + 1.0;
6680 static_assert(is_same<int, decltype(ac)>::value == true, "");
6681 static_assert(is_same<int, decltype(av)>::value == true, "");
6682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6685 return (sumf > 0.0) ? sumi : add(c, v);
6686 }
6687
6688 }
6689
6690 namespace test_noexcept
6691 {
6692
6693 int f() { return 0; }
6694 int g() noexcept { return 0; }
6695
6696 static_assert(noexcept(f()) == false, "");
6697 static_assert(noexcept(g()) == true, "");
6698
6699 }
6700
6701 namespace test_constexpr
6702 {
6703
6704 template < typename CharT >
6705 unsigned long constexpr
6706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6707 {
6708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6709 }
6710
6711 template < typename CharT >
6712 unsigned long constexpr
6713 strlen_c(const CharT *const s) noexcept
6714 {
6715 return strlen_c_r(s, 0UL);
6716 }
6717
6718 static_assert(strlen_c("") == 0UL, "");
6719 static_assert(strlen_c("1") == 1UL, "");
6720 static_assert(strlen_c("example") == 7UL, "");
6721 static_assert(strlen_c("another\0example") == 7UL, "");
6722
6723 }
6724
6725 namespace test_rvalue_references
6726 {
6727
6728 template < int N >
6729 struct answer
6730 {
6731 static constexpr int value = N;
6732 };
6733
6734 answer<1> f(int&) { return answer<1>(); }
6735 answer<2> f(const int&) { return answer<2>(); }
6736 answer<3> f(int&&) { return answer<3>(); }
6737
6738 void
6739 test()
6740 {
6741 int i = 0;
6742 const int c = 0;
6743 static_assert(decltype(f(i))::value == 1, "");
6744 static_assert(decltype(f(c))::value == 2, "");
6745 static_assert(decltype(f(0))::value == 3, "");
6746 }
6747
6748 }
6749
6750 namespace test_uniform_initialization
6751 {
6752
6753 struct test
6754 {
6755 static const int zero {};
6756 static const int one {1};
6757 };
6758
6759 static_assert(test::zero == 0, "");
6760 static_assert(test::one == 1, "");
6761
6762 }
6763
6764 namespace test_lambdas
6765 {
6766
6767 void
6768 test1()
6769 {
6770 auto lambda1 = [](){};
6771 auto lambda2 = lambda1;
6772 lambda1();
6773 lambda2();
6774 }
6775
6776 int
6777 test2()
6778 {
6779 auto a = [](int i, int j){ return i + j; }(1, 2);
6780 auto b = []() -> int { return '0'; }();
6781 auto c = [=](){ return a + b; }();
6782 auto d = [&](){ return c; }();
6783 auto e = [a, &b](int x) mutable {
6784 const auto identity = [](int y){ return y; };
6785 for (auto i = 0; i < a; ++i)
6786 a += b--;
6787 return x + identity(a + b);
6788 }(0);
6789 return a + b + c + d + e;
6790 }
6791
6792 int
6793 test3()
6794 {
6795 const auto nullary = [](){ return 0; };
6796 const auto unary = [](int x){ return x; };
6797 using nullary_t = decltype(nullary);
6798 using unary_t = decltype(unary);
6799 const auto higher1st = [](nullary_t f){ return f(); };
6800 const auto higher2nd = [unary](nullary_t f1){
6801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6802 };
6803 return higher1st(nullary) + higher2nd(nullary)(unary);
6804 }
6805
6806 }
6807
6808 namespace test_variadic_templates
6809 {
6810
6811 template <int...>
6812 struct sum;
6813
6814 template <int N0, int... N1toN>
6815 struct sum<N0, N1toN...>
6816 {
6817 static constexpr auto value = N0 + sum<N1toN...>::value;
6818 };
6819
6820 template <>
6821 struct sum<>
6822 {
6823 static constexpr auto value = 0;
6824 };
6825
6826 static_assert(sum<>::value == 0, "");
6827 static_assert(sum<1>::value == 1, "");
6828 static_assert(sum<23>::value == 23, "");
6829 static_assert(sum<1, 2>::value == 3, "");
6830 static_assert(sum<5, 5, 11>::value == 21, "");
6831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6832
6833 }
6834
6835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6837 // because of this.
6838 namespace test_template_alias_sfinae
6839 {
6840
6841 struct foo {};
6842
6843 template<typename T>
6844 using member = typename T::member_type;
6845
6846 template<typename T>
6847 void func(...) {}
6848
6849 template<typename T>
6850 void func(member<T>*) {}
6851
6852 void test();
6853
6854 void test() { func<foo>(0); }
6855
6856 }
6857
6858 } // namespace cxx11
6859
6860 #endif // __cplusplus >= 201103L
6861
6862
6863
6864 _ACEOF
6865 if ac_fn_cxx_try_compile "$LINENO"; then :
6866 ax_cv_cxx_compile_cxx11=yes
6867 else
6868 ax_cv_cxx_compile_cxx11=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6873 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6874 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6875 ac_success=yes
6876 fi
6877
6878 if test x$ac_success = xno; then
6879 for alternative in ${ax_cxx_compile_alternatives}; do
6880 switch="-std=gnu++${alternative}"
6881 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6883 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6884 if eval \${$cachevar+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_save_CXX="$CXX"
6888 CXX="$CXX $switch"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891
6892
6893 // If the compiler admits that it is not ready for C++11, why torture it?
6894 // Hopefully, this will speed up the test.
6895
6896 #ifndef __cplusplus
6897
6898 #error "This is not a C++ compiler"
6899
6900 #elif __cplusplus < 201103L
6901
6902 #error "This is not a C++11 compiler"
6903
6904 #else
6905
6906 namespace cxx11
6907 {
6908
6909 namespace test_static_assert
6910 {
6911
6912 template <typename T>
6913 struct check
6914 {
6915 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6916 };
6917
6918 }
6919
6920 namespace test_final_override
6921 {
6922
6923 struct Base
6924 {
6925 virtual void f() {}
6926 };
6927
6928 struct Derived : public Base
6929 {
6930 virtual void f() override {}
6931 };
6932
6933 }
6934
6935 namespace test_double_right_angle_brackets
6936 {
6937
6938 template < typename T >
6939 struct check {};
6940
6941 typedef check<void> single_type;
6942 typedef check<check<void>> double_type;
6943 typedef check<check<check<void>>> triple_type;
6944 typedef check<check<check<check<void>>>> quadruple_type;
6945
6946 }
6947
6948 namespace test_decltype
6949 {
6950
6951 int
6952 f()
6953 {
6954 int a = 1;
6955 decltype(a) b = 2;
6956 return a + b;
6957 }
6958
6959 }
6960
6961 namespace test_type_deduction
6962 {
6963
6964 template < typename T1, typename T2 >
6965 struct is_same
6966 {
6967 static const bool value = false;
6968 };
6969
6970 template < typename T >
6971 struct is_same<T, T>
6972 {
6973 static const bool value = true;
6974 };
6975
6976 template < typename T1, typename T2 >
6977 auto
6978 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6979 {
6980 return a1 + a2;
6981 }
6982
6983 int
6984 test(const int c, volatile int v)
6985 {
6986 static_assert(is_same<int, decltype(0)>::value == true, "");
6987 static_assert(is_same<int, decltype(c)>::value == false, "");
6988 static_assert(is_same<int, decltype(v)>::value == false, "");
6989 auto ac = c;
6990 auto av = v;
6991 auto sumi = ac + av + 'x';
6992 auto sumf = ac + av + 1.0;
6993 static_assert(is_same<int, decltype(ac)>::value == true, "");
6994 static_assert(is_same<int, decltype(av)>::value == true, "");
6995 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6996 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6997 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6998 return (sumf > 0.0) ? sumi : add(c, v);
6999 }
7000
7001 }
7002
7003 namespace test_noexcept
7004 {
7005
7006 int f() { return 0; }
7007 int g() noexcept { return 0; }
7008
7009 static_assert(noexcept(f()) == false, "");
7010 static_assert(noexcept(g()) == true, "");
7011
7012 }
7013
7014 namespace test_constexpr
7015 {
7016
7017 template < typename CharT >
7018 unsigned long constexpr
7019 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7020 {
7021 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7022 }
7023
7024 template < typename CharT >
7025 unsigned long constexpr
7026 strlen_c(const CharT *const s) noexcept
7027 {
7028 return strlen_c_r(s, 0UL);
7029 }
7030
7031 static_assert(strlen_c("") == 0UL, "");
7032 static_assert(strlen_c("1") == 1UL, "");
7033 static_assert(strlen_c("example") == 7UL, "");
7034 static_assert(strlen_c("another\0example") == 7UL, "");
7035
7036 }
7037
7038 namespace test_rvalue_references
7039 {
7040
7041 template < int N >
7042 struct answer
7043 {
7044 static constexpr int value = N;
7045 };
7046
7047 answer<1> f(int&) { return answer<1>(); }
7048 answer<2> f(const int&) { return answer<2>(); }
7049 answer<3> f(int&&) { return answer<3>(); }
7050
7051 void
7052 test()
7053 {
7054 int i = 0;
7055 const int c = 0;
7056 static_assert(decltype(f(i))::value == 1, "");
7057 static_assert(decltype(f(c))::value == 2, "");
7058 static_assert(decltype(f(0))::value == 3, "");
7059 }
7060
7061 }
7062
7063 namespace test_uniform_initialization
7064 {
7065
7066 struct test
7067 {
7068 static const int zero {};
7069 static const int one {1};
7070 };
7071
7072 static_assert(test::zero == 0, "");
7073 static_assert(test::one == 1, "");
7074
7075 }
7076
7077 namespace test_lambdas
7078 {
7079
7080 void
7081 test1()
7082 {
7083 auto lambda1 = [](){};
7084 auto lambda2 = lambda1;
7085 lambda1();
7086 lambda2();
7087 }
7088
7089 int
7090 test2()
7091 {
7092 auto a = [](int i, int j){ return i + j; }(1, 2);
7093 auto b = []() -> int { return '0'; }();
7094 auto c = [=](){ return a + b; }();
7095 auto d = [&](){ return c; }();
7096 auto e = [a, &b](int x) mutable {
7097 const auto identity = [](int y){ return y; };
7098 for (auto i = 0; i < a; ++i)
7099 a += b--;
7100 return x + identity(a + b);
7101 }(0);
7102 return a + b + c + d + e;
7103 }
7104
7105 int
7106 test3()
7107 {
7108 const auto nullary = [](){ return 0; };
7109 const auto unary = [](int x){ return x; };
7110 using nullary_t = decltype(nullary);
7111 using unary_t = decltype(unary);
7112 const auto higher1st = [](nullary_t f){ return f(); };
7113 const auto higher2nd = [unary](nullary_t f1){
7114 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7115 };
7116 return higher1st(nullary) + higher2nd(nullary)(unary);
7117 }
7118
7119 }
7120
7121 namespace test_variadic_templates
7122 {
7123
7124 template <int...>
7125 struct sum;
7126
7127 template <int N0, int... N1toN>
7128 struct sum<N0, N1toN...>
7129 {
7130 static constexpr auto value = N0 + sum<N1toN...>::value;
7131 };
7132
7133 template <>
7134 struct sum<>
7135 {
7136 static constexpr auto value = 0;
7137 };
7138
7139 static_assert(sum<>::value == 0, "");
7140 static_assert(sum<1>::value == 1, "");
7141 static_assert(sum<23>::value == 23, "");
7142 static_assert(sum<1, 2>::value == 3, "");
7143 static_assert(sum<5, 5, 11>::value == 21, "");
7144 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7145
7146 }
7147
7148 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7149 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7150 // because of this.
7151 namespace test_template_alias_sfinae
7152 {
7153
7154 struct foo {};
7155
7156 template<typename T>
7157 using member = typename T::member_type;
7158
7159 template<typename T>
7160 void func(...) {}
7161
7162 template<typename T>
7163 void func(member<T>*) {}
7164
7165 void test();
7166
7167 void test() { func<foo>(0); }
7168
7169 }
7170
7171 } // namespace cxx11
7172
7173 #endif // __cplusplus >= 201103L
7174
7175
7176
7177 _ACEOF
7178 if ac_fn_cxx_try_compile "$LINENO"; then :
7179 eval $cachevar=yes
7180 else
7181 eval $cachevar=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 CXX="$ac_save_CXX"
7185 fi
7186 eval ac_res=\$$cachevar
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7188 $as_echo "$ac_res" >&6; }
7189 if eval test x\$$cachevar = xyes; then
7190 CXX_DIALECT="$switch"
7191 ac_success=yes
7192 break
7193 fi
7194 done
7195 fi
7196
7197 if test x$ac_success = xno; then
7198 for alternative in ${ax_cxx_compile_alternatives}; do
7199 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7200 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7202 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7203 if eval \${$cachevar+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 ac_save_CXX="$CXX"
7207 CXX="$CXX $switch"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210
7211
7212 // If the compiler admits that it is not ready for C++11, why torture it?
7213 // Hopefully, this will speed up the test.
7214
7215 #ifndef __cplusplus
7216
7217 #error "This is not a C++ compiler"
7218
7219 #elif __cplusplus < 201103L
7220
7221 #error "This is not a C++11 compiler"
7222
7223 #else
7224
7225 namespace cxx11
7226 {
7227
7228 namespace test_static_assert
7229 {
7230
7231 template <typename T>
7232 struct check
7233 {
7234 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7235 };
7236
7237 }
7238
7239 namespace test_final_override
7240 {
7241
7242 struct Base
7243 {
7244 virtual void f() {}
7245 };
7246
7247 struct Derived : public Base
7248 {
7249 virtual void f() override {}
7250 };
7251
7252 }
7253
7254 namespace test_double_right_angle_brackets
7255 {
7256
7257 template < typename T >
7258 struct check {};
7259
7260 typedef check<void> single_type;
7261 typedef check<check<void>> double_type;
7262 typedef check<check<check<void>>> triple_type;
7263 typedef check<check<check<check<void>>>> quadruple_type;
7264
7265 }
7266
7267 namespace test_decltype
7268 {
7269
7270 int
7271 f()
7272 {
7273 int a = 1;
7274 decltype(a) b = 2;
7275 return a + b;
7276 }
7277
7278 }
7279
7280 namespace test_type_deduction
7281 {
7282
7283 template < typename T1, typename T2 >
7284 struct is_same
7285 {
7286 static const bool value = false;
7287 };
7288
7289 template < typename T >
7290 struct is_same<T, T>
7291 {
7292 static const bool value = true;
7293 };
7294
7295 template < typename T1, typename T2 >
7296 auto
7297 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7298 {
7299 return a1 + a2;
7300 }
7301
7302 int
7303 test(const int c, volatile int v)
7304 {
7305 static_assert(is_same<int, decltype(0)>::value == true, "");
7306 static_assert(is_same<int, decltype(c)>::value == false, "");
7307 static_assert(is_same<int, decltype(v)>::value == false, "");
7308 auto ac = c;
7309 auto av = v;
7310 auto sumi = ac + av + 'x';
7311 auto sumf = ac + av + 1.0;
7312 static_assert(is_same<int, decltype(ac)>::value == true, "");
7313 static_assert(is_same<int, decltype(av)>::value == true, "");
7314 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7315 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7316 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7317 return (sumf > 0.0) ? sumi : add(c, v);
7318 }
7319
7320 }
7321
7322 namespace test_noexcept
7323 {
7324
7325 int f() { return 0; }
7326 int g() noexcept { return 0; }
7327
7328 static_assert(noexcept(f()) == false, "");
7329 static_assert(noexcept(g()) == true, "");
7330
7331 }
7332
7333 namespace test_constexpr
7334 {
7335
7336 template < typename CharT >
7337 unsigned long constexpr
7338 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7339 {
7340 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7341 }
7342
7343 template < typename CharT >
7344 unsigned long constexpr
7345 strlen_c(const CharT *const s) noexcept
7346 {
7347 return strlen_c_r(s, 0UL);
7348 }
7349
7350 static_assert(strlen_c("") == 0UL, "");
7351 static_assert(strlen_c("1") == 1UL, "");
7352 static_assert(strlen_c("example") == 7UL, "");
7353 static_assert(strlen_c("another\0example") == 7UL, "");
7354
7355 }
7356
7357 namespace test_rvalue_references
7358 {
7359
7360 template < int N >
7361 struct answer
7362 {
7363 static constexpr int value = N;
7364 };
7365
7366 answer<1> f(int&) { return answer<1>(); }
7367 answer<2> f(const int&) { return answer<2>(); }
7368 answer<3> f(int&&) { return answer<3>(); }
7369
7370 void
7371 test()
7372 {
7373 int i = 0;
7374 const int c = 0;
7375 static_assert(decltype(f(i))::value == 1, "");
7376 static_assert(decltype(f(c))::value == 2, "");
7377 static_assert(decltype(f(0))::value == 3, "");
7378 }
7379
7380 }
7381
7382 namespace test_uniform_initialization
7383 {
7384
7385 struct test
7386 {
7387 static const int zero {};
7388 static const int one {1};
7389 };
7390
7391 static_assert(test::zero == 0, "");
7392 static_assert(test::one == 1, "");
7393
7394 }
7395
7396 namespace test_lambdas
7397 {
7398
7399 void
7400 test1()
7401 {
7402 auto lambda1 = [](){};
7403 auto lambda2 = lambda1;
7404 lambda1();
7405 lambda2();
7406 }
7407
7408 int
7409 test2()
7410 {
7411 auto a = [](int i, int j){ return i + j; }(1, 2);
7412 auto b = []() -> int { return '0'; }();
7413 auto c = [=](){ return a + b; }();
7414 auto d = [&](){ return c; }();
7415 auto e = [a, &b](int x) mutable {
7416 const auto identity = [](int y){ return y; };
7417 for (auto i = 0; i < a; ++i)
7418 a += b--;
7419 return x + identity(a + b);
7420 }(0);
7421 return a + b + c + d + e;
7422 }
7423
7424 int
7425 test3()
7426 {
7427 const auto nullary = [](){ return 0; };
7428 const auto unary = [](int x){ return x; };
7429 using nullary_t = decltype(nullary);
7430 using unary_t = decltype(unary);
7431 const auto higher1st = [](nullary_t f){ return f(); };
7432 const auto higher2nd = [unary](nullary_t f1){
7433 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7434 };
7435 return higher1st(nullary) + higher2nd(nullary)(unary);
7436 }
7437
7438 }
7439
7440 namespace test_variadic_templates
7441 {
7442
7443 template <int...>
7444 struct sum;
7445
7446 template <int N0, int... N1toN>
7447 struct sum<N0, N1toN...>
7448 {
7449 static constexpr auto value = N0 + sum<N1toN...>::value;
7450 };
7451
7452 template <>
7453 struct sum<>
7454 {
7455 static constexpr auto value = 0;
7456 };
7457
7458 static_assert(sum<>::value == 0, "");
7459 static_assert(sum<1>::value == 1, "");
7460 static_assert(sum<23>::value == 23, "");
7461 static_assert(sum<1, 2>::value == 3, "");
7462 static_assert(sum<5, 5, 11>::value == 21, "");
7463 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7464
7465 }
7466
7467 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7468 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7469 // because of this.
7470 namespace test_template_alias_sfinae
7471 {
7472
7473 struct foo {};
7474
7475 template<typename T>
7476 using member = typename T::member_type;
7477
7478 template<typename T>
7479 void func(...) {}
7480
7481 template<typename T>
7482 void func(member<T>*) {}
7483
7484 void test();
7485
7486 void test() { func<foo>(0); }
7487
7488 }
7489
7490 } // namespace cxx11
7491
7492 #endif // __cplusplus >= 201103L
7493
7494
7495
7496 _ACEOF
7497 if ac_fn_cxx_try_compile "$LINENO"; then :
7498 eval $cachevar=yes
7499 else
7500 eval $cachevar=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 CXX="$ac_save_CXX"
7504 fi
7505 eval ac_res=\$$cachevar
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7507 $as_echo "$ac_res" >&6; }
7508 if eval test x\$$cachevar = xyes; then
7509 CXX_DIALECT="$switch"
7510 ac_success=yes
7511 break
7512 fi
7513 done
7514 if test x$ac_success = xyes; then
7515 break
7516 fi
7517 done
7518 fi
7519 ac_ext=c
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
7525 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7526 if test x$ac_success = xno; then
7527 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7528 fi
7529 fi
7530 if test x$ac_success = xno; then
7531 HAVE_CXX11=0
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7533 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7534 else
7535 HAVE_CXX11=1
7536
7537 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7538
7539 fi
7540
7541
7542
7543
7544 # If we haven't got the data from the intl directory,
7545 # assume NLS is disabled.
7546 USE_NLS=no
7547 LIBINTL=
7548 LIBINTL_DEP=
7549 INCINTL=
7550 XGETTEXT=
7551 GMSGFMT=
7552 POSUB=
7553
7554 if test -f ../intl/config.intl; then
7555 . ../intl/config.intl
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7558 $as_echo_n "checking whether NLS is requested... " >&6; }
7559 if test x"$USE_NLS" != xyes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7565
7566 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7570 $as_echo_n "checking for catalogs to be installed... " >&6; }
7571 # Look for .po and .gmo files in the source directory.
7572 CATALOGS=
7573 XLINGUAS=
7574 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7575 # If there aren't any .gmo files the shell will give us the
7576 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7577 # weeded out.
7578 case "$cat" in *\**)
7579 continue;;
7580 esac
7581 # The quadruple backslash is collapsed to a double backslash
7582 # by the backticks, then collapsed again by the double quotes,
7583 # leaving us with one backslash in the sed expression (right
7584 # before the dot that mustn't act as a wildcard).
7585 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7586 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7587 # The user is allowed to set LINGUAS to a list of languages to
7588 # install catalogs for. If it's empty that means "all of them."
7589 if test "x$LINGUAS" = x; then
7590 CATALOGS="$CATALOGS $cat"
7591 XLINGUAS="$XLINGUAS $lang"
7592 else
7593 case "$LINGUAS" in *$lang*)
7594 CATALOGS="$CATALOGS $cat"
7595 XLINGUAS="$XLINGUAS $lang"
7596 ;;
7597 esac
7598 fi
7599 done
7600 LINGUAS="$XLINGUAS"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7602 $as_echo "$LINGUAS" >&6; }
7603
7604
7605 DATADIRNAME=share
7606
7607 INSTOBJEXT=.mo
7608
7609 GENCAT=gencat
7610
7611 CATOBJEXT=.gmo
7612
7613 fi
7614
7615
7616 # Check for presence and size of long long.
7617 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7618 if test "x$ac_cv_type_long_long" = xyes; then :
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define HAVE_LONG_LONG 1
7622 _ACEOF
7623
7624 # The cast to long int works around a bug in the HP C Compiler
7625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7627 # This bug is HP SR number 8606223364.
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7629 $as_echo_n "checking size of long long... " >&6; }
7630 if ${ac_cv_sizeof_long_long+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7634
7635 else
7636 if test "$ac_cv_type_long_long" = yes; then
7637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7639 as_fn_error 77 "cannot compute sizeof (long long)
7640 See \`config.log' for more details" "$LINENO" 5; }
7641 else
7642 ac_cv_sizeof_long_long=0
7643 fi
7644 fi
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7648 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7649
7650
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7654 _ACEOF
7655
7656
7657 fi
7658
7659
7660 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7661 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7662 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7663 ac_have_decl=1
7664 else
7665 ac_have_decl=0
7666 fi
7667
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_DECL_BASENAME $ac_have_decl
7670 _ACEOF
7671 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7672 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7673 ac_have_decl=1
7674 else
7675 ac_have_decl=0
7676 fi
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_FFS $ac_have_decl
7680 _ACEOF
7681 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7682 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7683 ac_have_decl=1
7684 else
7685 ac_have_decl=0
7686 fi
7687
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_DECL_ASPRINTF $ac_have_decl
7690 _ACEOF
7691 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7692 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7693 ac_have_decl=1
7694 else
7695 ac_have_decl=0
7696 fi
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_DECL_VASPRINTF $ac_have_decl
7700 _ACEOF
7701 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7702 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7703 ac_have_decl=1
7704 else
7705 ac_have_decl=0
7706 fi
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_DECL_SNPRINTF $ac_have_decl
7710 _ACEOF
7711 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7712 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7713 ac_have_decl=1
7714 else
7715 ac_have_decl=0
7716 fi
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7720 _ACEOF
7721
7722 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7723 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7724 ac_have_decl=1
7725 else
7726 ac_have_decl=0
7727 fi
7728
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_DECL_STRTOL $ac_have_decl
7731 _ACEOF
7732 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7733 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7734 ac_have_decl=1
7735 else
7736 ac_have_decl=0
7737 fi
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_DECL_STRTOUL $ac_have_decl
7741 _ACEOF
7742 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7743 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7744 ac_have_decl=1
7745 else
7746 ac_have_decl=0
7747 fi
7748
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_DECL_STRTOLL $ac_have_decl
7751 _ACEOF
7752 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7753 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7754 ac_have_decl=1
7755 else
7756 ac_have_decl=0
7757 fi
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_STRTOULL $ac_have_decl
7761 _ACEOF
7762
7763 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7764 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7765 ac_have_decl=1
7766 else
7767 ac_have_decl=0
7768 fi
7769
7770 cat >>confdefs.h <<_ACEOF
7771 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7772 _ACEOF
7773
7774
7775 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7776 if test "x$ac_cv_type_size_t" = xyes; then :
7777
7778 else
7779
7780 cat >>confdefs.h <<_ACEOF
7781 #define size_t unsigned int
7782 _ACEOF
7783
7784 fi
7785
7786
7787
7788
7789 for ac_header in $ac_header_list
7790 do :
7791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7793 "
7794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7795 cat >>confdefs.h <<_ACEOF
7796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 _ACEOF
7798
7799 fi
7800
7801 done
7802
7803
7804
7805
7806
7807
7808
7809 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7810 if test "x$ac_cv_type_pid_t" = xyes; then :
7811
7812 else
7813
7814 cat >>confdefs.h <<_ACEOF
7815 #define pid_t int
7816 _ACEOF
7817
7818 fi
7819
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7821 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7822 if ${ac_cv_path_SED+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7826 for ac_i in 1 2 3 4 5 6 7; do
7827 ac_script="$ac_script$as_nl$ac_script"
7828 done
7829 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7830 { ac_script=; unset ac_script;}
7831 if test -z "$SED"; then
7832 ac_path_SED_found=false
7833 # Loop through the user's path and test for each of PROGNAME-LIST
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_prog in sed gsed; do
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7842 as_fn_executable_p "$ac_path_SED" || continue
7843 # Check for GNU ac_path_SED and select it if it is found.
7844 # Check for GNU $ac_path_SED
7845 case `"$ac_path_SED" --version 2>&1` in
7846 *GNU*)
7847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7848 *)
7849 ac_count=0
7850 $as_echo_n 0123456789 >"conftest.in"
7851 while :
7852 do
7853 cat "conftest.in" "conftest.in" >"conftest.tmp"
7854 mv "conftest.tmp" "conftest.in"
7855 cp "conftest.in" "conftest.nl"
7856 $as_echo '' >> "conftest.nl"
7857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7859 as_fn_arith $ac_count + 1 && ac_count=$as_val
7860 if test $ac_count -gt ${ac_path_SED_max-0}; then
7861 # Best one so far, save it but keep looking for a better one
7862 ac_cv_path_SED="$ac_path_SED"
7863 ac_path_SED_max=$ac_count
7864 fi
7865 # 10*(2^10) chars as input seems more than enough
7866 test $ac_count -gt 10 && break
7867 done
7868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7869 esac
7870
7871 $ac_path_SED_found && break 3
7872 done
7873 done
7874 done
7875 IFS=$as_save_IFS
7876 if test -z "$ac_cv_path_SED"; then
7877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7878 fi
7879 else
7880 ac_cv_path_SED=$SED
7881 fi
7882
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7885 $as_echo "$ac_cv_path_SED" >&6; }
7886 SED="$ac_cv_path_SED"
7887 rm -f conftest.sed
7888
7889
7890 if test "X$prefix" = "XNONE"; then
7891 acl_final_prefix="$ac_default_prefix"
7892 else
7893 acl_final_prefix="$prefix"
7894 fi
7895 if test "X$exec_prefix" = "XNONE"; then
7896 acl_final_exec_prefix='${prefix}'
7897 else
7898 acl_final_exec_prefix="$exec_prefix"
7899 fi
7900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7903 prefix="$acl_save_prefix"
7904
7905
7906 # Check whether --with-gnu-ld was given.
7907 if test "${with_gnu_ld+set}" = set; then :
7908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7909 else
7910 with_gnu_ld=no
7911 fi
7912
7913 # Prepare PATH_SEPARATOR.
7914 # The user is always right.
7915 if test "${PATH_SEPARATOR+set}" != set; then
7916 echo "#! /bin/sh" >conf$$.sh
7917 echo "exit 0" >>conf$$.sh
7918 chmod +x conf$$.sh
7919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7920 PATH_SEPARATOR=';'
7921 else
7922 PATH_SEPARATOR=:
7923 fi
7924 rm -f conf$$.sh
7925 fi
7926 ac_prog=ld
7927 if test "$GCC" = yes; then
7928 # Check if gcc -print-prog-name=ld gives a path.
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7930 $as_echo_n "checking for ld used by GCC... " >&6; }
7931 case $host in
7932 *-*-mingw*)
7933 # gcc leaves a trailing carriage return which upsets mingw
7934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7935 *)
7936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7937 esac
7938 case $ac_prog in
7939 # Accept absolute paths.
7940 [\\/]* | [A-Za-z]:[\\/]*)
7941 re_direlt='/[^/][^/]*/\.\./'
7942 # Canonicalize the path of ld
7943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7946 done
7947 test -z "$LD" && LD="$ac_prog"
7948 ;;
7949 "")
7950 # If it fails, then pretend we aren't using GCC.
7951 ac_prog=ld
7952 ;;
7953 *)
7954 # If it is relative, then search for the first ld in PATH.
7955 with_gnu_ld=unknown
7956 ;;
7957 esac
7958 elif test "$with_gnu_ld" = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7960 $as_echo_n "checking for GNU ld... " >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7963 $as_echo_n "checking for non-GNU ld... " >&6; }
7964 fi
7965 if ${acl_cv_path_LD+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -z "$LD"; then
7969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7970 for ac_dir in $PATH; do
7971 test -z "$ac_dir" && ac_dir=.
7972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7973 acl_cv_path_LD="$ac_dir/$ac_prog"
7974 # Check to see if the program is GNU ld. I'd rather use --version,
7975 # but apparently some GNU ld's only accept -v.
7976 # Break only if it was the GNU/non-GNU ld that we prefer.
7977 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7978 test "$with_gnu_ld" != no && break
7979 else
7980 test "$with_gnu_ld" != yes && break
7981 fi
7982 fi
7983 done
7984 IFS="$ac_save_ifs"
7985 else
7986 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7987 fi
7988 fi
7989
7990 LD="$acl_cv_path_LD"
7991 if test -n "$LD"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7993 $as_echo "$LD" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8001 if ${acl_cv_prog_gnu_ld+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8005 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8006 acl_cv_prog_gnu_ld=yes
8007 else
8008 acl_cv_prog_gnu_ld=no
8009 fi
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8012 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8013 with_gnu_ld=$acl_cv_prog_gnu_ld
8014
8015
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8018 $as_echo_n "checking for shared library run path origin... " >&6; }
8019 if ${acl_cv_rpath+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022
8023 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8024 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8025 . ./conftest.sh
8026 rm -f ./conftest.sh
8027 acl_cv_rpath=done
8028
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8031 $as_echo "$acl_cv_rpath" >&6; }
8032 wl="$acl_cv_wl"
8033 libext="$acl_cv_libext"
8034 shlibext="$acl_cv_shlibext"
8035 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8036 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8037 hardcode_direct="$acl_cv_hardcode_direct"
8038 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8039 # Check whether --enable-rpath was given.
8040 if test "${enable_rpath+set}" = set; then :
8041 enableval=$enable_rpath; :
8042 else
8043 enable_rpath=yes
8044 fi
8045
8046
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8049 $as_echo_n "checking for ANSI C header files... " >&6; }
8050 if ${ac_cv_header_stdc+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 #include <stdlib.h>
8056 #include <stdarg.h>
8057 #include <string.h>
8058 #include <float.h>
8059
8060 int
8061 main ()
8062 {
8063
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 ac_cv_header_stdc=yes
8070 else
8071 ac_cv_header_stdc=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074
8075 if test $ac_cv_header_stdc = yes; then
8076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <string.h>
8080
8081 _ACEOF
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "memchr" >/dev/null 2>&1; then :
8084
8085 else
8086 ac_cv_header_stdc=no
8087 fi
8088 rm -f conftest*
8089
8090 fi
8091
8092 if test $ac_cv_header_stdc = yes; then
8093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <stdlib.h>
8097
8098 _ACEOF
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "free" >/dev/null 2>&1; then :
8101
8102 else
8103 ac_cv_header_stdc=no
8104 fi
8105 rm -f conftest*
8106
8107 fi
8108
8109 if test $ac_cv_header_stdc = yes; then
8110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8111 if test "$cross_compiling" = yes; then :
8112 :
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #include <ctype.h>
8117 #include <stdlib.h>
8118 #if ((' ' & 0x0FF) == 0x020)
8119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8121 #else
8122 # define ISLOWER(c) \
8123 (('a' <= (c) && (c) <= 'i') \
8124 || ('j' <= (c) && (c) <= 'r') \
8125 || ('s' <= (c) && (c) <= 'z'))
8126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8127 #endif
8128
8129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8130 int
8131 main ()
8132 {
8133 int i;
8134 for (i = 0; i < 256; i++)
8135 if (XOR (islower (i), ISLOWER (i))
8136 || toupper (i) != TOUPPER (i))
8137 return 2;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_run "$LINENO"; then :
8142
8143 else
8144 ac_cv_header_stdc=no
8145 fi
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8148 fi
8149
8150 fi
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8153 $as_echo "$ac_cv_header_stdc" >&6; }
8154 if test $ac_cv_header_stdc = yes; then
8155
8156 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8157
8158 fi
8159
8160 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8161 # for constant arguments. Useless!
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8163 $as_echo_n "checking for working alloca.h... " >&6; }
8164 if ${ac_cv_working_alloca_h+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <alloca.h>
8170 int
8171 main ()
8172 {
8173 char *p = (char *) alloca (2 * sizeof (int));
8174 if (p) return 0;
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 ac_cv_working_alloca_h=yes
8181 else
8182 ac_cv_working_alloca_h=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8188 $as_echo "$ac_cv_working_alloca_h" >&6; }
8189 if test $ac_cv_working_alloca_h = yes; then
8190
8191 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8192
8193 fi
8194
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8196 $as_echo_n "checking for alloca... " >&6; }
8197 if ${ac_cv_func_alloca_works+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 #ifdef __GNUC__
8203 # define alloca __builtin_alloca
8204 #else
8205 # ifdef _MSC_VER
8206 # include <malloc.h>
8207 # define alloca _alloca
8208 # else
8209 # ifdef HAVE_ALLOCA_H
8210 # include <alloca.h>
8211 # else
8212 # ifdef _AIX
8213 #pragma alloca
8214 # else
8215 # ifndef alloca /* predefined by HP cc +Olibcalls */
8216 void *alloca (size_t);
8217 # endif
8218 # endif
8219 # endif
8220 # endif
8221 #endif
8222
8223 int
8224 main ()
8225 {
8226 char *p = (char *) alloca (1);
8227 if (p) return 0;
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_func_alloca_works=yes
8234 else
8235 ac_cv_func_alloca_works=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8241 $as_echo "$ac_cv_func_alloca_works" >&6; }
8242
8243 if test $ac_cv_func_alloca_works = yes; then
8244
8245 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8246
8247 else
8248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8249 # that cause trouble. Some versions do not even contain alloca or
8250 # contain a buggy version. If you still want to use their alloca,
8251 # use ar to extract alloca.o from them instead of compiling alloca.c.
8252
8253 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8254
8255 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8256
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8259 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8260 if ${ac_cv_os_cray+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #if defined CRAY && ! defined CRAY2
8266 webecray
8267 #else
8268 wenotbecray
8269 #endif
8270
8271 _ACEOF
8272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8273 $EGREP "webecray" >/dev/null 2>&1; then :
8274 ac_cv_os_cray=yes
8275 else
8276 ac_cv_os_cray=no
8277 fi
8278 rm -f conftest*
8279
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8282 $as_echo "$ac_cv_os_cray" >&6; }
8283 if test $ac_cv_os_cray = yes; then
8284 for ac_func in _getb67 GETB67 getb67; do
8285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define CRAY_STACKSEG_END $ac_func
8291 _ACEOF
8292
8293 break
8294 fi
8295
8296 done
8297 fi
8298
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8300 $as_echo_n "checking stack direction for C alloca... " >&6; }
8301 if ${ac_cv_c_stack_direction+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test "$cross_compiling" = yes; then :
8305 ac_cv_c_stack_direction=0
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 $ac_includes_default
8310 int
8311 find_stack_direction (int *addr, int depth)
8312 {
8313 int dir, dummy = 0;
8314 if (! addr)
8315 addr = &dummy;
8316 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8317 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8318 return dir + dummy;
8319 }
8320
8321 int
8322 main (int argc, char **argv)
8323 {
8324 return find_stack_direction (0, argc + !argv + 20) < 0;
8325 }
8326 _ACEOF
8327 if ac_fn_c_try_run "$LINENO"; then :
8328 ac_cv_c_stack_direction=1
8329 else
8330 ac_cv_c_stack_direction=-1
8331 fi
8332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8333 conftest.$ac_objext conftest.beam conftest.$ac_ext
8334 fi
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8338 $as_echo "$ac_cv_c_stack_direction" >&6; }
8339 cat >>confdefs.h <<_ACEOF
8340 #define STACK_DIRECTION $ac_cv_c_stack_direction
8341 _ACEOF
8342
8343
8344 fi
8345
8346
8347 WIN32APILIBS=
8348 case ${host} in
8349 *mingw32*)
8350
8351 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8352
8353 WIN32APILIBS="-lws2_32"
8354 ;;
8355 esac
8356
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8359 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8360 if ${am_cv_langinfo_codeset+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 #include <langinfo.h>
8366 int
8367 main ()
8368 {
8369 char* cs = nl_langinfo(CODESET);
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 am_cv_langinfo_codeset=yes
8376 else
8377 am_cv_langinfo_codeset=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8384 $as_echo "$am_cv_langinfo_codeset" >&6; }
8385 if test $am_cv_langinfo_codeset = yes; then
8386
8387 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8388
8389 fi
8390
8391
8392 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 sys/procfs.h proc_service.h
8393 do :
8394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8397 cat >>confdefs.h <<_ACEOF
8398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 _ACEOF
8400
8401 fi
8402
8403 done
8404
8405
8406
8407 for ac_func in getpagesize
8408 do :
8409 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8410 if test "x$ac_cv_func_getpagesize" = xyes; then :
8411 cat >>confdefs.h <<_ACEOF
8412 #define HAVE_GETPAGESIZE 1
8413 _ACEOF
8414
8415 fi
8416 done
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8419 $as_echo_n "checking for working mmap... " >&6; }
8420 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test "$cross_compiling" = yes; then :
8424 ac_cv_func_mmap_fixed_mapped=no
8425 else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 $ac_includes_default
8429 /* malloc might have been renamed as rpl_malloc. */
8430 #undef malloc
8431
8432 /* Thanks to Mike Haertel and Jim Avera for this test.
8433 Here is a matrix of mmap possibilities:
8434 mmap private not fixed
8435 mmap private fixed at somewhere currently unmapped
8436 mmap private fixed at somewhere already mapped
8437 mmap shared not fixed
8438 mmap shared fixed at somewhere currently unmapped
8439 mmap shared fixed at somewhere already mapped
8440 For private mappings, we should verify that changes cannot be read()
8441 back from the file, nor mmap's back from the file at a different
8442 address. (There have been systems where private was not correctly
8443 implemented like the infamous i386 svr4.0, and systems where the
8444 VM page cache was not coherent with the file system buffer cache
8445 like early versions of FreeBSD and possibly contemporary NetBSD.)
8446 For shared mappings, we should conversely verify that changes get
8447 propagated back to all the places they're supposed to be.
8448
8449 Grep wants private fixed already mapped.
8450 The main things grep needs to know about mmap are:
8451 * does it exist and is it safe to write into the mmap'd area
8452 * how to use it (BSD variants) */
8453
8454 #include <fcntl.h>
8455 #include <sys/mman.h>
8456
8457 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8458 char *malloc ();
8459 #endif
8460
8461 /* This mess was copied from the GNU getpagesize.h. */
8462 #ifndef HAVE_GETPAGESIZE
8463 # ifdef _SC_PAGESIZE
8464 # define getpagesize() sysconf(_SC_PAGESIZE)
8465 # else /* no _SC_PAGESIZE */
8466 # ifdef HAVE_SYS_PARAM_H
8467 # include <sys/param.h>
8468 # ifdef EXEC_PAGESIZE
8469 # define getpagesize() EXEC_PAGESIZE
8470 # else /* no EXEC_PAGESIZE */
8471 # ifdef NBPG
8472 # define getpagesize() NBPG * CLSIZE
8473 # ifndef CLSIZE
8474 # define CLSIZE 1
8475 # endif /* no CLSIZE */
8476 # else /* no NBPG */
8477 # ifdef NBPC
8478 # define getpagesize() NBPC
8479 # else /* no NBPC */
8480 # ifdef PAGESIZE
8481 # define getpagesize() PAGESIZE
8482 # endif /* PAGESIZE */
8483 # endif /* no NBPC */
8484 # endif /* no NBPG */
8485 # endif /* no EXEC_PAGESIZE */
8486 # else /* no HAVE_SYS_PARAM_H */
8487 # define getpagesize() 8192 /* punt totally */
8488 # endif /* no HAVE_SYS_PARAM_H */
8489 # endif /* no _SC_PAGESIZE */
8490
8491 #endif /* no HAVE_GETPAGESIZE */
8492
8493 int
8494 main ()
8495 {
8496 char *data, *data2, *data3;
8497 const char *cdata2;
8498 int i, pagesize;
8499 int fd, fd2;
8500
8501 pagesize = getpagesize ();
8502
8503 /* First, make a file with some known garbage in it. */
8504 data = (char *) malloc (pagesize);
8505 if (!data)
8506 return 1;
8507 for (i = 0; i < pagesize; ++i)
8508 *(data + i) = rand ();
8509 umask (0);
8510 fd = creat ("conftest.mmap", 0600);
8511 if (fd < 0)
8512 return 2;
8513 if (write (fd, data, pagesize) != pagesize)
8514 return 3;
8515 close (fd);
8516
8517 /* Next, check that the tail of a page is zero-filled. File must have
8518 non-zero length, otherwise we risk SIGBUS for entire page. */
8519 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8520 if (fd2 < 0)
8521 return 4;
8522 cdata2 = "";
8523 if (write (fd2, cdata2, 1) != 1)
8524 return 5;
8525 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8526 if (data2 == MAP_FAILED)
8527 return 6;
8528 for (i = 0; i < pagesize; ++i)
8529 if (*(data2 + i))
8530 return 7;
8531 close (fd2);
8532 if (munmap (data2, pagesize))
8533 return 8;
8534
8535 /* Next, try to mmap the file at a fixed address which already has
8536 something else allocated at it. If we can, also make sure that
8537 we see the same garbage. */
8538 fd = open ("conftest.mmap", O_RDWR);
8539 if (fd < 0)
8540 return 9;
8541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8543 return 10;
8544 for (i = 0; i < pagesize; ++i)
8545 if (*(data + i) != *(data2 + i))
8546 return 11;
8547
8548 /* Finally, make sure that changes to the mapped area do not
8549 percolate back to the file as seen by read(). (This is a bug on
8550 some variants of i386 svr4.0.) */
8551 for (i = 0; i < pagesize; ++i)
8552 *(data2 + i) = *(data2 + i) + 1;
8553 data3 = (char *) malloc (pagesize);
8554 if (!data3)
8555 return 12;
8556 if (read (fd, data3, pagesize) != pagesize)
8557 return 13;
8558 for (i = 0; i < pagesize; ++i)
8559 if (*(data + i) != *(data3 + i))
8560 return 14;
8561 close (fd);
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_run "$LINENO"; then :
8566 ac_cv_func_mmap_fixed_mapped=yes
8567 else
8568 ac_cv_func_mmap_fixed_mapped=no
8569 fi
8570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8571 conftest.$ac_objext conftest.beam conftest.$ac_ext
8572 fi
8573
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8576 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8577 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8578
8579 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8580
8581 fi
8582 rm -f conftest.mmap conftest.txt
8583
8584 for ac_header in vfork.h
8585 do :
8586 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8587 if test "x$ac_cv_header_vfork_h" = xyes; then :
8588 cat >>confdefs.h <<_ACEOF
8589 #define HAVE_VFORK_H 1
8590 _ACEOF
8591
8592 fi
8593
8594 done
8595
8596 for ac_func in fork vfork
8597 do :
8598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8601 cat >>confdefs.h <<_ACEOF
8602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8603 _ACEOF
8604
8605 fi
8606 done
8607
8608 if test "x$ac_cv_func_fork" = xyes; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8610 $as_echo_n "checking for working fork... " >&6; }
8611 if ${ac_cv_func_fork_works+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 if test "$cross_compiling" = yes; then :
8615 ac_cv_func_fork_works=cross
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 int
8621 main ()
8622 {
8623
8624 /* By Ruediger Kuhlmann. */
8625 return fork () < 0;
8626
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_run "$LINENO"; then :
8632 ac_cv_func_fork_works=yes
8633 else
8634 ac_cv_func_fork_works=no
8635 fi
8636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637 conftest.$ac_objext conftest.beam conftest.$ac_ext
8638 fi
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8642 $as_echo "$ac_cv_func_fork_works" >&6; }
8643
8644 else
8645 ac_cv_func_fork_works=$ac_cv_func_fork
8646 fi
8647 if test "x$ac_cv_func_fork_works" = xcross; then
8648 case $host in
8649 *-*-amigaos* | *-*-msdosdjgpp*)
8650 # Override, as these systems have only a dummy fork() stub
8651 ac_cv_func_fork_works=no
8652 ;;
8653 *)
8654 ac_cv_func_fork_works=yes
8655 ;;
8656 esac
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8658 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8659 fi
8660 ac_cv_func_vfork_works=$ac_cv_func_vfork
8661 if test "x$ac_cv_func_vfork" = xyes; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8663 $as_echo_n "checking for working vfork... " >&6; }
8664 if ${ac_cv_func_vfork_works+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 if test "$cross_compiling" = yes; then :
8668 ac_cv_func_vfork_works=cross
8669 else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 /* Thanks to Paul Eggert for this test. */
8673 $ac_includes_default
8674 #include <sys/wait.h>
8675 #ifdef HAVE_VFORK_H
8676 # include <vfork.h>
8677 #endif
8678 /* On some sparc systems, changes by the child to local and incoming
8679 argument registers are propagated back to the parent. The compiler
8680 is told about this with #include <vfork.h>, but some compilers
8681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8682 static variable whose address is put into a register that is
8683 clobbered by the vfork. */
8684 static void
8685 #ifdef __cplusplus
8686 sparc_address_test (int arg)
8687 # else
8688 sparc_address_test (arg) int arg;
8689 #endif
8690 {
8691 static pid_t child;
8692 if (!child) {
8693 child = vfork ();
8694 if (child < 0) {
8695 perror ("vfork");
8696 _exit(2);
8697 }
8698 if (!child) {
8699 arg = getpid();
8700 write(-1, "", 0);
8701 _exit (arg);
8702 }
8703 }
8704 }
8705
8706 int
8707 main ()
8708 {
8709 pid_t parent = getpid ();
8710 pid_t child;
8711
8712 sparc_address_test (0);
8713
8714 child = vfork ();
8715
8716 if (child == 0) {
8717 /* Here is another test for sparc vfork register problems. This
8718 test uses lots of local variables, at least as many local
8719 variables as main has allocated so far including compiler
8720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8722 reuse the register of parent for one of the local variables,
8723 since it will think that parent can't possibly be used any more
8724 in this routine. Assigning to the local variable will thus
8725 munge parent in the parent process. */
8726 pid_t
8727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8729 /* Convince the compiler that p..p7 are live; otherwise, it might
8730 use the same hardware register for all 8 local variables. */
8731 if (p != p1 || p != p2 || p != p3 || p != p4
8732 || p != p5 || p != p6 || p != p7)
8733 _exit(1);
8734
8735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8736 from child file descriptors. If the child closes a descriptor
8737 before it execs or exits, this munges the parent's descriptor
8738 as well. Test for this by closing stdout in the child. */
8739 _exit(close(fileno(stdout)) != 0);
8740 } else {
8741 int status;
8742 struct stat st;
8743
8744 while (wait(&status) != child)
8745 ;
8746 return (
8747 /* Was there some problem with vforking? */
8748 child < 0
8749
8750 /* Did the child fail? (This shouldn't happen.) */
8751 || status
8752
8753 /* Did the vfork/compiler bug occur? */
8754 || parent != getpid()
8755
8756 /* Did the file descriptor bug occur? */
8757 || fstat(fileno(stdout), &st) != 0
8758 );
8759 }
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_run "$LINENO"; then :
8763 ac_cv_func_vfork_works=yes
8764 else
8765 ac_cv_func_vfork_works=no
8766 fi
8767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8768 conftest.$ac_objext conftest.beam conftest.$ac_ext
8769 fi
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8773 $as_echo "$ac_cv_func_vfork_works" >&6; }
8774
8775 fi;
8776 if test "x$ac_cv_func_fork_works" = xcross; then
8777 ac_cv_func_vfork_works=$ac_cv_func_vfork
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8779 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8780 fi
8781
8782 if test "x$ac_cv_func_vfork_works" = xyes; then
8783
8784 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8785
8786 else
8787
8788 $as_echo "#define vfork fork" >>confdefs.h
8789
8790 fi
8791 if test "x$ac_cv_func_fork_works" = xyes; then
8792
8793 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8794
8795 fi
8796
8797 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8798 ptrace64 sbrk setns sigaltstack sigprocmask \
8799 setpgid setpgrp getrusage getauxval
8800 do :
8801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8804 cat >>confdefs.h <<_ACEOF
8805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8806 _ACEOF
8807
8808 fi
8809 done
8810
8811
8812 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8813 "
8814 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8815 ac_have_decl=1
8816 else
8817 ac_have_decl=0
8818 fi
8819
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8822 _ACEOF
8823
8824
8825 if test "$cross_compiling" = yes; then :
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 #include <sys/personality.h>
8829 int
8830 main ()
8831 {
8832
8833 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8834 # define ADDR_NO_RANDOMIZE 0x0040000
8835 # endif
8836 /* Test the flag could be set and stays set. */
8837 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8838 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8839 return 1
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"; then :
8845 have_personality=true
8846 else
8847 have_personality=false
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <sys/personality.h>
8855 int
8856 main ()
8857 {
8858
8859 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8860 # define ADDR_NO_RANDOMIZE 0x0040000
8861 # endif
8862 /* Test the flag could be set and stays set. */
8863 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8864 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8865 return 1
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_run "$LINENO"; then :
8871 have_personality=true
8872 else
8873 have_personality=false
8874 fi
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
8877 fi
8878
8879 if $have_personality
8880 then
8881
8882 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8883
8884 fi
8885
8886 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8887 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8888 ac_have_decl=1
8889 else
8890 ac_have_decl=0
8891 fi
8892
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_DECL_STRSTR $ac_have_decl
8895 _ACEOF
8896
8897
8898 # ----------------------- #
8899 # Checks for structures. #
8900 # ----------------------- #
8901
8902 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8903 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8907 _ACEOF
8908
8909
8910 fi
8911 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8912 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8913
8914 cat >>confdefs.h <<_ACEOF
8915 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8916 _ACEOF
8917
8918
8919 fi
8920
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8923 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8924 if ${ac_cv_search_kinfo_getfile+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 ac_func_search_save_LIBS=$LIBS
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930
8931 /* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934 #ifdef __cplusplus
8935 extern "C"
8936 #endif
8937 char kinfo_getfile ();
8938 int
8939 main ()
8940 {
8941 return kinfo_getfile ();
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 for ac_lib in '' util util-freebsd; do
8947 if test -z "$ac_lib"; then
8948 ac_res="none required"
8949 else
8950 ac_res=-l$ac_lib
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 fi
8953 if ac_fn_c_try_link "$LINENO"; then :
8954 ac_cv_search_kinfo_getfile=$ac_res
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext
8958 if ${ac_cv_search_kinfo_getfile+:} false; then :
8959 break
8960 fi
8961 done
8962 if ${ac_cv_search_kinfo_getfile+:} false; then :
8963
8964 else
8965 ac_cv_search_kinfo_getfile=no
8966 fi
8967 rm conftest.$ac_ext
8968 LIBS=$ac_func_search_save_LIBS
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8971 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8972 ac_res=$ac_cv_search_kinfo_getfile
8973 if test "$ac_res" != no; then :
8974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8975
8976 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8977
8978 fi
8979
8980
8981 # Check for std::thread. This does not work on some platforms, like
8982 # mingw and DJGPP.
8983 ac_ext=cpp
8984 ac_cpp='$CXXCPP $CPPFLAGS'
8985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8988
8989
8990
8991
8992
8993 ac_ext=c
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999 ax_pthread_ok=no
9000
9001 # We used to check for pthread.h first, but this fails if pthread.h
9002 # requires special compiler flags (e.g. on Tru64 or Sequent).
9003 # It gets checked for in the link test anyway.
9004
9005 # First of all, check if the user has set any of the PTHREAD_LIBS,
9006 # etcetera environment variables, and if threads linking works using
9007 # them:
9008 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9009 ax_pthread_save_CC="$CC"
9010 ax_pthread_save_CFLAGS="$CFLAGS"
9011 ax_pthread_save_LIBS="$LIBS"
9012 if test "x$PTHREAD_CC" != "x"; then :
9013 CC="$PTHREAD_CC"
9014 fi
9015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9016 LIBS="$PTHREAD_LIBS $LIBS"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9018 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char pthread_join ();
9029 int
9030 main ()
9031 {
9032 return pthread_join ();
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 ax_pthread_ok=yes
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9043 $as_echo "$ax_pthread_ok" >&6; }
9044 if test "x$ax_pthread_ok" = "xno"; then
9045 PTHREAD_LIBS=""
9046 PTHREAD_CFLAGS=""
9047 fi
9048 CC="$ax_pthread_save_CC"
9049 CFLAGS="$ax_pthread_save_CFLAGS"
9050 LIBS="$ax_pthread_save_LIBS"
9051 fi
9052
9053 # We must check for the threads library under a number of different
9054 # names; the ordering is very important because some systems
9055 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9056 # libraries is broken (non-POSIX).
9057
9058 # Create a list of thread flags to try. Items starting with a "-" are
9059 # C compiler flags, and other items are library names, except for "none"
9060 # which indicates that we try without any flags at all, and "pthread-config"
9061 # which is a program returning the flags for the Pth emulation library.
9062
9063 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9064
9065 # The ordering *is* (sometimes) important. Some notes on the
9066 # individual items follow:
9067
9068 # pthreads: AIX (must check this before -lpthread)
9069 # none: in case threads are in libc; should be tried before -Kthread and
9070 # other compiler flags to prevent continual compiler warnings
9071 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9072 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9073 # (Note: HP C rejects this with "bad form for `-t' option")
9074 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9075 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9076 # doesn't hurt to check since this sometimes defines pthreads and
9077 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9078 # is present but should not be used directly; and before -mthreads,
9079 # because the compiler interprets this as "-mt" + "-hreads")
9080 # -mthreads: Mingw32/gcc, Lynx/gcc
9081 # pthread: Linux, etcetera
9082 # --thread-safe: KAI C++
9083 # pthread-config: use pthread-config program (for GNU Pth library)
9084
9085 case $host_os in
9086
9087 freebsd*)
9088
9089 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9090 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9091
9092 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9093 ;;
9094
9095 hpux*)
9096
9097 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9098 # multi-threading and also sets -lpthread."
9099
9100 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9101 ;;
9102
9103 openedition*)
9104
9105 # IBM z/OS requires a feature-test macro to be defined in order to
9106 # enable POSIX threads at all, so give the user a hint if this is
9107 # not set. (We don't define these ourselves, as they can affect
9108 # other portions of the system API in unpredictable ways.)
9109
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112
9113 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9114 AX_PTHREAD_ZOS_MISSING
9115 # endif
9116
9117 _ACEOF
9118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9119 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9121 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9122 fi
9123 rm -f conftest*
9124
9125 ;;
9126
9127 solaris*)
9128
9129 # On Solaris (at least, for some versions), libc contains stubbed
9130 # (non-functional) versions of the pthreads routines, so link-based
9131 # tests will erroneously succeed. (N.B.: The stubs are missing
9132 # pthread_cleanup_push, or rather a function called by this macro,
9133 # so we could check for that, but who knows whether they'll stub
9134 # that too in a future libc.) So we'll check first for the
9135 # standard Solaris way of linking pthreads (-mt -lpthread).
9136
9137 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9138 ;;
9139 esac
9140
9141 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9142
9143 if test "x$GCC" = "xyes"; then :
9144 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9145 fi
9146
9147 # The presence of a feature test macro requesting re-entrant function
9148 # definitions is, on some systems, a strong hint that pthreads support is
9149 # correctly enabled
9150
9151 case $host_os in
9152 darwin* | hpux* | linux* | osf* | solaris*)
9153 ax_pthread_check_macro="_REENTRANT"
9154 ;;
9155
9156 aix*)
9157 ax_pthread_check_macro="_THREAD_SAFE"
9158 ;;
9159
9160 *)
9161 ax_pthread_check_macro="--"
9162 ;;
9163 esac
9164 if test "x$ax_pthread_check_macro" = "x--"; then :
9165 ax_pthread_check_cond=0
9166 else
9167 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9168 fi
9169
9170 # Are we compiling with Clang?
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9173 $as_echo_n "checking whether $CC is Clang... " >&6; }
9174 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 ax_cv_PTHREAD_CLANG=no
9178 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9179 if test "x$GCC" = "xyes"; then
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9183 # if defined(__clang__) && defined(__llvm__)
9184 AX_PTHREAD_CC_IS_CLANG
9185 # endif
9186
9187 _ACEOF
9188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9190 ax_cv_PTHREAD_CLANG=yes
9191 fi
9192 rm -f conftest*
9193
9194 fi
9195
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9198 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9199 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9200
9201 ax_pthread_clang_warning=no
9202
9203 # Clang needs special handling, because older versions handle the -pthread
9204 # option in a rather... idiosyncratic way
9205
9206 if test "x$ax_pthread_clang" = "xyes"; then
9207
9208 # Clang takes -pthread; it has never supported any other flag
9209
9210 # (Note 1: This will need to be revisited if a system that Clang
9211 # supports has POSIX threads in a separate library. This tends not
9212 # to be the way of modern systems, but it's conceivable.)
9213
9214 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9215 # to get POSIX threads support; the API is always present and
9216 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9217 # -pthread does define _REENTRANT, and while the Darwin headers
9218 # ignore this macro, third-party headers might not.)
9219
9220 PTHREAD_CFLAGS="-pthread"
9221 PTHREAD_LIBS=
9222
9223 ax_pthread_ok=yes
9224
9225 # However, older versions of Clang make a point of warning the user
9226 # that, in an invocation where only linking and no compilation is
9227 # taking place, the -pthread option has no effect ("argument unused
9228 # during compilation"). They expect -pthread to be passed in only
9229 # when source code is being compiled.
9230 #
9231 # Problem is, this is at odds with the way Automake and most other
9232 # C build frameworks function, which is that the same flags used in
9233 # compilation (CFLAGS) are also used in linking. Many systems
9234 # supported by AX_PTHREAD require exactly this for POSIX threads
9235 # support, and in fact it is often not straightforward to specify a
9236 # flag that is used only in the compilation phase and not in
9237 # linking. Such a scenario is extremely rare in practice.
9238 #
9239 # Even though use of the -pthread flag in linking would only print
9240 # a warning, this can be a nuisance for well-run software projects
9241 # that build with -Werror. So if the active version of Clang has
9242 # this misfeature, we search for an option to squash it.
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9245 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9246 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9250 # Create an alternate version of $ac_link that compiles and
9251 # links in two steps (.c -> .o, .o -> exe) instead of one
9252 # (.c -> exe), because the warning occurs only in the second
9253 # step
9254 ax_pthread_save_ac_link="$ac_link"
9255 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9256 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9257 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9258 ax_pthread_save_CFLAGS="$CFLAGS"
9259 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9260 if test "x$ax_pthread_try" = "xunknown"; then :
9261 break
9262 fi
9263 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9264 ac_link="$ax_pthread_save_ac_link"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 int main(void){return 0;}
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270 ac_link="$ax_pthread_2step_ac_link"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 int main(void){return 0;}
9274 _ACEOF
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 break
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 done
9285 ac_link="$ax_pthread_save_ac_link"
9286 CFLAGS="$ax_pthread_save_CFLAGS"
9287 if test "x$ax_pthread_try" = "x"; then :
9288 ax_pthread_try=no
9289 fi
9290 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9291
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9294 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9295
9296 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9297 no | unknown) ;;
9298 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9299 esac
9300
9301 fi # $ax_pthread_clang = yes
9302
9303 if test "x$ax_pthread_ok" = "xno"; then
9304 for ax_pthread_try_flag in $ax_pthread_flags; do
9305
9306 case $ax_pthread_try_flag in
9307 none)
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9309 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9310 ;;
9311
9312 -mt,pthread)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9314 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9315 PTHREAD_CFLAGS="-mt"
9316 PTHREAD_LIBS="-lpthread"
9317 ;;
9318
9319 -*)
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9321 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9322 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9323 ;;
9324
9325 pthread-config)
9326 # Extract the first word of "pthread-config", so it can be a program name with args.
9327 set dummy pthread-config; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$ax_pthread_config"; then
9334 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343 ac_cv_prog_ax_pthread_config="yes"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9346 fi
9347 done
9348 done
9349 IFS=$as_save_IFS
9350
9351 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9352 fi
9353 fi
9354 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9355 if test -n "$ax_pthread_config"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9357 $as_echo "$ax_pthread_config" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9362
9363
9364 if test "x$ax_pthread_config" = "xno"; then :
9365 continue
9366 fi
9367 PTHREAD_CFLAGS="`pthread-config --cflags`"
9368 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9369 ;;
9370
9371 *)
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9373 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9374 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9375 ;;
9376 esac
9377
9378 ax_pthread_save_CFLAGS="$CFLAGS"
9379 ax_pthread_save_LIBS="$LIBS"
9380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9381 LIBS="$PTHREAD_LIBS $LIBS"
9382
9383 # Check for various functions. We must include pthread.h,
9384 # since some functions may be macros. (On the Sequent, we
9385 # need a special flag -Kthread to make this header compile.)
9386 # We check for pthread_join because it is in -lpthread on IRIX
9387 # while pthread_create is in libc. We check for pthread_attr_init
9388 # due to DEC craziness with -lpthreads. We check for
9389 # pthread_cleanup_push because it is one of the few pthread
9390 # functions on Solaris that doesn't have a non-functional libc stub.
9391 # We try pthread_create on general principles.
9392
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 #include <pthread.h>
9396 # if $ax_pthread_check_cond
9397 # error "$ax_pthread_check_macro must be defined"
9398 # endif
9399 static void routine(void *a) { a = 0; }
9400 static void *start_routine(void *a) { return a; }
9401 int
9402 main ()
9403 {
9404 pthread_t th; pthread_attr_t attr;
9405 pthread_create(&th, 0, start_routine, 0);
9406 pthread_join(th, 0);
9407 pthread_attr_init(&attr);
9408 pthread_cleanup_push(routine, 0);
9409 pthread_cleanup_pop(0) /* ; */
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 ax_pthread_ok=yes
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419
9420 CFLAGS="$ax_pthread_save_CFLAGS"
9421 LIBS="$ax_pthread_save_LIBS"
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9424 $as_echo "$ax_pthread_ok" >&6; }
9425 if test "x$ax_pthread_ok" = "xyes"; then :
9426 break
9427 fi
9428
9429 PTHREAD_LIBS=""
9430 PTHREAD_CFLAGS=""
9431 done
9432 fi
9433
9434 # Various other checks:
9435 if test "x$ax_pthread_ok" = "xyes"; then
9436 ax_pthread_save_CFLAGS="$CFLAGS"
9437 ax_pthread_save_LIBS="$LIBS"
9438 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9439 LIBS="$PTHREAD_LIBS $LIBS"
9440
9441 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9443 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9444 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9448 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 #include <pthread.h>
9452 int
9453 main ()
9454 {
9455 int attr = $ax_pthread_attr; return attr /* ; */
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 done
9466
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9469 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9470 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9471 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9472 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9473
9474 cat >>confdefs.h <<_ACEOF
9475 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9476 _ACEOF
9477
9478 ax_pthread_joinable_attr_defined=yes
9479
9480 fi
9481
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9483 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9484 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9488 case $host_os in
9489 solaris*)
9490 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9491 ;;
9492 esac
9493
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9496 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9497 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9498 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9499 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9500 ax_pthread_special_flags_added=yes
9501 fi
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9504 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9505 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510 #include <pthread.h>
9511 int
9512 main ()
9513 {
9514 int i = PTHREAD_PRIO_INHERIT;
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 ax_cv_PTHREAD_PRIO_INHERIT=yes
9521 else
9522 ax_cv_PTHREAD_PRIO_INHERIT=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9529 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9530 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9531 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9532
9533 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9534
9535 ax_pthread_prio_inherit_defined=yes
9536
9537 fi
9538
9539 CFLAGS="$ax_pthread_save_CFLAGS"
9540 LIBS="$ax_pthread_save_LIBS"
9541
9542 # More AIX lossage: compile with *_r variant
9543 if test "x$GCC" != "xyes"; then
9544 case $host_os in
9545 aix*)
9546 case "x/$CC" in #(
9547 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9548 #handle absolute path differently from PATH based program lookup
9549 case "x$CC" in #(
9550 x/*) :
9551 if as_fn_executable_p ${CC}_r; then :
9552 PTHREAD_CC="${CC}_r"
9553 fi ;; #(
9554 *) :
9555 for ac_prog in ${CC}_r
9556 do
9557 # Extract the first word of "$ac_prog", so it can be a program name with args.
9558 set dummy $ac_prog; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 if test -n "$PTHREAD_CC"; then
9565 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9569 do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_PTHREAD_CC="$ac_prog"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578 done
9579 done
9580 IFS=$as_save_IFS
9581
9582 fi
9583 fi
9584 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9585 if test -n "$PTHREAD_CC"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9587 $as_echo "$PTHREAD_CC" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 fi
9592
9593
9594 test -n "$PTHREAD_CC" && break
9595 done
9596 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9597 ;;
9598 esac ;; #(
9599 *) :
9600 ;;
9601 esac
9602 ;;
9603 esac
9604 fi
9605 fi
9606
9607 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9608
9609
9610
9611
9612
9613 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9614 if test "x$ax_pthread_ok" = "xyes"; then
9615 threads=yes
9616 :
9617 else
9618 ax_pthread_ok=no
9619 threads=no
9620 fi
9621 ac_ext=cpp
9622 ac_cpp='$CXXCPP $CPPFLAGS'
9623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9626
9627
9628 if test "$threads" = "yes"; then
9629 save_LIBS="$LIBS"
9630 LIBS="$PTHREAD_LIBS $LIBS"
9631 save_CXXFLAGS="$CXXFLAGS"
9632 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9634 $as_echo_n "checking for std::thread... " >&6; }
9635 if ${gdb_cv_cxx_std_thread+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 #include <thread>
9641 void callback() { }
9642 int
9643 main ()
9644 {
9645 std::thread t(callback);
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_cxx_try_compile "$LINENO"; then :
9651 gdb_cv_cxx_std_thread=yes
9652 else
9653 gdb_cv_cxx_std_thread=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9658 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9659
9660 # This check must be here, while LIBS includes any necessary
9661 # threading library.
9662 for ac_func in pthread_sigmask pthread_setname_np
9663 do :
9664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9665 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9667 cat >>confdefs.h <<_ACEOF
9668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9669 _ACEOF
9670
9671 fi
9672 done
9673
9674
9675 LIBS="$save_LIBS"
9676 CXXFLAGS="$save_CXXFLAGS"
9677 fi
9678 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9679
9680 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9681
9682 fi
9683 ac_ext=c
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9691 $as_echo_n "checking for sigsetjmp... " >&6; }
9692 if ${gdb_cv_func_sigsetjmp+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9697
9698 #include <setjmp.h>
9699
9700 int
9701 main ()
9702 {
9703 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 gdb_cv_func_sigsetjmp=yes
9710 else
9711 gdb_cv_func_sigsetjmp=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9716 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9717 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9718
9719 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9720
9721 fi
9722
9723
9724 # Check whether --with-intel_pt was given.
9725 if test "${with_intel_pt+set}" = set; then :
9726 withval=$with_intel_pt;
9727 else
9728 with_intel_pt=auto
9729 fi
9730
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9732 $as_echo_n "checking whether to use intel pt... " >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9734 $as_echo "$with_intel_pt" >&6; }
9735
9736 if test "${with_intel_pt}" = no; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9738 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9739 HAVE_LIBIPT=no
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743
9744 #include <linux/perf_event.h>
9745 #ifndef PERF_ATTR_SIZE_VER5
9746 # error
9747 #endif
9748
9749 _ACEOF
9750 if ac_fn_c_try_cpp "$LINENO"; then :
9751 perf_event=yes
9752 else
9753 perf_event=no
9754 fi
9755 rm -f conftest.err conftest.i conftest.$ac_ext
9756 if test "$perf_event" != yes; then
9757 if test "$with_intel_pt" = yes; then
9758 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9761 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9762 fi
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 use_additional=yes
9774
9775 acl_save_prefix="$prefix"
9776 prefix="$acl_final_prefix"
9777 acl_save_exec_prefix="$exec_prefix"
9778 exec_prefix="$acl_final_exec_prefix"
9779
9780 eval additional_includedir=\"$includedir\"
9781 eval additional_libdir=\"$libdir\"
9782
9783 exec_prefix="$acl_save_exec_prefix"
9784 prefix="$acl_save_prefix"
9785
9786
9787 # Check whether --with-libipt-prefix was given.
9788 if test "${with_libipt_prefix+set}" = set; then :
9789 withval=$with_libipt_prefix;
9790 if test "X$withval" = "Xno"; then
9791 use_additional=no
9792 else
9793 if test "X$withval" = "X"; then
9794
9795 acl_save_prefix="$prefix"
9796 prefix="$acl_final_prefix"
9797 acl_save_exec_prefix="$exec_prefix"
9798 exec_prefix="$acl_final_exec_prefix"
9799
9800 eval additional_includedir=\"$includedir\"
9801 eval additional_libdir=\"$libdir\"
9802
9803 exec_prefix="$acl_save_exec_prefix"
9804 prefix="$acl_save_prefix"
9805
9806 else
9807 additional_includedir="$withval/include"
9808 additional_libdir="$withval/lib"
9809 fi
9810 fi
9811
9812 fi
9813
9814 LIBIPT=
9815 LTLIBIPT=
9816 INCIPT=
9817 rpathdirs=
9818 ltrpathdirs=
9819 names_already_handled=
9820 names_next_round='ipt '
9821 while test -n "$names_next_round"; do
9822 names_this_round="$names_next_round"
9823 names_next_round=
9824 for name in $names_this_round; do
9825 already_handled=
9826 for n in $names_already_handled; do
9827 if test "$n" = "$name"; then
9828 already_handled=yes
9829 break
9830 fi
9831 done
9832 if test -z "$already_handled"; then
9833 names_already_handled="$names_already_handled $name"
9834 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9835 eval value=\"\$HAVE_LIB$uppername\"
9836 if test -n "$value"; then
9837 if test "$value" = yes; then
9838 eval value=\"\$LIB$uppername\"
9839 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9840 eval value=\"\$LTLIB$uppername\"
9841 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9842 else
9843 :
9844 fi
9845 else
9846 found_dir=
9847 found_la=
9848 found_so=
9849 found_a=
9850 if test $use_additional = yes; then
9851 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9852 found_dir="$additional_libdir"
9853 found_so="$additional_libdir/lib$name.$shlibext"
9854 if test -f "$additional_libdir/lib$name.la"; then
9855 found_la="$additional_libdir/lib$name.la"
9856 fi
9857 else
9858 if test -f "$additional_libdir/lib$name.$libext"; then
9859 found_dir="$additional_libdir"
9860 found_a="$additional_libdir/lib$name.$libext"
9861 if test -f "$additional_libdir/lib$name.la"; then
9862 found_la="$additional_libdir/lib$name.la"
9863 fi
9864 fi
9865 fi
9866 fi
9867 if test "X$found_dir" = "X"; then
9868 for x in $LDFLAGS $LTLIBIPT; do
9869
9870 acl_save_prefix="$prefix"
9871 prefix="$acl_final_prefix"
9872 acl_save_exec_prefix="$exec_prefix"
9873 exec_prefix="$acl_final_exec_prefix"
9874 eval x=\"$x\"
9875 exec_prefix="$acl_save_exec_prefix"
9876 prefix="$acl_save_prefix"
9877
9878 case "$x" in
9879 -L*)
9880 dir=`echo "X$x" | sed -e 's/^X-L//'`
9881 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9882 found_dir="$dir"
9883 found_so="$dir/lib$name.$shlibext"
9884 if test -f "$dir/lib$name.la"; then
9885 found_la="$dir/lib$name.la"
9886 fi
9887 else
9888 if test -f "$dir/lib$name.$libext"; then
9889 found_dir="$dir"
9890 found_a="$dir/lib$name.$libext"
9891 if test -f "$dir/lib$name.la"; then
9892 found_la="$dir/lib$name.la"
9893 fi
9894 fi
9895 fi
9896 ;;
9897 esac
9898 if test "X$found_dir" != "X"; then
9899 break
9900 fi
9901 done
9902 fi
9903 if test "X$found_dir" != "X"; then
9904 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9905 if test "X$found_so" != "X"; then
9906 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9907 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9908 else
9909 haveit=
9910 for x in $ltrpathdirs; do
9911 if test "X$x" = "X$found_dir"; then
9912 haveit=yes
9913 break
9914 fi
9915 done
9916 if test -z "$haveit"; then
9917 ltrpathdirs="$ltrpathdirs $found_dir"
9918 fi
9919 if test "$hardcode_direct" = yes; then
9920 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9921 else
9922 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9923 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9924 haveit=
9925 for x in $rpathdirs; do
9926 if test "X$x" = "X$found_dir"; then
9927 haveit=yes
9928 break
9929 fi
9930 done
9931 if test -z "$haveit"; then
9932 rpathdirs="$rpathdirs $found_dir"
9933 fi
9934 else
9935 haveit=
9936 for x in $LDFLAGS $LIBIPT; do
9937
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9942 eval x=\"$x\"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9945
9946 if test "X$x" = "X-L$found_dir"; then
9947 haveit=yes
9948 break
9949 fi
9950 done
9951 if test -z "$haveit"; then
9952 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9953 fi
9954 if test "$hardcode_minus_L" != no; then
9955 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9956 else
9957 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9958 fi
9959 fi
9960 fi
9961 fi
9962 else
9963 if test "X$found_a" != "X"; then
9964 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9965 else
9966 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9967 fi
9968 fi
9969 additional_includedir=
9970 case "$found_dir" in
9971 */lib | */lib/)
9972 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9973 additional_includedir="$basedir/include"
9974 ;;
9975 esac
9976 if test "X$additional_includedir" != "X"; then
9977 if test "X$additional_includedir" != "X/usr/include"; then
9978 haveit=
9979 if test "X$additional_includedir" = "X/usr/local/include"; then
9980 if test -n "$GCC"; then
9981 case $host_os in
9982 linux*) haveit=yes;;
9983 esac
9984 fi
9985 fi
9986 if test -z "$haveit"; then
9987 for x in $CPPFLAGS $INCIPT; do
9988
9989 acl_save_prefix="$prefix"
9990 prefix="$acl_final_prefix"
9991 acl_save_exec_prefix="$exec_prefix"
9992 exec_prefix="$acl_final_exec_prefix"
9993 eval x=\"$x\"
9994 exec_prefix="$acl_save_exec_prefix"
9995 prefix="$acl_save_prefix"
9996
9997 if test "X$x" = "X-I$additional_includedir"; then
9998 haveit=yes
9999 break
10000 fi
10001 done
10002 if test -z "$haveit"; then
10003 if test -d "$additional_includedir"; then
10004 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10005 fi
10006 fi
10007 fi
10008 fi
10009 fi
10010 if test -n "$found_la"; then
10011 save_libdir="$libdir"
10012 case "$found_la" in
10013 */* | *\\*) . "$found_la" ;;
10014 *) . "./$found_la" ;;
10015 esac
10016 libdir="$save_libdir"
10017 for dep in $dependency_libs; do
10018 case "$dep" in
10019 -L*)
10020 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10021 if test "X$additional_libdir" != "X/usr/lib"; then
10022 haveit=
10023 if test "X$additional_libdir" = "X/usr/local/lib"; then
10024 if test -n "$GCC"; then
10025 case $host_os in
10026 linux*) haveit=yes;;
10027 esac
10028 fi
10029 fi
10030 if test -z "$haveit"; then
10031 haveit=
10032 for x in $LDFLAGS $LIBIPT; do
10033
10034 acl_save_prefix="$prefix"
10035 prefix="$acl_final_prefix"
10036 acl_save_exec_prefix="$exec_prefix"
10037 exec_prefix="$acl_final_exec_prefix"
10038 eval x=\"$x\"
10039 exec_prefix="$acl_save_exec_prefix"
10040 prefix="$acl_save_prefix"
10041
10042 if test "X$x" = "X-L$additional_libdir"; then
10043 haveit=yes
10044 break
10045 fi
10046 done
10047 if test -z "$haveit"; then
10048 if test -d "$additional_libdir"; then
10049 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10050 fi
10051 fi
10052 haveit=
10053 for x in $LDFLAGS $LTLIBIPT; do
10054
10055 acl_save_prefix="$prefix"
10056 prefix="$acl_final_prefix"
10057 acl_save_exec_prefix="$exec_prefix"
10058 exec_prefix="$acl_final_exec_prefix"
10059 eval x=\"$x\"
10060 exec_prefix="$acl_save_exec_prefix"
10061 prefix="$acl_save_prefix"
10062
10063 if test "X$x" = "X-L$additional_libdir"; then
10064 haveit=yes
10065 break
10066 fi
10067 done
10068 if test -z "$haveit"; then
10069 if test -d "$additional_libdir"; then
10070 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10071 fi
10072 fi
10073 fi
10074 fi
10075 ;;
10076 -R*)
10077 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10078 if test "$enable_rpath" != no; then
10079 haveit=
10080 for x in $rpathdirs; do
10081 if test "X$x" = "X$dir"; then
10082 haveit=yes
10083 break
10084 fi
10085 done
10086 if test -z "$haveit"; then
10087 rpathdirs="$rpathdirs $dir"
10088 fi
10089 haveit=
10090 for x in $ltrpathdirs; do
10091 if test "X$x" = "X$dir"; then
10092 haveit=yes
10093 break
10094 fi
10095 done
10096 if test -z "$haveit"; then
10097 ltrpathdirs="$ltrpathdirs $dir"
10098 fi
10099 fi
10100 ;;
10101 -l*)
10102 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10103 ;;
10104 *.la)
10105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10106 ;;
10107 *)
10108 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10109 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10110 ;;
10111 esac
10112 done
10113 fi
10114 else
10115 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10116 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10117 fi
10118 fi
10119 fi
10120 done
10121 done
10122 if test "X$rpathdirs" != "X"; then
10123 if test -n "$hardcode_libdir_separator"; then
10124 alldirs=
10125 for found_dir in $rpathdirs; do
10126 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10127 done
10128 acl_save_libdir="$libdir"
10129 libdir="$alldirs"
10130 eval flag=\"$hardcode_libdir_flag_spec\"
10131 libdir="$acl_save_libdir"
10132 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10133 else
10134 for found_dir in $rpathdirs; do
10135 acl_save_libdir="$libdir"
10136 libdir="$found_dir"
10137 eval flag=\"$hardcode_libdir_flag_spec\"
10138 libdir="$acl_save_libdir"
10139 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10140 done
10141 fi
10142 fi
10143 if test "X$ltrpathdirs" != "X"; then
10144 for found_dir in $ltrpathdirs; do
10145 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10146 done
10147 fi
10148
10149
10150 ac_save_CPPFLAGS="$CPPFLAGS"
10151
10152 for element in $INCIPT; do
10153 haveit=
10154 for x in $CPPFLAGS; do
10155
10156 acl_save_prefix="$prefix"
10157 prefix="$acl_final_prefix"
10158 acl_save_exec_prefix="$exec_prefix"
10159 exec_prefix="$acl_final_exec_prefix"
10160 eval x=\"$x\"
10161 exec_prefix="$acl_save_exec_prefix"
10162 prefix="$acl_save_prefix"
10163
10164 if test "X$x" = "X$element"; then
10165 haveit=yes
10166 break
10167 fi
10168 done
10169 if test -z "$haveit"; then
10170 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10171 fi
10172 done
10173
10174
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10176 $as_echo_n "checking for libipt... " >&6; }
10177 if ${ac_cv_libipt+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180
10181 ac_save_LIBS="$LIBS"
10182 LIBS="$LIBS $LIBIPT"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 #include "intel-pt.h"
10186 int
10187 main ()
10188 {
10189 pt_insn_alloc_decoder (0);
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195 ac_cv_libipt=yes
10196 else
10197 ac_cv_libipt=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LIBS="$ac_save_LIBS"
10202
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10205 $as_echo "$ac_cv_libipt" >&6; }
10206 if test "$ac_cv_libipt" = yes; then
10207 HAVE_LIBIPT=yes
10208
10209 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10212 $as_echo_n "checking how to link with libipt... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10214 $as_echo "$LIBIPT" >&6; }
10215 else
10216 HAVE_LIBIPT=no
10217 CPPFLAGS="$ac_save_CPPFLAGS"
10218 LIBIPT=
10219 LTLIBIPT=
10220 fi
10221
10222
10223
10224
10225
10226
10227 if test "$HAVE_LIBIPT" != yes; then
10228 if test "$with_intel_pt" = yes; then
10229 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10232 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10233 fi
10234 else
10235 save_LIBS=$LIBS
10236 LIBS="$LIBS $LIBIPT"
10237 for ac_func in pt_insn_event
10238 do :
10239 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10240 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_PT_INSN_EVENT 1
10243 _ACEOF
10244
10245 fi
10246 done
10247
10248 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10249 "
10250 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10251
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10254 _ACEOF
10255
10256
10257 fi
10258 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10259 "
10260 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10264 _ACEOF
10265
10266
10267 fi
10268
10269 LIBS=$save_LIBS
10270 fi
10271 fi
10272
10273 if test "$ac_cv_header_sys_procfs_h" = yes; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10275 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10276 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281
10282 #define _SYSCALL32
10283 /* Needed for new procfs interface on sparc-solaris. */
10284 #define _STRUCTURED_PROC 1
10285 #include <sys/procfs.h>
10286 int
10287 main ()
10288 {
10289 gregset_t avar
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_c_try_compile "$LINENO"; then :
10295 bfd_cv_have_sys_procfs_type_gregset_t=yes
10296 else
10297 bfd_cv_have_sys_procfs_type_gregset_t=no
10298
10299 fi
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 fi
10302
10303 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10304
10305 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10306
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10309 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10312 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10313 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318
10319 #define _SYSCALL32
10320 /* Needed for new procfs interface on sparc-solaris. */
10321 #define _STRUCTURED_PROC 1
10322 #include <sys/procfs.h>
10323 int
10324 main ()
10325 {
10326 fpregset_t avar
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10333 else
10334 bfd_cv_have_sys_procfs_type_fpregset_t=no
10335
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 fi
10339
10340 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10341
10342 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10343
10344 fi
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10346 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10347
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10349 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10350 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 #define _SYSCALL32
10357 /* Needed for new procfs interface on sparc-solaris. */
10358 #define _STRUCTURED_PROC 1
10359 #include <sys/procfs.h>
10360 int
10361 main ()
10362 {
10363 prgregset_t avar
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10370 else
10371 bfd_cv_have_sys_procfs_type_prgregset_t=no
10372
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 fi
10376
10377 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10378
10379 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10380
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10383 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10384
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10386 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10387 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392
10393 #define _SYSCALL32
10394 /* Needed for new procfs interface on sparc-solaris. */
10395 #define _STRUCTURED_PROC 1
10396 #include <sys/procfs.h>
10397 int
10398 main ()
10399 {
10400 prfpregset_t avar
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10407 else
10408 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10409
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 fi
10413
10414 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10415
10416 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10417
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10420 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10423 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10424 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429
10430 #define _SYSCALL32
10431 /* Needed for new procfs interface on sparc-solaris. */
10432 #define _STRUCTURED_PROC 1
10433 #include <sys/procfs.h>
10434 int
10435 main ()
10436 {
10437 prgregset32_t avar
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10444 else
10445 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10446
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 fi
10450
10451 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10452
10453 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10457 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10460 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10461 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466
10467 #define _SYSCALL32
10468 /* Needed for new procfs interface on sparc-solaris. */
10469 #define _STRUCTURED_PROC 1
10470 #include <sys/procfs.h>
10471 int
10472 main ()
10473 {
10474 lwpid_t avar
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_compile "$LINENO"; then :
10480 bfd_cv_have_sys_procfs_type_lwpid_t=yes
10481 else
10482 bfd_cv_have_sys_procfs_type_lwpid_t=no
10483
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 fi
10487
10488 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10489
10490 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10491
10492 fi
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10494 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10495
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10497 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10498 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503
10504 #define _SYSCALL32
10505 /* Needed for new procfs interface on sparc-solaris. */
10506 #define _STRUCTURED_PROC 1
10507 #include <sys/procfs.h>
10508 int
10509 main ()
10510 {
10511 psaddr_t avar
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_compile "$LINENO"; then :
10517 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10518 else
10519 bfd_cv_have_sys_procfs_type_psaddr_t=no
10520
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524
10525 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10526
10527 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10528
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10531 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10534 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10535 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540
10541 #define _SYSCALL32
10542 /* Needed for new procfs interface on sparc-solaris. */
10543 #define _STRUCTURED_PROC 1
10544 #include <sys/procfs.h>
10545 int
10546 main ()
10547 {
10548 elf_fpregset_t avar
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_compile "$LINENO"; then :
10554 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
10555 else
10556 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10557
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 fi
10561
10562 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10563
10564 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10565
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10568 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10569
10570 fi
10571
10572
10573 # Check whether we will enable the inclusion of unit tests when
10574 # compiling GDB.
10575 #
10576 # The default value of this option changes depending whether we're on
10577 # development mode (in which case it's "true") or not (in which case
10578 # it's "false").
10579 # Check whether --enable-unit-tests was given.
10580 if test "${enable_unit_tests+set}" = set; then :
10581 enableval=$enable_unit_tests; case "${enableval}" in
10582 yes) enable_unittests=true ;;
10583 no) enable_unittests=false ;;
10584 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10585 esac
10586 else
10587 enable_unittests=$development
10588 fi
10589
10590
10591 if $enable_unittests; then
10592
10593 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10594
10595
10596 fi
10597
10598 if $enable_unittests; then
10599 SELFTEST_TRUE=
10600 SELFTEST_FALSE='#'
10601 else
10602 SELFTEST_TRUE='#'
10603 SELFTEST_FALSE=
10604 fi
10605
10606
10607 # Check the return and argument types of ptrace.
10608
10609
10610 for ac_header in sys/ptrace.h ptrace.h
10611 do :
10612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10615 cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617 _ACEOF
10618
10619 fi
10620
10621 done
10622
10623
10624 gdb_ptrace_headers='
10625 #include <sys/types.h>
10626 #if HAVE_SYS_PTRACE_H
10627 # include <sys/ptrace.h>
10628 #endif
10629 #if HAVE_UNISTD_H
10630 # include <unistd.h>
10631 #endif
10632 '
10633 # There is no point in checking if we don't have a prototype.
10634 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10635 "
10636 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
10637 ac_have_decl=1
10638 else
10639 ac_have_decl=0
10640 fi
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_DECL_PTRACE $ac_have_decl
10644 _ACEOF
10645 if test $ac_have_decl = 1; then :
10646
10647 else
10648
10649 : ${gdb_cv_func_ptrace_ret='int'}
10650 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10651
10652 fi
10653
10654 # Check return type. Varargs (used on GNU/Linux) conflict with the
10655 # empty argument list, so check for that explicitly.
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10657 $as_echo_n "checking return type of ptrace... " >&6; }
10658 if ${gdb_cv_func_ptrace_ret+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 $gdb_ptrace_headers
10664 int
10665 main ()
10666 {
10667 extern long ptrace (enum __ptrace_request, ...);
10668 ;
10669 return 0;
10670 }
10671 _ACEOF
10672 if ac_fn_c_try_compile "$LINENO"; then :
10673 gdb_cv_func_ptrace_ret='long'
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 $gdb_ptrace_headers
10678 int
10679 main ()
10680 {
10681 extern int ptrace ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_compile "$LINENO"; then :
10687 gdb_cv_func_ptrace_ret='int'
10688 else
10689 gdb_cv_func_ptrace_ret='long'
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10696 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10697
10698 cat >>confdefs.h <<_ACEOF
10699 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10700 _ACEOF
10701
10702 # Check argument types.
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10704 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10705 if ${gdb_cv_func_ptrace_args+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 $gdb_ptrace_headers
10712 int
10713 main ()
10714 {
10715 extern long ptrace (enum __ptrace_request, ...);
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 if ac_fn_c_try_compile "$LINENO"; then :
10721 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10722 else
10723
10724 for gdb_arg1 in 'int' 'long'; do
10725 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10726 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10727 for gdb_arg4 in 'int' 'long' 'void *'; do
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 $gdb_ptrace_headers
10731 int
10732 main ()
10733 {
10734
10735 extern $gdb_cv_func_ptrace_ret
10736 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10737
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10744 break 4;
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 for gdb_arg5 in 'int *' 'int' 'long'; do
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 $gdb_ptrace_headers
10751 int
10752 main ()
10753 {
10754
10755 extern $gdb_cv_func_ptrace_ret
10756 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10757
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763
10764 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10765 break 5;
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 done
10769 done
10770 done
10771 done
10772 done
10773 # Provide a safe default value.
10774 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10775
10776 fi
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10780 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10781 ac_save_IFS=$IFS; IFS=','
10782 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10783 IFS=$ac_save_IFS
10784 shift
10785
10786 cat >>confdefs.h <<_ACEOF
10787 #define PTRACE_TYPE_ARG1 $1
10788 _ACEOF
10789
10790
10791 cat >>confdefs.h <<_ACEOF
10792 #define PTRACE_TYPE_ARG3 $3
10793 _ACEOF
10794
10795
10796 cat >>confdefs.h <<_ACEOF
10797 #define PTRACE_TYPE_ARG4 $4
10798 _ACEOF
10799
10800 if test -n "$5"; then
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define PTRACE_TYPE_ARG5 $5
10804 _ACEOF
10805
10806 fi
10807
10808
10809 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
10810
10811 cat >>confdefs.h <<_ACEOF
10812 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
10813 _ACEOF
10814
10815
10816 case ${host} in
10817 *mingw32*)
10818
10819 $as_echo "#define USE_WIN32API 1" >>confdefs.h
10820
10821 ;;
10822 esac
10823
10824 ac_config_files="$ac_config_files Makefile"
10825
10826 cat >confcache <<\_ACEOF
10827 # This file is a shell script that caches the results of configure
10828 # tests run on this system so they can be shared between configure
10829 # scripts and configure runs, see configure's option --config-cache.
10830 # It is not useful on other systems. If it contains results you don't
10831 # want to keep, you may remove or edit it.
10832 #
10833 # config.status only pays attention to the cache file if you give it
10834 # the --recheck option to rerun configure.
10835 #
10836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10838 # following values.
10839
10840 _ACEOF
10841
10842 # The following way of writing the cache mishandles newlines in values,
10843 # but we know of no workaround that is simple, portable, and efficient.
10844 # So, we kill variables containing newlines.
10845 # Ultrix sh set writes to stderr and can't be redirected directly,
10846 # and sets the high bit in the cache file unless we assign to the vars.
10847 (
10848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10849 eval ac_val=\$$ac_var
10850 case $ac_val in #(
10851 *${as_nl}*)
10852 case $ac_var in #(
10853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10855 esac
10856 case $ac_var in #(
10857 _ | IFS | as_nl) ;; #(
10858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10859 *) { eval $ac_var=; unset $ac_var;} ;;
10860 esac ;;
10861 esac
10862 done
10863
10864 (set) 2>&1 |
10865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10866 *${as_nl}ac_space=\ *)
10867 # `set' does not quote correctly, so add quotes: double-quote
10868 # substitution turns \\\\ into \\, and sed turns \\ into \.
10869 sed -n \
10870 "s/'/'\\\\''/g;
10871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10872 ;; #(
10873 *)
10874 # `set' quotes correctly as required by POSIX, so do not add quotes.
10875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10876 ;;
10877 esac |
10878 sort
10879 ) |
10880 sed '
10881 /^ac_cv_env_/b end
10882 t clear
10883 :clear
10884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10885 t end
10886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10887 :end' >>confcache
10888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10889 if test -w "$cache_file"; then
10890 if test "x$cache_file" != "x/dev/null"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10892 $as_echo "$as_me: updating cache $cache_file" >&6;}
10893 if test ! -f "$cache_file" || test -h "$cache_file"; then
10894 cat confcache >"$cache_file"
10895 else
10896 case $cache_file in #(
10897 */* | ?:*)
10898 mv -f confcache "$cache_file"$$ &&
10899 mv -f "$cache_file"$$ "$cache_file" ;; #(
10900 *)
10901 mv -f confcache "$cache_file" ;;
10902 esac
10903 fi
10904 fi
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10907 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10908 fi
10909 fi
10910 rm -f confcache
10911
10912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10913 # Let make expand exec_prefix.
10914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10915
10916 DEFS=-DHAVE_CONFIG_H
10917
10918 ac_libobjs=
10919 ac_ltlibobjs=
10920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10921 # 1. Remove the extension, and $U if already installed.
10922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10925 # will be set to the directory where LIBOBJS objects are built.
10926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10928 done
10929 LIBOBJS=$ac_libobjs
10930
10931 LTLIBOBJS=$ac_ltlibobjs
10932
10933
10934 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10935 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10939 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10940 if test -n "$am_sleep_pid"; then
10941 # Hide warnings about reused PIDs.
10942 wait $am_sleep_pid 2>/dev/null
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10945 $as_echo "done" >&6; }
10946 if test -n "$EXEEXT"; then
10947 am__EXEEXT_TRUE=
10948 am__EXEEXT_FALSE='#'
10949 else
10950 am__EXEEXT_TRUE='#'
10951 am__EXEEXT_FALSE=
10952 fi
10953
10954 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10955 as_fn_error $? "conditional \"AMDEP\" was never defined.
10956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10957 fi
10958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10959 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10961 fi
10962 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10963 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10965 fi
10966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10969 fi
10970 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10971 as_fn_error $? "conditional \"SELFTEST\" was never defined.
10972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10973 fi
10974
10975 : "${CONFIG_STATUS=./config.status}"
10976 ac_write_fail=0
10977 ac_clean_files_save=$ac_clean_files
10978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10980 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10981 as_write_fail=0
10982 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10983 #! $SHELL
10984 # Generated by $as_me.
10985 # Run this file to recreate the current configuration.
10986 # Compiler output produced by configure, useful for debugging
10987 # configure, is in config.log if it exists.
10988
10989 debug=false
10990 ac_cs_recheck=false
10991 ac_cs_silent=false
10992
10993 SHELL=\${CONFIG_SHELL-$SHELL}
10994 export SHELL
10995 _ASEOF
10996 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10997 ## -------------------- ##
10998 ## M4sh Initialization. ##
10999 ## -------------------- ##
11000
11001 # Be more Bourne compatible
11002 DUALCASE=1; export DUALCASE # for MKS sh
11003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11004 emulate sh
11005 NULLCMD=:
11006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11007 # is contrary to our usage. Disable this feature.
11008 alias -g '${1+"$@"}'='"$@"'
11009 setopt NO_GLOB_SUBST
11010 else
11011 case `(set -o) 2>/dev/null` in #(
11012 *posix*) :
11013 set -o posix ;; #(
11014 *) :
11015 ;;
11016 esac
11017 fi
11018
11019
11020 as_nl='
11021 '
11022 export as_nl
11023 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11024 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11027 # Prefer a ksh shell builtin over an external printf program on Solaris,
11028 # but without wasting forks for bash or zsh.
11029 if test -z "$BASH_VERSION$ZSH_VERSION" \
11030 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11031 as_echo='print -r --'
11032 as_echo_n='print -rn --'
11033 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11034 as_echo='printf %s\n'
11035 as_echo_n='printf %s'
11036 else
11037 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11038 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11039 as_echo_n='/usr/ucb/echo -n'
11040 else
11041 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11042 as_echo_n_body='eval
11043 arg=$1;
11044 case $arg in #(
11045 *"$as_nl"*)
11046 expr "X$arg" : "X\\(.*\\)$as_nl";
11047 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11048 esac;
11049 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11050 '
11051 export as_echo_n_body
11052 as_echo_n='sh -c $as_echo_n_body as_echo'
11053 fi
11054 export as_echo_body
11055 as_echo='sh -c $as_echo_body as_echo'
11056 fi
11057
11058 # The user is always right.
11059 if test "${PATH_SEPARATOR+set}" != set; then
11060 PATH_SEPARATOR=:
11061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11063 PATH_SEPARATOR=';'
11064 }
11065 fi
11066
11067
11068 # IFS
11069 # We need space, tab and new line, in precisely that order. Quoting is
11070 # there to prevent editors from complaining about space-tab.
11071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11072 # splitting by setting IFS to empty value.)
11073 IFS=" "" $as_nl"
11074
11075 # Find who we are. Look in the path if we contain no directory separator.
11076 as_myself=
11077 case $0 in #((
11078 *[\\/]* ) as_myself=$0 ;;
11079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11085 done
11086 IFS=$as_save_IFS
11087
11088 ;;
11089 esac
11090 # We did not find ourselves, most probably we were run as `sh COMMAND'
11091 # in which case we are not to be found in the path.
11092 if test "x$as_myself" = x; then
11093 as_myself=$0
11094 fi
11095 if test ! -f "$as_myself"; then
11096 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11097 exit 1
11098 fi
11099
11100 # Unset variables that we do not need and which cause bugs (e.g. in
11101 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11102 # suppresses any "Segmentation fault" message there. '((' could
11103 # trigger a bug in pdksh 5.2.14.
11104 for as_var in BASH_ENV ENV MAIL MAILPATH
11105 do eval test x\${$as_var+set} = xset \
11106 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11107 done
11108 PS1='$ '
11109 PS2='> '
11110 PS4='+ '
11111
11112 # NLS nuisances.
11113 LC_ALL=C
11114 export LC_ALL
11115 LANGUAGE=C
11116 export LANGUAGE
11117
11118 # CDPATH.
11119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11120
11121
11122 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11123 # ----------------------------------------
11124 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11125 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11126 # script with STATUS, using 1 if that was 0.
11127 as_fn_error ()
11128 {
11129 as_status=$1; test $as_status -eq 0 && as_status=1
11130 if test "$4"; then
11131 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11132 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11133 fi
11134 $as_echo "$as_me: error: $2" >&2
11135 as_fn_exit $as_status
11136 } # as_fn_error
11137
11138
11139 # as_fn_set_status STATUS
11140 # -----------------------
11141 # Set $? to STATUS, without forking.
11142 as_fn_set_status ()
11143 {
11144 return $1
11145 } # as_fn_set_status
11146
11147 # as_fn_exit STATUS
11148 # -----------------
11149 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11150 as_fn_exit ()
11151 {
11152 set +e
11153 as_fn_set_status $1
11154 exit $1
11155 } # as_fn_exit
11156
11157 # as_fn_unset VAR
11158 # ---------------
11159 # Portably unset VAR.
11160 as_fn_unset ()
11161 {
11162 { eval $1=; unset $1;}
11163 }
11164 as_unset=as_fn_unset
11165 # as_fn_append VAR VALUE
11166 # ----------------------
11167 # Append the text in VALUE to the end of the definition contained in VAR. Take
11168 # advantage of any shell optimizations that allow amortized linear growth over
11169 # repeated appends, instead of the typical quadratic growth present in naive
11170 # implementations.
11171 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11172 eval 'as_fn_append ()
11173 {
11174 eval $1+=\$2
11175 }'
11176 else
11177 as_fn_append ()
11178 {
11179 eval $1=\$$1\$2
11180 }
11181 fi # as_fn_append
11182
11183 # as_fn_arith ARG...
11184 # ------------------
11185 # Perform arithmetic evaluation on the ARGs, and store the result in the
11186 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11187 # must be portable across $(()) and expr.
11188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11189 eval 'as_fn_arith ()
11190 {
11191 as_val=$(( $* ))
11192 }'
11193 else
11194 as_fn_arith ()
11195 {
11196 as_val=`expr "$@" || test $? -eq 1`
11197 }
11198 fi # as_fn_arith
11199
11200
11201 if expr a : '\(a\)' >/dev/null 2>&1 &&
11202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11203 as_expr=expr
11204 else
11205 as_expr=false
11206 fi
11207
11208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11209 as_basename=basename
11210 else
11211 as_basename=false
11212 fi
11213
11214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11215 as_dirname=dirname
11216 else
11217 as_dirname=false
11218 fi
11219
11220 as_me=`$as_basename -- "$0" ||
11221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11222 X"$0" : 'X\(//\)$' \| \
11223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11224 $as_echo X/"$0" |
11225 sed '/^.*\/\([^/][^/]*\)\/*$/{
11226 s//\1/
11227 q
11228 }
11229 /^X\/\(\/\/\)$/{
11230 s//\1/
11231 q
11232 }
11233 /^X\/\(\/\).*/{
11234 s//\1/
11235 q
11236 }
11237 s/.*/./; q'`
11238
11239 # Avoid depending upon Character Ranges.
11240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11243 as_cr_digits='0123456789'
11244 as_cr_alnum=$as_cr_Letters$as_cr_digits
11245
11246 ECHO_C= ECHO_N= ECHO_T=
11247 case `echo -n x` in #(((((
11248 -n*)
11249 case `echo 'xy\c'` in
11250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11251 xy) ECHO_C='\c';;
11252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11253 ECHO_T=' ';;
11254 esac;;
11255 *)
11256 ECHO_N='-n';;
11257 esac
11258
11259 rm -f conf$$ conf$$.exe conf$$.file
11260 if test -d conf$$.dir; then
11261 rm -f conf$$.dir/conf$$.file
11262 else
11263 rm -f conf$$.dir
11264 mkdir conf$$.dir 2>/dev/null
11265 fi
11266 if (echo >conf$$.file) 2>/dev/null; then
11267 if ln -s conf$$.file conf$$ 2>/dev/null; then
11268 as_ln_s='ln -s'
11269 # ... but there are two gotchas:
11270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11272 # In both cases, we have to default to `cp -pR'.
11273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11274 as_ln_s='cp -pR'
11275 elif ln conf$$.file conf$$ 2>/dev/null; then
11276 as_ln_s=ln
11277 else
11278 as_ln_s='cp -pR'
11279 fi
11280 else
11281 as_ln_s='cp -pR'
11282 fi
11283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11284 rmdir conf$$.dir 2>/dev/null
11285
11286
11287 # as_fn_mkdir_p
11288 # -------------
11289 # Create "$as_dir" as a directory, including parents if necessary.
11290 as_fn_mkdir_p ()
11291 {
11292
11293 case $as_dir in #(
11294 -*) as_dir=./$as_dir;;
11295 esac
11296 test -d "$as_dir" || eval $as_mkdir_p || {
11297 as_dirs=
11298 while :; do
11299 case $as_dir in #(
11300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11301 *) as_qdir=$as_dir;;
11302 esac
11303 as_dirs="'$as_qdir' $as_dirs"
11304 as_dir=`$as_dirname -- "$as_dir" ||
11305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11306 X"$as_dir" : 'X\(//\)[^/]' \| \
11307 X"$as_dir" : 'X\(//\)$' \| \
11308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11309 $as_echo X"$as_dir" |
11310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\/\)[^/].*/{
11315 s//\1/
11316 q
11317 }
11318 /^X\(\/\/\)$/{
11319 s//\1/
11320 q
11321 }
11322 /^X\(\/\).*/{
11323 s//\1/
11324 q
11325 }
11326 s/.*/./; q'`
11327 test -d "$as_dir" && break
11328 done
11329 test -z "$as_dirs" || eval "mkdir $as_dirs"
11330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11331
11332
11333 } # as_fn_mkdir_p
11334 if mkdir -p . 2>/dev/null; then
11335 as_mkdir_p='mkdir -p "$as_dir"'
11336 else
11337 test -d ./-p && rmdir ./-p
11338 as_mkdir_p=false
11339 fi
11340
11341
11342 # as_fn_executable_p FILE
11343 # -----------------------
11344 # Test if FILE is an executable regular file.
11345 as_fn_executable_p ()
11346 {
11347 test -f "$1" && test -x "$1"
11348 } # as_fn_executable_p
11349 as_test_x='test -x'
11350 as_executable_p=as_fn_executable_p
11351
11352 # Sed expression to map a string onto a valid CPP name.
11353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11354
11355 # Sed expression to map a string onto a valid variable name.
11356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11357
11358
11359 exec 6>&1
11360 ## ----------------------------------- ##
11361 ## Main body of $CONFIG_STATUS script. ##
11362 ## ----------------------------------- ##
11363 _ASEOF
11364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11365
11366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11367 # Save the log message, to keep $0 and so on meaningful, and to
11368 # report actual input values of CONFIG_FILES etc. instead of their
11369 # values after options handling.
11370 ac_log="
11371 This file was extended by gdbsupport $as_me 1.0, which was
11372 generated by GNU Autoconf 2.69. Invocation command line was
11373
11374 CONFIG_FILES = $CONFIG_FILES
11375 CONFIG_HEADERS = $CONFIG_HEADERS
11376 CONFIG_LINKS = $CONFIG_LINKS
11377 CONFIG_COMMANDS = $CONFIG_COMMANDS
11378 $ $0 $@
11379
11380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11381 "
11382
11383 _ACEOF
11384
11385 case $ac_config_files in *"
11386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11387 esac
11388
11389 case $ac_config_headers in *"
11390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11391 esac
11392
11393
11394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11395 # Files that config.status was made for.
11396 config_files="$ac_config_files"
11397 config_headers="$ac_config_headers"
11398 config_commands="$ac_config_commands"
11399
11400 _ACEOF
11401
11402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403 ac_cs_usage="\
11404 \`$as_me' instantiates files and other configuration actions
11405 from templates according to the current configuration. Unless the files
11406 and actions are specified as TAGs, all are instantiated by default.
11407
11408 Usage: $0 [OPTION]... [TAG]...
11409
11410 -h, --help print this help, then exit
11411 -V, --version print version number and configuration settings, then exit
11412 --config print configuration, then exit
11413 -q, --quiet, --silent
11414 do not print progress messages
11415 -d, --debug don't remove temporary files
11416 --recheck update $as_me by reconfiguring in the same conditions
11417 --file=FILE[:TEMPLATE]
11418 instantiate the configuration file FILE
11419 --header=FILE[:TEMPLATE]
11420 instantiate the configuration header FILE
11421
11422 Configuration files:
11423 $config_files
11424
11425 Configuration headers:
11426 $config_headers
11427
11428 Configuration commands:
11429 $config_commands
11430
11431 Report bugs to the package provider."
11432
11433 _ACEOF
11434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11436 ac_cs_version="\\
11437 gdbsupport config.status 1.0
11438 configured by $0, generated by GNU Autoconf 2.69,
11439 with options \\"\$ac_cs_config\\"
11440
11441 Copyright (C) 2012 Free Software Foundation, Inc.
11442 This config.status script is free software; the Free Software Foundation
11443 gives unlimited permission to copy, distribute and modify it."
11444
11445 ac_pwd='$ac_pwd'
11446 srcdir='$srcdir'
11447 INSTALL='$INSTALL'
11448 MKDIR_P='$MKDIR_P'
11449 AWK='$AWK'
11450 test -n "\$AWK" || AWK=awk
11451 _ACEOF
11452
11453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11454 # The default lists apply if the user does not specify any file.
11455 ac_need_defaults=:
11456 while test $# != 0
11457 do
11458 case $1 in
11459 --*=?*)
11460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11462 ac_shift=:
11463 ;;
11464 --*=)
11465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11466 ac_optarg=
11467 ac_shift=:
11468 ;;
11469 *)
11470 ac_option=$1
11471 ac_optarg=$2
11472 ac_shift=shift
11473 ;;
11474 esac
11475
11476 case $ac_option in
11477 # Handling of the options.
11478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11479 ac_cs_recheck=: ;;
11480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11481 $as_echo "$ac_cs_version"; exit ;;
11482 --config | --confi | --conf | --con | --co | --c )
11483 $as_echo "$ac_cs_config"; exit ;;
11484 --debug | --debu | --deb | --de | --d | -d )
11485 debug=: ;;
11486 --file | --fil | --fi | --f )
11487 $ac_shift
11488 case $ac_optarg in
11489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11490 '') as_fn_error $? "missing file argument" ;;
11491 esac
11492 as_fn_append CONFIG_FILES " '$ac_optarg'"
11493 ac_need_defaults=false;;
11494 --header | --heade | --head | --hea )
11495 $ac_shift
11496 case $ac_optarg in
11497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11498 esac
11499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11500 ac_need_defaults=false;;
11501 --he | --h)
11502 # Conflict between --help and --header
11503 as_fn_error $? "ambiguous option: \`$1'
11504 Try \`$0 --help' for more information.";;
11505 --help | --hel | -h )
11506 $as_echo "$ac_cs_usage"; exit ;;
11507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11509 ac_cs_silent=: ;;
11510
11511 # This is an error.
11512 -*) as_fn_error $? "unrecognized option: \`$1'
11513 Try \`$0 --help' for more information." ;;
11514
11515 *) as_fn_append ac_config_targets " $1"
11516 ac_need_defaults=false ;;
11517
11518 esac
11519 shift
11520 done
11521
11522 ac_configure_extra_args=
11523
11524 if $ac_cs_silent; then
11525 exec 6>/dev/null
11526 ac_configure_extra_args="$ac_configure_extra_args --silent"
11527 fi
11528
11529 _ACEOF
11530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11531 if \$ac_cs_recheck; then
11532 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11533 shift
11534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11535 CONFIG_SHELL='$SHELL'
11536 export CONFIG_SHELL
11537 exec "\$@"
11538 fi
11539
11540 _ACEOF
11541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11542 exec 5>>config.log
11543 {
11544 echo
11545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11546 ## Running $as_me. ##
11547 _ASBOX
11548 $as_echo "$ac_log"
11549 } >&5
11550
11551 _ACEOF
11552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11553 #
11554 # INIT-COMMANDS
11555 #
11556 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11557
11558 _ACEOF
11559
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561
11562 # Handling of arguments.
11563 for ac_config_target in $ac_config_targets
11564 do
11565 case $ac_config_target in
11566 "support-config.h") CONFIG_HEADERS="$CONFIG_HEADERS support-config.h:config.in" ;;
11567 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11568 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11569
11570 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11571 esac
11572 done
11573
11574
11575 # If the user did not use the arguments to specify the items to instantiate,
11576 # then the envvar interface is used. Set only those that are not.
11577 # We use the long form for the default assignment because of an extremely
11578 # bizarre bug on SunOS 4.1.3.
11579 if $ac_need_defaults; then
11580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11581 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11582 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11583 fi
11584
11585 # Have a temporary directory for convenience. Make it in the build tree
11586 # simply because there is no reason against having it here, and in addition,
11587 # creating and moving files from /tmp can sometimes cause problems.
11588 # Hook for its removal unless debugging.
11589 # Note that there is a small window in which the directory will not be cleaned:
11590 # after its creation but before its name has been assigned to `$tmp'.
11591 $debug ||
11592 {
11593 tmp= ac_tmp=
11594 trap 'exit_status=$?
11595 : "${ac_tmp:=$tmp}"
11596 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11597 ' 0
11598 trap 'as_fn_exit 1' 1 2 13 15
11599 }
11600 # Create a (secure) tmp directory for tmp files.
11601
11602 {
11603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11604 test -d "$tmp"
11605 } ||
11606 {
11607 tmp=./conf$$-$RANDOM
11608 (umask 077 && mkdir "$tmp")
11609 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11610 ac_tmp=$tmp
11611
11612 # Set up the scripts for CONFIG_FILES section.
11613 # No need to generate them if there are no CONFIG_FILES.
11614 # This happens for instance with `./config.status config.h'.
11615 if test -n "$CONFIG_FILES"; then
11616
11617
11618 ac_cr=`echo X | tr X '\015'`
11619 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11620 # But we know of no other shell where ac_cr would be empty at this
11621 # point, so we can use a bashism as a fallback.
11622 if test "x$ac_cr" = x; then
11623 eval ac_cr=\$\'\\r\'
11624 fi
11625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11627 ac_cs_awk_cr='\\r'
11628 else
11629 ac_cs_awk_cr=$ac_cr
11630 fi
11631
11632 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11633 _ACEOF
11634
11635
11636 {
11637 echo "cat >conf$$subs.awk <<_ACEOF" &&
11638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11639 echo "_ACEOF"
11640 } >conf$$subs.sh ||
11641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11643 ac_delim='%!_!# '
11644 for ac_last_try in false false false false false :; do
11645 . ./conf$$subs.sh ||
11646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11647
11648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11649 if test $ac_delim_n = $ac_delim_num; then
11650 break
11651 elif $ac_last_try; then
11652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11653 else
11654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11655 fi
11656 done
11657 rm -f conf$$subs.sh
11658
11659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11661 _ACEOF
11662 sed -n '
11663 h
11664 s/^/S["/; s/!.*/"]=/
11665 p
11666 g
11667 s/^[^!]*!//
11668 :repl
11669 t repl
11670 s/'"$ac_delim"'$//
11671 t delim
11672 :nl
11673 h
11674 s/\(.\{148\}\)..*/\1/
11675 t more1
11676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11677 p
11678 n
11679 b repl
11680 :more1
11681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11682 p
11683 g
11684 s/.\{148\}//
11685 t nl
11686 :delim
11687 h
11688 s/\(.\{148\}\)..*/\1/
11689 t more2
11690 s/["\\]/\\&/g; s/^/"/; s/$/"/
11691 p
11692 b
11693 :more2
11694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11695 p
11696 g
11697 s/.\{148\}//
11698 t delim
11699 ' <conf$$subs.awk | sed '
11700 /^[^""]/{
11701 N
11702 s/\n//
11703 }
11704 ' >>$CONFIG_STATUS || ac_write_fail=1
11705 rm -f conf$$subs.awk
11706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11707 _ACAWK
11708 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11709 for (key in S) S_is_set[key] = 1
11710 FS = "\a"
11711
11712 }
11713 {
11714 line = $ 0
11715 nfields = split(line, field, "@")
11716 substed = 0
11717 len = length(field[1])
11718 for (i = 2; i < nfields; i++) {
11719 key = field[i]
11720 keylen = length(key)
11721 if (S_is_set[key]) {
11722 value = S[key]
11723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11724 len += length(value) + length(field[++i])
11725 substed = 1
11726 } else
11727 len += 1 + keylen
11728 }
11729
11730 print line
11731 }
11732
11733 _ACAWK
11734 _ACEOF
11735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11738 else
11739 cat
11740 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11741 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11742 _ACEOF
11743
11744 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11745 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11746 # trailing colons and then remove the whole line if VPATH becomes empty
11747 # (actually we leave an empty line to preserve line numbers).
11748 if test "x$srcdir" = x.; then
11749 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11750 h
11751 s///
11752 s/^/:/
11753 s/[ ]*$/:/
11754 s/:\$(srcdir):/:/g
11755 s/:\${srcdir}:/:/g
11756 s/:@srcdir@:/:/g
11757 s/^:*//
11758 s/:*$//
11759 x
11760 s/\(=[ ]*\).*/\1/
11761 G
11762 s/\n//
11763 s/^[^=]*=[ ]*$//
11764 }'
11765 fi
11766
11767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11768 fi # test -n "$CONFIG_FILES"
11769
11770 # Set up the scripts for CONFIG_HEADERS section.
11771 # No need to generate them if there are no CONFIG_HEADERS.
11772 # This happens for instance with `./config.status Makefile'.
11773 if test -n "$CONFIG_HEADERS"; then
11774 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11775 BEGIN {
11776 _ACEOF
11777
11778 # Transform confdefs.h into an awk script `defines.awk', embedded as
11779 # here-document in config.status, that substitutes the proper values into
11780 # config.h.in to produce config.h.
11781
11782 # Create a delimiter string that does not exist in confdefs.h, to ease
11783 # handling of long lines.
11784 ac_delim='%!_!# '
11785 for ac_last_try in false false :; do
11786 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11787 if test -z "$ac_tt"; then
11788 break
11789 elif $ac_last_try; then
11790 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11791 else
11792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11793 fi
11794 done
11795
11796 # For the awk script, D is an array of macro values keyed by name,
11797 # likewise P contains macro parameters if any. Preserve backslash
11798 # newline sequences.
11799
11800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11801 sed -n '
11802 s/.\{148\}/&'"$ac_delim"'/g
11803 t rset
11804 :rset
11805 s/^[ ]*#[ ]*define[ ][ ]*/ /
11806 t def
11807 d
11808 :def
11809 s/\\$//
11810 t bsnl
11811 s/["\\]/\\&/g
11812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11813 D["\1"]=" \3"/p
11814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11815 d
11816 :bsnl
11817 s/["\\]/\\&/g
11818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11819 D["\1"]=" \3\\\\\\n"\\/p
11820 t cont
11821 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11822 t cont
11823 d
11824 :cont
11825 n
11826 s/.\{148\}/&'"$ac_delim"'/g
11827 t clear
11828 :clear
11829 s/\\$//
11830 t bsnlc
11831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11832 d
11833 :bsnlc
11834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11835 b cont
11836 ' <confdefs.h | sed '
11837 s/'"$ac_delim"'/"\\\
11838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11839
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 for (key in D) D_is_set[key] = 1
11842 FS = "\a"
11843 }
11844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11845 line = \$ 0
11846 split(line, arg, " ")
11847 if (arg[1] == "#") {
11848 defundef = arg[2]
11849 mac1 = arg[3]
11850 } else {
11851 defundef = substr(arg[1], 2)
11852 mac1 = arg[2]
11853 }
11854 split(mac1, mac2, "(") #)
11855 macro = mac2[1]
11856 prefix = substr(line, 1, index(line, defundef) - 1)
11857 if (D_is_set[macro]) {
11858 # Preserve the white space surrounding the "#".
11859 print prefix "define", macro P[macro] D[macro]
11860 next
11861 } else {
11862 # Replace #undef with comments. This is necessary, for example,
11863 # in the case of _POSIX_SOURCE, which is predefined and required
11864 # on some systems where configure will not decide to define it.
11865 if (defundef == "undef") {
11866 print "/*", prefix defundef, macro, "*/"
11867 next
11868 }
11869 }
11870 }
11871 { print }
11872 _ACAWK
11873 _ACEOF
11874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11876 fi # test -n "$CONFIG_HEADERS"
11877
11878
11879 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11880 shift
11881 for ac_tag
11882 do
11883 case $ac_tag in
11884 :[FHLC]) ac_mode=$ac_tag; continue;;
11885 esac
11886 case $ac_mode$ac_tag in
11887 :[FHL]*:*);;
11888 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11889 :[FH]-) ac_tag=-:-;;
11890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11891 esac
11892 ac_save_IFS=$IFS
11893 IFS=:
11894 set x $ac_tag
11895 IFS=$ac_save_IFS
11896 shift
11897 ac_file=$1
11898 shift
11899
11900 case $ac_mode in
11901 :L) ac_source=$1;;
11902 :[FH])
11903 ac_file_inputs=
11904 for ac_f
11905 do
11906 case $ac_f in
11907 -) ac_f="$ac_tmp/stdin";;
11908 *) # Look for the file first in the build tree, then in the source tree
11909 # (if the path is not absolute). The absolute path cannot be DOS-style,
11910 # because $ac_f cannot contain `:'.
11911 test -f "$ac_f" ||
11912 case $ac_f in
11913 [\\/$]*) false;;
11914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11915 esac ||
11916 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11917 esac
11918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11919 as_fn_append ac_file_inputs " '$ac_f'"
11920 done
11921
11922 # Let's still pretend it is `configure' which instantiates (i.e., don't
11923 # use $as_me), people would be surprised to read:
11924 # /* config.h. Generated by config.status. */
11925 configure_input='Generated from '`
11926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11927 `' by configure.'
11928 if test x"$ac_file" != x-; then
11929 configure_input="$ac_file. $configure_input"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11931 $as_echo "$as_me: creating $ac_file" >&6;}
11932 fi
11933 # Neutralize special characters interpreted by sed in replacement strings.
11934 case $configure_input in #(
11935 *\&* | *\|* | *\\* )
11936 ac_sed_conf_input=`$as_echo "$configure_input" |
11937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11938 *) ac_sed_conf_input=$configure_input;;
11939 esac
11940
11941 case $ac_tag in
11942 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11944 esac
11945 ;;
11946 esac
11947
11948 ac_dir=`$as_dirname -- "$ac_file" ||
11949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11950 X"$ac_file" : 'X\(//\)[^/]' \| \
11951 X"$ac_file" : 'X\(//\)$' \| \
11952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11953 $as_echo X"$ac_file" |
11954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11955 s//\1/
11956 q
11957 }
11958 /^X\(\/\/\)[^/].*/{
11959 s//\1/
11960 q
11961 }
11962 /^X\(\/\/\)$/{
11963 s//\1/
11964 q
11965 }
11966 /^X\(\/\).*/{
11967 s//\1/
11968 q
11969 }
11970 s/.*/./; q'`
11971 as_dir="$ac_dir"; as_fn_mkdir_p
11972 ac_builddir=.
11973
11974 case "$ac_dir" in
11975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11976 *)
11977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11978 # A ".." for each directory in $ac_dir_suffix.
11979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11980 case $ac_top_builddir_sub in
11981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11983 esac ;;
11984 esac
11985 ac_abs_top_builddir=$ac_pwd
11986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11987 # for backward compatibility:
11988 ac_top_builddir=$ac_top_build_prefix
11989
11990 case $srcdir in
11991 .) # We are building in place.
11992 ac_srcdir=.
11993 ac_top_srcdir=$ac_top_builddir_sub
11994 ac_abs_top_srcdir=$ac_pwd ;;
11995 [\\/]* | ?:[\\/]* ) # Absolute name.
11996 ac_srcdir=$srcdir$ac_dir_suffix;
11997 ac_top_srcdir=$srcdir
11998 ac_abs_top_srcdir=$srcdir ;;
11999 *) # Relative name.
12000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12001 ac_top_srcdir=$ac_top_build_prefix$srcdir
12002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12003 esac
12004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12005
12006
12007 case $ac_mode in
12008 :F)
12009 #
12010 # CONFIG_FILE
12011 #
12012
12013 case $INSTALL in
12014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12016 esac
12017 ac_MKDIR_P=$MKDIR_P
12018 case $MKDIR_P in
12019 [\\/$]* | ?:[\\/]* ) ;;
12020 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12021 esac
12022 _ACEOF
12023
12024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12025 # If the template does not know about datarootdir, expand it.
12026 # FIXME: This hack should be removed a few years after 2.60.
12027 ac_datarootdir_hack=; ac_datarootdir_seen=
12028 ac_sed_dataroot='
12029 /datarootdir/ {
12030 p
12031 q
12032 }
12033 /@datadir@/p
12034 /@docdir@/p
12035 /@infodir@/p
12036 /@localedir@/p
12037 /@mandir@/p'
12038 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12039 *datarootdir*) ac_datarootdir_seen=yes;;
12040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12042 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12043 _ACEOF
12044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045 ac_datarootdir_hack='
12046 s&@datadir@&$datadir&g
12047 s&@docdir@&$docdir&g
12048 s&@infodir@&$infodir&g
12049 s&@localedir@&$localedir&g
12050 s&@mandir@&$mandir&g
12051 s&\\\${datarootdir}&$datarootdir&g' ;;
12052 esac
12053 _ACEOF
12054
12055 # Neutralize VPATH when `$srcdir' = `.'.
12056 # Shell code in configure.ac might set extrasub.
12057 # FIXME: do we really want to maintain this feature?
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 ac_sed_extra="$ac_vpsub
12060 $extrasub
12061 _ACEOF
12062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063 :t
12064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12065 s|@configure_input@|$ac_sed_conf_input|;t t
12066 s&@top_builddir@&$ac_top_builddir_sub&;t t
12067 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12068 s&@srcdir@&$ac_srcdir&;t t
12069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12070 s&@top_srcdir@&$ac_top_srcdir&;t t
12071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12072 s&@builddir@&$ac_builddir&;t t
12073 s&@abs_builddir@&$ac_abs_builddir&;t t
12074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12075 s&@INSTALL@&$ac_INSTALL&;t t
12076 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12077 $ac_datarootdir_hack
12078 "
12079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12081
12082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12087 which seems to be undefined. Please make sure it is defined" >&5
12088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12089 which seems to be undefined. Please make sure it is defined" >&2;}
12090
12091 rm -f "$ac_tmp/stdin"
12092 case $ac_file in
12093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12095 esac \
12096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12097 ;;
12098 :H)
12099 #
12100 # CONFIG_HEADER
12101 #
12102 if test x"$ac_file" != x-; then
12103 {
12104 $as_echo "/* $configure_input */" \
12105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12106 } >"$ac_tmp/config.h" \
12107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12111 else
12112 rm -f "$ac_file"
12113 mv "$ac_tmp/config.h" "$ac_file" \
12114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12115 fi
12116 else
12117 $as_echo "/* $configure_input */" \
12118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12119 || as_fn_error $? "could not create -" "$LINENO" 5
12120 fi
12121 # Compute "$ac_file"'s index in $config_headers.
12122 _am_arg="$ac_file"
12123 _am_stamp_count=1
12124 for _am_header in $config_headers :; do
12125 case $_am_header in
12126 $_am_arg | $_am_arg:* )
12127 break ;;
12128 * )
12129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12130 esac
12131 done
12132 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12133 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12134 X"$_am_arg" : 'X\(//\)[^/]' \| \
12135 X"$_am_arg" : 'X\(//\)$' \| \
12136 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12137 $as_echo X"$_am_arg" |
12138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12139 s//\1/
12140 q
12141 }
12142 /^X\(\/\/\)[^/].*/{
12143 s//\1/
12144 q
12145 }
12146 /^X\(\/\/\)$/{
12147 s//\1/
12148 q
12149 }
12150 /^X\(\/\).*/{
12151 s//\1/
12152 q
12153 }
12154 s/.*/./; q'`/stamp-h$_am_stamp_count
12155 ;;
12156
12157 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12158 $as_echo "$as_me: executing $ac_file commands" >&6;}
12159 ;;
12160 esac
12161
12162
12163 case $ac_file$ac_mode in
12164 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12165 # Older Autoconf quotes --file arguments for eval, but not when files
12166 # are listed without --file. Let's play safe and only enable the eval
12167 # if we detect the quoting.
12168 case $CONFIG_FILES in
12169 *\'*) eval set x "$CONFIG_FILES" ;;
12170 *) set x $CONFIG_FILES ;;
12171 esac
12172 shift
12173 for mf
12174 do
12175 # Strip MF so we end up with the name of the file.
12176 mf=`echo "$mf" | sed -e 's/:.*$//'`
12177 # Check whether this is an Automake generated Makefile or not.
12178 # We used to match only the files named 'Makefile.in', but
12179 # some people rename them; so instead we look at the file content.
12180 # Grep'ing the first line is not enough: some people post-process
12181 # each Makefile.in and add a new line on top of each file to say so.
12182 # Grep'ing the whole file is not good either: AIX grep has a line
12183 # limit of 2048, but all sed's we know have understand at least 4000.
12184 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12185 dirpart=`$as_dirname -- "$mf" ||
12186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12187 X"$mf" : 'X\(//\)[^/]' \| \
12188 X"$mf" : 'X\(//\)$' \| \
12189 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12190 $as_echo X"$mf" |
12191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12192 s//\1/
12193 q
12194 }
12195 /^X\(\/\/\)[^/].*/{
12196 s//\1/
12197 q
12198 }
12199 /^X\(\/\/\)$/{
12200 s//\1/
12201 q
12202 }
12203 /^X\(\/\).*/{
12204 s//\1/
12205 q
12206 }
12207 s/.*/./; q'`
12208 else
12209 continue
12210 fi
12211 # Extract the definition of DEPDIR, am__include, and am__quote
12212 # from the Makefile without running 'make'.
12213 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12214 test -z "$DEPDIR" && continue
12215 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12216 test -z "$am__include" && continue
12217 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12218 # Find all dependency output files, they are included files with
12219 # $(DEPDIR) in their names. We invoke sed twice because it is the
12220 # simplest approach to changing $(DEPDIR) to its actual value in the
12221 # expansion.
12222 for file in `sed -n "
12223 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12225 # Make sure the directory exists.
12226 test -f "$dirpart/$file" && continue
12227 fdir=`$as_dirname -- "$file" ||
12228 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12229 X"$file" : 'X\(//\)[^/]' \| \
12230 X"$file" : 'X\(//\)$' \| \
12231 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12232 $as_echo X"$file" |
12233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12234 s//\1/
12235 q
12236 }
12237 /^X\(\/\/\)[^/].*/{
12238 s//\1/
12239 q
12240 }
12241 /^X\(\/\/\)$/{
12242 s//\1/
12243 q
12244 }
12245 /^X\(\/\).*/{
12246 s//\1/
12247 q
12248 }
12249 s/.*/./; q'`
12250 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12251 # echo "creating $dirpart/$file"
12252 echo '# dummy' > "$dirpart/$file"
12253 done
12254 done
12255 }
12256 ;;
12257
12258 esac
12259 done # for ac_tag
12260
12261
12262 as_fn_exit 0
12263 _ACEOF
12264 ac_clean_files=$ac_clean_files_save
12265
12266 test $ac_write_fail = 0 ||
12267 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12268
12269
12270 # configure is writing to config.log, and then calls config.status.
12271 # config.status does its own redirection, appending to config.log.
12272 # Unfortunately, on DOS this fails, as config.log is still kept open
12273 # by configure, so config.status won't be able to write to it; its
12274 # output is simply discarded. So we exec the FD to /dev/null,
12275 # effectively closing config.log, so it can be properly (re)opened and
12276 # appended to by config.status. When coming back to configure, we
12277 # need to make the FD available again.
12278 if test "$no_create" != yes; then
12279 ac_cs_success=:
12280 ac_config_status_args=
12281 test "$silent" = yes &&
12282 ac_config_status_args="$ac_config_status_args --quiet"
12283 exec 5>/dev/null
12284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12285 exec 5>>config.log
12286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12287 # would make configure fail if this is the last instruction.
12288 $ac_cs_success || as_fn_exit 1
12289 fi
12290 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12292 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12293 fi
12294
This page took 0.460325 seconds and 4 git commands to generate.