Require kinfo_get_file and kinfo_get_vmmap for FreeBSD hosts.
[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 WERROR_CFLAGS
628 WARN_CFLAGS
629 SELFTEST_FALSE
630 SELFTEST_TRUE
631 LTLIBIPT
632 LIBIPT
633 HAVE_LIBIPT
634 PTHREAD_CFLAGS
635 PTHREAD_LIBS
636 PTHREAD_CC
637 ax_pthread_config
638 SED
639 ALLOCA
640 CATOBJEXT
641 GENCAT
642 INSTOBJEXT
643 DATADIRNAME
644 CATALOGS
645 POSUB
646 GMSGFMT
647 XGETTEXT
648 INCINTL
649 LIBINTL_DEP
650 LIBINTL
651 USE_NLS
652 CXX_DIALECT
653 HAVE_CXX11
654 LARGEFILE_CPPFLAGS
655 EGREP
656 GREP
657 CPP
658 RANLIB
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 target_os
713 target_vendor
714 target_cpu
715 target
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_maintainer_mode
766 enable_silent_rules
767 enable_dependency_tracking
768 enable_plugins
769 enable_largefile
770 with_intel_pt
771 with_gnu_ld
772 enable_rpath
773 with_libipt_prefix
774 with_libipt_type
775 enable_unit_tests
776 enable_werror
777 enable_build_warnings
778 enable_gdb_build_warnings
779 '
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CXX
789 CXXFLAGS
790 CCC
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
851 fi
852
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
858
859 # Accept the important Cygnus configure options, so we can diagnose typos.
860
861 case $ac_dashdash$ac_option in
862 --)
863 ac_dashdash=yes ;;
864
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
869
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
874
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
881
882 --config-cache | -C)
883 cache_file=config.cache ;;
884
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
889
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
896
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
922
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
938
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
947
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
951
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
958
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
963
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
969
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
976
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
981
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
986
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
993
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
998
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1005
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1010
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1014
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1018
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1022
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1031
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1036
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1043
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1050
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1067
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1072
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1077
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1081
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1087
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1098
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1103
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1108
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1115
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1120
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1123
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1126
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1142
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 ;;
1198
1199 esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1220 do
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1386
1387 cat <<\_ACEOF
1388
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --enable-plugins Enable support for plugins
1421 --disable-largefile omit support for large files
1422 --disable-rpath do not hardcode runtime library paths
1423 --enable-unit-tests Enable the inclusion of unit tests when compiling
1424 GDB
1425 --enable-werror treat compile warnings as errors
1426 --enable-build-warnings enable build-time compiler warnings if gcc is used
1427 --enable-gdb-build-warnings
1428 enable GDB specific build-time compiler warnings if
1429 gcc is used
1430
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1435 --with-gnu-ld assume the C compiler uses GNU ld default=no
1436 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1437 --without-libipt-prefix don't search for libipt in includedir and libdir
1438 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1439
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 CPP C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to the package provider.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 gdbsupport configure 1.0
1519 generated by GNU Autoconf 2.69
1520
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1526 fi
1527
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1531
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568 } # ac_fn_c_try_compile
1569
1570 # ac_fn_cxx_try_compile LINENO
1571 # ----------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_cxx_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_cxx_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_cxx_try_compile
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1649 # accordingly.
1650 ac_fn_c_check_header_mongrel ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 else
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673 else
1674 ac_header_compiler=no
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1679
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689 else
1690 ac_header_preproc=no
1691 fi
1692 rm -f conftest.err conftest.i conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1695
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716 esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 eval "$3=\$ac_header_compiler"
1723 fi
1724 eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_mongrel
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767 fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793 else
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_header_compile
1804
1805 # ac_fn_c_try_link LINENO
1806 # -----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_link ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 test -x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840 fi
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_link
1850
1851 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852 # -------------------------------------------
1853 # Tests whether TYPE exists after having included INCLUDES, setting cache
1854 # variable VAR accordingly.
1855 ac_fn_c_check_type ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 eval "$3=no"
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main ()
1882 {
1883 if (sizeof (($2)))
1884 return 0;
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890
1891 else
1892 eval "$3=yes"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_type
1904
1905 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1906 # --------------------------------------------
1907 # Tries to find the compile-time value of EXPR in a program that includes
1908 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1909 # computed
1910 ac_fn_c_compute_int ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if test "$cross_compiling" = yes; then
1914 # Depending upon the size, compute the lo and hi bounds.
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 int
1919 main ()
1920 {
1921 static int test_array [1 - 2 * !(($2) >= 0)];
1922 test_array [0] = 0;
1923 return test_array [0];
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_lo=0 ac_mid=0
1931 while :; do
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1939 test_array [0] = 0;
1940 return test_array [0];
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_hi=$ac_mid; break
1948 else
1949 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1950 if test $ac_lo -le $ac_mid; then
1951 ac_lo= ac_hi=
1952 break
1953 fi
1954 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 done
1958 else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 int
1963 main ()
1964 {
1965 static int test_array [1 - 2 * !(($2) < 0)];
1966 test_array [0] = 0;
1967 return test_array [0];
1968
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_hi=-1 ac_mid=-1
1975 while :; do
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main ()
1981 {
1982 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1983 test_array [0] = 0;
1984 return test_array [0];
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=$ac_mid; break
1992 else
1993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1994 if test $ac_mid -le $ac_hi; then
1995 ac_lo= ac_hi=
1996 break
1997 fi
1998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 done
2002 else
2003 ac_lo= ac_hi=
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 # Binary search between lo and hi bounds.
2009 while test "x$ac_lo" != "x$ac_hi"; do
2010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $4
2014 int
2015 main ()
2016 {
2017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2018 test_array [0] = 0;
2019 return test_array [0];
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid
2027 else
2028 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 done
2032 case $ac_lo in #((
2033 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2034 '') ac_retval=1 ;;
2035 esac
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 static long int longval () { return $2; }
2041 static unsigned long int ulongval () { return $2; }
2042 #include <stdio.h>
2043 #include <stdlib.h>
2044 int
2045 main ()
2046 {
2047
2048 FILE *f = fopen ("conftest.val", "w");
2049 if (! f)
2050 return 1;
2051 if (($2) < 0)
2052 {
2053 long int i = longval ();
2054 if (i != ($2))
2055 return 1;
2056 fprintf (f, "%ld", i);
2057 }
2058 else
2059 {
2060 unsigned long int i = ulongval ();
2061 if (i != ($2))
2062 return 1;
2063 fprintf (f, "%lu", i);
2064 }
2065 /* Do not output a trailing newline, as this causes \r\n confusion
2066 on some platforms. */
2067 return ferror (f) || fclose (f) != 0;
2068
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_run "$LINENO"; then :
2074 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2075 else
2076 ac_retval=1
2077 fi
2078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2079 conftest.$ac_objext conftest.beam conftest.$ac_ext
2080 rm -f conftest.val
2081
2082 fi
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status $ac_retval
2085
2086 } # ac_fn_c_compute_int
2087
2088 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089 # ---------------------------------------------
2090 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_decl ()
2093 {
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 as_decl_name=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main ()
2107 {
2108 #ifndef $as_decl_name
2109 #ifdef __cplusplus
2110 (void) $as_decl_use;
2111 #else
2112 (void) $as_decl_name;
2113 #endif
2114 #endif
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_decl
2133
2134 # ac_fn_c_check_func LINENO FUNC VAR
2135 # ----------------------------------
2136 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2137 ac_fn_c_check_func ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149 #define $2 innocuous_$2
2150
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below.
2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2154 <limits.h> exists even on freestanding compilers. */
2155
2156 #ifdef __STDC__
2157 # include <limits.h>
2158 #else
2159 # include <assert.h>
2160 #endif
2161
2162 #undef $2
2163
2164 /* Override any GCC internal prototype to avoid an error.
2165 Use char because int might match the return type of a GCC
2166 builtin and then its argument prototype would still apply. */
2167 #ifdef __cplusplus
2168 extern "C"
2169 #endif
2170 char $2 ();
2171 /* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174 #if defined __stub_$2 || defined __stub___$2
2175 choke me
2176 #endif
2177
2178 int
2179 main ()
2180 {
2181 return $2 ();
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_link "$LINENO"; then :
2187 eval "$3=yes"
2188 else
2189 eval "$3=no"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext \
2192 conftest$ac_exeext conftest.$ac_ext
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199 } # ac_fn_c_check_func
2200
2201 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2202 # ----------------------------------------------------
2203 # Tries to find if the field MEMBER exists in type AGGR, after including
2204 # INCLUDES, setting cache variable VAR accordingly.
2205 ac_fn_c_check_member ()
2206 {
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2209 $as_echo_n "checking for $2.$3... " >&6; }
2210 if eval \${$4+:} false; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $5
2216 int
2217 main ()
2218 {
2219 static $2 ac_aggr;
2220 if (ac_aggr.$3)
2221 return 0;
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 eval "$4=yes"
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $5
2232 int
2233 main ()
2234 {
2235 static $2 ac_aggr;
2236 if (sizeof ac_aggr.$3)
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$4=yes"
2244 else
2245 eval "$4=no"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$4
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256 } # ac_fn_c_check_member
2257
2258 # ac_fn_cxx_try_link LINENO
2259 # -------------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_link ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 rm -f conftest.$ac_objext conftest$ac_exeext
2265 if { { ac_try="$ac_link"
2266 case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest$ac_exeext && {
2284 test "$cross_compiling" = yes ||
2285 test -x conftest$ac_exeext
2286 }; then :
2287 ac_retval=0
2288 else
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 ac_retval=1
2293 fi
2294 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2295 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2296 # interfere with the next link command; also delete a directory that is
2297 # left behind by Apple's compiler. We do this before executing the actions.
2298 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 as_fn_set_status $ac_retval
2301
2302 } # ac_fn_cxx_try_link
2303
2304 # ac_fn_cxx_check_func LINENO FUNC VAR
2305 # ------------------------------------
2306 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2307 ac_fn_cxx_check_func ()
2308 {
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2319 #define $2 innocuous_$2
2320
2321 /* System header to define __stub macros and hopefully few prototypes,
2322 which can conflict with char $2 (); below.
2323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 <limits.h> exists even on freestanding compilers. */
2325
2326 #ifdef __STDC__
2327 # include <limits.h>
2328 #else
2329 # include <assert.h>
2330 #endif
2331
2332 #undef $2
2333
2334 /* Override any GCC internal prototype to avoid an error.
2335 Use char because int might match the return type of a GCC
2336 builtin and then its argument prototype would still apply. */
2337 #ifdef __cplusplus
2338 extern "C"
2339 #endif
2340 char $2 ();
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined __stub_$2 || defined __stub___$2
2345 choke me
2346 #endif
2347
2348 int
2349 main ()
2350 {
2351 return $2 ();
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_cxx_try_link "$LINENO"; then :
2357 eval "$3=yes"
2358 else
2359 eval "$3=no"
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext \
2362 conftest$ac_exeext conftest.$ac_ext
2363 fi
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369 } # ac_fn_cxx_check_func
2370 cat >config.log <<_ACEOF
2371 This file contains any messages produced by compilers while
2372 running configure, to aid debugging if configure makes a mistake.
2373
2374 It was created by gdbsupport $as_me 1.0, which was
2375 generated by GNU Autoconf 2.69. Invocation command line was
2376
2377 $ $0 $@
2378
2379 _ACEOF
2380 exec 5>>config.log
2381 {
2382 cat <<_ASUNAME
2383 ## --------- ##
2384 ## Platform. ##
2385 ## --------- ##
2386
2387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392
2393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395
2396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403
2404 _ASUNAME
2405
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 $as_echo "PATH: $as_dir"
2412 done
2413 IFS=$as_save_IFS
2414
2415 } >&5
2416
2417 cat >&5 <<_ACEOF
2418
2419
2420 ## ----------- ##
2421 ## Core tests. ##
2422 ## ----------- ##
2423
2424 _ACEOF
2425
2426
2427 # Keep a trace of the command line.
2428 # Strip out --no-create and --no-recursion so they do not pile up.
2429 # Strip out --silent because we don't want to record it for future runs.
2430 # Also quote any args containing shell meta-characters.
2431 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_configure_args=
2433 ac_configure_args0=
2434 ac_configure_args1=
2435 ac_must_keep_next=false
2436 for ac_pass in 1 2
2437 do
2438 for ac_arg
2439 do
2440 case $ac_arg in
2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443 | -silent | --silent | --silen | --sile | --sil)
2444 continue ;;
2445 *\'*)
2446 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2447 esac
2448 case $ac_pass in
2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2450 2)
2451 as_fn_append ac_configure_args1 " '$ac_arg'"
2452 if test $ac_must_keep_next = true; then
2453 ac_must_keep_next=false # Got value, back to normal.
2454 else
2455 case $ac_arg in
2456 *=* | --config-cache | -C | -disable-* | --disable-* \
2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2459 | -with-* | --with-* | -without-* | --without-* | --x)
2460 case "$ac_configure_args0 " in
2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2462 esac
2463 ;;
2464 -* ) ac_must_keep_next=true ;;
2465 esac
2466 fi
2467 as_fn_append ac_configure_args " '$ac_arg'"
2468 ;;
2469 esac
2470 done
2471 done
2472 { ac_configure_args0=; unset ac_configure_args0;}
2473 { ac_configure_args1=; unset ac_configure_args1;}
2474
2475 # When interrupted or exit'd, cleanup temporary files, and complete
2476 # config.log. We remove comments because anyway the quotes in there
2477 # would cause problems or look ugly.
2478 # WARNING: Use '\'' to represent an apostrophe within the trap.
2479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2480 trap 'exit_status=$?
2481 # Save into config.log some information that might help in debugging.
2482 {
2483 echo
2484
2485 $as_echo "## ---------------- ##
2486 ## Cache variables. ##
2487 ## ---------------- ##"
2488 echo
2489 # The following way of writing the cache mishandles newlines in values,
2490 (
2491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in #(
2494 *${as_nl}*)
2495 case $ac_var in #(
2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2498 esac
2499 case $ac_var in #(
2500 _ | IFS | as_nl) ;; #(
2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2502 *) { eval $ac_var=; unset $ac_var;} ;;
2503 esac ;;
2504 esac
2505 done
2506 (set) 2>&1 |
2507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2508 *${as_nl}ac_space=\ *)
2509 sed -n \
2510 "s/'\''/'\''\\\\'\'''\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2512 ;; #(
2513 *)
2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2515 ;;
2516 esac |
2517 sort
2518 )
2519 echo
2520
2521 $as_echo "## ----------------- ##
2522 ## Output variables. ##
2523 ## ----------------- ##"
2524 echo
2525 for ac_var in $ac_subst_vars
2526 do
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
2532 done | sort
2533 echo
2534
2535 if test -n "$ac_subst_files"; then
2536 $as_echo "## ------------------- ##
2537 ## File substitutions. ##
2538 ## ------------------- ##"
2539 echo
2540 for ac_var in $ac_subst_files
2541 do
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2549 fi
2550
2551 if test -s confdefs.h; then
2552 $as_echo "## ----------- ##
2553 ## confdefs.h. ##
2554 ## ----------- ##"
2555 echo
2556 cat confdefs.h
2557 echo
2558 fi
2559 test "$ac_signal" != 0 &&
2560 $as_echo "$as_me: caught signal $ac_signal"
2561 $as_echo "$as_me: exit $exit_status"
2562 } >&5
2563 rm -f core *.core core.conftest.* &&
2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2565 exit $exit_status
2566 ' 0
2567 for ac_signal in 1 2 13 15; do
2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 done
2570 ac_signal=0
2571
2572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2573 rm -f -r conftest* confdefs.h
2574
2575 $as_echo "/* confdefs.h */" > confdefs.h
2576
2577 # Predefined preprocessor variables.
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_NAME "$PACKAGE_NAME"
2581 _ACEOF
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585 _ACEOF
2586
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2589 _ACEOF
2590
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_STRING "$PACKAGE_STRING"
2593 _ACEOF
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597 _ACEOF
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_URL "$PACKAGE_URL"
2601 _ACEOF
2602
2603
2604 # Let the site file select an alternate cache file if it wants to.
2605 # Prefer an explicitly selected file to automatically selected ones.
2606 ac_site_file1=NONE
2607 ac_site_file2=NONE
2608 if test -n "$CONFIG_SITE"; then
2609 # We do not want a PATH search for config.site.
2610 case $CONFIG_SITE in #((
2611 -*) ac_site_file1=./$CONFIG_SITE;;
2612 */*) ac_site_file1=$CONFIG_SITE;;
2613 *) ac_site_file1=./$CONFIG_SITE;;
2614 esac
2615 elif test "x$prefix" != xNONE; then
2616 ac_site_file1=$prefix/share/config.site
2617 ac_site_file2=$prefix/etc/config.site
2618 else
2619 ac_site_file1=$ac_default_prefix/share/config.site
2620 ac_site_file2=$ac_default_prefix/etc/config.site
2621 fi
2622 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623 do
2624 test "x$ac_site_file" = xNONE && continue
2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2627 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2628 sed 's/^/| /' "$ac_site_file" >&5
2629 . "$ac_site_file" \
2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 as_fn_error $? "failed to load site script $ac_site_file
2633 See \`config.log' for more details" "$LINENO" 5; }
2634 fi
2635 done
2636
2637 if test -r "$cache_file"; then
2638 # Some versions of bash will fail to source /dev/null (special files
2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2642 $as_echo "$as_me: loading cache $cache_file" >&6;}
2643 case $cache_file in
2644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2645 *) . "./$cache_file";;
2646 esac
2647 fi
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2650 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 >$cache_file
2652 fi
2653
2654 as_fn_append ac_header_list " stdlib.h"
2655 as_fn_append ac_header_list " unistd.h"
2656 as_fn_append ac_header_list " sys/param.h"
2657 # Check that the precious variables saved in the cache have kept the same
2658 # value.
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2666 set,)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,set)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 esac
2705 fi
2706 done
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713 fi
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
2726
2727
2728
2729 ac_config_headers="$ac_config_headers config.h:config.in"
2730
2731 ac_aux_dir=
2732 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2733 if test -f "$ac_dir/install-sh"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/install-sh -c"
2736 break
2737 elif test -f "$ac_dir/install.sh"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/install.sh -c"
2740 break
2741 elif test -f "$ac_dir/shtool"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/shtool install -c"
2744 break
2745 fi
2746 done
2747 if test -z "$ac_aux_dir"; then
2748 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2749 fi
2750
2751 # These three variables are undocumented and unsupported,
2752 # and are intended to be withdrawn in a future Autoconf release.
2753 # They can cause serious problems if a builder's source tree is in a directory
2754 # whose full name contains unusual characters.
2755 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2756 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2757 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2758
2759
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if ${ac_cv_build+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776
2777 fi
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2783 esac
2784 build=$ac_cv_build
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_build
2787 shift
2788 build_cpu=$1
2789 build_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 build_os=$*
2794 IFS=$ac_save_IFS
2795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2796
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if ${ac_cv_host+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test "x$host_alias" = x; then
2804 ac_cv_host=$ac_cv_build
2805 else
2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 fi
2809
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2813 case $ac_cv_host in
2814 *-*-*) ;;
2815 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2816 esac
2817 host=$ac_cv_host
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_host
2820 shift
2821 host_cpu=$1
2822 host_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 host_os=$*
2827 IFS=$ac_save_IFS
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2832 $as_echo_n "checking target system type... " >&6; }
2833 if ${ac_cv_target+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test "x$target_alias" = x; then
2837 ac_cv_target=$ac_cv_host
2838 else
2839 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2841 fi
2842
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2845 $as_echo "$ac_cv_target" >&6; }
2846 case $ac_cv_target in
2847 *-*-*) ;;
2848 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2849 esac
2850 target=$ac_cv_target
2851 ac_save_IFS=$IFS; IFS='-'
2852 set x $ac_cv_target
2853 shift
2854 target_cpu=$1
2855 target_vendor=$2
2856 shift; shift
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2859 target_os=$*
2860 IFS=$ac_save_IFS
2861 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2862
2863
2864 # The aliases save the names the user supplied, while $host etc.
2865 # will get canonicalized.
2866 test -n "$target_alias" &&
2867 test "$program_prefix$program_suffix$program_transform_name" = \
2868 NONENONEs,x,x, &&
2869 program_prefix=${target_alias}-
2870
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2873 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2874 # Check whether --enable-maintainer-mode was given.
2875 if test "${enable_maintainer_mode+set}" = set; then :
2876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2877 else
2878 USE_MAINTAINER_MODE=no
2879 fi
2880
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2882 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2883 if test $USE_MAINTAINER_MODE = yes; then
2884 MAINTAINER_MODE_TRUE=
2885 MAINTAINER_MODE_FALSE='#'
2886 else
2887 MAINTAINER_MODE_TRUE='#'
2888 MAINTAINER_MODE_FALSE=
2889 fi
2890
2891 MAINT=$MAINTAINER_MODE_TRUE
2892
2893
2894 ac_aux_dir=
2895 for ac_dir in .. "$srcdir"/..; do
2896 if test -f "$ac_dir/install-sh"; then
2897 ac_aux_dir=$ac_dir
2898 ac_install_sh="$ac_aux_dir/install-sh -c"
2899 break
2900 elif test -f "$ac_dir/install.sh"; then
2901 ac_aux_dir=$ac_dir
2902 ac_install_sh="$ac_aux_dir/install.sh -c"
2903 break
2904 elif test -f "$ac_dir/shtool"; then
2905 ac_aux_dir=$ac_dir
2906 ac_install_sh="$ac_aux_dir/shtool install -c"
2907 break
2908 fi
2909 done
2910 if test -z "$ac_aux_dir"; then
2911 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2912 fi
2913
2914 # These three variables are undocumented and unsupported,
2915 # and are intended to be withdrawn in a future Autoconf release.
2916 # They can cause serious problems if a builder's source tree is in a directory
2917 # whose full name contains unusual characters.
2918 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2919 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2920 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2921
2922
2923 am__api_version='1.15'
2924
2925 # Find a good install program. We prefer a C program (faster),
2926 # so one script is as good as another. But avoid the broken or
2927 # incompatible versions:
2928 # SysV /etc/install, /usr/sbin/install
2929 # SunOS /usr/etc/install
2930 # IRIX /sbin/install
2931 # AIX /bin/install
2932 # AmigaOS /C/install, which installs bootblocks on floppy discs
2933 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2934 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2935 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2936 # OS/2's system install, which has a completely different semantic
2937 # ./install, which can be erroneously created by make from ./install.sh.
2938 # Reject install programs that cannot install multiple files.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2940 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2941 if test -z "$INSTALL"; then
2942 if ${ac_cv_path_install+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 # Account for people who put trailing slashes in PATH elements.
2951 case $as_dir/ in #((
2952 ./ | .// | /[cC]/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2955 /usr/ucb/* ) ;;
2956 *)
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2959 # by default.
2960 for ac_prog in ginstall scoinst install; do
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2963 if test $ac_prog = install &&
2964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2966 :
2967 elif test $ac_prog = install &&
2968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2970 :
2971 else
2972 rm -rf conftest.one conftest.two conftest.dir
2973 echo one > conftest.one
2974 echo two > conftest.two
2975 mkdir conftest.dir
2976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2977 test -s conftest.one && test -s conftest.two &&
2978 test -s conftest.dir/conftest.one &&
2979 test -s conftest.dir/conftest.two
2980 then
2981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2982 break 3
2983 fi
2984 fi
2985 fi
2986 done
2987 done
2988 ;;
2989 esac
2990
2991 done
2992 IFS=$as_save_IFS
2993
2994 rm -rf conftest.one conftest.two conftest.dir
2995
2996 fi
2997 if test "${ac_cv_path_install+set}" = set; then
2998 INSTALL=$ac_cv_path_install
2999 else
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for INSTALL within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 INSTALL=$ac_install_sh
3005 fi
3006 fi
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3008 $as_echo "$INSTALL" >&6; }
3009
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3013
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3015
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3017
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3019 $as_echo_n "checking whether build environment is sane... " >&6; }
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3022 am_lf='
3023 '
3024 case `pwd` in
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3027 esac
3028 case $srcdir in
3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3031 esac
3032
3033 # Do 'set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3037 # directory).
3038 if (
3039 am_has_slept=no
3040 for am_try in 1 2; do
3041 echo "timestamp, slept: $am_has_slept" > conftest.file
3042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3043 if test "$*" = "X"; then
3044 # -L didn't work.
3045 set X `ls -t "$srcdir/configure" conftest.file`
3046 fi
3047 if test "$*" != "X $srcdir/configure conftest.file" \
3048 && test "$*" != "X conftest.file $srcdir/configure"; then
3049
3050 # If neither matched, then we have a broken ls. This can happen
3051 # if, for instance, CONFIG_SHELL is bash and it inherits a
3052 # broken ls alias from the environment. This has actually
3053 # happened. Such a system could not be considered "sane".
3054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3055 alias in your environment" "$LINENO" 5
3056 fi
3057 if test "$2" = conftest.file || test $am_try -eq 2; then
3058 break
3059 fi
3060 # Just in case.
3061 sleep 1
3062 am_has_slept=yes
3063 done
3064 test "$2" = conftest.file
3065 )
3066 then
3067 # Ok.
3068 :
3069 else
3070 as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 # If we didn't sleep, we still need to ensure time stamps of config.status and
3076 # generated files are strictly newer.
3077 am_sleep_pid=
3078 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3079 ( sleep 1 ) &
3080 am_sleep_pid=$!
3081 fi
3082
3083 rm -f conftest.file
3084
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3094
3095 # Expand $ac_aux_dir to an absolute path.
3096 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3097
3098 if test x"${MISSING+set}" != xset; then
3099 case $am_aux_dir in
3100 *\ * | *\ *)
3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3102 *)
3103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3104 esac
3105 fi
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --is-lightweight"; then
3108 am_missing_run="$MISSING "
3109 else
3110 am_missing_run=
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3113 fi
3114
3115 if test x"${install_sh+set}" != xset; then
3116 case $am_aux_dir in
3117 *\ * | *\ *)
3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3119 *)
3120 install_sh="\${SHELL} $am_aux_dir/install-sh"
3121 esac
3122 fi
3123
3124 # Installed binaries are usually stripped using 'strip' when the user
3125 # run "make install-strip". However 'strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the 'STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_STRIP+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 fi
3168 if test -z "$ac_cv_prog_STRIP"; then
3169 ac_ct_STRIP=$STRIP
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_STRIP="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206 if test "x$ac_ct_STRIP" = x; then
3207 STRIP=":"
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 STRIP=$ac_ct_STRIP
3216 fi
3217 else
3218 STRIP="$ac_cv_prog_STRIP"
3219 fi
3220
3221 fi
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if ${ac_cv_path_mkdir+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in mkdir gmkdir; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3243 break 3;;
3244 esac
3245 done
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251
3252 test -d ./--version && rmdir ./--version
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3255 else
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 MKDIR_P="$ac_install_sh -d"
3261 fi
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3265
3266 for ac_prog in gawk mawk nawk awk
3267 do
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_AWK+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_AWK="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 AWK=$ac_cv_prog_AWK
3296 if test -n "$AWK"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3298 $as_echo "$AWK" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 test -n "$AWK" && break
3306 done
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3310 set x ${MAKE-make}
3311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3312 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat >conftest.make <<\_ACEOF
3316 SHELL = /bin/sh
3317 all:
3318 @echo '@@@%%%=$(MAKE)=@@@%%%'
3319 _ACEOF
3320 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3322 *@@@%%%=?*=@@@%%%*)
3323 eval ac_cv_prog_make_${ac_make}_set=yes;;
3324 *)
3325 eval ac_cv_prog_make_${ac_make}_set=no;;
3326 esac
3327 rm -f conftest.make
3328 fi
3329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332 SET_MAKE=
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 SET_MAKE="MAKE=${MAKE-make}"
3337 fi
3338
3339 rm -rf .tst 2>/dev/null
3340 mkdir .tst 2>/dev/null
3341 if test -d .tst; then
3342 am__leading_dot=.
3343 else
3344 am__leading_dot=_
3345 fi
3346 rmdir .tst 2>/dev/null
3347
3348 # Check whether --enable-silent-rules was given.
3349 if test "${enable_silent_rules+set}" = set; then :
3350 enableval=$enable_silent_rules;
3351 fi
3352
3353 case $enable_silent_rules in # (((
3354 yes) AM_DEFAULT_VERBOSITY=0;;
3355 no) AM_DEFAULT_VERBOSITY=1;;
3356 *) AM_DEFAULT_VERBOSITY=1;;
3357 esac
3358 am_make=${MAKE-make}
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3360 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3361 if ${am_cv_make_support_nested_variables+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if $as_echo 'TRUE=$(BAR$(V))
3365 BAR0=false
3366 BAR1=true
3367 V=1
3368 am__doit:
3369 @$(TRUE)
3370 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3371 am_cv_make_support_nested_variables=yes
3372 else
3373 am_cv_make_support_nested_variables=no
3374 fi
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3377 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3378 if test $am_cv_make_support_nested_variables = yes; then
3379 AM_V='$(V)'
3380 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3381 else
3382 AM_V=$AM_DEFAULT_VERBOSITY
3383 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3384 fi
3385 AM_BACKSLASH='\'
3386
3387 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3388 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3389 # is not polluted with repeated "-I."
3390 am__isrc=' -I$(srcdir)'
3391 # test to see if srcdir already configured
3392 if test -f $srcdir/config.status; then
3393 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3394 fi
3395 fi
3396
3397 # test whether we have cygpath
3398 if test -z "$CYGPATH_W"; then
3399 if (cygpath --version) >/dev/null 2>/dev/null; then
3400 CYGPATH_W='cygpath -w'
3401 else
3402 CYGPATH_W=echo
3403 fi
3404 fi
3405
3406
3407 # Define the identity of the package.
3408 PACKAGE='gdbsupport'
3409 VERSION='1.0'
3410
3411
3412 cat >>confdefs.h <<_ACEOF
3413 #define PACKAGE "$PACKAGE"
3414 _ACEOF
3415
3416
3417 cat >>confdefs.h <<_ACEOF
3418 #define VERSION "$VERSION"
3419 _ACEOF
3420
3421 # Some tools Automake needs.
3422
3423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3424
3425
3426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3427
3428
3429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3430
3431
3432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3433
3434
3435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3436
3437 # For better backward compatibility. To be removed once Automake 1.9.x
3438 # dies out for good. For more background, see:
3439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3441 mkdir_p='$(MKDIR_P)'
3442
3443 # We need awk for the "check" target (and possibly the TAP driver). The
3444 # system "awk" is bad on some platforms.
3445 # Always define AMTAR for backward compatibility. Yes, it's still used
3446 # in the wild :-( We should find a proper way to deprecate it ...
3447 AMTAR='$${TAR-tar}'
3448
3449
3450 # We'll loop over all known methods to create a tar archive until one works.
3451 _am_tools='gnutar pax cpio none'
3452
3453 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3454
3455
3456
3457
3458
3459
3460 # POSIX will say in a future version that running "rm -f" with no argument
3461 # is OK; and we want to be able to make that assumption in our Makefile
3462 # recipes. So use an aggressive probe to check that the usage we want is
3463 # actually supported "in the wild" to an acceptable degree.
3464 # See automake bug#10828.
3465 # To make any issue more visible, cause the running configure to be aborted
3466 # by default if the 'rm' program in use doesn't match our expectations; the
3467 # user can still override this though.
3468 if rm -f && rm -fr && rm -rf; then : OK; else
3469 cat >&2 <<'END'
3470 Oops!
3471
3472 Your 'rm' program seems unable to run without file operands specified
3473 on the command line, even when the '-f' option is present. This is contrary
3474 to the behaviour of most rm programs out there, and not conforming with
3475 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3476
3477 Please tell bug-automake@gnu.org about your system, including the value
3478 of your $PATH and any error possibly output before this message. This
3479 can help us improve future automake versions.
3480
3481 END
3482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3483 echo 'Configuration will proceed anyway, since you have set the' >&2
3484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3485 echo >&2
3486 else
3487 cat >&2 <<'END'
3488 Aborting the configuration process, to ensure you take notice of the issue.
3489
3490 You can download and install GNU coreutils to get an 'rm' implementation
3491 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3492
3493 If you want to complete the configuration process using your problematic
3494 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3495 to "yes", and re-run configure.
3496
3497 END
3498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3499 fi
3500 fi
3501
3502 # Check whether --enable-silent-rules was given.
3503 if test "${enable_silent_rules+set}" = set; then :
3504 enableval=$enable_silent_rules;
3505 fi
3506
3507 case $enable_silent_rules in # (((
3508 yes) AM_DEFAULT_VERBOSITY=0;;
3509 no) AM_DEFAULT_VERBOSITY=1;;
3510 *) AM_DEFAULT_VERBOSITY=0;;
3511 esac
3512 am_make=${MAKE-make}
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3514 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3515 if ${am_cv_make_support_nested_variables+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if $as_echo 'TRUE=$(BAR$(V))
3519 BAR0=false
3520 BAR1=true
3521 V=1
3522 am__doit:
3523 @$(TRUE)
3524 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3525 am_cv_make_support_nested_variables=yes
3526 else
3527 am_cv_make_support_nested_variables=no
3528 fi
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3531 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3532 if test $am_cv_make_support_nested_variables = yes; then
3533 AM_V='$(V)'
3534 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3535 else
3536 AM_V=$AM_DEFAULT_VERBOSITY
3537 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3538 fi
3539 AM_BACKSLASH='\'
3540
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585 fi
3586 if test -z "$ac_cv_prog_CC"; then
3587 ac_ct_CC=$CC
3588 # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_CC="gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624 if test "x$ac_ct_CC" = x; then
3625 CC=""
3626 else
3627 case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633 CC=$ac_ct_CC
3634 fi
3635 else
3636 CC="$ac_cv_prog_CC"
3637 fi
3638
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC="${ac_tool_prefix}cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 fi
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 ac_prog_rejected=no
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700 ac_prog_rejected=yes
3701 continue
3702 fi
3703 ac_cv_prog_CC="cc"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707 done
3708 done
3709 IFS=$as_save_IFS
3710
3711 if test $ac_prog_rejected = yes; then
3712 # We found a bogon in the path, so make sure we never use it.
3713 set dummy $ac_cv_prog_CC
3714 shift
3715 if test $# != 0; then
3716 # We chose a different compiler from the bogus one.
3717 # However, it has the same basename, so the bogon will be chosen
3718 # first if we set CC to just the basename; use the full file name.
3719 shift
3720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3721 fi
3722 fi
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735 fi
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in cl.exe
3739 do
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 test -n "$CC" && break
3778 done
3779 fi
3780 if test -z "$CC"; then
3781 ac_ct_CC=$CC
3782 for ac_prog in cl.exe
3783 do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CC="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 test -n "$ac_ct_CC" && break
3822 done
3823
3824 if test "x$ac_ct_CC" = x; then
3825 CC=""
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 CC=$ac_ct_CC
3834 fi
3835 fi
3836
3837 fi
3838
3839
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details" "$LINENO" 5; }
3844
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3847 set X $ac_compile
3848 ac_compiler=$2
3849 for ac_option in --version -v -V -qversion; do
3850 { { ac_try="$ac_compiler $ac_option >&5"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858 ac_status=$?
3859 if test -s conftest.err; then
3860 sed '10a\
3861 ... rest of stderr output deleted ...
3862 10q' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3864 fi
3865 rm -f conftest.er1 conftest.err
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3868 done
3869
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3885 # of exeext.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892
3893 ac_rmfiles=
3894 for ac_file in $ac_files
3895 do
3896 case $ac_file in
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3899 esac
3900 done
3901 rm -f $ac_rmfiles
3902
3903 if { { ac_try="$ac_link_default"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3918 # Autoconf.
3919 for ac_file in $ac_files ''
3920 do
3921 test -f "$ac_file" || continue
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3924 ;;
3925 [ab].out )
3926 # We found the default executable, but exeext='' is most
3927 # certainly right.
3928 break;;
3929 *.* )
3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3931 then :; else
3932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 fi
3934 # We set ac_cv_exeext here because the later test for it is not
3935 # safe: cross compilers may not add the suffix if given an `-o'
3936 # argument, so we may need to know it at that point already.
3937 # Even if this section looks crufty: it has the advantage of
3938 # actually working.
3939 break;;
3940 * )
3941 break;;
3942 esac
3943 done
3944 test "$ac_cv_exeext" = no && ac_cv_exeext=
3945
3946 else
3947 ac_file=''
3948 fi
3949 if test -z "$ac_file"; then :
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error 77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext=$ac_cv_exeext
3968
3969 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3970 ac_clean_files=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3987 # `rm'.
3988 for ac_file in conftest.exe conftest conftest.*; do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 break;;
3994 * ) break;;
3995 esac
3996 done
3997 else
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4002 fi
4003 rm -f conftest conftest$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4006
4007 rm -f conftest.$ac_ext
4008 EXEEXT=$ac_cv_exeext
4009 ac_exeext=$EXEEXT
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <stdio.h>
4013 int
4014 main ()
4015 {
4016 FILE *f = fopen ("conftest.out", "w");
4017 return ferror (f) || fclose (f) != 0;
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 ac_clean_files="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029 { { ac_try="$ac_link"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 if { ac_try='./conftest$ac_cv_exeext'
4041 { { case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; }; then
4051 cross_compiling=no
4052 else
4053 if test "$cross_compiling" = maybe; then
4054 cross_compiling=yes
4055 else
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4061 fi
4062 fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4066
4067 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4068 ac_clean_files=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try="$ac_compile"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_compile") 2>&5
4094 ac_status=$?
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 for ac_file in conftest.o conftest.obj conftest.*; do
4098 test -f "$ac_file" || continue;
4099 case $ac_file in
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4102 break;;
4103 esac
4104 done
4105 else
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files: cannot compile
4112 See \`config.log' for more details" "$LINENO" 5; }
4113 fi
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4119 ac_objext=$OBJEXT
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131 #ifndef __GNUC__
4132 choke me
4133 #endif
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_compiler_gnu=yes
4141 else
4142 ac_compiler_gnu=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4151 GCC=yes
4152 else
4153 GCC=
4154 fi
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4164 ac_cv_prog_cc_g=no
4165 CFLAGS="-g"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main ()
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_prog_cc_g=yes
4179 else
4180 CFLAGS=""
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183
4184 int
4185 main ()
4186 {
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193
4194 else
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main ()
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_prog_cc_g=yes
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4224 CFLAGS="-g -O2"
4225 else
4226 CFLAGS="-g"
4227 fi
4228 else
4229 if test "$GCC" = yes; then
4230 CFLAGS="-O2"
4231 else
4232 CFLAGS=
4233 fi
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_cv_prog_cc_c89=no
4241 ac_save_CC=$CC
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <stdarg.h>
4245 #include <stdio.h>
4246 struct stat;
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4251 char **p;
4252 int i;
4253 {
4254 return p[i];
4255 }
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4257 {
4258 char *s;
4259 va_list v;
4260 va_start (v,p);
4261 s = g (p, va_arg (v,int));
4262 va_end (v);
4263 return s;
4264 }
4265
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4277 #define FOO(x) 'x'
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 int argc;
4285 char **argv;
4286 int
4287 main ()
4288 {
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 do
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 done
4304 rm -f conftest.$ac_ext
4305 CC=$ac_save_CC
4306
4307 fi
4308 # AC_CACHE_VAL
4309 case "x$ac_cv_prog_cc_c89" in
4310 x)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4313 xno)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4316 *)
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4322
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main ()
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 # Make sure it works both with $CC and with simple cc.
4353 # Following AC_PROG_CC_C_O, we do the test twice because some
4354 # compilers refuse to overwrite an existing .o file with -o,
4355 # though they will create one.
4356 am_cv_prog_cc_c_o=yes
4357 for am_i in 1 2; do
4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } \
4363 && test -f conftest2.$ac_objext; then
4364 : OK
4365 else
4366 am_cv_prog_cc_c_o=no
4367 break
4368 fi
4369 done
4370 rm -f core conftest*
4371 unset am_i
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4382 fi
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389 DEPDIR="${am__leading_dot}deps"
4390
4391 ac_config_commands="$ac_config_commands depfiles"
4392
4393
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4396 am__doit:
4397 @echo this is the am__doit target
4398 .PHONY: am__doit
4399 END
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4403 am__include="#"
4404 am__quote=
4405 _am_result=none
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=include
4412 am__quote=
4413 _am_result=GNU
4414 ;;
4415 esac
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf 2> /dev/null` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4422 am__quote="\""
4423 _am_result=BSD
4424 ;;
4425 esac
4426 fi
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4432
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4436 fi
4437
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4440 AMDEPBACKSLASH='\'
4441 am__nodep='_no'
4442 fi
4443 if test "x$enable_dependency_tracking" != xno; then
4444 AMDEP_TRUE=
4445 AMDEP_FALSE='#'
4446 else
4447 AMDEP_TRUE='#'
4448 AMDEP_FALSE=
4449 fi
4450
4451
4452
4453 depcc="$CC" am_compiler_list=
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4465 # in D".
4466 rm -rf conftest.dir
4467 mkdir conftest.dir
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4471 cd conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4477 # directory.
4478 mkdir sub
4479
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483 fi
4484 am__universal=false
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4487 esac
4488
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4493 #
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4497 : > sub/conftest.c
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4503 done
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4512 case $depmode in
4513 gcc)
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4516 ;;
4517 nosideeffect)
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4521 continue
4522 else
4523 break
4524 fi
4525 ;;
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4531 am__minus_obj=
4532 ;;
4533 none) break ;;
4534 esac
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4554 break
4555 fi
4556 fi
4557 done
4558
4559 cd ..
4560 rm -rf conftest.dir
4561 else
4562 am_cv_CC_dependencies_compiler_type=none
4563 fi
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569
4570 if
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573 am__fastdepCC_TRUE=
4574 am__fastdepCC_FALSE='#'
4575 else
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4578 fi
4579
4580
4581 ac_ext=cpp
4582 ac_cpp='$CXXCPP $CPPFLAGS'
4583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4586 if test -z "$CXX"; then
4587 if test -n "$CCC"; then
4588 CXX=$CCC
4589 else
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 do
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CXX+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$CXX"; then
4601 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 CXX=$ac_cv_prog_CXX
4621 if test -n "$CXX"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4623 $as_echo "$CXX" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630 test -n "$CXX" && break
4631 done
4632 fi
4633 if test -z "$CXX"; then
4634 ac_ct_CXX=$CXX
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4636 do
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_CXX"; then
4645 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CXX="$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4665 if test -n "$ac_ct_CXX"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4667 $as_echo "$ac_ct_CXX" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 test -n "$ac_ct_CXX" && break
4675 done
4676
4677 if test "x$ac_ct_CXX" = x; then
4678 CXX="g++"
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686 CXX=$ac_ct_CXX
4687 fi
4688 fi
4689
4690 fi
4691 fi
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4694 set X $ac_compile
4695 ac_compiler=$2
4696 for ac_option in --version -v -V -qversion; do
4697 { { ac_try="$ac_compiler $ac_option >&5"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 ac_status=$?
4706 if test -s conftest.err; then
4707 sed '10a\
4708 ... rest of stderr output deleted ...
4709 10q' conftest.err >conftest.er1
4710 cat conftest.er1 >&5
4711 fi
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715 done
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4718 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4719 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main ()
4727 {
4728 #ifndef __GNUC__
4729 choke me
4730 #endif
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_cxx_try_compile "$LINENO"; then :
4737 ac_compiler_gnu=yes
4738 else
4739 ac_compiler_gnu=no
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4746 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4747 if test $ac_compiler_gnu = yes; then
4748 GXX=yes
4749 else
4750 GXX=
4751 fi
4752 ac_test_CXXFLAGS=${CXXFLAGS+set}
4753 ac_save_CXXFLAGS=$CXXFLAGS
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4755 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4756 if ${ac_cv_prog_cxx_g+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4760 ac_cxx_werror_flag=yes
4761 ac_cv_prog_cxx_g=no
4762 CXXFLAGS="-g"
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765
4766 int
4767 main ()
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_cxx_try_compile "$LINENO"; then :
4775 ac_cv_prog_cxx_g=yes
4776 else
4777 CXXFLAGS=""
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main ()
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_cxx_try_compile "$LINENO"; then :
4790
4791 else
4792 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4793 CXXFLAGS="-g"
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_cxx_try_compile "$LINENO"; then :
4806 ac_cv_prog_cxx_g=yes
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4816 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4817 if test "$ac_test_CXXFLAGS" = set; then
4818 CXXFLAGS=$ac_save_CXXFLAGS
4819 elif test $ac_cv_prog_cxx_g = yes; then
4820 if test "$GXX" = yes; then
4821 CXXFLAGS="-g -O2"
4822 else
4823 CXXFLAGS="-g"
4824 fi
4825 else
4826 if test "$GXX" = yes; then
4827 CXXFLAGS="-O2"
4828 else
4829 CXXFLAGS=
4830 fi
4831 fi
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838 depcc="$CXX" am_compiler_list=
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841 $as_echo_n "checking dependency style of $depcc... " >&6; }
4842 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named 'D' -- because '-MD' means "put the output
4850 # in D".
4851 rm -rf conftest.dir
4852 mkdir conftest.dir
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4856 cd conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4862 # directory.
4863 mkdir sub
4864
4865 am_cv_CXX_dependencies_compiler_type=none
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 fi
4869 am__universal=false
4870 case " $depcc " in #(
4871 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4872 esac
4873
4874 for depmode in $am_compiler_list; do
4875 # Setup a source with many dependencies, because some compilers
4876 # like to wrap large dependency lists on column 80 (with \), and
4877 # we should not choose a depcomp mode which is confused by this.
4878 #
4879 # We need to recreate these files for each test, as the compiler may
4880 # overwrite some of them when testing with obscure command lines.
4881 # This happens at least with the AIX C compiler.
4882 : > sub/conftest.c
4883 for i in 1 2 3 4 5 6; do
4884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4886 # Solaris 10 /bin/sh.
4887 echo '/* dummy */' > sub/conftst$i.h
4888 done
4889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4890
4891 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4892 # mode. It turns out that the SunPro C++ compiler does not properly
4893 # handle '-M -o', and we need to detect this. Also, some Intel
4894 # versions had trouble with output in subdirs.
4895 am__obj=sub/conftest.${OBJEXT-o}
4896 am__minus_obj="-o $am__obj"
4897 case $depmode in
4898 gcc)
4899 # This depmode causes a compiler race in universal mode.
4900 test "$am__universal" = false || continue
4901 ;;
4902 nosideeffect)
4903 # After this tag, mechanisms are not by side-effect, so they'll
4904 # only be used when explicitly requested.
4905 if test "x$enable_dependency_tracking" = xyes; then
4906 continue
4907 else
4908 break
4909 fi
4910 ;;
4911 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4912 # This compiler won't grok '-c -o', but also, the minuso test has
4913 # not run yet. These depmodes are late enough in the game, and
4914 # so weak that their functioning should not be impacted.
4915 am__obj=conftest.${OBJEXT-o}
4916 am__minus_obj=
4917 ;;
4918 none) break ;;
4919 esac
4920 if depmode=$depmode \
4921 source=sub/conftest.c object=$am__obj \
4922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4923 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4924 >/dev/null 2>conftest.err &&
4925 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4927 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4929 # icc doesn't choke on unknown options, it will just issue warnings
4930 # or remarks (even with -Werror). So we grep stderr for any message
4931 # that says an option was ignored or not supported.
4932 # When given -MP, icc 7.0 and 7.1 complain thusly:
4933 # icc: Command line warning: ignoring option '-M'; no argument required
4934 # The diagnosis changed in icc 8.0:
4935 # icc: Command line remark: option '-MP' not supported
4936 if (grep 'ignoring option' conftest.err ||
4937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4938 am_cv_CXX_dependencies_compiler_type=$depmode
4939 break
4940 fi
4941 fi
4942 done
4943
4944 cd ..
4945 rm -rf conftest.dir
4946 else
4947 am_cv_CXX_dependencies_compiler_type=none
4948 fi
4949
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4952 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4953 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4954
4955 if
4956 test "x$enable_dependency_tracking" != xno \
4957 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4958 am__fastdepCXX_TRUE=
4959 am__fastdepCXX_FALSE='#'
4960 else
4961 am__fastdepCXX_TRUE='#'
4962 am__fastdepCXX_FALSE=
4963 fi
4964
4965
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_RANLIB+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$RANLIB"; then
4975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 RANLIB=$ac_cv_prog_RANLIB
4995 if test -n "$RANLIB"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4997 $as_echo "$RANLIB" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002
5003
5004 fi
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5037 $as_echo "$ac_ct_RANLIB" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043 if test "x$ac_ct_RANLIB" = x; then
5044 RANLIB=":"
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047 yes:)
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned=yes ;;
5051 esac
5052 RANLIB=$ac_ct_RANLIB
5053 fi
5054 else
5055 RANLIB="$ac_cv_prog_RANLIB"
5056 fi
5057
5058
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5070 fi
5071 if test -z "$CPP"; then
5072 if ${ac_cv_prog_CPP+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077 do
5078 ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5080 do
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #ifdef __STDC__
5090 # include <limits.h>
5091 #else
5092 # include <assert.h>
5093 #endif
5094 Syntax error
5095 _ACEOF
5096 if ac_fn_c_try_cpp "$LINENO"; then :
5097
5098 else
5099 # Broken: fails on valid input.
5100 continue
5101 fi
5102 rm -f conftest.err conftest.i conftest.$ac_ext
5103
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if ac_fn_c_try_cpp "$LINENO"; then :
5111 # Broken: success on invalid input.
5112 continue
5113 else
5114 # Passes both tests.
5115 ac_preproc_ok=:
5116 break
5117 fi
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5119
5120 done
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.i conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok; then :
5124 break
5125 fi
5126
5127 done
5128 ac_cv_prog_CPP=$CPP
5129
5130 fi
5131 CPP=$ac_cv_prog_CPP
5132 else
5133 ac_cv_prog_CPP=$CPP
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5136 $as_echo "$CPP" >&6; }
5137 ac_preproc_ok=false
5138 for ac_c_preproc_warn_flag in '' yes
5139 do
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
5144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5153 Syntax error
5154 _ACEOF
5155 if ac_fn_c_try_cpp "$LINENO"; then :
5156
5157 else
5158 # Broken: fails on valid input.
5159 continue
5160 fi
5161 rm -f conftest.err conftest.i conftest.$ac_ext
5162
5163 # OK, works on sane cases. Now check whether nonexistent headers
5164 # can be detected and how.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <ac_nonexistent.h>
5168 _ACEOF
5169 if ac_fn_c_try_cpp "$LINENO"; then :
5170 # Broken: success on invalid input.
5171 continue
5172 else
5173 # Passes both tests.
5174 ac_preproc_ok=:
5175 break
5176 fi
5177 rm -f conftest.err conftest.i conftest.$ac_ext
5178
5179 done
5180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5181 rm -f conftest.i conftest.err conftest.$ac_ext
5182 if $ac_preproc_ok; then :
5183
5184 else
5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5187 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5188 See \`config.log' for more details" "$LINENO" 5; }
5189 fi
5190
5191 ac_ext=c
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5200 if ${ac_cv_path_GREP+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -z "$GREP"; then
5204 ac_path_GREP_found=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_prog in grep ggrep; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p "$ac_path_GREP" || continue
5215 # Check for GNU ac_path_GREP and select it if it is found.
5216 # Check for GNU $ac_path_GREP
5217 case `"$ac_path_GREP" --version 2>&1` in
5218 *GNU*)
5219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5220 *)
5221 ac_count=0
5222 $as_echo_n 0123456789 >"conftest.in"
5223 while :
5224 do
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo 'GREP' >> "conftest.nl"
5229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231 as_fn_arith $ac_count + 1 && ac_count=$as_val
5232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_GREP="$ac_path_GREP"
5235 ac_path_GREP_max=$ac_count
5236 fi
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5239 done
5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 esac
5242
5243 $ac_path_GREP_found && break 3
5244 done
5245 done
5246 done
5247 IFS=$as_save_IFS
5248 if test -z "$ac_cv_path_GREP"; then
5249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250 fi
5251 else
5252 ac_cv_path_GREP=$GREP
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5257 $as_echo "$ac_cv_path_GREP" >&6; }
5258 GREP="$ac_cv_path_GREP"
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5262 $as_echo_n "checking for egrep... " >&6; }
5263 if ${ac_cv_path_EGREP+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5267 then ac_cv_path_EGREP="$GREP -E"
5268 else
5269 if test -z "$EGREP"; then
5270 ac_path_EGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in egrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p "$ac_path_EGREP" || continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282 # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5284 *GNU*)
5285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5286 *)
5287 ac_count=0
5288 $as_echo_n 0123456789 >"conftest.in"
5289 while :
5290 do
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'EGREP' >> "conftest.nl"
5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP="$ac_path_EGREP"
5301 ac_path_EGREP_max=$ac_count
5302 fi
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5308
5309 $ac_path_EGREP_found && break 3
5310 done
5311 done
5312 done
5313 IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_EGREP"; then
5315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 fi
5317 else
5318 ac_cv_path_EGREP=$EGREP
5319 fi
5320
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5324 $as_echo "$ac_cv_path_EGREP" >&6; }
5325 EGREP="$ac_cv_path_EGREP"
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5329 $as_echo_n "checking for ANSI C header files... " >&6; }
5330 if ${ac_cv_header_stdc+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <stdlib.h>
5336 #include <stdarg.h>
5337 #include <string.h>
5338 #include <float.h>
5339
5340 int
5341 main ()
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 ac_cv_header_stdc=yes
5350 else
5351 ac_cv_header_stdc=no
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354
5355 if test $ac_cv_header_stdc = yes; then
5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #include <string.h>
5360
5361 _ACEOF
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev/null 2>&1; then :
5364
5365 else
5366 ac_cv_header_stdc=no
5367 fi
5368 rm -f conftest*
5369
5370 fi
5371
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <stdlib.h>
5377
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "free" >/dev/null 2>&1; then :
5381
5382 else
5383 ac_cv_header_stdc=no
5384 fi
5385 rm -f conftest*
5386
5387 fi
5388
5389 if test $ac_cv_header_stdc = yes; then
5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391 if test "$cross_compiling" = yes; then :
5392 :
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <ctype.h>
5397 #include <stdlib.h>
5398 #if ((' ' & 0x0FF) == 0x020)
5399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5401 #else
5402 # define ISLOWER(c) \
5403 (('a' <= (c) && (c) <= 'i') \
5404 || ('j' <= (c) && (c) <= 'r') \
5405 || ('s' <= (c) && (c) <= 'z'))
5406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5407 #endif
5408
5409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5410 int
5411 main ()
5412 {
5413 int i;
5414 for (i = 0; i < 256; i++)
5415 if (XOR (islower (i), ISLOWER (i))
5416 || toupper (i) != TOUPPER (i))
5417 return 2;
5418 return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_run "$LINENO"; then :
5422
5423 else
5424 ac_cv_header_stdc=no
5425 fi
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5427 conftest.$ac_objext conftest.beam conftest.$ac_ext
5428 fi
5429
5430 fi
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5433 $as_echo "$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5435
5436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5437
5438 fi
5439
5440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442 inttypes.h stdint.h unistd.h
5443 do :
5444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5446 "
5447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5448 cat >>confdefs.h <<_ACEOF
5449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5450 _ACEOF
5451
5452 fi
5453
5454 done
5455
5456
5457
5458 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5459 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5460 MINIX=yes
5461 else
5462 MINIX=
5463 fi
5464
5465
5466 if test "$MINIX" = yes; then
5467
5468 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5469
5470
5471 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5472
5473
5474 $as_echo "#define _MINIX 1" >>confdefs.h
5475
5476 fi
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5480 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5481 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486
5487 # define __EXTENSIONS__ 1
5488 $ac_includes_default
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_safe_to_define___extensions__=yes
5499 else
5500 ac_cv_safe_to_define___extensions__=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5505 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5506 test $ac_cv_safe_to_define___extensions__ = yes &&
5507 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5508
5509 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5510
5511 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5512
5513 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5514
5515 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5516
5517
5518
5519 # The tests for host and target for $enable_largefile require
5520 # canonical names.
5521
5522
5523
5524 # As the $enable_largefile decision depends on --enable-plugins we must set it
5525 # even in directories otherwise not depending on the $plugins option.
5526
5527
5528 maybe_plugins=no
5529 for ac_header in dlfcn.h
5530 do :
5531 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5532 "
5533 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5534 cat >>confdefs.h <<_ACEOF
5535 #define HAVE_DLFCN_H 1
5536 _ACEOF
5537 maybe_plugins=yes
5538 fi
5539
5540 done
5541
5542 for ac_header in windows.h
5543 do :
5544 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5545 "
5546 if test "x$ac_cv_header_windows_h" = xyes; then :
5547 cat >>confdefs.h <<_ACEOF
5548 #define HAVE_WINDOWS_H 1
5549 _ACEOF
5550 maybe_plugins=yes
5551 fi
5552
5553 done
5554
5555
5556 # Check whether --enable-plugins was given.
5557 if test "${enable_plugins+set}" = set; then :
5558 enableval=$enable_plugins; case "${enableval}" in
5559 no) plugins=no ;;
5560 *) plugins=yes
5561 if test "$maybe_plugins" != "yes" ; then
5562 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5563 fi ;;
5564 esac
5565 else
5566 plugins=$maybe_plugins
5567
5568 fi
5569
5570 if test "$plugins" = "yes"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5572 $as_echo_n "checking for library containing dlsym... " >&6; }
5573 if ${ac_cv_search_dlsym+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 ac_func_search_save_LIBS=$LIBS
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579
5580 /* Override any GCC internal prototype to avoid an error.
5581 Use char because int might match the return type of a GCC
5582 builtin and then its argument prototype would still apply. */
5583 #ifdef __cplusplus
5584 extern "C"
5585 #endif
5586 char dlsym ();
5587 int
5588 main ()
5589 {
5590 return dlsym ();
5591 ;
5592 return 0;
5593 }
5594 _ACEOF
5595 for ac_lib in '' dl; do
5596 if test -z "$ac_lib"; then
5597 ac_res="none required"
5598 else
5599 ac_res=-l$ac_lib
5600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5601 fi
5602 if ac_fn_c_try_link "$LINENO"; then :
5603 ac_cv_search_dlsym=$ac_res
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext
5607 if ${ac_cv_search_dlsym+:} false; then :
5608 break
5609 fi
5610 done
5611 if ${ac_cv_search_dlsym+:} false; then :
5612
5613 else
5614 ac_cv_search_dlsym=no
5615 fi
5616 rm conftest.$ac_ext
5617 LIBS=$ac_func_search_save_LIBS
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5620 $as_echo "$ac_cv_search_dlsym" >&6; }
5621 ac_res=$ac_cv_search_dlsym
5622 if test "$ac_res" != no; then :
5623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5624
5625 fi
5626
5627 fi
5628
5629
5630 case "${host}" in
5631 sparc-*-solaris*|i?86-*-solaris*)
5632 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5633 # were mutually exclusive until Solaris 11.3. Without procfs support,
5634 # the bfd/ elf module cannot provide certain routines such as
5635 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5636 # explicitly requested large-file support through the
5637 # --enable-largefile switch, disable large-file support in favor of
5638 # procfs support.
5639 #
5640 # Check if <sys/procfs.h> is incompatible with large-file support.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #define _FILE_OFFSET_BITS 64
5644 #define _STRUCTURED_PROC 1
5645 #include <sys/procfs.h>
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 acx_cv_procfs_lfs=yes
5656 else
5657 acx_cv_procfs_lfs=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 #
5661 # Forcefully disable large-file support only if necessary, gdb is in
5662 # tree and enabled.
5663 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5664 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
5665 : ${enable_largefile="no"}
5666 if test "$plugins" = yes; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5668 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5669 $as_echo "$as_me: WARNING:
5670 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5671 plugins=no
5672 fi
5673 fi
5674 #
5675 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5676 # benefit of g++ 9+ which predefines it on Solaris.
5677 if test "$enable_largefile" = no; then
5678 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
5679
5680 fi
5681 ;;
5682 esac
5683
5684 # Check whether --enable-largefile was given.
5685 if test "${enable_largefile+set}" = set; then :
5686 enableval=$enable_largefile;
5687 fi
5688
5689 if test "$enable_largefile" != no; then
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5693 if ${ac_cv_sys_largefile_CC+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 ac_cv_sys_largefile_CC=no
5697 if test "$GCC" != yes; then
5698 ac_save_CC=$CC
5699 while :; do
5700 # IRIX 6.2 and later do not support large files by default,
5701 # so use the C compiler's -n32 option if that helps.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5712 ? 1 : -1];
5713 int
5714 main ()
5715 {
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 break
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext
5725 CC="$CC -n32"
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_sys_largefile_CC=' -n32'; break
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext
5730 break
5731 done
5732 CC=$ac_save_CC
5733 rm -f conftest.$ac_ext
5734 fi
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5738 if test "$ac_cv_sys_largefile_CC" != no; then
5739 CC=$CC$ac_cv_sys_largefile_CC
5740 fi
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5744 if ${ac_cv_sys_file_offset_bits+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 while :; do
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5758 ? 1 : -1];
5759 int
5760 main ()
5761 {
5762
5763 ;
5764 return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 ac_cv_sys_file_offset_bits=no; break
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #define _FILE_OFFSET_BITS 64
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5782 ? 1 : -1];
5783 int
5784 main ()
5785 {
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 ac_cv_sys_file_offset_bits=64; break
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_sys_file_offset_bits=unknown
5796 break
5797 done
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5801 case $ac_cv_sys_file_offset_bits in #(
5802 no | unknown) ;;
5803 *)
5804 cat >>confdefs.h <<_ACEOF
5805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5806 _ACEOF
5807 ;;
5808 esac
5809 rm -rf conftest*
5810 if test $ac_cv_sys_file_offset_bits = unknown; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5813 if ${ac_cv_sys_large_files+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 while :; do
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5828 int
5829 main ()
5830 {
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_cv_sys_large_files=no; break
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #define _LARGE_FILES 1
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5851 ? 1 : -1];
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_sys_large_files=1; break
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5865 break
5866 done
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5869 $as_echo "$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5871 no | unknown) ;;
5872 *)
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5875 _ACEOF
5876 ;;
5877 esac
5878 rm -rf conftest*
5879 fi
5880
5881
5882 fi
5883
5884
5885 ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_CC+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$CC"; then
5899 ac_cv_prog_CC="$CC" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 CC=$ac_cv_prog_CC
5919 if test -n "$CC"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5921 $as_echo "$CC" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 fi
5929 if test -z "$ac_cv_prog_CC"; then
5930 ac_ct_CC=$CC
5931 # Extract the first word of "gcc", so it can be a program name with args.
5932 set dummy gcc; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -n "$ac_ct_CC"; then
5939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_CC="gcc"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5959 if test -n "$ac_ct_CC"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5961 $as_echo "$ac_ct_CC" >&6; }
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967 if test "x$ac_ct_CC" = x; then
5968 CC=""
5969 else
5970 case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976 CC=$ac_ct_CC
5977 fi
5978 else
5979 CC="$ac_cv_prog_CC"
5980 fi
5981
5982 if test -z "$CC"; then
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}cc; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_CC+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$CC"; then
5992 ac_cv_prog_CC="$CC" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_CC="${ac_tool_prefix}cc"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 CC=$ac_cv_prog_CC
6012 if test -n "$CC"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6014 $as_echo "$CC" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 fi
6022 fi
6023 if test -z "$CC"; then
6024 # Extract the first word of "cc", so it can be a program name with args.
6025 set dummy cc; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_CC+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$CC"; then
6032 ac_cv_prog_CC="$CC" # Let the user override the test.
6033 else
6034 ac_prog_rejected=no
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6043 ac_prog_rejected=yes
6044 continue
6045 fi
6046 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
6055 # We found a bogon in the path, so make sure we never use it.
6056 set dummy $ac_cv_prog_CC
6057 shift
6058 if test $# != 0; then
6059 # We chose a different compiler from the bogus one.
6060 # However, it has the same basename, so the bogon will be chosen
6061 # first if we set CC to just the basename; use the full file name.
6062 shift
6063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6064 fi
6065 fi
6066 fi
6067 fi
6068 CC=$ac_cv_prog_CC
6069 if test -n "$CC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6071 $as_echo "$CC" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$CC"; then
6080 if test -n "$ac_tool_prefix"; then
6081 for ac_prog in cl.exe
6082 do
6083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_CC+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$CC"; then
6091 ac_cv_prog_CC="$CC" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 CC=$ac_cv_prog_CC
6111 if test -n "$CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6113 $as_echo "$CC" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119
6120 test -n "$CC" && break
6121 done
6122 fi
6123 if test -z "$CC"; then
6124 ac_ct_CC=$CC
6125 for ac_prog in cl.exe
6126 do
6127 # Extract the first word of "$ac_prog", so it can be a program name with args.
6128 set dummy $ac_prog; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$ac_ct_CC"; then
6135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_CC="$ac_prog"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6155 if test -n "$ac_ct_CC"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6157 $as_echo "$ac_ct_CC" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 test -n "$ac_ct_CC" && break
6165 done
6166
6167 if test "x$ac_ct_CC" = x; then
6168 CC=""
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 CC=$ac_ct_CC
6177 fi
6178 fi
6179
6180 fi
6181
6182
6183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6185 as_fn_error $? "no acceptable C compiler found in \$PATH
6186 See \`config.log' for more details" "$LINENO" 5; }
6187
6188 # Provide some information about the compiler.
6189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6190 set X $ac_compile
6191 ac_compiler=$2
6192 for ac_option in --version -v -V -qversion; do
6193 { { ac_try="$ac_compiler $ac_option >&5"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6199 $as_echo "$ac_try_echo"; } >&5
6200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6201 ac_status=$?
6202 if test -s conftest.err; then
6203 sed '10a\
6204 ... rest of stderr output deleted ...
6205 10q' conftest.err >conftest.er1
6206 cat conftest.er1 >&5
6207 fi
6208 rm -f conftest.er1 conftest.err
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 done
6212
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6214 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6215 if ${ac_cv_c_compiler_gnu+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220
6221 int
6222 main ()
6223 {
6224 #ifndef __GNUC__
6225 choke me
6226 #endif
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 ac_compiler_gnu=yes
6234 else
6235 ac_compiler_gnu=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6239
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6242 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6243 if test $ac_compiler_gnu = yes; then
6244 GCC=yes
6245 else
6246 GCC=
6247 fi
6248 ac_test_CFLAGS=${CFLAGS+set}
6249 ac_save_CFLAGS=$CFLAGS
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6251 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6252 if ${ac_cv_prog_cc_g+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 ac_save_c_werror_flag=$ac_c_werror_flag
6256 ac_c_werror_flag=yes
6257 ac_cv_prog_cc_g=no
6258 CFLAGS="-g"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_prog_cc_g=yes
6272 else
6273 CFLAGS=""
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276
6277 int
6278 main ()
6279 {
6280
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286
6287 else
6288 ac_c_werror_flag=$ac_save_c_werror_flag
6289 CFLAGS="-g"
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292
6293 int
6294 main ()
6295 {
6296
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 ac_cv_prog_cc_g=yes
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 ac_c_werror_flag=$ac_save_c_werror_flag
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6312 $as_echo "$ac_cv_prog_cc_g" >&6; }
6313 if test "$ac_test_CFLAGS" = set; then
6314 CFLAGS=$ac_save_CFLAGS
6315 elif test $ac_cv_prog_cc_g = yes; then
6316 if test "$GCC" = yes; then
6317 CFLAGS="-g -O2"
6318 else
6319 CFLAGS="-g"
6320 fi
6321 else
6322 if test "$GCC" = yes; then
6323 CFLAGS="-O2"
6324 else
6325 CFLAGS=
6326 fi
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6329 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6330 if ${ac_cv_prog_cc_c89+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 ac_cv_prog_cc_c89=no
6334 ac_save_CC=$CC
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <stdarg.h>
6338 #include <stdio.h>
6339 struct stat;
6340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6341 struct buf { int x; };
6342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6343 static char *e (p, i)
6344 char **p;
6345 int i;
6346 {
6347 return p[i];
6348 }
6349 static char *f (char * (*g) (char **, int), char **p, ...)
6350 {
6351 char *s;
6352 va_list v;
6353 va_start (v,p);
6354 s = g (p, va_arg (v,int));
6355 va_end (v);
6356 return s;
6357 }
6358
6359 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6360 function prototypes and stuff, but not '\xHH' hex character constants.
6361 These don't provoke an error unfortunately, instead are silently treated
6362 as 'x'. The following induces an error, until -std is added to get
6363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6364 array size at least. It's necessary to write '\x00'==0 to get something
6365 that's true only with -std. */
6366 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6367
6368 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6369 inside strings and character constants. */
6370 #define FOO(x) 'x'
6371 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6372
6373 int test (int i, double x);
6374 struct s1 {int (*f) (int a);};
6375 struct s2 {int (*f) (double a);};
6376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6377 int argc;
6378 char **argv;
6379 int
6380 main ()
6381 {
6382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6383 ;
6384 return 0;
6385 }
6386 _ACEOF
6387 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6389 do
6390 CC="$ac_save_CC $ac_arg"
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 ac_cv_prog_cc_c89=$ac_arg
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext
6395 test "x$ac_cv_prog_cc_c89" != "xno" && break
6396 done
6397 rm -f conftest.$ac_ext
6398 CC=$ac_save_CC
6399
6400 fi
6401 # AC_CACHE_VAL
6402 case "x$ac_cv_prog_cc_c89" in
6403 x)
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6405 $as_echo "none needed" >&6; } ;;
6406 xno)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6408 $as_echo "unsupported" >&6; } ;;
6409 *)
6410 CC="$CC $ac_cv_prog_cc_c89"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6412 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6413 esac
6414 if test "x$ac_cv_prog_cc_c89" != xno; then :
6415
6416 fi
6417
6418 ac_ext=c
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
6424 ac_ext=c
6425 ac_cpp='$CPP $CPPFLAGS'
6426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6430 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6431 if ${am_cv_prog_cc_c_o+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436
6437 int
6438 main ()
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 # Make sure it works both with $CC and with simple cc.
6446 # Following AC_PROG_CC_C_O, we do the test twice because some
6447 # compilers refuse to overwrite an existing .o file with -o,
6448 # though they will create one.
6449 am_cv_prog_cc_c_o=yes
6450 for am_i in 1 2; do
6451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } \
6456 && test -f conftest2.$ac_objext; then
6457 : OK
6458 else
6459 am_cv_prog_cc_c_o=no
6460 break
6461 fi
6462 done
6463 rm -f core conftest*
6464 unset am_i
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6467 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6468 if test "$am_cv_prog_cc_c_o" != yes; then
6469 # Losing compiler, so override with the script.
6470 # FIXME: It is wrong to rewrite CC.
6471 # But if we don't then we get into trouble of one sort or another.
6472 # A longer-term fix would be to have automake use am__CC in this case,
6473 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6474 CC="$am_aux_dir/compile $CC"
6475 fi
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482
6483 depcc="$CC" am_compiler_list=
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6486 $as_echo_n "checking dependency style of $depcc... " >&6; }
6487 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6491 # We make a subdir and do the tests there. Otherwise we can end up
6492 # making bogus files that we don't know about and never remove. For
6493 # instance it was reported that on HP-UX the gcc test will end up
6494 # making a dummy file named 'D' -- because '-MD' means "put the output
6495 # in D".
6496 rm -rf conftest.dir
6497 mkdir conftest.dir
6498 # Copy depcomp to subdir because otherwise we won't find it if we're
6499 # using a relative directory.
6500 cp "$am_depcomp" conftest.dir
6501 cd conftest.dir
6502 # We will build objects and dependencies in a subdirectory because
6503 # it helps to detect inapplicable dependency modes. For instance
6504 # both Tru64's cc and ICC support -MD to output dependencies as a
6505 # side effect of compilation, but ICC will put the dependencies in
6506 # the current directory while Tru64 will put them in the object
6507 # directory.
6508 mkdir sub
6509
6510 am_cv_CC_dependencies_compiler_type=none
6511 if test "$am_compiler_list" = ""; then
6512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6513 fi
6514 am__universal=false
6515 case " $depcc " in #(
6516 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6517 esac
6518
6519 for depmode in $am_compiler_list; do
6520 # Setup a source with many dependencies, because some compilers
6521 # like to wrap large dependency lists on column 80 (with \), and
6522 # we should not choose a depcomp mode which is confused by this.
6523 #
6524 # We need to recreate these files for each test, as the compiler may
6525 # overwrite some of them when testing with obscure command lines.
6526 # This happens at least with the AIX C compiler.
6527 : > sub/conftest.c
6528 for i in 1 2 3 4 5 6; do
6529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6531 # Solaris 10 /bin/sh.
6532 echo '/* dummy */' > sub/conftst$i.h
6533 done
6534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6535
6536 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6537 # mode. It turns out that the SunPro C++ compiler does not properly
6538 # handle '-M -o', and we need to detect this. Also, some Intel
6539 # versions had trouble with output in subdirs.
6540 am__obj=sub/conftest.${OBJEXT-o}
6541 am__minus_obj="-o $am__obj"
6542 case $depmode in
6543 gcc)
6544 # This depmode causes a compiler race in universal mode.
6545 test "$am__universal" = false || continue
6546 ;;
6547 nosideeffect)
6548 # After this tag, mechanisms are not by side-effect, so they'll
6549 # only be used when explicitly requested.
6550 if test "x$enable_dependency_tracking" = xyes; then
6551 continue
6552 else
6553 break
6554 fi
6555 ;;
6556 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6557 # This compiler won't grok '-c -o', but also, the minuso test has
6558 # not run yet. These depmodes are late enough in the game, and
6559 # so weak that their functioning should not be impacted.
6560 am__obj=conftest.${OBJEXT-o}
6561 am__minus_obj=
6562 ;;
6563 none) break ;;
6564 esac
6565 if depmode=$depmode \
6566 source=sub/conftest.c object=$am__obj \
6567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6569 >/dev/null 2>conftest.err &&
6570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6574 # icc doesn't choke on unknown options, it will just issue warnings
6575 # or remarks (even with -Werror). So we grep stderr for any message
6576 # that says an option was ignored or not supported.
6577 # When given -MP, icc 7.0 and 7.1 complain thusly:
6578 # icc: Command line warning: ignoring option '-M'; no argument required
6579 # The diagnosis changed in icc 8.0:
6580 # icc: Command line remark: option '-MP' not supported
6581 if (grep 'ignoring option' conftest.err ||
6582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6583 am_cv_CC_dependencies_compiler_type=$depmode
6584 break
6585 fi
6586 fi
6587 done
6588
6589 cd ..
6590 rm -rf conftest.dir
6591 else
6592 am_cv_CC_dependencies_compiler_type=none
6593 fi
6594
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6597 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6598 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6599
6600 if
6601 test "x$enable_dependency_tracking" != xno \
6602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6603 am__fastdepCC_TRUE=
6604 am__fastdepCC_FALSE='#'
6605 else
6606 am__fastdepCC_TRUE='#'
6607 am__fastdepCC_FALSE=
6608 fi
6609
6610
6611 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6612
6613
6614 # We require a C++11 compiler. Check if one is available, and if
6615 # necessary, set CXX_DIALECT to some -std=xxx switch.
6616
6617 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6618 ac_ext=cpp
6619 ac_cpp='$CXXCPP $CPPFLAGS'
6620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6623 CXX_DIALECT=""
6624 ac_success=no
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6626 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6627 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632
6633
6634 // If the compiler admits that it is not ready for C++11, why torture it?
6635 // Hopefully, this will speed up the test.
6636
6637 #ifndef __cplusplus
6638
6639 #error "This is not a C++ compiler"
6640
6641 #elif __cplusplus < 201103L
6642
6643 #error "This is not a C++11 compiler"
6644
6645 #else
6646
6647 namespace cxx11
6648 {
6649
6650 namespace test_static_assert
6651 {
6652
6653 template <typename T>
6654 struct check
6655 {
6656 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6657 };
6658
6659 }
6660
6661 namespace test_final_override
6662 {
6663
6664 struct Base
6665 {
6666 virtual void f() {}
6667 };
6668
6669 struct Derived : public Base
6670 {
6671 virtual void f() override {}
6672 };
6673
6674 }
6675
6676 namespace test_double_right_angle_brackets
6677 {
6678
6679 template < typename T >
6680 struct check {};
6681
6682 typedef check<void> single_type;
6683 typedef check<check<void>> double_type;
6684 typedef check<check<check<void>>> triple_type;
6685 typedef check<check<check<check<void>>>> quadruple_type;
6686
6687 }
6688
6689 namespace test_decltype
6690 {
6691
6692 int
6693 f()
6694 {
6695 int a = 1;
6696 decltype(a) b = 2;
6697 return a + b;
6698 }
6699
6700 }
6701
6702 namespace test_type_deduction
6703 {
6704
6705 template < typename T1, typename T2 >
6706 struct is_same
6707 {
6708 static const bool value = false;
6709 };
6710
6711 template < typename T >
6712 struct is_same<T, T>
6713 {
6714 static const bool value = true;
6715 };
6716
6717 template < typename T1, typename T2 >
6718 auto
6719 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6720 {
6721 return a1 + a2;
6722 }
6723
6724 int
6725 test(const int c, volatile int v)
6726 {
6727 static_assert(is_same<int, decltype(0)>::value == true, "");
6728 static_assert(is_same<int, decltype(c)>::value == false, "");
6729 static_assert(is_same<int, decltype(v)>::value == false, "");
6730 auto ac = c;
6731 auto av = v;
6732 auto sumi = ac + av + 'x';
6733 auto sumf = ac + av + 1.0;
6734 static_assert(is_same<int, decltype(ac)>::value == true, "");
6735 static_assert(is_same<int, decltype(av)>::value == true, "");
6736 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6737 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6738 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6739 return (sumf > 0.0) ? sumi : add(c, v);
6740 }
6741
6742 }
6743
6744 namespace test_noexcept
6745 {
6746
6747 int f() { return 0; }
6748 int g() noexcept { return 0; }
6749
6750 static_assert(noexcept(f()) == false, "");
6751 static_assert(noexcept(g()) == true, "");
6752
6753 }
6754
6755 namespace test_constexpr
6756 {
6757
6758 template < typename CharT >
6759 unsigned long constexpr
6760 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6761 {
6762 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6763 }
6764
6765 template < typename CharT >
6766 unsigned long constexpr
6767 strlen_c(const CharT *const s) noexcept
6768 {
6769 return strlen_c_r(s, 0UL);
6770 }
6771
6772 static_assert(strlen_c("") == 0UL, "");
6773 static_assert(strlen_c("1") == 1UL, "");
6774 static_assert(strlen_c("example") == 7UL, "");
6775 static_assert(strlen_c("another\0example") == 7UL, "");
6776
6777 }
6778
6779 namespace test_rvalue_references
6780 {
6781
6782 template < int N >
6783 struct answer
6784 {
6785 static constexpr int value = N;
6786 };
6787
6788 answer<1> f(int&) { return answer<1>(); }
6789 answer<2> f(const int&) { return answer<2>(); }
6790 answer<3> f(int&&) { return answer<3>(); }
6791
6792 void
6793 test()
6794 {
6795 int i = 0;
6796 const int c = 0;
6797 static_assert(decltype(f(i))::value == 1, "");
6798 static_assert(decltype(f(c))::value == 2, "");
6799 static_assert(decltype(f(0))::value == 3, "");
6800 }
6801
6802 }
6803
6804 namespace test_uniform_initialization
6805 {
6806
6807 struct test
6808 {
6809 static const int zero {};
6810 static const int one {1};
6811 };
6812
6813 static_assert(test::zero == 0, "");
6814 static_assert(test::one == 1, "");
6815
6816 }
6817
6818 namespace test_lambdas
6819 {
6820
6821 void
6822 test1()
6823 {
6824 auto lambda1 = [](){};
6825 auto lambda2 = lambda1;
6826 lambda1();
6827 lambda2();
6828 }
6829
6830 int
6831 test2()
6832 {
6833 auto a = [](int i, int j){ return i + j; }(1, 2);
6834 auto b = []() -> int { return '0'; }();
6835 auto c = [=](){ return a + b; }();
6836 auto d = [&](){ return c; }();
6837 auto e = [a, &b](int x) mutable {
6838 const auto identity = [](int y){ return y; };
6839 for (auto i = 0; i < a; ++i)
6840 a += b--;
6841 return x + identity(a + b);
6842 }(0);
6843 return a + b + c + d + e;
6844 }
6845
6846 int
6847 test3()
6848 {
6849 const auto nullary = [](){ return 0; };
6850 const auto unary = [](int x){ return x; };
6851 using nullary_t = decltype(nullary);
6852 using unary_t = decltype(unary);
6853 const auto higher1st = [](nullary_t f){ return f(); };
6854 const auto higher2nd = [unary](nullary_t f1){
6855 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6856 };
6857 return higher1st(nullary) + higher2nd(nullary)(unary);
6858 }
6859
6860 }
6861
6862 namespace test_variadic_templates
6863 {
6864
6865 template <int...>
6866 struct sum;
6867
6868 template <int N0, int... N1toN>
6869 struct sum<N0, N1toN...>
6870 {
6871 static constexpr auto value = N0 + sum<N1toN...>::value;
6872 };
6873
6874 template <>
6875 struct sum<>
6876 {
6877 static constexpr auto value = 0;
6878 };
6879
6880 static_assert(sum<>::value == 0, "");
6881 static_assert(sum<1>::value == 1, "");
6882 static_assert(sum<23>::value == 23, "");
6883 static_assert(sum<1, 2>::value == 3, "");
6884 static_assert(sum<5, 5, 11>::value == 21, "");
6885 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6886
6887 }
6888
6889 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6890 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6891 // because of this.
6892 namespace test_template_alias_sfinae
6893 {
6894
6895 struct foo {};
6896
6897 template<typename T>
6898 using member = typename T::member_type;
6899
6900 template<typename T>
6901 void func(...) {}
6902
6903 template<typename T>
6904 void func(member<T>*) {}
6905
6906 void test();
6907
6908 void test() { func<foo>(0); }
6909
6910 }
6911
6912 } // namespace cxx11
6913
6914 #endif // __cplusplus >= 201103L
6915
6916
6917
6918 _ACEOF
6919 if ac_fn_cxx_try_compile "$LINENO"; then :
6920 ax_cv_cxx_compile_cxx11=yes
6921 else
6922 ax_cv_cxx_compile_cxx11=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6927 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6928 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6929 ac_success=yes
6930 fi
6931
6932 if test x$ac_success = xno; then
6933 for alternative in ${ax_cxx_compile_alternatives}; do
6934 switch="-std=gnu++${alternative}"
6935 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6937 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6938 if eval \${$cachevar+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 ac_save_CXX="$CXX"
6942 CXX="$CXX $switch"
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945
6946
6947 // If the compiler admits that it is not ready for C++11, why torture it?
6948 // Hopefully, this will speed up the test.
6949
6950 #ifndef __cplusplus
6951
6952 #error "This is not a C++ compiler"
6953
6954 #elif __cplusplus < 201103L
6955
6956 #error "This is not a C++11 compiler"
6957
6958 #else
6959
6960 namespace cxx11
6961 {
6962
6963 namespace test_static_assert
6964 {
6965
6966 template <typename T>
6967 struct check
6968 {
6969 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6970 };
6971
6972 }
6973
6974 namespace test_final_override
6975 {
6976
6977 struct Base
6978 {
6979 virtual void f() {}
6980 };
6981
6982 struct Derived : public Base
6983 {
6984 virtual void f() override {}
6985 };
6986
6987 }
6988
6989 namespace test_double_right_angle_brackets
6990 {
6991
6992 template < typename T >
6993 struct check {};
6994
6995 typedef check<void> single_type;
6996 typedef check<check<void>> double_type;
6997 typedef check<check<check<void>>> triple_type;
6998 typedef check<check<check<check<void>>>> quadruple_type;
6999
7000 }
7001
7002 namespace test_decltype
7003 {
7004
7005 int
7006 f()
7007 {
7008 int a = 1;
7009 decltype(a) b = 2;
7010 return a + b;
7011 }
7012
7013 }
7014
7015 namespace test_type_deduction
7016 {
7017
7018 template < typename T1, typename T2 >
7019 struct is_same
7020 {
7021 static const bool value = false;
7022 };
7023
7024 template < typename T >
7025 struct is_same<T, T>
7026 {
7027 static const bool value = true;
7028 };
7029
7030 template < typename T1, typename T2 >
7031 auto
7032 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7033 {
7034 return a1 + a2;
7035 }
7036
7037 int
7038 test(const int c, volatile int v)
7039 {
7040 static_assert(is_same<int, decltype(0)>::value == true, "");
7041 static_assert(is_same<int, decltype(c)>::value == false, "");
7042 static_assert(is_same<int, decltype(v)>::value == false, "");
7043 auto ac = c;
7044 auto av = v;
7045 auto sumi = ac + av + 'x';
7046 auto sumf = ac + av + 1.0;
7047 static_assert(is_same<int, decltype(ac)>::value == true, "");
7048 static_assert(is_same<int, decltype(av)>::value == true, "");
7049 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7050 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7051 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7052 return (sumf > 0.0) ? sumi : add(c, v);
7053 }
7054
7055 }
7056
7057 namespace test_noexcept
7058 {
7059
7060 int f() { return 0; }
7061 int g() noexcept { return 0; }
7062
7063 static_assert(noexcept(f()) == false, "");
7064 static_assert(noexcept(g()) == true, "");
7065
7066 }
7067
7068 namespace test_constexpr
7069 {
7070
7071 template < typename CharT >
7072 unsigned long constexpr
7073 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7074 {
7075 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7076 }
7077
7078 template < typename CharT >
7079 unsigned long constexpr
7080 strlen_c(const CharT *const s) noexcept
7081 {
7082 return strlen_c_r(s, 0UL);
7083 }
7084
7085 static_assert(strlen_c("") == 0UL, "");
7086 static_assert(strlen_c("1") == 1UL, "");
7087 static_assert(strlen_c("example") == 7UL, "");
7088 static_assert(strlen_c("another\0example") == 7UL, "");
7089
7090 }
7091
7092 namespace test_rvalue_references
7093 {
7094
7095 template < int N >
7096 struct answer
7097 {
7098 static constexpr int value = N;
7099 };
7100
7101 answer<1> f(int&) { return answer<1>(); }
7102 answer<2> f(const int&) { return answer<2>(); }
7103 answer<3> f(int&&) { return answer<3>(); }
7104
7105 void
7106 test()
7107 {
7108 int i = 0;
7109 const int c = 0;
7110 static_assert(decltype(f(i))::value == 1, "");
7111 static_assert(decltype(f(c))::value == 2, "");
7112 static_assert(decltype(f(0))::value == 3, "");
7113 }
7114
7115 }
7116
7117 namespace test_uniform_initialization
7118 {
7119
7120 struct test
7121 {
7122 static const int zero {};
7123 static const int one {1};
7124 };
7125
7126 static_assert(test::zero == 0, "");
7127 static_assert(test::one == 1, "");
7128
7129 }
7130
7131 namespace test_lambdas
7132 {
7133
7134 void
7135 test1()
7136 {
7137 auto lambda1 = [](){};
7138 auto lambda2 = lambda1;
7139 lambda1();
7140 lambda2();
7141 }
7142
7143 int
7144 test2()
7145 {
7146 auto a = [](int i, int j){ return i + j; }(1, 2);
7147 auto b = []() -> int { return '0'; }();
7148 auto c = [=](){ return a + b; }();
7149 auto d = [&](){ return c; }();
7150 auto e = [a, &b](int x) mutable {
7151 const auto identity = [](int y){ return y; };
7152 for (auto i = 0; i < a; ++i)
7153 a += b--;
7154 return x + identity(a + b);
7155 }(0);
7156 return a + b + c + d + e;
7157 }
7158
7159 int
7160 test3()
7161 {
7162 const auto nullary = [](){ return 0; };
7163 const auto unary = [](int x){ return x; };
7164 using nullary_t = decltype(nullary);
7165 using unary_t = decltype(unary);
7166 const auto higher1st = [](nullary_t f){ return f(); };
7167 const auto higher2nd = [unary](nullary_t f1){
7168 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7169 };
7170 return higher1st(nullary) + higher2nd(nullary)(unary);
7171 }
7172
7173 }
7174
7175 namespace test_variadic_templates
7176 {
7177
7178 template <int...>
7179 struct sum;
7180
7181 template <int N0, int... N1toN>
7182 struct sum<N0, N1toN...>
7183 {
7184 static constexpr auto value = N0 + sum<N1toN...>::value;
7185 };
7186
7187 template <>
7188 struct sum<>
7189 {
7190 static constexpr auto value = 0;
7191 };
7192
7193 static_assert(sum<>::value == 0, "");
7194 static_assert(sum<1>::value == 1, "");
7195 static_assert(sum<23>::value == 23, "");
7196 static_assert(sum<1, 2>::value == 3, "");
7197 static_assert(sum<5, 5, 11>::value == 21, "");
7198 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7199
7200 }
7201
7202 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7203 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7204 // because of this.
7205 namespace test_template_alias_sfinae
7206 {
7207
7208 struct foo {};
7209
7210 template<typename T>
7211 using member = typename T::member_type;
7212
7213 template<typename T>
7214 void func(...) {}
7215
7216 template<typename T>
7217 void func(member<T>*) {}
7218
7219 void test();
7220
7221 void test() { func<foo>(0); }
7222
7223 }
7224
7225 } // namespace cxx11
7226
7227 #endif // __cplusplus >= 201103L
7228
7229
7230
7231 _ACEOF
7232 if ac_fn_cxx_try_compile "$LINENO"; then :
7233 eval $cachevar=yes
7234 else
7235 eval $cachevar=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 CXX="$ac_save_CXX"
7239 fi
7240 eval ac_res=\$$cachevar
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7242 $as_echo "$ac_res" >&6; }
7243 if eval test x\$$cachevar = xyes; then
7244 CXX_DIALECT="$switch"
7245 ac_success=yes
7246 break
7247 fi
7248 done
7249 fi
7250
7251 if test x$ac_success = xno; then
7252 for alternative in ${ax_cxx_compile_alternatives}; do
7253 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7254 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7256 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7257 if eval \${$cachevar+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 ac_save_CXX="$CXX"
7261 CXX="$CXX $switch"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264
7265
7266 // If the compiler admits that it is not ready for C++11, why torture it?
7267 // Hopefully, this will speed up the test.
7268
7269 #ifndef __cplusplus
7270
7271 #error "This is not a C++ compiler"
7272
7273 #elif __cplusplus < 201103L
7274
7275 #error "This is not a C++11 compiler"
7276
7277 #else
7278
7279 namespace cxx11
7280 {
7281
7282 namespace test_static_assert
7283 {
7284
7285 template <typename T>
7286 struct check
7287 {
7288 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7289 };
7290
7291 }
7292
7293 namespace test_final_override
7294 {
7295
7296 struct Base
7297 {
7298 virtual void f() {}
7299 };
7300
7301 struct Derived : public Base
7302 {
7303 virtual void f() override {}
7304 };
7305
7306 }
7307
7308 namespace test_double_right_angle_brackets
7309 {
7310
7311 template < typename T >
7312 struct check {};
7313
7314 typedef check<void> single_type;
7315 typedef check<check<void>> double_type;
7316 typedef check<check<check<void>>> triple_type;
7317 typedef check<check<check<check<void>>>> quadruple_type;
7318
7319 }
7320
7321 namespace test_decltype
7322 {
7323
7324 int
7325 f()
7326 {
7327 int a = 1;
7328 decltype(a) b = 2;
7329 return a + b;
7330 }
7331
7332 }
7333
7334 namespace test_type_deduction
7335 {
7336
7337 template < typename T1, typename T2 >
7338 struct is_same
7339 {
7340 static const bool value = false;
7341 };
7342
7343 template < typename T >
7344 struct is_same<T, T>
7345 {
7346 static const bool value = true;
7347 };
7348
7349 template < typename T1, typename T2 >
7350 auto
7351 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7352 {
7353 return a1 + a2;
7354 }
7355
7356 int
7357 test(const int c, volatile int v)
7358 {
7359 static_assert(is_same<int, decltype(0)>::value == true, "");
7360 static_assert(is_same<int, decltype(c)>::value == false, "");
7361 static_assert(is_same<int, decltype(v)>::value == false, "");
7362 auto ac = c;
7363 auto av = v;
7364 auto sumi = ac + av + 'x';
7365 auto sumf = ac + av + 1.0;
7366 static_assert(is_same<int, decltype(ac)>::value == true, "");
7367 static_assert(is_same<int, decltype(av)>::value == true, "");
7368 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7369 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7370 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7371 return (sumf > 0.0) ? sumi : add(c, v);
7372 }
7373
7374 }
7375
7376 namespace test_noexcept
7377 {
7378
7379 int f() { return 0; }
7380 int g() noexcept { return 0; }
7381
7382 static_assert(noexcept(f()) == false, "");
7383 static_assert(noexcept(g()) == true, "");
7384
7385 }
7386
7387 namespace test_constexpr
7388 {
7389
7390 template < typename CharT >
7391 unsigned long constexpr
7392 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7393 {
7394 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7395 }
7396
7397 template < typename CharT >
7398 unsigned long constexpr
7399 strlen_c(const CharT *const s) noexcept
7400 {
7401 return strlen_c_r(s, 0UL);
7402 }
7403
7404 static_assert(strlen_c("") == 0UL, "");
7405 static_assert(strlen_c("1") == 1UL, "");
7406 static_assert(strlen_c("example") == 7UL, "");
7407 static_assert(strlen_c("another\0example") == 7UL, "");
7408
7409 }
7410
7411 namespace test_rvalue_references
7412 {
7413
7414 template < int N >
7415 struct answer
7416 {
7417 static constexpr int value = N;
7418 };
7419
7420 answer<1> f(int&) { return answer<1>(); }
7421 answer<2> f(const int&) { return answer<2>(); }
7422 answer<3> f(int&&) { return answer<3>(); }
7423
7424 void
7425 test()
7426 {
7427 int i = 0;
7428 const int c = 0;
7429 static_assert(decltype(f(i))::value == 1, "");
7430 static_assert(decltype(f(c))::value == 2, "");
7431 static_assert(decltype(f(0))::value == 3, "");
7432 }
7433
7434 }
7435
7436 namespace test_uniform_initialization
7437 {
7438
7439 struct test
7440 {
7441 static const int zero {};
7442 static const int one {1};
7443 };
7444
7445 static_assert(test::zero == 0, "");
7446 static_assert(test::one == 1, "");
7447
7448 }
7449
7450 namespace test_lambdas
7451 {
7452
7453 void
7454 test1()
7455 {
7456 auto lambda1 = [](){};
7457 auto lambda2 = lambda1;
7458 lambda1();
7459 lambda2();
7460 }
7461
7462 int
7463 test2()
7464 {
7465 auto a = [](int i, int j){ return i + j; }(1, 2);
7466 auto b = []() -> int { return '0'; }();
7467 auto c = [=](){ return a + b; }();
7468 auto d = [&](){ return c; }();
7469 auto e = [a, &b](int x) mutable {
7470 const auto identity = [](int y){ return y; };
7471 for (auto i = 0; i < a; ++i)
7472 a += b--;
7473 return x + identity(a + b);
7474 }(0);
7475 return a + b + c + d + e;
7476 }
7477
7478 int
7479 test3()
7480 {
7481 const auto nullary = [](){ return 0; };
7482 const auto unary = [](int x){ return x; };
7483 using nullary_t = decltype(nullary);
7484 using unary_t = decltype(unary);
7485 const auto higher1st = [](nullary_t f){ return f(); };
7486 const auto higher2nd = [unary](nullary_t f1){
7487 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7488 };
7489 return higher1st(nullary) + higher2nd(nullary)(unary);
7490 }
7491
7492 }
7493
7494 namespace test_variadic_templates
7495 {
7496
7497 template <int...>
7498 struct sum;
7499
7500 template <int N0, int... N1toN>
7501 struct sum<N0, N1toN...>
7502 {
7503 static constexpr auto value = N0 + sum<N1toN...>::value;
7504 };
7505
7506 template <>
7507 struct sum<>
7508 {
7509 static constexpr auto value = 0;
7510 };
7511
7512 static_assert(sum<>::value == 0, "");
7513 static_assert(sum<1>::value == 1, "");
7514 static_assert(sum<23>::value == 23, "");
7515 static_assert(sum<1, 2>::value == 3, "");
7516 static_assert(sum<5, 5, 11>::value == 21, "");
7517 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7518
7519 }
7520
7521 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7522 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7523 // because of this.
7524 namespace test_template_alias_sfinae
7525 {
7526
7527 struct foo {};
7528
7529 template<typename T>
7530 using member = typename T::member_type;
7531
7532 template<typename T>
7533 void func(...) {}
7534
7535 template<typename T>
7536 void func(member<T>*) {}
7537
7538 void test();
7539
7540 void test() { func<foo>(0); }
7541
7542 }
7543
7544 } // namespace cxx11
7545
7546 #endif // __cplusplus >= 201103L
7547
7548
7549
7550 _ACEOF
7551 if ac_fn_cxx_try_compile "$LINENO"; then :
7552 eval $cachevar=yes
7553 else
7554 eval $cachevar=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 CXX="$ac_save_CXX"
7558 fi
7559 eval ac_res=\$$cachevar
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7561 $as_echo "$ac_res" >&6; }
7562 if eval test x\$$cachevar = xyes; then
7563 CXX_DIALECT="$switch"
7564 ac_success=yes
7565 break
7566 fi
7567 done
7568 if test x$ac_success = xyes; then
7569 break
7570 fi
7571 done
7572 fi
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7580 if test x$ac_success = xno; then
7581 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7582 fi
7583 fi
7584 if test x$ac_success = xno; then
7585 HAVE_CXX11=0
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7587 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7588 else
7589 HAVE_CXX11=1
7590
7591 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7592
7593 fi
7594
7595
7596
7597
7598 # If we haven't got the data from the intl directory,
7599 # assume NLS is disabled.
7600 USE_NLS=no
7601 LIBINTL=
7602 LIBINTL_DEP=
7603 INCINTL=
7604 XGETTEXT=
7605 GMSGFMT=
7606 POSUB=
7607
7608 if test -f ../intl/config.intl; then
7609 . ../intl/config.intl
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7612 $as_echo_n "checking whether NLS is requested... " >&6; }
7613 if test x"$USE_NLS" != xyes; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618 $as_echo "yes" >&6; }
7619
7620 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7621
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7624 $as_echo_n "checking for catalogs to be installed... " >&6; }
7625 # Look for .po and .gmo files in the source directory.
7626 CATALOGS=
7627 XLINGUAS=
7628 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7629 # If there aren't any .gmo files the shell will give us the
7630 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7631 # weeded out.
7632 case "$cat" in *\**)
7633 continue;;
7634 esac
7635 # The quadruple backslash is collapsed to a double backslash
7636 # by the backticks, then collapsed again by the double quotes,
7637 # leaving us with one backslash in the sed expression (right
7638 # before the dot that mustn't act as a wildcard).
7639 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7640 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7641 # The user is allowed to set LINGUAS to a list of languages to
7642 # install catalogs for. If it's empty that means "all of them."
7643 if test "x$LINGUAS" = x; then
7644 CATALOGS="$CATALOGS $cat"
7645 XLINGUAS="$XLINGUAS $lang"
7646 else
7647 case "$LINGUAS" in *$lang*)
7648 CATALOGS="$CATALOGS $cat"
7649 XLINGUAS="$XLINGUAS $lang"
7650 ;;
7651 esac
7652 fi
7653 done
7654 LINGUAS="$XLINGUAS"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7656 $as_echo "$LINGUAS" >&6; }
7657
7658
7659 DATADIRNAME=share
7660
7661 INSTOBJEXT=.mo
7662
7663 GENCAT=gencat
7664
7665 CATOBJEXT=.gmo
7666
7667 fi
7668
7669
7670 # Check for presence and size of long long.
7671 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7672 if test "x$ac_cv_type_long_long" = xyes; then :
7673
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_LONG_LONG 1
7676 _ACEOF
7677
7678 # The cast to long int works around a bug in the HP C Compiler
7679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7681 # This bug is HP SR number 8606223364.
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7683 $as_echo_n "checking size of long long... " >&6; }
7684 if ${ac_cv_sizeof_long_long+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7688
7689 else
7690 if test "$ac_cv_type_long_long" = yes; then
7691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7693 as_fn_error 77 "cannot compute sizeof (long long)
7694 See \`config.log' for more details" "$LINENO" 5; }
7695 else
7696 ac_cv_sizeof_long_long=0
7697 fi
7698 fi
7699
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7702 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7703
7704
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7708 _ACEOF
7709
7710
7711 fi
7712
7713
7714 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7715 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7716 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7717 ac_have_decl=1
7718 else
7719 ac_have_decl=0
7720 fi
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DECL_BASENAME $ac_have_decl
7724 _ACEOF
7725 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7726 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7727 ac_have_decl=1
7728 else
7729 ac_have_decl=0
7730 fi
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_DECL_FFS $ac_have_decl
7734 _ACEOF
7735 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7736 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7737 ac_have_decl=1
7738 else
7739 ac_have_decl=0
7740 fi
7741
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DECL_ASPRINTF $ac_have_decl
7744 _ACEOF
7745 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7746 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7747 ac_have_decl=1
7748 else
7749 ac_have_decl=0
7750 fi
7751
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DECL_VASPRINTF $ac_have_decl
7754 _ACEOF
7755 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7756 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7757 ac_have_decl=1
7758 else
7759 ac_have_decl=0
7760 fi
7761
7762 cat >>confdefs.h <<_ACEOF
7763 #define HAVE_DECL_SNPRINTF $ac_have_decl
7764 _ACEOF
7765 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7766 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7767 ac_have_decl=1
7768 else
7769 ac_have_decl=0
7770 fi
7771
7772 cat >>confdefs.h <<_ACEOF
7773 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7774 _ACEOF
7775
7776 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7777 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7778 ac_have_decl=1
7779 else
7780 ac_have_decl=0
7781 fi
7782
7783 cat >>confdefs.h <<_ACEOF
7784 #define HAVE_DECL_STRTOL $ac_have_decl
7785 _ACEOF
7786 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7787 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7788 ac_have_decl=1
7789 else
7790 ac_have_decl=0
7791 fi
7792
7793 cat >>confdefs.h <<_ACEOF
7794 #define HAVE_DECL_STRTOUL $ac_have_decl
7795 _ACEOF
7796 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7797 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7798 ac_have_decl=1
7799 else
7800 ac_have_decl=0
7801 fi
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_DECL_STRTOLL $ac_have_decl
7805 _ACEOF
7806 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7807 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7808 ac_have_decl=1
7809 else
7810 ac_have_decl=0
7811 fi
7812
7813 cat >>confdefs.h <<_ACEOF
7814 #define HAVE_DECL_STRTOULL $ac_have_decl
7815 _ACEOF
7816
7817 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7818 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7819 ac_have_decl=1
7820 else
7821 ac_have_decl=0
7822 fi
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7826 _ACEOF
7827
7828
7829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7830 if test "x$ac_cv_type_size_t" = xyes; then :
7831
7832 else
7833
7834 cat >>confdefs.h <<_ACEOF
7835 #define size_t unsigned int
7836 _ACEOF
7837
7838 fi
7839
7840
7841
7842
7843 for ac_header in $ac_header_list
7844 do :
7845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7846 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7847 "
7848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7849 cat >>confdefs.h <<_ACEOF
7850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7851 _ACEOF
7852
7853 fi
7854
7855 done
7856
7857
7858
7859
7860
7861
7862
7863 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7864 if test "x$ac_cv_type_pid_t" = xyes; then :
7865
7866 else
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define pid_t int
7870 _ACEOF
7871
7872 fi
7873
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7875 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7876 if ${ac_cv_path_SED+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7880 for ac_i in 1 2 3 4 5 6 7; do
7881 ac_script="$ac_script$as_nl$ac_script"
7882 done
7883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7884 { ac_script=; unset ac_script;}
7885 if test -z "$SED"; then
7886 ac_path_SED_found=false
7887 # Loop through the user's path and test for each of PROGNAME-LIST
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_prog in sed gsed; do
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7896 as_fn_executable_p "$ac_path_SED" || continue
7897 # Check for GNU ac_path_SED and select it if it is found.
7898 # Check for GNU $ac_path_SED
7899 case `"$ac_path_SED" --version 2>&1` in
7900 *GNU*)
7901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7902 *)
7903 ac_count=0
7904 $as_echo_n 0123456789 >"conftest.in"
7905 while :
7906 do
7907 cat "conftest.in" "conftest.in" >"conftest.tmp"
7908 mv "conftest.tmp" "conftest.in"
7909 cp "conftest.in" "conftest.nl"
7910 $as_echo '' >> "conftest.nl"
7911 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7913 as_fn_arith $ac_count + 1 && ac_count=$as_val
7914 if test $ac_count -gt ${ac_path_SED_max-0}; then
7915 # Best one so far, save it but keep looking for a better one
7916 ac_cv_path_SED="$ac_path_SED"
7917 ac_path_SED_max=$ac_count
7918 fi
7919 # 10*(2^10) chars as input seems more than enough
7920 test $ac_count -gt 10 && break
7921 done
7922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7923 esac
7924
7925 $ac_path_SED_found && break 3
7926 done
7927 done
7928 done
7929 IFS=$as_save_IFS
7930 if test -z "$ac_cv_path_SED"; then
7931 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7932 fi
7933 else
7934 ac_cv_path_SED=$SED
7935 fi
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7939 $as_echo "$ac_cv_path_SED" >&6; }
7940 SED="$ac_cv_path_SED"
7941 rm -f conftest.sed
7942
7943
7944 if test "X$prefix" = "XNONE"; then
7945 acl_final_prefix="$ac_default_prefix"
7946 else
7947 acl_final_prefix="$prefix"
7948 fi
7949 if test "X$exec_prefix" = "XNONE"; then
7950 acl_final_exec_prefix='${prefix}'
7951 else
7952 acl_final_exec_prefix="$exec_prefix"
7953 fi
7954 acl_save_prefix="$prefix"
7955 prefix="$acl_final_prefix"
7956 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7957 prefix="$acl_save_prefix"
7958
7959
7960 # Check whether --with-gnu-ld was given.
7961 if test "${with_gnu_ld+set}" = set; then :
7962 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7963 else
7964 with_gnu_ld=no
7965 fi
7966
7967 # Prepare PATH_SEPARATOR.
7968 # The user is always right.
7969 if test "${PATH_SEPARATOR+set}" != set; then
7970 echo "#! /bin/sh" >conf$$.sh
7971 echo "exit 0" >>conf$$.sh
7972 chmod +x conf$$.sh
7973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7974 PATH_SEPARATOR=';'
7975 else
7976 PATH_SEPARATOR=:
7977 fi
7978 rm -f conf$$.sh
7979 fi
7980 ac_prog=ld
7981 if test "$GCC" = yes; then
7982 # Check if gcc -print-prog-name=ld gives a path.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7984 $as_echo_n "checking for ld used by GCC... " >&6; }
7985 case $host in
7986 *-*-mingw*)
7987 # gcc leaves a trailing carriage return which upsets mingw
7988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7989 *)
7990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7991 esac
7992 case $ac_prog in
7993 # Accept absolute paths.
7994 [\\/]* | [A-Za-z]:[\\/]*)
7995 re_direlt='/[^/][^/]*/\.\./'
7996 # Canonicalize the path of ld
7997 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7999 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8000 done
8001 test -z "$LD" && LD="$ac_prog"
8002 ;;
8003 "")
8004 # If it fails, then pretend we aren't using GCC.
8005 ac_prog=ld
8006 ;;
8007 *)
8008 # If it is relative, then search for the first ld in PATH.
8009 with_gnu_ld=unknown
8010 ;;
8011 esac
8012 elif test "$with_gnu_ld" = yes; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8014 $as_echo_n "checking for GNU ld... " >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8017 $as_echo_n "checking for non-GNU ld... " >&6; }
8018 fi
8019 if ${acl_cv_path_LD+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -z "$LD"; then
8023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8024 for ac_dir in $PATH; do
8025 test -z "$ac_dir" && ac_dir=.
8026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8027 acl_cv_path_LD="$ac_dir/$ac_prog"
8028 # Check to see if the program is GNU ld. I'd rather use --version,
8029 # but apparently some GNU ld's only accept -v.
8030 # Break only if it was the GNU/non-GNU ld that we prefer.
8031 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8032 test "$with_gnu_ld" != no && break
8033 else
8034 test "$with_gnu_ld" != yes && break
8035 fi
8036 fi
8037 done
8038 IFS="$ac_save_ifs"
8039 else
8040 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8041 fi
8042 fi
8043
8044 LD="$acl_cv_path_LD"
8045 if test -n "$LD"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8047 $as_echo "$LD" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8054 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8055 if ${acl_cv_prog_gnu_ld+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8059 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8060 acl_cv_prog_gnu_ld=yes
8061 else
8062 acl_cv_prog_gnu_ld=no
8063 fi
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8066 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8067 with_gnu_ld=$acl_cv_prog_gnu_ld
8068
8069
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8072 $as_echo_n "checking for shared library run path origin... " >&6; }
8073 if ${acl_cv_rpath+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076
8077 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8078 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8079 . ./conftest.sh
8080 rm -f ./conftest.sh
8081 acl_cv_rpath=done
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8085 $as_echo "$acl_cv_rpath" >&6; }
8086 wl="$acl_cv_wl"
8087 libext="$acl_cv_libext"
8088 shlibext="$acl_cv_shlibext"
8089 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8090 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8091 hardcode_direct="$acl_cv_hardcode_direct"
8092 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8093 # Check whether --enable-rpath was given.
8094 if test "${enable_rpath+set}" = set; then :
8095 enableval=$enable_rpath; :
8096 else
8097 enable_rpath=yes
8098 fi
8099
8100
8101
8102 # Set the 'development' global.
8103 . $srcdir/../bfd/development.sh
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8106 $as_echo_n "checking for ANSI C header files... " >&6; }
8107 if ${ac_cv_header_stdc+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <stdlib.h>
8113 #include <stdarg.h>
8114 #include <string.h>
8115 #include <float.h>
8116
8117 int
8118 main ()
8119 {
8120
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 ac_cv_header_stdc=yes
8127 else
8128 ac_cv_header_stdc=no
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131
8132 if test $ac_cv_header_stdc = yes; then
8133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include <string.h>
8137
8138 _ACEOF
8139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140 $EGREP "memchr" >/dev/null 2>&1; then :
8141
8142 else
8143 ac_cv_header_stdc=no
8144 fi
8145 rm -f conftest*
8146
8147 fi
8148
8149 if test $ac_cv_header_stdc = yes; then
8150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #include <stdlib.h>
8154
8155 _ACEOF
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157 $EGREP "free" >/dev/null 2>&1; then :
8158
8159 else
8160 ac_cv_header_stdc=no
8161 fi
8162 rm -f conftest*
8163
8164 fi
8165
8166 if test $ac_cv_header_stdc = yes; then
8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168 if test "$cross_compiling" = yes; then :
8169 :
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 #include <ctype.h>
8174 #include <stdlib.h>
8175 #if ((' ' & 0x0FF) == 0x020)
8176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8178 #else
8179 # define ISLOWER(c) \
8180 (('a' <= (c) && (c) <= 'i') \
8181 || ('j' <= (c) && (c) <= 'r') \
8182 || ('s' <= (c) && (c) <= 'z'))
8183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8184 #endif
8185
8186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8187 int
8188 main ()
8189 {
8190 int i;
8191 for (i = 0; i < 256; i++)
8192 if (XOR (islower (i), ISLOWER (i))
8193 || toupper (i) != TOUPPER (i))
8194 return 2;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_run "$LINENO"; then :
8199
8200 else
8201 ac_cv_header_stdc=no
8202 fi
8203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8204 conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 fi
8206
8207 fi
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8210 $as_echo "$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8212
8213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8214
8215 fi
8216
8217 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8218 # for constant arguments. Useless!
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8220 $as_echo_n "checking for working alloca.h... " >&6; }
8221 if ${ac_cv_working_alloca_h+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 #include <alloca.h>
8227 int
8228 main ()
8229 {
8230 char *p = (char *) alloca (2 * sizeof (int));
8231 if (p) return 0;
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 ac_cv_working_alloca_h=yes
8238 else
8239 ac_cv_working_alloca_h=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8245 $as_echo "$ac_cv_working_alloca_h" >&6; }
8246 if test $ac_cv_working_alloca_h = yes; then
8247
8248 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8249
8250 fi
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8253 $as_echo_n "checking for alloca... " >&6; }
8254 if ${ac_cv_func_alloca_works+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #ifdef __GNUC__
8260 # define alloca __builtin_alloca
8261 #else
8262 # ifdef _MSC_VER
8263 # include <malloc.h>
8264 # define alloca _alloca
8265 # else
8266 # ifdef HAVE_ALLOCA_H
8267 # include <alloca.h>
8268 # else
8269 # ifdef _AIX
8270 #pragma alloca
8271 # else
8272 # ifndef alloca /* predefined by HP cc +Olibcalls */
8273 void *alloca (size_t);
8274 # endif
8275 # endif
8276 # endif
8277 # endif
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 char *p = (char *) alloca (1);
8284 if (p) return 0;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 ac_cv_func_alloca_works=yes
8291 else
8292 ac_cv_func_alloca_works=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8298 $as_echo "$ac_cv_func_alloca_works" >&6; }
8299
8300 if test $ac_cv_func_alloca_works = yes; then
8301
8302 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8303
8304 else
8305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8306 # that cause trouble. Some versions do not even contain alloca or
8307 # contain a buggy version. If you still want to use their alloca,
8308 # use ar to extract alloca.o from them instead of compiling alloca.c.
8309
8310 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8311
8312 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8313
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8316 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8317 if ${ac_cv_os_cray+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #if defined CRAY && ! defined CRAY2
8323 webecray
8324 #else
8325 wenotbecray
8326 #endif
8327
8328 _ACEOF
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330 $EGREP "webecray" >/dev/null 2>&1; then :
8331 ac_cv_os_cray=yes
8332 else
8333 ac_cv_os_cray=no
8334 fi
8335 rm -f conftest*
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8339 $as_echo "$ac_cv_os_cray" >&6; }
8340 if test $ac_cv_os_cray = yes; then
8341 for ac_func in _getb67 GETB67 getb67; do
8342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define CRAY_STACKSEG_END $ac_func
8348 _ACEOF
8349
8350 break
8351 fi
8352
8353 done
8354 fi
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8357 $as_echo_n "checking stack direction for C alloca... " >&6; }
8358 if ${ac_cv_c_stack_direction+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test "$cross_compiling" = yes; then :
8362 ac_cv_c_stack_direction=0
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 int
8368 find_stack_direction (int *addr, int depth)
8369 {
8370 int dir, dummy = 0;
8371 if (! addr)
8372 addr = &dummy;
8373 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8374 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8375 return dir + dummy;
8376 }
8377
8378 int
8379 main (int argc, char **argv)
8380 {
8381 return find_stack_direction (0, argc + !argv + 20) < 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_run "$LINENO"; then :
8385 ac_cv_c_stack_direction=1
8386 else
8387 ac_cv_c_stack_direction=-1
8388 fi
8389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8390 conftest.$ac_objext conftest.beam conftest.$ac_ext
8391 fi
8392
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8395 $as_echo "$ac_cv_c_stack_direction" >&6; }
8396 cat >>confdefs.h <<_ACEOF
8397 #define STACK_DIRECTION $ac_cv_c_stack_direction
8398 _ACEOF
8399
8400
8401 fi
8402
8403
8404 WIN32APILIBS=
8405 case ${host} in
8406 *mingw32*)
8407
8408 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8409
8410 WIN32APILIBS="-lws2_32"
8411 ;;
8412 esac
8413
8414
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8416 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8417 if ${am_cv_langinfo_codeset+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <langinfo.h>
8423 int
8424 main ()
8425 {
8426 char* cs = nl_langinfo(CODESET);
8427 ;
8428 return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"; then :
8432 am_cv_langinfo_codeset=yes
8433 else
8434 am_cv_langinfo_codeset=no
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext \
8437 conftest$ac_exeext conftest.$ac_ext
8438
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8441 $as_echo "$am_cv_langinfo_codeset" >&6; }
8442 if test $am_cv_langinfo_codeset = yes; then
8443
8444 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8445
8446 fi
8447
8448
8449 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
8450 do :
8451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8454 cat >>confdefs.h <<_ACEOF
8455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8456 _ACEOF
8457
8458 fi
8459
8460 done
8461
8462
8463
8464 for ac_func in getpagesize
8465 do :
8466 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8467 if test "x$ac_cv_func_getpagesize" = xyes; then :
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_GETPAGESIZE 1
8470 _ACEOF
8471
8472 fi
8473 done
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8476 $as_echo_n "checking for working mmap... " >&6; }
8477 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test "$cross_compiling" = yes; then :
8481 ac_cv_func_mmap_fixed_mapped=no
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 /* malloc might have been renamed as rpl_malloc. */
8487 #undef malloc
8488
8489 /* Thanks to Mike Haertel and Jim Avera for this test.
8490 Here is a matrix of mmap possibilities:
8491 mmap private not fixed
8492 mmap private fixed at somewhere currently unmapped
8493 mmap private fixed at somewhere already mapped
8494 mmap shared not fixed
8495 mmap shared fixed at somewhere currently unmapped
8496 mmap shared fixed at somewhere already mapped
8497 For private mappings, we should verify that changes cannot be read()
8498 back from the file, nor mmap's back from the file at a different
8499 address. (There have been systems where private was not correctly
8500 implemented like the infamous i386 svr4.0, and systems where the
8501 VM page cache was not coherent with the file system buffer cache
8502 like early versions of FreeBSD and possibly contemporary NetBSD.)
8503 For shared mappings, we should conversely verify that changes get
8504 propagated back to all the places they're supposed to be.
8505
8506 Grep wants private fixed already mapped.
8507 The main things grep needs to know about mmap are:
8508 * does it exist and is it safe to write into the mmap'd area
8509 * how to use it (BSD variants) */
8510
8511 #include <fcntl.h>
8512 #include <sys/mman.h>
8513
8514 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8515 char *malloc ();
8516 #endif
8517
8518 /* This mess was copied from the GNU getpagesize.h. */
8519 #ifndef HAVE_GETPAGESIZE
8520 # ifdef _SC_PAGESIZE
8521 # define getpagesize() sysconf(_SC_PAGESIZE)
8522 # else /* no _SC_PAGESIZE */
8523 # ifdef HAVE_SYS_PARAM_H
8524 # include <sys/param.h>
8525 # ifdef EXEC_PAGESIZE
8526 # define getpagesize() EXEC_PAGESIZE
8527 # else /* no EXEC_PAGESIZE */
8528 # ifdef NBPG
8529 # define getpagesize() NBPG * CLSIZE
8530 # ifndef CLSIZE
8531 # define CLSIZE 1
8532 # endif /* no CLSIZE */
8533 # else /* no NBPG */
8534 # ifdef NBPC
8535 # define getpagesize() NBPC
8536 # else /* no NBPC */
8537 # ifdef PAGESIZE
8538 # define getpagesize() PAGESIZE
8539 # endif /* PAGESIZE */
8540 # endif /* no NBPC */
8541 # endif /* no NBPG */
8542 # endif /* no EXEC_PAGESIZE */
8543 # else /* no HAVE_SYS_PARAM_H */
8544 # define getpagesize() 8192 /* punt totally */
8545 # endif /* no HAVE_SYS_PARAM_H */
8546 # endif /* no _SC_PAGESIZE */
8547
8548 #endif /* no HAVE_GETPAGESIZE */
8549
8550 int
8551 main ()
8552 {
8553 char *data, *data2, *data3;
8554 const char *cdata2;
8555 int i, pagesize;
8556 int fd, fd2;
8557
8558 pagesize = getpagesize ();
8559
8560 /* First, make a file with some known garbage in it. */
8561 data = (char *) malloc (pagesize);
8562 if (!data)
8563 return 1;
8564 for (i = 0; i < pagesize; ++i)
8565 *(data + i) = rand ();
8566 umask (0);
8567 fd = creat ("conftest.mmap", 0600);
8568 if (fd < 0)
8569 return 2;
8570 if (write (fd, data, pagesize) != pagesize)
8571 return 3;
8572 close (fd);
8573
8574 /* Next, check that the tail of a page is zero-filled. File must have
8575 non-zero length, otherwise we risk SIGBUS for entire page. */
8576 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8577 if (fd2 < 0)
8578 return 4;
8579 cdata2 = "";
8580 if (write (fd2, cdata2, 1) != 1)
8581 return 5;
8582 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8583 if (data2 == MAP_FAILED)
8584 return 6;
8585 for (i = 0; i < pagesize; ++i)
8586 if (*(data2 + i))
8587 return 7;
8588 close (fd2);
8589 if (munmap (data2, pagesize))
8590 return 8;
8591
8592 /* Next, try to mmap the file at a fixed address which already has
8593 something else allocated at it. If we can, also make sure that
8594 we see the same garbage. */
8595 fd = open ("conftest.mmap", O_RDWR);
8596 if (fd < 0)
8597 return 9;
8598 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8599 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8600 return 10;
8601 for (i = 0; i < pagesize; ++i)
8602 if (*(data + i) != *(data2 + i))
8603 return 11;
8604
8605 /* Finally, make sure that changes to the mapped area do not
8606 percolate back to the file as seen by read(). (This is a bug on
8607 some variants of i386 svr4.0.) */
8608 for (i = 0; i < pagesize; ++i)
8609 *(data2 + i) = *(data2 + i) + 1;
8610 data3 = (char *) malloc (pagesize);
8611 if (!data3)
8612 return 12;
8613 if (read (fd, data3, pagesize) != pagesize)
8614 return 13;
8615 for (i = 0; i < pagesize; ++i)
8616 if (*(data + i) != *(data3 + i))
8617 return 14;
8618 close (fd);
8619 return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_run "$LINENO"; then :
8623 ac_cv_func_mmap_fixed_mapped=yes
8624 else
8625 ac_cv_func_mmap_fixed_mapped=no
8626 fi
8627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8628 conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 fi
8630
8631 fi
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8633 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8634 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8635
8636 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8637
8638 fi
8639 rm -f conftest.mmap conftest.txt
8640
8641 for ac_header in vfork.h
8642 do :
8643 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8644 if test "x$ac_cv_header_vfork_h" = xyes; then :
8645 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_VFORK_H 1
8647 _ACEOF
8648
8649 fi
8650
8651 done
8652
8653 for ac_func in fork vfork
8654 do :
8655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8657 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8658 cat >>confdefs.h <<_ACEOF
8659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8660 _ACEOF
8661
8662 fi
8663 done
8664
8665 if test "x$ac_cv_func_fork" = xyes; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8667 $as_echo_n "checking for working fork... " >&6; }
8668 if ${ac_cv_func_fork_works+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 if test "$cross_compiling" = yes; then :
8672 ac_cv_func_fork_works=cross
8673 else
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 int
8678 main ()
8679 {
8680
8681 /* By Ruediger Kuhlmann. */
8682 return fork () < 0;
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_run "$LINENO"; then :
8689 ac_cv_func_fork_works=yes
8690 else
8691 ac_cv_func_fork_works=no
8692 fi
8693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8694 conftest.$ac_objext conftest.beam conftest.$ac_ext
8695 fi
8696
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8699 $as_echo "$ac_cv_func_fork_works" >&6; }
8700
8701 else
8702 ac_cv_func_fork_works=$ac_cv_func_fork
8703 fi
8704 if test "x$ac_cv_func_fork_works" = xcross; then
8705 case $host in
8706 *-*-amigaos* | *-*-msdosdjgpp*)
8707 # Override, as these systems have only a dummy fork() stub
8708 ac_cv_func_fork_works=no
8709 ;;
8710 *)
8711 ac_cv_func_fork_works=yes
8712 ;;
8713 esac
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8715 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8716 fi
8717 ac_cv_func_vfork_works=$ac_cv_func_vfork
8718 if test "x$ac_cv_func_vfork" = xyes; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8720 $as_echo_n "checking for working vfork... " >&6; }
8721 if ${ac_cv_func_vfork_works+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 if test "$cross_compiling" = yes; then :
8725 ac_cv_func_vfork_works=cross
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 /* Thanks to Paul Eggert for this test. */
8730 $ac_includes_default
8731 #include <sys/wait.h>
8732 #ifdef HAVE_VFORK_H
8733 # include <vfork.h>
8734 #endif
8735 /* On some sparc systems, changes by the child to local and incoming
8736 argument registers are propagated back to the parent. The compiler
8737 is told about this with #include <vfork.h>, but some compilers
8738 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8739 static variable whose address is put into a register that is
8740 clobbered by the vfork. */
8741 static void
8742 #ifdef __cplusplus
8743 sparc_address_test (int arg)
8744 # else
8745 sparc_address_test (arg) int arg;
8746 #endif
8747 {
8748 static pid_t child;
8749 if (!child) {
8750 child = vfork ();
8751 if (child < 0) {
8752 perror ("vfork");
8753 _exit(2);
8754 }
8755 if (!child) {
8756 arg = getpid();
8757 write(-1, "", 0);
8758 _exit (arg);
8759 }
8760 }
8761 }
8762
8763 int
8764 main ()
8765 {
8766 pid_t parent = getpid ();
8767 pid_t child;
8768
8769 sparc_address_test (0);
8770
8771 child = vfork ();
8772
8773 if (child == 0) {
8774 /* Here is another test for sparc vfork register problems. This
8775 test uses lots of local variables, at least as many local
8776 variables as main has allocated so far including compiler
8777 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8778 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8779 reuse the register of parent for one of the local variables,
8780 since it will think that parent can't possibly be used any more
8781 in this routine. Assigning to the local variable will thus
8782 munge parent in the parent process. */
8783 pid_t
8784 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8785 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8786 /* Convince the compiler that p..p7 are live; otherwise, it might
8787 use the same hardware register for all 8 local variables. */
8788 if (p != p1 || p != p2 || p != p3 || p != p4
8789 || p != p5 || p != p6 || p != p7)
8790 _exit(1);
8791
8792 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8793 from child file descriptors. If the child closes a descriptor
8794 before it execs or exits, this munges the parent's descriptor
8795 as well. Test for this by closing stdout in the child. */
8796 _exit(close(fileno(stdout)) != 0);
8797 } else {
8798 int status;
8799 struct stat st;
8800
8801 while (wait(&status) != child)
8802 ;
8803 return (
8804 /* Was there some problem with vforking? */
8805 child < 0
8806
8807 /* Did the child fail? (This shouldn't happen.) */
8808 || status
8809
8810 /* Did the vfork/compiler bug occur? */
8811 || parent != getpid()
8812
8813 /* Did the file descriptor bug occur? */
8814 || fstat(fileno(stdout), &st) != 0
8815 );
8816 }
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_run "$LINENO"; then :
8820 ac_cv_func_vfork_works=yes
8821 else
8822 ac_cv_func_vfork_works=no
8823 fi
8824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8825 conftest.$ac_objext conftest.beam conftest.$ac_ext
8826 fi
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8830 $as_echo "$ac_cv_func_vfork_works" >&6; }
8831
8832 fi;
8833 if test "x$ac_cv_func_fork_works" = xcross; then
8834 ac_cv_func_vfork_works=$ac_cv_func_vfork
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8836 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8837 fi
8838
8839 if test "x$ac_cv_func_vfork_works" = xyes; then
8840
8841 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8842
8843 else
8844
8845 $as_echo "#define vfork fork" >>confdefs.h
8846
8847 fi
8848 if test "x$ac_cv_func_fork_works" = xyes; then
8849
8850 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8851
8852 fi
8853
8854 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8855 ptrace64 sbrk setns sigaltstack sigprocmask \
8856 setpgid setpgrp getrusage getauxval
8857 do :
8858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8861 cat >>confdefs.h <<_ACEOF
8862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8863 _ACEOF
8864
8865 fi
8866 done
8867
8868
8869 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8870 "
8871 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8872 ac_have_decl=1
8873 else
8874 ac_have_decl=0
8875 fi
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8879 _ACEOF
8880
8881
8882 if test "$cross_compiling" = yes; then :
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #include <sys/personality.h>
8886 int
8887 main ()
8888 {
8889
8890 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8891 # define ADDR_NO_RANDOMIZE 0x0040000
8892 # endif
8893 /* Test the flag could be set and stays set. */
8894 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8895 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8896 return 1
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"; then :
8902 have_personality=true
8903 else
8904 have_personality=false
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/personality.h>
8912 int
8913 main ()
8914 {
8915
8916 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8917 # define ADDR_NO_RANDOMIZE 0x0040000
8918 # endif
8919 /* Test the flag could be set and stays set. */
8920 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8921 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8922 return 1
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_run "$LINENO"; then :
8928 have_personality=true
8929 else
8930 have_personality=false
8931 fi
8932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8933 conftest.$ac_objext conftest.beam conftest.$ac_ext
8934 fi
8935
8936 if $have_personality
8937 then
8938
8939 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8940
8941 fi
8942
8943 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8944 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8945 ac_have_decl=1
8946 else
8947 ac_have_decl=0
8948 fi
8949
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_DECL_STRSTR $ac_have_decl
8952 _ACEOF
8953
8954
8955 # ----------------------- #
8956 # Checks for structures. #
8957 # ----------------------- #
8958
8959 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8960 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8964 _ACEOF
8965
8966
8967 fi
8968 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8969 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8973 _ACEOF
8974
8975
8976 fi
8977
8978
8979 # On FreeBSD we need libutil for the kinfo_get* functions. On
8980 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8981 # Figure out which one to use.
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8983 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8984 if ${ac_cv_search_kinfo_getfile+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 ac_func_search_save_LIBS=$LIBS
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990
8991 /* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8994 #ifdef __cplusplus
8995 extern "C"
8996 #endif
8997 char kinfo_getfile ();
8998 int
8999 main ()
9000 {
9001 return kinfo_getfile ();
9002 ;
9003 return 0;
9004 }
9005 _ACEOF
9006 for ac_lib in '' util util-freebsd; do
9007 if test -z "$ac_lib"; then
9008 ac_res="none required"
9009 else
9010 ac_res=-l$ac_lib
9011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9012 fi
9013 if ac_fn_c_try_link "$LINENO"; then :
9014 ac_cv_search_kinfo_getfile=$ac_res
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext
9018 if ${ac_cv_search_kinfo_getfile+:} false; then :
9019 break
9020 fi
9021 done
9022 if ${ac_cv_search_kinfo_getfile+:} false; then :
9023
9024 else
9025 ac_cv_search_kinfo_getfile=no
9026 fi
9027 rm conftest.$ac_ext
9028 LIBS=$ac_func_search_save_LIBS
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9031 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9032 ac_res=$ac_cv_search_kinfo_getfile
9033 if test "$ac_res" != no; then :
9034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9035
9036 fi
9037
9038
9039 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9040 for ac_func in kinfo_getfile
9041 do :
9042 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9043 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_KINFO_GETFILE 1
9046 _ACEOF
9047
9048 fi
9049 done
9050
9051
9052 # Check for std::thread. This does not work on some platforms, like
9053 # mingw and DJGPP.
9054 ac_ext=cpp
9055 ac_cpp='$CXXCPP $CPPFLAGS'
9056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9059
9060
9061
9062
9063
9064 ac_ext=c
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9069
9070 ax_pthread_ok=no
9071
9072 # We used to check for pthread.h first, but this fails if pthread.h
9073 # requires special compiler flags (e.g. on Tru64 or Sequent).
9074 # It gets checked for in the link test anyway.
9075
9076 # First of all, check if the user has set any of the PTHREAD_LIBS,
9077 # etcetera environment variables, and if threads linking works using
9078 # them:
9079 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9080 ax_pthread_save_CC="$CC"
9081 ax_pthread_save_CFLAGS="$CFLAGS"
9082 ax_pthread_save_LIBS="$LIBS"
9083 if test "x$PTHREAD_CC" != "x"; then :
9084 CC="$PTHREAD_CC"
9085 fi
9086 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9087 LIBS="$PTHREAD_LIBS $LIBS"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9089 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 char pthread_join ();
9100 int
9101 main ()
9102 {
9103 return pthread_join ();
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 if ac_fn_c_try_link "$LINENO"; then :
9109 ax_pthread_ok=yes
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9114 $as_echo "$ax_pthread_ok" >&6; }
9115 if test "x$ax_pthread_ok" = "xno"; then
9116 PTHREAD_LIBS=""
9117 PTHREAD_CFLAGS=""
9118 fi
9119 CC="$ax_pthread_save_CC"
9120 CFLAGS="$ax_pthread_save_CFLAGS"
9121 LIBS="$ax_pthread_save_LIBS"
9122 fi
9123
9124 # We must check for the threads library under a number of different
9125 # names; the ordering is very important because some systems
9126 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9127 # libraries is broken (non-POSIX).
9128
9129 # Create a list of thread flags to try. Items starting with a "-" are
9130 # C compiler flags, and other items are library names, except for "none"
9131 # which indicates that we try without any flags at all, and "pthread-config"
9132 # which is a program returning the flags for the Pth emulation library.
9133
9134 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9135
9136 # The ordering *is* (sometimes) important. Some notes on the
9137 # individual items follow:
9138
9139 # pthreads: AIX (must check this before -lpthread)
9140 # none: in case threads are in libc; should be tried before -Kthread and
9141 # other compiler flags to prevent continual compiler warnings
9142 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9143 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9144 # (Note: HP C rejects this with "bad form for `-t' option")
9145 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9146 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9147 # doesn't hurt to check since this sometimes defines pthreads and
9148 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9149 # is present but should not be used directly; and before -mthreads,
9150 # because the compiler interprets this as "-mt" + "-hreads")
9151 # -mthreads: Mingw32/gcc, Lynx/gcc
9152 # pthread: Linux, etcetera
9153 # --thread-safe: KAI C++
9154 # pthread-config: use pthread-config program (for GNU Pth library)
9155
9156 case $host_os in
9157
9158 freebsd*)
9159
9160 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9161 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9162
9163 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9164 ;;
9165
9166 hpux*)
9167
9168 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9169 # multi-threading and also sets -lpthread."
9170
9171 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9172 ;;
9173
9174 openedition*)
9175
9176 # IBM z/OS requires a feature-test macro to be defined in order to
9177 # enable POSIX threads at all, so give the user a hint if this is
9178 # not set. (We don't define these ourselves, as they can affect
9179 # other portions of the system API in unpredictable ways.)
9180
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183
9184 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9185 AX_PTHREAD_ZOS_MISSING
9186 # endif
9187
9188 _ACEOF
9189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9190 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9192 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9193 fi
9194 rm -f conftest*
9195
9196 ;;
9197
9198 solaris*)
9199
9200 # On Solaris (at least, for some versions), libc contains stubbed
9201 # (non-functional) versions of the pthreads routines, so link-based
9202 # tests will erroneously succeed. (N.B.: The stubs are missing
9203 # pthread_cleanup_push, or rather a function called by this macro,
9204 # so we could check for that, but who knows whether they'll stub
9205 # that too in a future libc.) So we'll check first for the
9206 # standard Solaris way of linking pthreads (-mt -lpthread).
9207
9208 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9209 ;;
9210 esac
9211
9212 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9213
9214 if test "x$GCC" = "xyes"; then :
9215 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9216 fi
9217
9218 # The presence of a feature test macro requesting re-entrant function
9219 # definitions is, on some systems, a strong hint that pthreads support is
9220 # correctly enabled
9221
9222 case $host_os in
9223 darwin* | hpux* | linux* | osf* | solaris*)
9224 ax_pthread_check_macro="_REENTRANT"
9225 ;;
9226
9227 aix*)
9228 ax_pthread_check_macro="_THREAD_SAFE"
9229 ;;
9230
9231 *)
9232 ax_pthread_check_macro="--"
9233 ;;
9234 esac
9235 if test "x$ax_pthread_check_macro" = "x--"; then :
9236 ax_pthread_check_cond=0
9237 else
9238 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9239 fi
9240
9241 # Are we compiling with Clang?
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9244 $as_echo_n "checking whether $CC is Clang... " >&6; }
9245 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 ax_cv_PTHREAD_CLANG=no
9249 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9250 if test "x$GCC" = "xyes"; then
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9254 # if defined(__clang__) && defined(__llvm__)
9255 AX_PTHREAD_CC_IS_CLANG
9256 # endif
9257
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9261 ax_cv_PTHREAD_CLANG=yes
9262 fi
9263 rm -f conftest*
9264
9265 fi
9266
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9269 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9270 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9271
9272 ax_pthread_clang_warning=no
9273
9274 # Clang needs special handling, because older versions handle the -pthread
9275 # option in a rather... idiosyncratic way
9276
9277 if test "x$ax_pthread_clang" = "xyes"; then
9278
9279 # Clang takes -pthread; it has never supported any other flag
9280
9281 # (Note 1: This will need to be revisited if a system that Clang
9282 # supports has POSIX threads in a separate library. This tends not
9283 # to be the way of modern systems, but it's conceivable.)
9284
9285 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9286 # to get POSIX threads support; the API is always present and
9287 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9288 # -pthread does define _REENTRANT, and while the Darwin headers
9289 # ignore this macro, third-party headers might not.)
9290
9291 PTHREAD_CFLAGS="-pthread"
9292 PTHREAD_LIBS=
9293
9294 ax_pthread_ok=yes
9295
9296 # However, older versions of Clang make a point of warning the user
9297 # that, in an invocation where only linking and no compilation is
9298 # taking place, the -pthread option has no effect ("argument unused
9299 # during compilation"). They expect -pthread to be passed in only
9300 # when source code is being compiled.
9301 #
9302 # Problem is, this is at odds with the way Automake and most other
9303 # C build frameworks function, which is that the same flags used in
9304 # compilation (CFLAGS) are also used in linking. Many systems
9305 # supported by AX_PTHREAD require exactly this for POSIX threads
9306 # support, and in fact it is often not straightforward to specify a
9307 # flag that is used only in the compilation phase and not in
9308 # linking. Such a scenario is extremely rare in practice.
9309 #
9310 # Even though use of the -pthread flag in linking would only print
9311 # a warning, this can be a nuisance for well-run software projects
9312 # that build with -Werror. So if the active version of Clang has
9313 # this misfeature, we search for an option to squash it.
9314
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9316 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9317 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9321 # Create an alternate version of $ac_link that compiles and
9322 # links in two steps (.c -> .o, .o -> exe) instead of one
9323 # (.c -> exe), because the warning occurs only in the second
9324 # step
9325 ax_pthread_save_ac_link="$ac_link"
9326 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9327 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9328 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9329 ax_pthread_save_CFLAGS="$CFLAGS"
9330 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9331 if test "x$ax_pthread_try" = "xunknown"; then :
9332 break
9333 fi
9334 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9335 ac_link="$ax_pthread_save_ac_link"
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int main(void){return 0;}
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 ac_link="$ax_pthread_2step_ac_link"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int main(void){return 0;}
9345 _ACEOF
9346 if ac_fn_c_try_link "$LINENO"; then :
9347 break
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 done
9356 ac_link="$ax_pthread_save_ac_link"
9357 CFLAGS="$ax_pthread_save_CFLAGS"
9358 if test "x$ax_pthread_try" = "x"; then :
9359 ax_pthread_try=no
9360 fi
9361 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9362
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9365 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9366
9367 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9368 no | unknown) ;;
9369 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9370 esac
9371
9372 fi # $ax_pthread_clang = yes
9373
9374 if test "x$ax_pthread_ok" = "xno"; then
9375 for ax_pthread_try_flag in $ax_pthread_flags; do
9376
9377 case $ax_pthread_try_flag in
9378 none)
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9380 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9381 ;;
9382
9383 -mt,pthread)
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9385 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9386 PTHREAD_CFLAGS="-mt"
9387 PTHREAD_LIBS="-lpthread"
9388 ;;
9389
9390 -*)
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9392 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9393 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9394 ;;
9395
9396 pthread-config)
9397 # Extract the first word of "pthread-config", so it can be a program name with args.
9398 set dummy pthread-config; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test -n "$ax_pthread_config"; then
9405 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9406 else
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9409 do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9414 ac_cv_prog_ax_pthread_config="yes"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420 IFS=$as_save_IFS
9421
9422 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9423 fi
9424 fi
9425 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9426 if test -n "$ax_pthread_config"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9428 $as_echo "$ax_pthread_config" >&6; }
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9432 fi
9433
9434
9435 if test "x$ax_pthread_config" = "xno"; then :
9436 continue
9437 fi
9438 PTHREAD_CFLAGS="`pthread-config --cflags`"
9439 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9440 ;;
9441
9442 *)
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9444 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9445 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9446 ;;
9447 esac
9448
9449 ax_pthread_save_CFLAGS="$CFLAGS"
9450 ax_pthread_save_LIBS="$LIBS"
9451 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9452 LIBS="$PTHREAD_LIBS $LIBS"
9453
9454 # Check for various functions. We must include pthread.h,
9455 # since some functions may be macros. (On the Sequent, we
9456 # need a special flag -Kthread to make this header compile.)
9457 # We check for pthread_join because it is in -lpthread on IRIX
9458 # while pthread_create is in libc. We check for pthread_attr_init
9459 # due to DEC craziness with -lpthreads. We check for
9460 # pthread_cleanup_push because it is one of the few pthread
9461 # functions on Solaris that doesn't have a non-functional libc stub.
9462 # We try pthread_create on general principles.
9463
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <pthread.h>
9467 # if $ax_pthread_check_cond
9468 # error "$ax_pthread_check_macro must be defined"
9469 # endif
9470 static void routine(void *a) { a = 0; }
9471 static void *start_routine(void *a) { return a; }
9472 int
9473 main ()
9474 {
9475 pthread_t th; pthread_attr_t attr;
9476 pthread_create(&th, 0, start_routine, 0);
9477 pthread_join(th, 0);
9478 pthread_attr_init(&attr);
9479 pthread_cleanup_push(routine, 0);
9480 pthread_cleanup_pop(0) /* ; */
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ax_pthread_ok=yes
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490
9491 CFLAGS="$ax_pthread_save_CFLAGS"
9492 LIBS="$ax_pthread_save_LIBS"
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9495 $as_echo "$ax_pthread_ok" >&6; }
9496 if test "x$ax_pthread_ok" = "xyes"; then :
9497 break
9498 fi
9499
9500 PTHREAD_LIBS=""
9501 PTHREAD_CFLAGS=""
9502 done
9503 fi
9504
9505 # Various other checks:
9506 if test "x$ax_pthread_ok" = "xyes"; then
9507 ax_pthread_save_CFLAGS="$CFLAGS"
9508 ax_pthread_save_LIBS="$LIBS"
9509 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9510 LIBS="$PTHREAD_LIBS $LIBS"
9511
9512 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9514 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9515 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9519 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #include <pthread.h>
9523 int
9524 main ()
9525 {
9526 int attr = $ax_pthread_attr; return attr /* ; */
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 done
9537
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9540 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9541 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9542 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9543 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9544
9545 cat >>confdefs.h <<_ACEOF
9546 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9547 _ACEOF
9548
9549 ax_pthread_joinable_attr_defined=yes
9550
9551 fi
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9554 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9555 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9559 case $host_os in
9560 solaris*)
9561 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9562 ;;
9563 esac
9564
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9567 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9568 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9569 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9570 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9571 ax_pthread_special_flags_added=yes
9572 fi
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9575 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9576 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <pthread.h>
9582 int
9583 main ()
9584 {
9585 int i = PTHREAD_PRIO_INHERIT;
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 ax_cv_PTHREAD_PRIO_INHERIT=yes
9592 else
9593 ax_cv_PTHREAD_PRIO_INHERIT=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9600 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9602 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9603
9604 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9605
9606 ax_pthread_prio_inherit_defined=yes
9607
9608 fi
9609
9610 CFLAGS="$ax_pthread_save_CFLAGS"
9611 LIBS="$ax_pthread_save_LIBS"
9612
9613 # More AIX lossage: compile with *_r variant
9614 if test "x$GCC" != "xyes"; then
9615 case $host_os in
9616 aix*)
9617 case "x/$CC" in #(
9618 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9619 #handle absolute path differently from PATH based program lookup
9620 case "x$CC" in #(
9621 x/*) :
9622 if as_fn_executable_p ${CC}_r; then :
9623 PTHREAD_CC="${CC}_r"
9624 fi ;; #(
9625 *) :
9626 for ac_prog in ${CC}_r
9627 do
9628 # Extract the first word of "$ac_prog", so it can be a program name with args.
9629 set dummy $ac_prog; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 if test -n "$PTHREAD_CC"; then
9636 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9637 else
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9640 do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9645 ac_cv_prog_PTHREAD_CC="$ac_prog"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9648 fi
9649 done
9650 done
9651 IFS=$as_save_IFS
9652
9653 fi
9654 fi
9655 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9656 if test -n "$PTHREAD_CC"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9658 $as_echo "$PTHREAD_CC" >&6; }
9659 else
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9662 fi
9663
9664
9665 test -n "$PTHREAD_CC" && break
9666 done
9667 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9668 ;;
9669 esac ;; #(
9670 *) :
9671 ;;
9672 esac
9673 ;;
9674 esac
9675 fi
9676 fi
9677
9678 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9679
9680
9681
9682
9683
9684 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9685 if test "x$ax_pthread_ok" = "xyes"; then
9686 threads=yes
9687 :
9688 else
9689 ax_pthread_ok=no
9690 threads=no
9691 fi
9692 ac_ext=cpp
9693 ac_cpp='$CXXCPP $CPPFLAGS'
9694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9697
9698
9699 if test "$threads" = "yes"; then
9700 save_LIBS="$LIBS"
9701 LIBS="$PTHREAD_LIBS $LIBS"
9702 save_CXXFLAGS="$CXXFLAGS"
9703 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9705 $as_echo_n "checking for std::thread... " >&6; }
9706 if ${gdb_cv_cxx_std_thread+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 #include <thread>
9712 void callback() { }
9713 int
9714 main ()
9715 {
9716 std::thread t(callback);
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_cxx_try_compile "$LINENO"; then :
9722 gdb_cv_cxx_std_thread=yes
9723 else
9724 gdb_cv_cxx_std_thread=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9729 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9730
9731 # This check must be here, while LIBS includes any necessary
9732 # threading library.
9733 for ac_func in pthread_sigmask pthread_setname_np
9734 do :
9735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9738 cat >>confdefs.h <<_ACEOF
9739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9740 _ACEOF
9741
9742 fi
9743 done
9744
9745
9746 LIBS="$save_LIBS"
9747 CXXFLAGS="$save_CXXFLAGS"
9748 fi
9749 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9750
9751 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9752
9753 fi
9754 ac_ext=c
9755 ac_cpp='$CPP $CPPFLAGS'
9756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759
9760
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9762 $as_echo_n "checking for sigsetjmp... " >&6; }
9763 if ${gdb_cv_func_sigsetjmp+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768
9769 #include <setjmp.h>
9770
9771 int
9772 main ()
9773 {
9774 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 gdb_cv_func_sigsetjmp=yes
9781 else
9782 gdb_cv_func_sigsetjmp=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9787 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9788 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9789
9790 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9791
9792 fi
9793
9794
9795 # Check whether --with-intel_pt was given.
9796 if test "${with_intel_pt+set}" = set; then :
9797 withval=$with_intel_pt;
9798 else
9799 with_intel_pt=auto
9800 fi
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9803 $as_echo_n "checking whether to use intel pt... " >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9805 $as_echo "$with_intel_pt" >&6; }
9806
9807 if test "${with_intel_pt}" = no; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9809 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9810 HAVE_LIBIPT=no
9811 else
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814
9815 #include <linux/perf_event.h>
9816 #ifndef PERF_ATTR_SIZE_VER5
9817 # error
9818 #endif
9819
9820 _ACEOF
9821 if ac_fn_c_try_cpp "$LINENO"; then :
9822 perf_event=yes
9823 else
9824 perf_event=no
9825 fi
9826 rm -f conftest.err conftest.i conftest.$ac_ext
9827 if test "$perf_event" != yes; then
9828 if test "$with_intel_pt" = yes; then
9829 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9832 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9833 fi
9834 fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844 use_additional=yes
9845
9846 acl_save_prefix="$prefix"
9847 prefix="$acl_final_prefix"
9848 acl_save_exec_prefix="$exec_prefix"
9849 exec_prefix="$acl_final_exec_prefix"
9850
9851 eval additional_includedir=\"$includedir\"
9852 eval additional_libdir=\"$libdir\"
9853
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9856
9857
9858 # Check whether --with-libipt-prefix was given.
9859 if test "${with_libipt_prefix+set}" = set; then :
9860 withval=$with_libipt_prefix;
9861 if test "X$withval" = "Xno"; then
9862 use_additional=no
9863 else
9864 if test "X$withval" = "X"; then
9865
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9870
9871 eval additional_includedir=\"$includedir\"
9872 eval additional_libdir=\"$libdir\"
9873
9874 exec_prefix="$acl_save_exec_prefix"
9875 prefix="$acl_save_prefix"
9876
9877 else
9878 additional_includedir="$withval/include"
9879 additional_libdir="$withval/lib"
9880 fi
9881 fi
9882
9883 fi
9884
9885
9886 # Check whether --with-libipt-type was given.
9887 if test "${with_libipt_type+set}" = set; then :
9888 withval=$with_libipt_type; with_libipt_type=$withval
9889 else
9890 with_libipt_type=auto
9891 fi
9892
9893 lib_type=`eval echo \$with_libipt_type`
9894
9895 LIBIPT=
9896 LTLIBIPT=
9897 INCIPT=
9898 rpathdirs=
9899 ltrpathdirs=
9900 names_already_handled=
9901 names_next_round='ipt '
9902 while test -n "$names_next_round"; do
9903 names_this_round="$names_next_round"
9904 names_next_round=
9905 for name in $names_this_round; do
9906 already_handled=
9907 for n in $names_already_handled; do
9908 if test "$n" = "$name"; then
9909 already_handled=yes
9910 break
9911 fi
9912 done
9913 if test -z "$already_handled"; then
9914 names_already_handled="$names_already_handled $name"
9915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9916 eval value=\"\$HAVE_LIB$uppername\"
9917 if test -n "$value"; then
9918 if test "$value" = yes; then
9919 eval value=\"\$LIB$uppername\"
9920 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9921 eval value=\"\$LTLIB$uppername\"
9922 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9923 else
9924 :
9925 fi
9926 else
9927 found_dir=
9928 found_la=
9929 found_so=
9930 found_a=
9931 if test $use_additional = yes; then
9932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9933 found_dir="$additional_libdir"
9934 found_so="$additional_libdir/lib$name.$shlibext"
9935 if test -f "$additional_libdir/lib$name.la"; then
9936 found_la="$additional_libdir/lib$name.la"
9937 fi
9938 elif test x$lib_type != xshared; then
9939 if test -f "$additional_libdir/lib$name.$libext"; then
9940 found_dir="$additional_libdir"
9941 found_a="$additional_libdir/lib$name.$libext"
9942 if test -f "$additional_libdir/lib$name.la"; then
9943 found_la="$additional_libdir/lib$name.la"
9944 fi
9945 fi
9946 fi
9947 fi
9948 if test "X$found_dir" = "X"; then
9949 for x in $LDFLAGS $LTLIBIPT; do
9950
9951 acl_save_prefix="$prefix"
9952 prefix="$acl_final_prefix"
9953 acl_save_exec_prefix="$exec_prefix"
9954 exec_prefix="$acl_final_exec_prefix"
9955 eval x=\"$x\"
9956 exec_prefix="$acl_save_exec_prefix"
9957 prefix="$acl_save_prefix"
9958
9959 case "$x" in
9960 -L*)
9961 dir=`echo "X$x" | sed -e 's/^X-L//'`
9962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9963 found_dir="$dir"
9964 found_so="$dir/lib$name.$shlibext"
9965 if test -f "$dir/lib$name.la"; then
9966 found_la="$dir/lib$name.la"
9967 fi
9968 elif test x$lib_type != xshared; then
9969 if test -f "$dir/lib$name.$libext"; then
9970 found_dir="$dir"
9971 found_a="$dir/lib$name.$libext"
9972 if test -f "$dir/lib$name.la"; then
9973 found_la="$dir/lib$name.la"
9974 fi
9975 fi
9976 fi
9977 ;;
9978 esac
9979 if test "X$found_dir" != "X"; then
9980 break
9981 fi
9982 done
9983 fi
9984 if test "X$found_dir" != "X"; then
9985 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9986 if test "X$found_so" != "X"; then
9987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9988 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9989 else
9990 haveit=
9991 for x in $ltrpathdirs; do
9992 if test "X$x" = "X$found_dir"; then
9993 haveit=yes
9994 break
9995 fi
9996 done
9997 if test -z "$haveit"; then
9998 ltrpathdirs="$ltrpathdirs $found_dir"
9999 fi
10000 if test "$hardcode_direct" = yes; then
10001 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10002 else
10003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10004 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10005 haveit=
10006 for x in $rpathdirs; do
10007 if test "X$x" = "X$found_dir"; then
10008 haveit=yes
10009 break
10010 fi
10011 done
10012 if test -z "$haveit"; then
10013 rpathdirs="$rpathdirs $found_dir"
10014 fi
10015 else
10016 haveit=
10017 for x in $LDFLAGS $LIBIPT; do
10018
10019 acl_save_prefix="$prefix"
10020 prefix="$acl_final_prefix"
10021 acl_save_exec_prefix="$exec_prefix"
10022 exec_prefix="$acl_final_exec_prefix"
10023 eval x=\"$x\"
10024 exec_prefix="$acl_save_exec_prefix"
10025 prefix="$acl_save_prefix"
10026
10027 if test "X$x" = "X-L$found_dir"; then
10028 haveit=yes
10029 break
10030 fi
10031 done
10032 if test -z "$haveit"; then
10033 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10034 fi
10035 if test "$hardcode_minus_L" != no; then
10036 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10037 else
10038 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10039 fi
10040 fi
10041 fi
10042 fi
10043 else
10044 if test "X$found_a" != "X"; then
10045 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10046 else
10047 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10048 fi
10049 fi
10050 additional_includedir=
10051 case "$found_dir" in
10052 */lib | */lib/)
10053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10054 additional_includedir="$basedir/include"
10055 ;;
10056 esac
10057 if test "X$additional_includedir" != "X"; then
10058 if test "X$additional_includedir" != "X/usr/include"; then
10059 haveit=
10060 if test "X$additional_includedir" = "X/usr/local/include"; then
10061 if test -n "$GCC"; then
10062 case $host_os in
10063 linux*) haveit=yes;;
10064 esac
10065 fi
10066 fi
10067 if test -z "$haveit"; then
10068 for x in $CPPFLAGS $INCIPT; do
10069
10070 acl_save_prefix="$prefix"
10071 prefix="$acl_final_prefix"
10072 acl_save_exec_prefix="$exec_prefix"
10073 exec_prefix="$acl_final_exec_prefix"
10074 eval x=\"$x\"
10075 exec_prefix="$acl_save_exec_prefix"
10076 prefix="$acl_save_prefix"
10077
10078 if test "X$x" = "X-I$additional_includedir"; then
10079 haveit=yes
10080 break
10081 fi
10082 done
10083 if test -z "$haveit"; then
10084 if test -d "$additional_includedir"; then
10085 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10086 fi
10087 fi
10088 fi
10089 fi
10090 fi
10091 if test -n "$found_la"; then
10092 save_libdir="$libdir"
10093 case "$found_la" in
10094 */* | *\\*) . "$found_la" ;;
10095 *) . "./$found_la" ;;
10096 esac
10097 libdir="$save_libdir"
10098 for dep in $dependency_libs; do
10099 case "$dep" in
10100 -L*)
10101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10102 if test "X$additional_libdir" != "X/usr/lib"; then
10103 haveit=
10104 if test "X$additional_libdir" = "X/usr/local/lib"; then
10105 if test -n "$GCC"; then
10106 case $host_os in
10107 linux*) haveit=yes;;
10108 esac
10109 fi
10110 fi
10111 if test -z "$haveit"; then
10112 haveit=
10113 for x in $LDFLAGS $LIBIPT; do
10114
10115 acl_save_prefix="$prefix"
10116 prefix="$acl_final_prefix"
10117 acl_save_exec_prefix="$exec_prefix"
10118 exec_prefix="$acl_final_exec_prefix"
10119 eval x=\"$x\"
10120 exec_prefix="$acl_save_exec_prefix"
10121 prefix="$acl_save_prefix"
10122
10123 if test "X$x" = "X-L$additional_libdir"; then
10124 haveit=yes
10125 break
10126 fi
10127 done
10128 if test -z "$haveit"; then
10129 if test -d "$additional_libdir"; then
10130 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10131 fi
10132 fi
10133 haveit=
10134 for x in $LDFLAGS $LTLIBIPT; do
10135
10136 acl_save_prefix="$prefix"
10137 prefix="$acl_final_prefix"
10138 acl_save_exec_prefix="$exec_prefix"
10139 exec_prefix="$acl_final_exec_prefix"
10140 eval x=\"$x\"
10141 exec_prefix="$acl_save_exec_prefix"
10142 prefix="$acl_save_prefix"
10143
10144 if test "X$x" = "X-L$additional_libdir"; then
10145 haveit=yes
10146 break
10147 fi
10148 done
10149 if test -z "$haveit"; then
10150 if test -d "$additional_libdir"; then
10151 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10152 fi
10153 fi
10154 fi
10155 fi
10156 ;;
10157 -R*)
10158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10159 if test "$enable_rpath" != no; then
10160 haveit=
10161 for x in $rpathdirs; do
10162 if test "X$x" = "X$dir"; then
10163 haveit=yes
10164 break
10165 fi
10166 done
10167 if test -z "$haveit"; then
10168 rpathdirs="$rpathdirs $dir"
10169 fi
10170 haveit=
10171 for x in $ltrpathdirs; do
10172 if test "X$x" = "X$dir"; then
10173 haveit=yes
10174 break
10175 fi
10176 done
10177 if test -z "$haveit"; then
10178 ltrpathdirs="$ltrpathdirs $dir"
10179 fi
10180 fi
10181 ;;
10182 -l*)
10183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10184 ;;
10185 *.la)
10186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10187 ;;
10188 *)
10189 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10190 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10191 ;;
10192 esac
10193 done
10194 fi
10195 else
10196 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10197 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10198 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10199 else
10200 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10201 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10202 fi
10203 fi
10204 fi
10205 fi
10206 done
10207 done
10208 if test "X$rpathdirs" != "X"; then
10209 if test -n "$hardcode_libdir_separator"; then
10210 alldirs=
10211 for found_dir in $rpathdirs; do
10212 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10213 done
10214 acl_save_libdir="$libdir"
10215 libdir="$alldirs"
10216 eval flag=\"$hardcode_libdir_flag_spec\"
10217 libdir="$acl_save_libdir"
10218 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10219 else
10220 for found_dir in $rpathdirs; do
10221 acl_save_libdir="$libdir"
10222 libdir="$found_dir"
10223 eval flag=\"$hardcode_libdir_flag_spec\"
10224 libdir="$acl_save_libdir"
10225 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10226 done
10227 fi
10228 fi
10229 if test "X$ltrpathdirs" != "X"; then
10230 for found_dir in $ltrpathdirs; do
10231 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10232 done
10233 fi
10234
10235
10236 ac_save_CPPFLAGS="$CPPFLAGS"
10237
10238 for element in $INCIPT; do
10239 haveit=
10240 for x in $CPPFLAGS; do
10241
10242 acl_save_prefix="$prefix"
10243 prefix="$acl_final_prefix"
10244 acl_save_exec_prefix="$exec_prefix"
10245 exec_prefix="$acl_final_exec_prefix"
10246 eval x=\"$x\"
10247 exec_prefix="$acl_save_exec_prefix"
10248 prefix="$acl_save_prefix"
10249
10250 if test "X$x" = "X$element"; then
10251 haveit=yes
10252 break
10253 fi
10254 done
10255 if test -z "$haveit"; then
10256 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10257 fi
10258 done
10259
10260
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10262 $as_echo_n "checking for libipt... " >&6; }
10263 if ${ac_cv_libipt+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266
10267 ac_save_LIBS="$LIBS"
10268 LIBS="$LIBS $LIBIPT"
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 #include "intel-pt.h"
10272 int
10273 main ()
10274 {
10275 pt_insn_alloc_decoder (0);
10276 ;
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281 ac_cv_libipt=yes
10282 else
10283 ac_cv_libipt=no
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS="$ac_save_LIBS"
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10291 $as_echo "$ac_cv_libipt" >&6; }
10292 if test "$ac_cv_libipt" = yes; then
10293 HAVE_LIBIPT=yes
10294
10295 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10296
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10298 $as_echo_n "checking how to link with libipt... " >&6; }
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10300 $as_echo "$LIBIPT" >&6; }
10301 else
10302 HAVE_LIBIPT=no
10303 CPPFLAGS="$ac_save_CPPFLAGS"
10304 LIBIPT=
10305 LTLIBIPT=
10306 fi
10307
10308
10309
10310
10311
10312
10313 if test "$HAVE_LIBIPT" != yes; then
10314 if test "$with_intel_pt" = yes; then
10315 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10318 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10319 fi
10320 else
10321 save_LIBS=$LIBS
10322 LIBS="$LIBS $LIBIPT"
10323 for ac_func in pt_insn_event
10324 do :
10325 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10326 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10327 cat >>confdefs.h <<_ACEOF
10328 #define HAVE_PT_INSN_EVENT 1
10329 _ACEOF
10330
10331 fi
10332 done
10333
10334 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10335 "
10336 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10337
10338 cat >>confdefs.h <<_ACEOF
10339 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10340 _ACEOF
10341
10342
10343 fi
10344 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10345 "
10346 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
10347
10348 cat >>confdefs.h <<_ACEOF
10349 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10350 _ACEOF
10351
10352
10353 fi
10354
10355 LIBS=$save_LIBS
10356 fi
10357 fi
10358
10359
10360 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10361
10362 for ac_header in sys/procfs.h
10363 do :
10364 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10365 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
10366 cat >>confdefs.h <<_ACEOF
10367 #define HAVE_SYS_PROCFS_H 1
10368 _ACEOF
10369
10370 fi
10371
10372 done
10373
10374 if test "$ac_cv_header_sys_procfs_h" = yes; then
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10377 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10378 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383
10384 #define _SYSCALL32
10385 #include <sys/procfs.h>
10386 int
10387 main ()
10388 {
10389 gregset_t avar
10390 ;
10391 return 0;
10392 }
10393 _ACEOF
10394 if ac_fn_c_try_compile "$LINENO"; then :
10395 bfd_cv_have_sys_procfs_type_gregset_t=yes
10396 else
10397 bfd_cv_have_sys_procfs_type_gregset_t=no
10398
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 fi
10402
10403 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10404
10405 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10406
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10409 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10410
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10413 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10414 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419
10420 #define _SYSCALL32
10421 #include <sys/procfs.h>
10422 int
10423 main ()
10424 {
10425 fpregset_t avar
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_compile "$LINENO"; then :
10431 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10432 else
10433 bfd_cv_have_sys_procfs_type_fpregset_t=no
10434
10435 fi
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438
10439 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10440
10441 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10442
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10445 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10446
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10449 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10450 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455
10456 #define _SYSCALL32
10457 #include <sys/procfs.h>
10458 int
10459 main ()
10460 {
10461 prgregset_t avar
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_compile "$LINENO"; then :
10467 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10468 else
10469 bfd_cv_have_sys_procfs_type_prgregset_t=no
10470
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 fi
10474
10475 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10476
10477 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10478
10479 fi
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10481 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10482
10483
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10485 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10486 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 #define _SYSCALL32
10493 #include <sys/procfs.h>
10494 int
10495 main ()
10496 {
10497 prfpregset_t avar
10498 ;
10499 return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_compile "$LINENO"; then :
10503 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10504 else
10505 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10506
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 fi
10510
10511 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10512
10513 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10514
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10517 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10518
10519
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10521 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10522 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527
10528 #define _SYSCALL32
10529 #include <sys/procfs.h>
10530 int
10531 main ()
10532 {
10533 prgregset32_t avar
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10540 else
10541 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10542
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546
10547 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10548
10549 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10550
10551 fi
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10553 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10554
10555
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10557 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10558 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563
10564 #define _SYSCALL32
10565 #include <sys/procfs.h>
10566 int
10567 main ()
10568 {
10569 lwpid_t avar
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_compile "$LINENO"; then :
10575 bfd_cv_have_sys_procfs_type_lwpid_t=yes
10576 else
10577 bfd_cv_have_sys_procfs_type_lwpid_t=no
10578
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 fi
10582
10583 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10584
10585 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10586
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10589 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10590
10591
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10593 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10594 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599
10600 #define _SYSCALL32
10601 #include <sys/procfs.h>
10602 int
10603 main ()
10604 {
10605 psaddr_t avar
10606 ;
10607 return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_compile "$LINENO"; then :
10611 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10612 else
10613 bfd_cv_have_sys_procfs_type_psaddr_t=no
10614
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 fi
10618
10619 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10620
10621 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10622
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10625 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10626
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10629 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10630 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635
10636 #define _SYSCALL32
10637 #include <sys/procfs.h>
10638 int
10639 main ()
10640 {
10641 elf_fpregset_t avar
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
10648 else
10649 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10650
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 fi
10654
10655 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10656
10657 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10658
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10661 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10662
10663 fi
10664
10665
10666 # Check whether we will enable the inclusion of unit tests when
10667 # compiling GDB.
10668 #
10669 # The default value of this option changes depending whether we're on
10670 # development mode (in which case it's "true") or not (in which case
10671 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10672 # macro, which must therefore be used before GDB_AC_SELFTEST.
10673
10674 if test "x$development" != xtrue && test "x$development" != xfalse; then :
10675 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10676 fi
10677
10678 # Check whether --enable-unit-tests was given.
10679 if test "${enable_unit_tests+set}" = set; then :
10680 enableval=$enable_unit_tests; case "${enableval}" in
10681 yes) enable_unittests=true ;;
10682 no) enable_unittests=false ;;
10683 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10684 esac
10685 else
10686 enable_unittests=$development
10687 fi
10688
10689
10690 if $enable_unittests; then
10691
10692 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10693
10694
10695 fi
10696
10697 if $enable_unittests; then
10698 SELFTEST_TRUE=
10699 SELFTEST_FALSE='#'
10700 else
10701 SELFTEST_TRUE='#'
10702 SELFTEST_FALSE=
10703 fi
10704
10705
10706 # Check the return and argument types of ptrace.
10707
10708
10709 for ac_header in sys/ptrace.h ptrace.h
10710 do :
10711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 fi
10719
10720 done
10721
10722
10723 gdb_ptrace_headers='
10724 #include <sys/types.h>
10725 #if HAVE_SYS_PTRACE_H
10726 # include <sys/ptrace.h>
10727 #endif
10728 #if HAVE_UNISTD_H
10729 # include <unistd.h>
10730 #endif
10731 '
10732
10733 # Check return type. Varargs (used on GNU/Linux) conflict with the
10734 # empty argument list, so check for that explicitly.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10736 $as_echo_n "checking return type of ptrace... " >&6; }
10737 if ${gdb_cv_func_ptrace_ret+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 $gdb_ptrace_headers
10743 int
10744 main ()
10745 {
10746 extern long ptrace (enum __ptrace_request, ...);
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_compile "$LINENO"; then :
10752 gdb_cv_func_ptrace_ret='long'
10753 else
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 $gdb_ptrace_headers
10757 int
10758 main ()
10759 {
10760 extern int ptrace ();
10761 ;
10762 return 0;
10763 }
10764 _ACEOF
10765 if ac_fn_c_try_compile "$LINENO"; then :
10766 gdb_cv_func_ptrace_ret='int'
10767 else
10768 gdb_cv_func_ptrace_ret='long'
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10775 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10776
10777 cat >>confdefs.h <<_ACEOF
10778 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10779 _ACEOF
10780
10781 # Check argument types.
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10783 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10784 if ${gdb_cv_func_ptrace_args+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 $gdb_ptrace_headers
10791 int
10792 main ()
10793 {
10794 extern long ptrace (enum __ptrace_request, ...);
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_compile "$LINENO"; then :
10800 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10801 else
10802
10803 for gdb_arg1 in 'int' 'long'; do
10804 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10805 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10806 for gdb_arg4 in 'int' 'long' 'void *'; do
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 $gdb_ptrace_headers
10810 int
10811 main ()
10812 {
10813
10814 extern $gdb_cv_func_ptrace_ret
10815 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10816
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10823 break 4;
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 for gdb_arg5 in 'int *' 'int' 'long'; do
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 $gdb_ptrace_headers
10830 int
10831 main ()
10832 {
10833
10834 extern $gdb_cv_func_ptrace_ret
10835 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10836
10837 ;
10838 return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842
10843 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10844 break 5;
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 done
10848 done
10849 done
10850 done
10851 done
10852 # Provide a safe default value.
10853 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10854
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10859 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10860 ac_save_IFS=$IFS; IFS=','
10861 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10862 IFS=$ac_save_IFS
10863 shift
10864
10865 cat >>confdefs.h <<_ACEOF
10866 #define PTRACE_TYPE_ARG1 $1
10867 _ACEOF
10868
10869
10870 cat >>confdefs.h <<_ACEOF
10871 #define PTRACE_TYPE_ARG3 $3
10872 _ACEOF
10873
10874
10875 cat >>confdefs.h <<_ACEOF
10876 #define PTRACE_TYPE_ARG4 $4
10877 _ACEOF
10878
10879 if test -n "$5"; then
10880
10881 cat >>confdefs.h <<_ACEOF
10882 #define PTRACE_TYPE_ARG5 $5
10883 _ACEOF
10884
10885 fi
10886
10887
10888 # Detect support warning flags.
10889
10890 # Check whether --enable-werror was given.
10891 if test "${enable_werror+set}" = set; then :
10892 enableval=$enable_werror; case "${enableval}" in
10893 yes | y) ERROR_ON_WARNING="yes" ;;
10894 no | n) ERROR_ON_WARNING="no" ;;
10895 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10896 esac
10897 fi
10898
10899
10900 # Enable -Werror by default when using gcc. Turn it off for releases.
10901 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10902 ERROR_ON_WARNING=yes
10903 fi
10904
10905 WERROR_CFLAGS=""
10906 if test "${ERROR_ON_WARNING}" = yes ; then
10907 WERROR_CFLAGS="-Werror"
10908 fi
10909
10910 # The options we'll try to enable.
10911 build_warnings="-Wall -Wpointer-arith \
10912 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10913 -Wno-switch -Wno-char-subscripts \
10914 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10915 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10916 -Wno-mismatched-tags \
10917 -Wno-error=deprecated-register \
10918 -Wsuggest-override \
10919 -Wimplicit-fallthrough=3 \
10920 -Wduplicated-cond \
10921 -Wshadow=local \
10922 -Wdeprecated-copy \
10923 -Wdeprecated-copy-dtor \
10924 -Wredundant-move \
10925 -Wmissing-declarations \
10926 -Wmissing-prototypes \
10927 -Wstrict-null-sentinel \
10928 "
10929
10930 case "${host}" in
10931 *-*-mingw32*)
10932 # Enable -Wno-format by default when using gcc on mingw since many
10933 # GCC versions complain about %I64.
10934 build_warnings="$build_warnings -Wno-format" ;;
10935 *-*-solaris*)
10936 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10937 # doesn't understand.
10938 build_warnings="$build_warnings -Wno-unknown-pragmas"
10939 # Solaris 11 <unistd.h> marks vfork deprecated.
10940 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10941 *)
10942 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10943 # but there's a special case for this below.
10944 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10945 esac
10946
10947 # Check whether --enable-build-warnings was given.
10948 if test "${enable_build_warnings+set}" = set; then :
10949 enableval=$enable_build_warnings; case "${enableval}" in
10950 yes) ;;
10951 no) build_warnings="-w";;
10952 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10953 build_warnings="${build_warnings} ${t}";;
10954 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10955 build_warnings="${t} ${build_warnings}";;
10956 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10957 esac
10958 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10959 echo "Setting compiler warning flags = $build_warnings" 6>&1
10960 fi
10961 fi
10962 # Check whether --enable-gdb-build-warnings was given.
10963 if test "${enable_gdb_build_warnings+set}" = set; then :
10964 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10965 yes) ;;
10966 no) build_warnings="-w";;
10967 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10968 build_warnings="${build_warnings} ${t}";;
10969 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10970 build_warnings="${t} ${build_warnings}";;
10971 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10972 esac
10973 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10974 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10975 fi
10976 fi
10977
10978 # The set of warnings supported by a C++ compiler is not the same as
10979 # of the C compiler.
10980 ac_ext=cpp
10981 ac_cpp='$CXXCPP $CPPFLAGS'
10982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10985
10986
10987 WARN_CFLAGS=""
10988 if test "x${build_warnings}" != x -a "x$GCC" = xyes
10989 then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10991 $as_echo_n "checking compiler warning flags... " >&6; }
10992 # Separate out the -Werror flag as some files just cannot be
10993 # compiled with it enabled.
10994 for w in ${build_warnings}; do
10995 # GCC does not complain about -Wno-unknown-warning. Invert
10996 # and test -Wunknown-warning instead.
10997 case $w in
10998 -Wno-*)
10999 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
11000 -Wformat-nonliteral)
11001 # gcc requires -Wformat before -Wformat-nonliteral
11002 # will work, so stick them together.
11003 w="-Wformat $w"
11004 wtest="$w"
11005 ;;
11006 *)
11007 wtest=$w ;;
11008 esac
11009
11010 case $w in
11011 -Werr*) WERROR_CFLAGS=-Werror ;;
11012 *)
11013 # Check whether GCC accepts it.
11014 saved_CFLAGS="$CFLAGS"
11015 CFLAGS="$CFLAGS -Werror $wtest"
11016 saved_CXXFLAGS="$CXXFLAGS"
11017 CXXFLAGS="$CXXFLAGS -Werror $wtest"
11018 if test "x$w" = "x-Wunused-variable"; then
11019 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
11020 # fixed in GCC 4.9. This test is derived from the gdb
11021 # source code that triggered this bug in GCC.
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 struct scoped_restore_base {};
11025 struct scoped_restore_tmpl : public scoped_restore_base {
11026 ~scoped_restore_tmpl() {}
11027 };
11028 int
11029 main ()
11030 {
11031 const scoped_restore_base &b = scoped_restore_tmpl();
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_cxx_try_compile "$LINENO"; then :
11037 WARN_CFLAGS="${WARN_CFLAGS} $w"
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043
11044 int
11045 main ()
11046 {
11047
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_cxx_try_compile "$LINENO"; then :
11053 WARN_CFLAGS="${WARN_CFLAGS} $w"
11054 fi
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 fi
11057 CFLAGS="$saved_CFLAGS"
11058 CXXFLAGS="$saved_CXXFLAGS"
11059 esac
11060 done
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11062 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11063 fi
11064
11065
11066
11067 ac_ext=c
11068 ac_cpp='$CPP $CPPFLAGS'
11069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11072
11073
11074
11075 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11076
11077 cat >>confdefs.h <<_ACEOF
11078 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11079 _ACEOF
11080
11081
11082 case ${host} in
11083 *mingw32*)
11084
11085 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11086
11087 ;;
11088 esac
11089
11090 ac_config_files="$ac_config_files Makefile"
11091
11092 cat >confcache <<\_ACEOF
11093 # This file is a shell script that caches the results of configure
11094 # tests run on this system so they can be shared between configure
11095 # scripts and configure runs, see configure's option --config-cache.
11096 # It is not useful on other systems. If it contains results you don't
11097 # want to keep, you may remove or edit it.
11098 #
11099 # config.status only pays attention to the cache file if you give it
11100 # the --recheck option to rerun configure.
11101 #
11102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11104 # following values.
11105
11106 _ACEOF
11107
11108 # The following way of writing the cache mishandles newlines in values,
11109 # but we know of no workaround that is simple, portable, and efficient.
11110 # So, we kill variables containing newlines.
11111 # Ultrix sh set writes to stderr and can't be redirected directly,
11112 # and sets the high bit in the cache file unless we assign to the vars.
11113 (
11114 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11115 eval ac_val=\$$ac_var
11116 case $ac_val in #(
11117 *${as_nl}*)
11118 case $ac_var in #(
11119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11120 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11121 esac
11122 case $ac_var in #(
11123 _ | IFS | as_nl) ;; #(
11124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11125 *) { eval $ac_var=; unset $ac_var;} ;;
11126 esac ;;
11127 esac
11128 done
11129
11130 (set) 2>&1 |
11131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11132 *${as_nl}ac_space=\ *)
11133 # `set' does not quote correctly, so add quotes: double-quote
11134 # substitution turns \\\\ into \\, and sed turns \\ into \.
11135 sed -n \
11136 "s/'/'\\\\''/g;
11137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11138 ;; #(
11139 *)
11140 # `set' quotes correctly as required by POSIX, so do not add quotes.
11141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11142 ;;
11143 esac |
11144 sort
11145 ) |
11146 sed '
11147 /^ac_cv_env_/b end
11148 t clear
11149 :clear
11150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11151 t end
11152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11153 :end' >>confcache
11154 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11155 if test -w "$cache_file"; then
11156 if test "x$cache_file" != "x/dev/null"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11158 $as_echo "$as_me: updating cache $cache_file" >&6;}
11159 if test ! -f "$cache_file" || test -h "$cache_file"; then
11160 cat confcache >"$cache_file"
11161 else
11162 case $cache_file in #(
11163 */* | ?:*)
11164 mv -f confcache "$cache_file"$$ &&
11165 mv -f "$cache_file"$$ "$cache_file" ;; #(
11166 *)
11167 mv -f confcache "$cache_file" ;;
11168 esac
11169 fi
11170 fi
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11174 fi
11175 fi
11176 rm -f confcache
11177
11178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11179 # Let make expand exec_prefix.
11180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11181
11182 DEFS=-DHAVE_CONFIG_H
11183
11184 ac_libobjs=
11185 ac_ltlibobjs=
11186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11187 # 1. Remove the extension, and $U if already installed.
11188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11191 # will be set to the directory where LIBOBJS objects are built.
11192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11194 done
11195 LIBOBJS=$ac_libobjs
11196
11197 LTLIBOBJS=$ac_ltlibobjs
11198
11199
11200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11201 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11205 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11206 if test -n "$am_sleep_pid"; then
11207 # Hide warnings about reused PIDs.
11208 wait $am_sleep_pid 2>/dev/null
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11211 $as_echo "done" >&6; }
11212 if test -n "$EXEEXT"; then
11213 am__EXEEXT_TRUE=
11214 am__EXEEXT_FALSE='#'
11215 else
11216 am__EXEEXT_TRUE='#'
11217 am__EXEEXT_FALSE=
11218 fi
11219
11220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11221 as_fn_error $? "conditional \"AMDEP\" was never defined.
11222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11223 fi
11224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11225 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11227 fi
11228 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11229 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11231 fi
11232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11235 fi
11236 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11237 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11239 fi
11240
11241 : "${CONFIG_STATUS=./config.status}"
11242 ac_write_fail=0
11243 ac_clean_files_save=$ac_clean_files
11244 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11246 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11247 as_write_fail=0
11248 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11249 #! $SHELL
11250 # Generated by $as_me.
11251 # Run this file to recreate the current configuration.
11252 # Compiler output produced by configure, useful for debugging
11253 # configure, is in config.log if it exists.
11254
11255 debug=false
11256 ac_cs_recheck=false
11257 ac_cs_silent=false
11258
11259 SHELL=\${CONFIG_SHELL-$SHELL}
11260 export SHELL
11261 _ASEOF
11262 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11263 ## -------------------- ##
11264 ## M4sh Initialization. ##
11265 ## -------------------- ##
11266
11267 # Be more Bourne compatible
11268 DUALCASE=1; export DUALCASE # for MKS sh
11269 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11270 emulate sh
11271 NULLCMD=:
11272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11273 # is contrary to our usage. Disable this feature.
11274 alias -g '${1+"$@"}'='"$@"'
11275 setopt NO_GLOB_SUBST
11276 else
11277 case `(set -o) 2>/dev/null` in #(
11278 *posix*) :
11279 set -o posix ;; #(
11280 *) :
11281 ;;
11282 esac
11283 fi
11284
11285
11286 as_nl='
11287 '
11288 export as_nl
11289 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11290 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11292 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11293 # Prefer a ksh shell builtin over an external printf program on Solaris,
11294 # but without wasting forks for bash or zsh.
11295 if test -z "$BASH_VERSION$ZSH_VERSION" \
11296 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11297 as_echo='print -r --'
11298 as_echo_n='print -rn --'
11299 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11300 as_echo='printf %s\n'
11301 as_echo_n='printf %s'
11302 else
11303 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11304 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11305 as_echo_n='/usr/ucb/echo -n'
11306 else
11307 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11308 as_echo_n_body='eval
11309 arg=$1;
11310 case $arg in #(
11311 *"$as_nl"*)
11312 expr "X$arg" : "X\\(.*\\)$as_nl";
11313 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11314 esac;
11315 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11316 '
11317 export as_echo_n_body
11318 as_echo_n='sh -c $as_echo_n_body as_echo'
11319 fi
11320 export as_echo_body
11321 as_echo='sh -c $as_echo_body as_echo'
11322 fi
11323
11324 # The user is always right.
11325 if test "${PATH_SEPARATOR+set}" != set; then
11326 PATH_SEPARATOR=:
11327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11329 PATH_SEPARATOR=';'
11330 }
11331 fi
11332
11333
11334 # IFS
11335 # We need space, tab and new line, in precisely that order. Quoting is
11336 # there to prevent editors from complaining about space-tab.
11337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11338 # splitting by setting IFS to empty value.)
11339 IFS=" "" $as_nl"
11340
11341 # Find who we are. Look in the path if we contain no directory separator.
11342 as_myself=
11343 case $0 in #((
11344 *[\\/]* ) as_myself=$0 ;;
11345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11351 done
11352 IFS=$as_save_IFS
11353
11354 ;;
11355 esac
11356 # We did not find ourselves, most probably we were run as `sh COMMAND'
11357 # in which case we are not to be found in the path.
11358 if test "x$as_myself" = x; then
11359 as_myself=$0
11360 fi
11361 if test ! -f "$as_myself"; then
11362 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11363 exit 1
11364 fi
11365
11366 # Unset variables that we do not need and which cause bugs (e.g. in
11367 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11368 # suppresses any "Segmentation fault" message there. '((' could
11369 # trigger a bug in pdksh 5.2.14.
11370 for as_var in BASH_ENV ENV MAIL MAILPATH
11371 do eval test x\${$as_var+set} = xset \
11372 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11373 done
11374 PS1='$ '
11375 PS2='> '
11376 PS4='+ '
11377
11378 # NLS nuisances.
11379 LC_ALL=C
11380 export LC_ALL
11381 LANGUAGE=C
11382 export LANGUAGE
11383
11384 # CDPATH.
11385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11386
11387
11388 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11389 # ----------------------------------------
11390 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11391 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11392 # script with STATUS, using 1 if that was 0.
11393 as_fn_error ()
11394 {
11395 as_status=$1; test $as_status -eq 0 && as_status=1
11396 if test "$4"; then
11397 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11399 fi
11400 $as_echo "$as_me: error: $2" >&2
11401 as_fn_exit $as_status
11402 } # as_fn_error
11403
11404
11405 # as_fn_set_status STATUS
11406 # -----------------------
11407 # Set $? to STATUS, without forking.
11408 as_fn_set_status ()
11409 {
11410 return $1
11411 } # as_fn_set_status
11412
11413 # as_fn_exit STATUS
11414 # -----------------
11415 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11416 as_fn_exit ()
11417 {
11418 set +e
11419 as_fn_set_status $1
11420 exit $1
11421 } # as_fn_exit
11422
11423 # as_fn_unset VAR
11424 # ---------------
11425 # Portably unset VAR.
11426 as_fn_unset ()
11427 {
11428 { eval $1=; unset $1;}
11429 }
11430 as_unset=as_fn_unset
11431 # as_fn_append VAR VALUE
11432 # ----------------------
11433 # Append the text in VALUE to the end of the definition contained in VAR. Take
11434 # advantage of any shell optimizations that allow amortized linear growth over
11435 # repeated appends, instead of the typical quadratic growth present in naive
11436 # implementations.
11437 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11438 eval 'as_fn_append ()
11439 {
11440 eval $1+=\$2
11441 }'
11442 else
11443 as_fn_append ()
11444 {
11445 eval $1=\$$1\$2
11446 }
11447 fi # as_fn_append
11448
11449 # as_fn_arith ARG...
11450 # ------------------
11451 # Perform arithmetic evaluation on the ARGs, and store the result in the
11452 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11453 # must be portable across $(()) and expr.
11454 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11455 eval 'as_fn_arith ()
11456 {
11457 as_val=$(( $* ))
11458 }'
11459 else
11460 as_fn_arith ()
11461 {
11462 as_val=`expr "$@" || test $? -eq 1`
11463 }
11464 fi # as_fn_arith
11465
11466
11467 if expr a : '\(a\)' >/dev/null 2>&1 &&
11468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11469 as_expr=expr
11470 else
11471 as_expr=false
11472 fi
11473
11474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11475 as_basename=basename
11476 else
11477 as_basename=false
11478 fi
11479
11480 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11481 as_dirname=dirname
11482 else
11483 as_dirname=false
11484 fi
11485
11486 as_me=`$as_basename -- "$0" ||
11487 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11488 X"$0" : 'X\(//\)$' \| \
11489 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11490 $as_echo X/"$0" |
11491 sed '/^.*\/\([^/][^/]*\)\/*$/{
11492 s//\1/
11493 q
11494 }
11495 /^X\/\(\/\/\)$/{
11496 s//\1/
11497 q
11498 }
11499 /^X\/\(\/\).*/{
11500 s//\1/
11501 q
11502 }
11503 s/.*/./; q'`
11504
11505 # Avoid depending upon Character Ranges.
11506 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11507 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11508 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11509 as_cr_digits='0123456789'
11510 as_cr_alnum=$as_cr_Letters$as_cr_digits
11511
11512 ECHO_C= ECHO_N= ECHO_T=
11513 case `echo -n x` in #(((((
11514 -n*)
11515 case `echo 'xy\c'` in
11516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11517 xy) ECHO_C='\c';;
11518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11519 ECHO_T=' ';;
11520 esac;;
11521 *)
11522 ECHO_N='-n';;
11523 esac
11524
11525 rm -f conf$$ conf$$.exe conf$$.file
11526 if test -d conf$$.dir; then
11527 rm -f conf$$.dir/conf$$.file
11528 else
11529 rm -f conf$$.dir
11530 mkdir conf$$.dir 2>/dev/null
11531 fi
11532 if (echo >conf$$.file) 2>/dev/null; then
11533 if ln -s conf$$.file conf$$ 2>/dev/null; then
11534 as_ln_s='ln -s'
11535 # ... but there are two gotchas:
11536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11538 # In both cases, we have to default to `cp -pR'.
11539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11540 as_ln_s='cp -pR'
11541 elif ln conf$$.file conf$$ 2>/dev/null; then
11542 as_ln_s=ln
11543 else
11544 as_ln_s='cp -pR'
11545 fi
11546 else
11547 as_ln_s='cp -pR'
11548 fi
11549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11550 rmdir conf$$.dir 2>/dev/null
11551
11552
11553 # as_fn_mkdir_p
11554 # -------------
11555 # Create "$as_dir" as a directory, including parents if necessary.
11556 as_fn_mkdir_p ()
11557 {
11558
11559 case $as_dir in #(
11560 -*) as_dir=./$as_dir;;
11561 esac
11562 test -d "$as_dir" || eval $as_mkdir_p || {
11563 as_dirs=
11564 while :; do
11565 case $as_dir in #(
11566 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11567 *) as_qdir=$as_dir;;
11568 esac
11569 as_dirs="'$as_qdir' $as_dirs"
11570 as_dir=`$as_dirname -- "$as_dir" ||
11571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11572 X"$as_dir" : 'X\(//\)[^/]' \| \
11573 X"$as_dir" : 'X\(//\)$' \| \
11574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11575 $as_echo X"$as_dir" |
11576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11577 s//\1/
11578 q
11579 }
11580 /^X\(\/\/\)[^/].*/{
11581 s//\1/
11582 q
11583 }
11584 /^X\(\/\/\)$/{
11585 s//\1/
11586 q
11587 }
11588 /^X\(\/\).*/{
11589 s//\1/
11590 q
11591 }
11592 s/.*/./; q'`
11593 test -d "$as_dir" && break
11594 done
11595 test -z "$as_dirs" || eval "mkdir $as_dirs"
11596 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11597
11598
11599 } # as_fn_mkdir_p
11600 if mkdir -p . 2>/dev/null; then
11601 as_mkdir_p='mkdir -p "$as_dir"'
11602 else
11603 test -d ./-p && rmdir ./-p
11604 as_mkdir_p=false
11605 fi
11606
11607
11608 # as_fn_executable_p FILE
11609 # -----------------------
11610 # Test if FILE is an executable regular file.
11611 as_fn_executable_p ()
11612 {
11613 test -f "$1" && test -x "$1"
11614 } # as_fn_executable_p
11615 as_test_x='test -x'
11616 as_executable_p=as_fn_executable_p
11617
11618 # Sed expression to map a string onto a valid CPP name.
11619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11620
11621 # Sed expression to map a string onto a valid variable name.
11622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11623
11624
11625 exec 6>&1
11626 ## ----------------------------------- ##
11627 ## Main body of $CONFIG_STATUS script. ##
11628 ## ----------------------------------- ##
11629 _ASEOF
11630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11631
11632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11633 # Save the log message, to keep $0 and so on meaningful, and to
11634 # report actual input values of CONFIG_FILES etc. instead of their
11635 # values after options handling.
11636 ac_log="
11637 This file was extended by gdbsupport $as_me 1.0, which was
11638 generated by GNU Autoconf 2.69. Invocation command line was
11639
11640 CONFIG_FILES = $CONFIG_FILES
11641 CONFIG_HEADERS = $CONFIG_HEADERS
11642 CONFIG_LINKS = $CONFIG_LINKS
11643 CONFIG_COMMANDS = $CONFIG_COMMANDS
11644 $ $0 $@
11645
11646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11647 "
11648
11649 _ACEOF
11650
11651 case $ac_config_files in *"
11652 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11653 esac
11654
11655 case $ac_config_headers in *"
11656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11657 esac
11658
11659
11660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11661 # Files that config.status was made for.
11662 config_files="$ac_config_files"
11663 config_headers="$ac_config_headers"
11664 config_commands="$ac_config_commands"
11665
11666 _ACEOF
11667
11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11669 ac_cs_usage="\
11670 \`$as_me' instantiates files and other configuration actions
11671 from templates according to the current configuration. Unless the files
11672 and actions are specified as TAGs, all are instantiated by default.
11673
11674 Usage: $0 [OPTION]... [TAG]...
11675
11676 -h, --help print this help, then exit
11677 -V, --version print version number and configuration settings, then exit
11678 --config print configuration, then exit
11679 -q, --quiet, --silent
11680 do not print progress messages
11681 -d, --debug don't remove temporary files
11682 --recheck update $as_me by reconfiguring in the same conditions
11683 --file=FILE[:TEMPLATE]
11684 instantiate the configuration file FILE
11685 --header=FILE[:TEMPLATE]
11686 instantiate the configuration header FILE
11687
11688 Configuration files:
11689 $config_files
11690
11691 Configuration headers:
11692 $config_headers
11693
11694 Configuration commands:
11695 $config_commands
11696
11697 Report bugs to the package provider."
11698
11699 _ACEOF
11700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11701 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11702 ac_cs_version="\\
11703 gdbsupport config.status 1.0
11704 configured by $0, generated by GNU Autoconf 2.69,
11705 with options \\"\$ac_cs_config\\"
11706
11707 Copyright (C) 2012 Free Software Foundation, Inc.
11708 This config.status script is free software; the Free Software Foundation
11709 gives unlimited permission to copy, distribute and modify it."
11710
11711 ac_pwd='$ac_pwd'
11712 srcdir='$srcdir'
11713 INSTALL='$INSTALL'
11714 MKDIR_P='$MKDIR_P'
11715 AWK='$AWK'
11716 test -n "\$AWK" || AWK=awk
11717 _ACEOF
11718
11719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720 # The default lists apply if the user does not specify any file.
11721 ac_need_defaults=:
11722 while test $# != 0
11723 do
11724 case $1 in
11725 --*=?*)
11726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11728 ac_shift=:
11729 ;;
11730 --*=)
11731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11732 ac_optarg=
11733 ac_shift=:
11734 ;;
11735 *)
11736 ac_option=$1
11737 ac_optarg=$2
11738 ac_shift=shift
11739 ;;
11740 esac
11741
11742 case $ac_option in
11743 # Handling of the options.
11744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11745 ac_cs_recheck=: ;;
11746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11747 $as_echo "$ac_cs_version"; exit ;;
11748 --config | --confi | --conf | --con | --co | --c )
11749 $as_echo "$ac_cs_config"; exit ;;
11750 --debug | --debu | --deb | --de | --d | -d )
11751 debug=: ;;
11752 --file | --fil | --fi | --f )
11753 $ac_shift
11754 case $ac_optarg in
11755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11756 '') as_fn_error $? "missing file argument" ;;
11757 esac
11758 as_fn_append CONFIG_FILES " '$ac_optarg'"
11759 ac_need_defaults=false;;
11760 --header | --heade | --head | --hea )
11761 $ac_shift
11762 case $ac_optarg in
11763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11764 esac
11765 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11766 ac_need_defaults=false;;
11767 --he | --h)
11768 # Conflict between --help and --header
11769 as_fn_error $? "ambiguous option: \`$1'
11770 Try \`$0 --help' for more information.";;
11771 --help | --hel | -h )
11772 $as_echo "$ac_cs_usage"; exit ;;
11773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11774 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11775 ac_cs_silent=: ;;
11776
11777 # This is an error.
11778 -*) as_fn_error $? "unrecognized option: \`$1'
11779 Try \`$0 --help' for more information." ;;
11780
11781 *) as_fn_append ac_config_targets " $1"
11782 ac_need_defaults=false ;;
11783
11784 esac
11785 shift
11786 done
11787
11788 ac_configure_extra_args=
11789
11790 if $ac_cs_silent; then
11791 exec 6>/dev/null
11792 ac_configure_extra_args="$ac_configure_extra_args --silent"
11793 fi
11794
11795 _ACEOF
11796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11797 if \$ac_cs_recheck; then
11798 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11799 shift
11800 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11801 CONFIG_SHELL='$SHELL'
11802 export CONFIG_SHELL
11803 exec "\$@"
11804 fi
11805
11806 _ACEOF
11807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11808 exec 5>>config.log
11809 {
11810 echo
11811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11812 ## Running $as_me. ##
11813 _ASBOX
11814 $as_echo "$ac_log"
11815 } >&5
11816
11817 _ACEOF
11818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11819 #
11820 # INIT-COMMANDS
11821 #
11822 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11823
11824 _ACEOF
11825
11826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11827
11828 # Handling of arguments.
11829 for ac_config_target in $ac_config_targets
11830 do
11831 case $ac_config_target in
11832 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11833 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11835
11836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11837 esac
11838 done
11839
11840
11841 # If the user did not use the arguments to specify the items to instantiate,
11842 # then the envvar interface is used. Set only those that are not.
11843 # We use the long form for the default assignment because of an extremely
11844 # bizarre bug on SunOS 4.1.3.
11845 if $ac_need_defaults; then
11846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11849 fi
11850
11851 # Have a temporary directory for convenience. Make it in the build tree
11852 # simply because there is no reason against having it here, and in addition,
11853 # creating and moving files from /tmp can sometimes cause problems.
11854 # Hook for its removal unless debugging.
11855 # Note that there is a small window in which the directory will not be cleaned:
11856 # after its creation but before its name has been assigned to `$tmp'.
11857 $debug ||
11858 {
11859 tmp= ac_tmp=
11860 trap 'exit_status=$?
11861 : "${ac_tmp:=$tmp}"
11862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11863 ' 0
11864 trap 'as_fn_exit 1' 1 2 13 15
11865 }
11866 # Create a (secure) tmp directory for tmp files.
11867
11868 {
11869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11870 test -d "$tmp"
11871 } ||
11872 {
11873 tmp=./conf$$-$RANDOM
11874 (umask 077 && mkdir "$tmp")
11875 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11876 ac_tmp=$tmp
11877
11878 # Set up the scripts for CONFIG_FILES section.
11879 # No need to generate them if there are no CONFIG_FILES.
11880 # This happens for instance with `./config.status config.h'.
11881 if test -n "$CONFIG_FILES"; then
11882
11883
11884 ac_cr=`echo X | tr X '\015'`
11885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11886 # But we know of no other shell where ac_cr would be empty at this
11887 # point, so we can use a bashism as a fallback.
11888 if test "x$ac_cr" = x; then
11889 eval ac_cr=\$\'\\r\'
11890 fi
11891 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11893 ac_cs_awk_cr='\\r'
11894 else
11895 ac_cs_awk_cr=$ac_cr
11896 fi
11897
11898 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11899 _ACEOF
11900
11901
11902 {
11903 echo "cat >conf$$subs.awk <<_ACEOF" &&
11904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11905 echo "_ACEOF"
11906 } >conf$$subs.sh ||
11907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11908 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11909 ac_delim='%!_!# '
11910 for ac_last_try in false false false false false :; do
11911 . ./conf$$subs.sh ||
11912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11913
11914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11915 if test $ac_delim_n = $ac_delim_num; then
11916 break
11917 elif $ac_last_try; then
11918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11919 else
11920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11921 fi
11922 done
11923 rm -f conf$$subs.sh
11924
11925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11927 _ACEOF
11928 sed -n '
11929 h
11930 s/^/S["/; s/!.*/"]=/
11931 p
11932 g
11933 s/^[^!]*!//
11934 :repl
11935 t repl
11936 s/'"$ac_delim"'$//
11937 t delim
11938 :nl
11939 h
11940 s/\(.\{148\}\)..*/\1/
11941 t more1
11942 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11943 p
11944 n
11945 b repl
11946 :more1
11947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11948 p
11949 g
11950 s/.\{148\}//
11951 t nl
11952 :delim
11953 h
11954 s/\(.\{148\}\)..*/\1/
11955 t more2
11956 s/["\\]/\\&/g; s/^/"/; s/$/"/
11957 p
11958 b
11959 :more2
11960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11961 p
11962 g
11963 s/.\{148\}//
11964 t delim
11965 ' <conf$$subs.awk | sed '
11966 /^[^""]/{
11967 N
11968 s/\n//
11969 }
11970 ' >>$CONFIG_STATUS || ac_write_fail=1
11971 rm -f conf$$subs.awk
11972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11973 _ACAWK
11974 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11975 for (key in S) S_is_set[key] = 1
11976 FS = "\a"
11977
11978 }
11979 {
11980 line = $ 0
11981 nfields = split(line, field, "@")
11982 substed = 0
11983 len = length(field[1])
11984 for (i = 2; i < nfields; i++) {
11985 key = field[i]
11986 keylen = length(key)
11987 if (S_is_set[key]) {
11988 value = S[key]
11989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11990 len += length(value) + length(field[++i])
11991 substed = 1
11992 } else
11993 len += 1 + keylen
11994 }
11995
11996 print line
11997 }
11998
11999 _ACAWK
12000 _ACEOF
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12002 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12004 else
12005 cat
12006 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12008 _ACEOF
12009
12010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12012 # trailing colons and then remove the whole line if VPATH becomes empty
12013 # (actually we leave an empty line to preserve line numbers).
12014 if test "x$srcdir" = x.; then
12015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12016 h
12017 s///
12018 s/^/:/
12019 s/[ ]*$/:/
12020 s/:\$(srcdir):/:/g
12021 s/:\${srcdir}:/:/g
12022 s/:@srcdir@:/:/g
12023 s/^:*//
12024 s/:*$//
12025 x
12026 s/\(=[ ]*\).*/\1/
12027 G
12028 s/\n//
12029 s/^[^=]*=[ ]*$//
12030 }'
12031 fi
12032
12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12034 fi # test -n "$CONFIG_FILES"
12035
12036 # Set up the scripts for CONFIG_HEADERS section.
12037 # No need to generate them if there are no CONFIG_HEADERS.
12038 # This happens for instance with `./config.status Makefile'.
12039 if test -n "$CONFIG_HEADERS"; then
12040 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12041 BEGIN {
12042 _ACEOF
12043
12044 # Transform confdefs.h into an awk script `defines.awk', embedded as
12045 # here-document in config.status, that substitutes the proper values into
12046 # config.h.in to produce config.h.
12047
12048 # Create a delimiter string that does not exist in confdefs.h, to ease
12049 # handling of long lines.
12050 ac_delim='%!_!# '
12051 for ac_last_try in false false :; do
12052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12053 if test -z "$ac_tt"; then
12054 break
12055 elif $ac_last_try; then
12056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12057 else
12058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12059 fi
12060 done
12061
12062 # For the awk script, D is an array of macro values keyed by name,
12063 # likewise P contains macro parameters if any. Preserve backslash
12064 # newline sequences.
12065
12066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12067 sed -n '
12068 s/.\{148\}/&'"$ac_delim"'/g
12069 t rset
12070 :rset
12071 s/^[ ]*#[ ]*define[ ][ ]*/ /
12072 t def
12073 d
12074 :def
12075 s/\\$//
12076 t bsnl
12077 s/["\\]/\\&/g
12078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12079 D["\1"]=" \3"/p
12080 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12081 d
12082 :bsnl
12083 s/["\\]/\\&/g
12084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12085 D["\1"]=" \3\\\\\\n"\\/p
12086 t cont
12087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12088 t cont
12089 d
12090 :cont
12091 n
12092 s/.\{148\}/&'"$ac_delim"'/g
12093 t clear
12094 :clear
12095 s/\\$//
12096 t bsnlc
12097 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12098 d
12099 :bsnlc
12100 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12101 b cont
12102 ' <confdefs.h | sed '
12103 s/'"$ac_delim"'/"\\\
12104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12105
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 for (key in D) D_is_set[key] = 1
12108 FS = "\a"
12109 }
12110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12111 line = \$ 0
12112 split(line, arg, " ")
12113 if (arg[1] == "#") {
12114 defundef = arg[2]
12115 mac1 = arg[3]
12116 } else {
12117 defundef = substr(arg[1], 2)
12118 mac1 = arg[2]
12119 }
12120 split(mac1, mac2, "(") #)
12121 macro = mac2[1]
12122 prefix = substr(line, 1, index(line, defundef) - 1)
12123 if (D_is_set[macro]) {
12124 # Preserve the white space surrounding the "#".
12125 print prefix "define", macro P[macro] D[macro]
12126 next
12127 } else {
12128 # Replace #undef with comments. This is necessary, for example,
12129 # in the case of _POSIX_SOURCE, which is predefined and required
12130 # on some systems where configure will not decide to define it.
12131 if (defundef == "undef") {
12132 print "/*", prefix defundef, macro, "*/"
12133 next
12134 }
12135 }
12136 }
12137 { print }
12138 _ACAWK
12139 _ACEOF
12140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12142 fi # test -n "$CONFIG_HEADERS"
12143
12144
12145 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12146 shift
12147 for ac_tag
12148 do
12149 case $ac_tag in
12150 :[FHLC]) ac_mode=$ac_tag; continue;;
12151 esac
12152 case $ac_mode$ac_tag in
12153 :[FHL]*:*);;
12154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12155 :[FH]-) ac_tag=-:-;;
12156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12157 esac
12158 ac_save_IFS=$IFS
12159 IFS=:
12160 set x $ac_tag
12161 IFS=$ac_save_IFS
12162 shift
12163 ac_file=$1
12164 shift
12165
12166 case $ac_mode in
12167 :L) ac_source=$1;;
12168 :[FH])
12169 ac_file_inputs=
12170 for ac_f
12171 do
12172 case $ac_f in
12173 -) ac_f="$ac_tmp/stdin";;
12174 *) # Look for the file first in the build tree, then in the source tree
12175 # (if the path is not absolute). The absolute path cannot be DOS-style,
12176 # because $ac_f cannot contain `:'.
12177 test -f "$ac_f" ||
12178 case $ac_f in
12179 [\\/$]*) false;;
12180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12181 esac ||
12182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12183 esac
12184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12185 as_fn_append ac_file_inputs " '$ac_f'"
12186 done
12187
12188 # Let's still pretend it is `configure' which instantiates (i.e., don't
12189 # use $as_me), people would be surprised to read:
12190 # /* config.h. Generated by config.status. */
12191 configure_input='Generated from '`
12192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12193 `' by configure.'
12194 if test x"$ac_file" != x-; then
12195 configure_input="$ac_file. $configure_input"
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12197 $as_echo "$as_me: creating $ac_file" >&6;}
12198 fi
12199 # Neutralize special characters interpreted by sed in replacement strings.
12200 case $configure_input in #(
12201 *\&* | *\|* | *\\* )
12202 ac_sed_conf_input=`$as_echo "$configure_input" |
12203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12204 *) ac_sed_conf_input=$configure_input;;
12205 esac
12206
12207 case $ac_tag in
12208 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12210 esac
12211 ;;
12212 esac
12213
12214 ac_dir=`$as_dirname -- "$ac_file" ||
12215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12216 X"$ac_file" : 'X\(//\)[^/]' \| \
12217 X"$ac_file" : 'X\(//\)$' \| \
12218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12219 $as_echo X"$ac_file" |
12220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12221 s//\1/
12222 q
12223 }
12224 /^X\(\/\/\)[^/].*/{
12225 s//\1/
12226 q
12227 }
12228 /^X\(\/\/\)$/{
12229 s//\1/
12230 q
12231 }
12232 /^X\(\/\).*/{
12233 s//\1/
12234 q
12235 }
12236 s/.*/./; q'`
12237 as_dir="$ac_dir"; as_fn_mkdir_p
12238 ac_builddir=.
12239
12240 case "$ac_dir" in
12241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12242 *)
12243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12244 # A ".." for each directory in $ac_dir_suffix.
12245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12246 case $ac_top_builddir_sub in
12247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12249 esac ;;
12250 esac
12251 ac_abs_top_builddir=$ac_pwd
12252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12253 # for backward compatibility:
12254 ac_top_builddir=$ac_top_build_prefix
12255
12256 case $srcdir in
12257 .) # We are building in place.
12258 ac_srcdir=.
12259 ac_top_srcdir=$ac_top_builddir_sub
12260 ac_abs_top_srcdir=$ac_pwd ;;
12261 [\\/]* | ?:[\\/]* ) # Absolute name.
12262 ac_srcdir=$srcdir$ac_dir_suffix;
12263 ac_top_srcdir=$srcdir
12264 ac_abs_top_srcdir=$srcdir ;;
12265 *) # Relative name.
12266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12267 ac_top_srcdir=$ac_top_build_prefix$srcdir
12268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12269 esac
12270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12271
12272
12273 case $ac_mode in
12274 :F)
12275 #
12276 # CONFIG_FILE
12277 #
12278
12279 case $INSTALL in
12280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12282 esac
12283 ac_MKDIR_P=$MKDIR_P
12284 case $MKDIR_P in
12285 [\\/$]* | ?:[\\/]* ) ;;
12286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12287 esac
12288 _ACEOF
12289
12290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12291 # If the template does not know about datarootdir, expand it.
12292 # FIXME: This hack should be removed a few years after 2.60.
12293 ac_datarootdir_hack=; ac_datarootdir_seen=
12294 ac_sed_dataroot='
12295 /datarootdir/ {
12296 p
12297 q
12298 }
12299 /@datadir@/p
12300 /@docdir@/p
12301 /@infodir@/p
12302 /@localedir@/p
12303 /@mandir@/p'
12304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12305 *datarootdir*) ac_datarootdir_seen=yes;;
12306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12309 _ACEOF
12310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12311 ac_datarootdir_hack='
12312 s&@datadir@&$datadir&g
12313 s&@docdir@&$docdir&g
12314 s&@infodir@&$infodir&g
12315 s&@localedir@&$localedir&g
12316 s&@mandir@&$mandir&g
12317 s&\\\${datarootdir}&$datarootdir&g' ;;
12318 esac
12319 _ACEOF
12320
12321 # Neutralize VPATH when `$srcdir' = `.'.
12322 # Shell code in configure.ac might set extrasub.
12323 # FIXME: do we really want to maintain this feature?
12324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12325 ac_sed_extra="$ac_vpsub
12326 $extrasub
12327 _ACEOF
12328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12329 :t
12330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12331 s|@configure_input@|$ac_sed_conf_input|;t t
12332 s&@top_builddir@&$ac_top_builddir_sub&;t t
12333 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12334 s&@srcdir@&$ac_srcdir&;t t
12335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12336 s&@top_srcdir@&$ac_top_srcdir&;t t
12337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12338 s&@builddir@&$ac_builddir&;t t
12339 s&@abs_builddir@&$ac_abs_builddir&;t t
12340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12341 s&@INSTALL@&$ac_INSTALL&;t t
12342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12343 $ac_datarootdir_hack
12344 "
12345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12347
12348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12351 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12353 which seems to be undefined. Please make sure it is defined" >&5
12354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12355 which seems to be undefined. Please make sure it is defined" >&2;}
12356
12357 rm -f "$ac_tmp/stdin"
12358 case $ac_file in
12359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12361 esac \
12362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12363 ;;
12364 :H)
12365 #
12366 # CONFIG_HEADER
12367 #
12368 if test x"$ac_file" != x-; then
12369 {
12370 $as_echo "/* $configure_input */" \
12371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12372 } >"$ac_tmp/config.h" \
12373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12377 else
12378 rm -f "$ac_file"
12379 mv "$ac_tmp/config.h" "$ac_file" \
12380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12381 fi
12382 else
12383 $as_echo "/* $configure_input */" \
12384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12385 || as_fn_error $? "could not create -" "$LINENO" 5
12386 fi
12387 # Compute "$ac_file"'s index in $config_headers.
12388 _am_arg="$ac_file"
12389 _am_stamp_count=1
12390 for _am_header in $config_headers :; do
12391 case $_am_header in
12392 $_am_arg | $_am_arg:* )
12393 break ;;
12394 * )
12395 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12396 esac
12397 done
12398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12400 X"$_am_arg" : 'X\(//\)[^/]' \| \
12401 X"$_am_arg" : 'X\(//\)$' \| \
12402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12403 $as_echo X"$_am_arg" |
12404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12405 s//\1/
12406 q
12407 }
12408 /^X\(\/\/\)[^/].*/{
12409 s//\1/
12410 q
12411 }
12412 /^X\(\/\/\)$/{
12413 s//\1/
12414 q
12415 }
12416 /^X\(\/\).*/{
12417 s//\1/
12418 q
12419 }
12420 s/.*/./; q'`/stamp-h$_am_stamp_count
12421 ;;
12422
12423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12424 $as_echo "$as_me: executing $ac_file commands" >&6;}
12425 ;;
12426 esac
12427
12428
12429 case $ac_file$ac_mode in
12430 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12431 # Older Autoconf quotes --file arguments for eval, but not when files
12432 # are listed without --file. Let's play safe and only enable the eval
12433 # if we detect the quoting.
12434 case $CONFIG_FILES in
12435 *\'*) eval set x "$CONFIG_FILES" ;;
12436 *) set x $CONFIG_FILES ;;
12437 esac
12438 shift
12439 for mf
12440 do
12441 # Strip MF so we end up with the name of the file.
12442 mf=`echo "$mf" | sed -e 's/:.*$//'`
12443 # Check whether this is an Automake generated Makefile or not.
12444 # We used to match only the files named 'Makefile.in', but
12445 # some people rename them; so instead we look at the file content.
12446 # Grep'ing the first line is not enough: some people post-process
12447 # each Makefile.in and add a new line on top of each file to say so.
12448 # Grep'ing the whole file is not good either: AIX grep has a line
12449 # limit of 2048, but all sed's we know have understand at least 4000.
12450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12451 dirpart=`$as_dirname -- "$mf" ||
12452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12453 X"$mf" : 'X\(//\)[^/]' \| \
12454 X"$mf" : 'X\(//\)$' \| \
12455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12456 $as_echo X"$mf" |
12457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12458 s//\1/
12459 q
12460 }
12461 /^X\(\/\/\)[^/].*/{
12462 s//\1/
12463 q
12464 }
12465 /^X\(\/\/\)$/{
12466 s//\1/
12467 q
12468 }
12469 /^X\(\/\).*/{
12470 s//\1/
12471 q
12472 }
12473 s/.*/./; q'`
12474 else
12475 continue
12476 fi
12477 # Extract the definition of DEPDIR, am__include, and am__quote
12478 # from the Makefile without running 'make'.
12479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12480 test -z "$DEPDIR" && continue
12481 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12482 test -z "$am__include" && continue
12483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12484 # Find all dependency output files, they are included files with
12485 # $(DEPDIR) in their names. We invoke sed twice because it is the
12486 # simplest approach to changing $(DEPDIR) to its actual value in the
12487 # expansion.
12488 for file in `sed -n "
12489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12491 # Make sure the directory exists.
12492 test -f "$dirpart/$file" && continue
12493 fdir=`$as_dirname -- "$file" ||
12494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$file" : 'X\(//\)[^/]' \| \
12496 X"$file" : 'X\(//\)$' \| \
12497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12498 $as_echo X"$file" |
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12500 s//\1/
12501 q
12502 }
12503 /^X\(\/\/\)[^/].*/{
12504 s//\1/
12505 q
12506 }
12507 /^X\(\/\/\)$/{
12508 s//\1/
12509 q
12510 }
12511 /^X\(\/\).*/{
12512 s//\1/
12513 q
12514 }
12515 s/.*/./; q'`
12516 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12517 # echo "creating $dirpart/$file"
12518 echo '# dummy' > "$dirpart/$file"
12519 done
12520 done
12521 }
12522 ;;
12523
12524 esac
12525 done # for ac_tag
12526
12527
12528 as_fn_exit 0
12529 _ACEOF
12530 ac_clean_files=$ac_clean_files_save
12531
12532 test $ac_write_fail = 0 ||
12533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12534
12535
12536 # configure is writing to config.log, and then calls config.status.
12537 # config.status does its own redirection, appending to config.log.
12538 # Unfortunately, on DOS this fails, as config.log is still kept open
12539 # by configure, so config.status won't be able to write to it; its
12540 # output is simply discarded. So we exec the FD to /dev/null,
12541 # effectively closing config.log, so it can be properly (re)opened and
12542 # appended to by config.status. When coming back to configure, we
12543 # need to make the FD available again.
12544 if test "$no_create" != yes; then
12545 ac_cs_success=:
12546 ac_config_status_args=
12547 test "$silent" = yes &&
12548 ac_config_status_args="$ac_config_status_args --quiet"
12549 exec 5>/dev/null
12550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12551 exec 5>>config.log
12552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12553 # would make configure fail if this is the last instruction.
12554 $ac_cs_success || as_fn_exit 1
12555 fi
12556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12559 fi
12560
This page took 0.335316 seconds and 4 git commands to generate.