Re-generate gdb/gdbserver/gdbsupport configure scripts
[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 EGREP
655 GREP
656 CPP
657 RANLIB
658 am__fastdepCXX_FALSE
659 am__fastdepCXX_TRUE
660 CXXDEPMODE
661 ac_ct_CXX
662 CXXFLAGS
663 CXX
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 MAINT
709 MAINTAINER_MODE_FALSE
710 MAINTAINER_MODE_TRUE
711 target_os
712 target_vendor
713 target_cpu
714 target
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_maintainer_mode
765 enable_silent_rules
766 enable_dependency_tracking
767 enable_plugins
768 enable_largefile
769 with_intel_pt
770 with_gnu_ld
771 enable_rpath
772 with_libipt_prefix
773 enable_unit_tests
774 enable_werror
775 enable_build_warnings
776 enable_gdb_build_warnings
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CXX
787 CXXFLAGS
788 CCC
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-plugins Enable support for plugins
1419 --disable-largefile omit support for large files
1420 --disable-rpath do not hardcode runtime library paths
1421 --enable-unit-tests Enable the inclusion of unit tests when compiling
1422 GDB
1423 --enable-werror treat compile warnings as errors
1424 --enable-build-warnings enable build-time compiler warnings if gcc is used
1425 --enable-gdb-build-warnings
1426 enable GDB specific build-time compiler warnings if
1427 gcc is used
1428
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1433 --with-gnu-ld assume the C compiler uses GNU ld default=no
1434 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1435 --without-libipt-prefix don't search for libipt in includedir and libdir
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1447 CPP C preprocessor
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to the package provider.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 gdbsupport configure 1.0
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_cxx_try_compile LINENO
1568 # ----------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_cxx_try_compile ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_cxx_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_cxx_try_compile
1604
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_cpp
1641
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1646 # accordingly.
1647 ac_fn_c_check_header_mongrel ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 fi
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 else
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670 else
1671 ac_header_compiler=no
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1676
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686 else
1687 ac_header_preproc=no
1688 fi
1689 rm -f conftest.err conftest.i conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1692
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ;;
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ;;
1713 esac
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 eval "$3=\$ac_header_compiler"
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_c_check_header_mongrel
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764 fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_compile
1801
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_link ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_link
1847
1848 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1849 # -------------------------------------------
1850 # Tests whether TYPE exists after having included INCLUDES, setting cache
1851 # variable VAR accordingly.
1852 ac_fn_c_check_type ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 eval "$3=no"
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $4
1864 int
1865 main ()
1866 {
1867 if (sizeof ($2))
1868 return 0;
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main ()
1879 {
1880 if (sizeof (($2)))
1881 return 0;
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887
1888 else
1889 eval "$3=yes"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_type
1901
1902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903 # --------------------------------------------
1904 # Tries to find the compile-time value of EXPR in a program that includes
1905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1906 # computed
1907 ac_fn_c_compute_int ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if test "$cross_compiling" = yes; then
1911 # Depending upon the size, compute the lo and hi bounds.
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) >= 0)];
1919 test_array [0] = 0;
1920 return test_array [0];
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_lo=0 ac_mid=0
1928 while :; do
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $4
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_hi=$ac_mid; break
1945 else
1946 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1947 if test $ac_lo -le $ac_mid; then
1948 ac_lo= ac_hi=
1949 break
1950 fi
1951 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) < 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=-1 ac_mid=-1
1972 while :; do
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=$ac_mid; break
1989 else
1990 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1991 if test $ac_mid -le $ac_hi; then
1992 ac_lo= ac_hi=
1993 break
1994 fi
1995 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 else
2000 ac_lo= ac_hi=
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 # Binary search between lo and hi bounds.
2006 while test "x$ac_lo" != "x$ac_hi"; do
2007 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 int
2012 main ()
2013 {
2014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 test_array [0] = 0;
2016 return test_array [0];
2017
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_hi=$ac_mid
2024 else
2025 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 case $ac_lo in #((
2030 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2031 '') ac_retval=1 ;;
2032 esac
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 static long int longval () { return $2; }
2038 static unsigned long int ulongval () { return $2; }
2039 #include <stdio.h>
2040 #include <stdlib.h>
2041 int
2042 main ()
2043 {
2044
2045 FILE *f = fopen ("conftest.val", "w");
2046 if (! f)
2047 return 1;
2048 if (($2) < 0)
2049 {
2050 long int i = longval ();
2051 if (i != ($2))
2052 return 1;
2053 fprintf (f, "%ld", i);
2054 }
2055 else
2056 {
2057 unsigned long int i = ulongval ();
2058 if (i != ($2))
2059 return 1;
2060 fprintf (f, "%lu", i);
2061 }
2062 /* Do not output a trailing newline, as this causes \r\n confusion
2063 on some platforms. */
2064 return ferror (f) || fclose (f) != 0;
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_run "$LINENO"; then :
2071 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2072 else
2073 ac_retval=1
2074 fi
2075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2076 conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 rm -f conftest.val
2078
2079 fi
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2082
2083 } # ac_fn_c_compute_int
2084
2085 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2086 # ---------------------------------------------
2087 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2088 # accordingly.
2089 ac_fn_c_check_decl ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 as_decl_name=`echo $2|sed 's/ *(.*//'`
2093 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2095 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2096 if eval \${$3+:} false; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 #ifndef $as_decl_name
2106 #ifdef __cplusplus
2107 (void) $as_decl_use;
2108 #else
2109 (void) $as_decl_name;
2110 #endif
2111 #endif
2112
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_c_check_decl
2130
2131 # ac_fn_c_check_func LINENO FUNC VAR
2132 # ----------------------------------
2133 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2134 ac_fn_c_check_func ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146 #define $2 innocuous_$2
2147
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2152
2153 #ifdef __STDC__
2154 # include <limits.h>
2155 #else
2156 # include <assert.h>
2157 #endif
2158
2159 #undef $2
2160
2161 /* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2164 #ifdef __cplusplus
2165 extern "C"
2166 #endif
2167 char $2 ();
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined __stub_$2 || defined __stub___$2
2172 choke me
2173 #endif
2174
2175 int
2176 main ()
2177 {
2178 return $2 ();
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_link "$LINENO"; then :
2184 eval "$3=yes"
2185 else
2186 eval "$3=no"
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext \
2189 conftest$ac_exeext conftest.$ac_ext
2190 fi
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195
2196 } # ac_fn_c_check_func
2197
2198 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2199 # ----------------------------------------------------
2200 # Tries to find if the field MEMBER exists in type AGGR, after including
2201 # INCLUDES, setting cache variable VAR accordingly.
2202 ac_fn_c_check_member ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2206 $as_echo_n "checking for $2.$3... " >&6; }
2207 if eval \${$4+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $5
2213 int
2214 main ()
2215 {
2216 static $2 ac_aggr;
2217 if (ac_aggr.$3)
2218 return 0;
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 eval "$4=yes"
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $5
2229 int
2230 main ()
2231 {
2232 static $2 ac_aggr;
2233 if (sizeof ac_aggr.$3)
2234 return 0;
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 eval "$4=yes"
2241 else
2242 eval "$4=no"
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 eval ac_res=\$$4
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252
2253 } # ac_fn_c_check_member
2254
2255 # ac_fn_cxx_try_link LINENO
2256 # -------------------------
2257 # Try to link conftest.$ac_ext, and return whether this succeeded.
2258 ac_fn_cxx_try_link ()
2259 {
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 rm -f conftest.$ac_objext conftest$ac_exeext
2262 if { { ac_try="$ac_link"
2263 case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_link") 2>conftest.err
2270 ac_status=$?
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2275 fi
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && {
2278 test -z "$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2280 } && test -s conftest$ac_exeext && {
2281 test "$cross_compiling" = yes ||
2282 test -x conftest$ac_exeext
2283 }; then :
2284 ac_retval=0
2285 else
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290 fi
2291 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2292 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2293 # interfere with the next link command; also delete a directory that is
2294 # left behind by Apple's compiler. We do this before executing the actions.
2295 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2298
2299 } # ac_fn_cxx_try_link
2300
2301 # ac_fn_cxx_check_func LINENO FUNC VAR
2302 # ------------------------------------
2303 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2304 ac_fn_cxx_check_func ()
2305 {
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2316 #define $2 innocuous_$2
2317
2318 /* System header to define __stub macros and hopefully few prototypes,
2319 which can conflict with char $2 (); below.
2320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2321 <limits.h> exists even on freestanding compilers. */
2322
2323 #ifdef __STDC__
2324 # include <limits.h>
2325 #else
2326 # include <assert.h>
2327 #endif
2328
2329 #undef $2
2330
2331 /* Override any GCC internal prototype to avoid an error.
2332 Use char because int might match the return type of a GCC
2333 builtin and then its argument prototype would still apply. */
2334 #ifdef __cplusplus
2335 extern "C"
2336 #endif
2337 char $2 ();
2338 /* The GNU C library defines this for functions which it implements
2339 to always fail with ENOSYS. Some functions are actually named
2340 something starting with __ and the normal name is an alias. */
2341 #if defined __stub_$2 || defined __stub___$2
2342 choke me
2343 #endif
2344
2345 int
2346 main ()
2347 {
2348 return $2 ();
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_cxx_try_link "$LINENO"; then :
2354 eval "$3=yes"
2355 else
2356 eval "$3=no"
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext \
2359 conftest$ac_exeext conftest.$ac_ext
2360 fi
2361 eval ac_res=\$$3
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_cxx_check_func
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2370
2371 It was created by gdbsupport $as_me 1.0, which was
2372 generated by GNU Autoconf 2.69. Invocation command line was
2373
2374 $ $0 $@
2375
2376 _ACEOF
2377 exec 5>>config.log
2378 {
2379 cat <<_ASUNAME
2380 ## --------- ##
2381 ## Platform. ##
2382 ## --------- ##
2383
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392
2393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2400
2401 _ASUNAME
2402
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2409 done
2410 IFS=$as_save_IFS
2411
2412 } >&5
2413
2414 cat >&5 <<_ACEOF
2415
2416
2417 ## ----------- ##
2418 ## Core tests. ##
2419 ## ----------- ##
2420
2421 _ACEOF
2422
2423
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2429 ac_configure_args=
2430 ac_configure_args0=
2431 ac_configure_args1=
2432 ac_must_keep_next=false
2433 for ac_pass in 1 2
2434 do
2435 for ac_arg
2436 do
2437 case $ac_arg in
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2441 continue ;;
2442 *\'*)
2443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 esac
2445 case $ac_pass in
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 2)
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2451 else
2452 case $ac_arg in
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 esac
2460 ;;
2461 -* ) ac_must_keep_next=true ;;
2462 esac
2463 fi
2464 as_fn_append ac_configure_args " '$ac_arg'"
2465 ;;
2466 esac
2467 done
2468 done
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2471
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2479 {
2480 echo
2481
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2485 echo
2486 # The following way of writing the cache mishandles newlines in values,
2487 (
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in #(
2491 *${as_nl}*)
2492 case $ac_var in #(
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495 esac
2496 case $ac_var in #(
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2500 esac ;;
2501 esac
2502 done
2503 (set) 2>&1 |
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2506 sed -n \
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 ;; #(
2510 *)
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512 ;;
2513 esac |
2514 sort
2515 )
2516 echo
2517
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2521 echo
2522 for ac_var in $ac_subst_vars
2523 do
2524 eval ac_val=\$$ac_var
2525 case $ac_val in
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 esac
2528 $as_echo "$ac_var='\''$ac_val'\''"
2529 done | sort
2530 echo
2531
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2536 echo
2537 for ac_var in $ac_subst_files
2538 do
2539 eval ac_val=\$$ac_var
2540 case $ac_val in
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 esac
2543 $as_echo "$ac_var='\''$ac_val'\''"
2544 done | sort
2545 echo
2546 fi
2547
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2550 ## confdefs.h. ##
2551 ## ----------- ##"
2552 echo
2553 cat confdefs.h
2554 echo
2555 fi
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2559 } >&5
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562 exit $exit_status
2563 ' 0
2564 for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566 done
2567 ac_signal=0
2568
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2571
2572 $as_echo "/* confdefs.h */" > confdefs.h
2573
2574 # Predefined preprocessor variables.
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2598 _ACEOF
2599
2600
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2603 ac_site_file1=NONE
2604 ac_site_file2=NONE
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2611 esac
2612 elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2615 else
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2618 fi
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 do
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2626 . "$ac_site_file" \
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2631 fi
2632 done
2633
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640 case $cache_file in
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2643 esac
2644 fi
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648 >$cache_file
2649 fi
2650
2651 as_fn_append ac_header_list " stdlib.h"
2652 as_fn_append ac_header_list " unistd.h"
2653 as_fn_append ac_header_list " sys/param.h"
2654 # Check that the precious variables saved in the cache have kept the same
2655 # value.
2656 ac_cache_corrupted=false
2657 for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2663 set,)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2667 ,set)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2671 ,);;
2672 *)
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 fi;;
2691 esac
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2694 case $ac_new_val in
2695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2697 esac
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 esac
2702 fi
2703 done
2704 if $ac_cache_corrupted; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2710 fi
2711 ## -------------------- ##
2712 ## Main body of script. ##
2713 ## -------------------- ##
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723
2724
2725
2726 ac_config_headers="$ac_config_headers config.h:config.in"
2727
2728 ac_aux_dir=
2729 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2730 if test -f "$ac_dir/install-sh"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2733 break
2734 elif test -f "$ac_dir/install.sh"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2737 break
2738 elif test -f "$ac_dir/shtool"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 break
2742 fi
2743 done
2744 if test -z "$ac_aux_dir"; then
2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2746 fi
2747
2748 # These three variables are undocumented and unsupported,
2749 # and are intended to be withdrawn in a future Autoconf release.
2750 # They can cause serious problems if a builder's source tree is in a directory
2751 # whose full name contains unusual characters.
2752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755
2756
2757 # Make sure we can run config.sub.
2758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2759 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2762 $as_echo_n "checking build system type... " >&6; }
2763 if ${ac_cv_build+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 ac_build_alias=$build_alias
2767 test "x$ac_build_alias" = x &&
2768 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2769 test "x$ac_build_alias" = x &&
2770 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 $as_echo "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2778 *-*-*) ;;
2779 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780 esac
2781 build=$ac_cv_build
2782 ac_save_IFS=$IFS; IFS='-'
2783 set x $ac_cv_build
2784 shift
2785 build_cpu=$1
2786 build_vendor=$2
2787 shift; shift
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2790 build_os=$*
2791 IFS=$ac_save_IFS
2792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 $as_echo_n "checking host system type... " >&6; }
2797 if ${ac_cv_host+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test "x$host_alias" = x; then
2801 ac_cv_host=$ac_cv_build
2802 else
2803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805 fi
2806
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2809 $as_echo "$ac_cv_host" >&6; }
2810 case $ac_cv_host in
2811 *-*-*) ;;
2812 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2813 esac
2814 host=$ac_cv_host
2815 ac_save_IFS=$IFS; IFS='-'
2816 set x $ac_cv_host
2817 shift
2818 host_cpu=$1
2819 host_vendor=$2
2820 shift; shift
2821 # Remember, the first character of IFS is used to create $*,
2822 # except with old shells:
2823 host_os=$*
2824 IFS=$ac_save_IFS
2825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2829 $as_echo_n "checking target system type... " >&6; }
2830 if ${ac_cv_target+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test "x$target_alias" = x; then
2834 ac_cv_target=$ac_cv_host
2835 else
2836 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2838 fi
2839
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2842 $as_echo "$ac_cv_target" >&6; }
2843 case $ac_cv_target in
2844 *-*-*) ;;
2845 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2846 esac
2847 target=$ac_cv_target
2848 ac_save_IFS=$IFS; IFS='-'
2849 set x $ac_cv_target
2850 shift
2851 target_cpu=$1
2852 target_vendor=$2
2853 shift; shift
2854 # Remember, the first character of IFS is used to create $*,
2855 # except with old shells:
2856 target_os=$*
2857 IFS=$ac_save_IFS
2858 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2859
2860
2861 # The aliases save the names the user supplied, while $host etc.
2862 # will get canonicalized.
2863 test -n "$target_alias" &&
2864 test "$program_prefix$program_suffix$program_transform_name" = \
2865 NONENONEs,x,x, &&
2866 program_prefix=${target_alias}-
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2871 # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2874 else
2875 USE_MAINTAINER_MODE=no
2876 fi
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2880 if test $USE_MAINTAINER_MODE = yes; then
2881 MAINTAINER_MODE_TRUE=
2882 MAINTAINER_MODE_FALSE='#'
2883 else
2884 MAINTAINER_MODE_TRUE='#'
2885 MAINTAINER_MODE_FALSE=
2886 fi
2887
2888 MAINT=$MAINTAINER_MODE_TRUE
2889
2890
2891 ac_aux_dir=
2892 for ac_dir in .. "$srcdir"/..; do
2893 if test -f "$ac_dir/install-sh"; then
2894 ac_aux_dir=$ac_dir
2895 ac_install_sh="$ac_aux_dir/install-sh -c"
2896 break
2897 elif test -f "$ac_dir/install.sh"; then
2898 ac_aux_dir=$ac_dir
2899 ac_install_sh="$ac_aux_dir/install.sh -c"
2900 break
2901 elif test -f "$ac_dir/shtool"; then
2902 ac_aux_dir=$ac_dir
2903 ac_install_sh="$ac_aux_dir/shtool install -c"
2904 break
2905 fi
2906 done
2907 if test -z "$ac_aux_dir"; then
2908 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2909 fi
2910
2911 # These three variables are undocumented and unsupported,
2912 # and are intended to be withdrawn in a future Autoconf release.
2913 # They can cause serious problems if a builder's source tree is in a directory
2914 # whose full name contains unusual characters.
2915 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2916 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2917 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2918
2919
2920 am__api_version='1.15'
2921
2922 # Find a good install program. We prefer a C program (faster),
2923 # so one script is as good as another. But avoid the broken or
2924 # incompatible versions:
2925 # SysV /etc/install, /usr/sbin/install
2926 # SunOS /usr/etc/install
2927 # IRIX /sbin/install
2928 # AIX /bin/install
2929 # AmigaOS /C/install, which installs bootblocks on floppy discs
2930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2933 # OS/2's system install, which has a completely different semantic
2934 # ./install, which can be erroneously created by make from ./install.sh.
2935 # Reject install programs that cannot install multiple files.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2937 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2938 if test -z "$INSTALL"; then
2939 if ${ac_cv_path_install+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 # Account for people who put trailing slashes in PATH elements.
2948 case $as_dir/ in #((
2949 ./ | .// | /[cC]/* | \
2950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2952 /usr/ucb/* ) ;;
2953 *)
2954 # OSF1 and SCO ODT 3.0 have their own names for install.
2955 # Don't use installbsd from OSF since it installs stuff as root
2956 # by default.
2957 for ac_prog in ginstall scoinst install; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2960 if test $ac_prog = install &&
2961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962 # AIX install. It has an incompatible calling convention.
2963 :
2964 elif test $ac_prog = install &&
2965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # program-specific install script used by HP pwplus--don't use.
2967 :
2968 else
2969 rm -rf conftest.one conftest.two conftest.dir
2970 echo one > conftest.one
2971 echo two > conftest.two
2972 mkdir conftest.dir
2973 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2974 test -s conftest.one && test -s conftest.two &&
2975 test -s conftest.dir/conftest.one &&
2976 test -s conftest.dir/conftest.two
2977 then
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2979 break 3
2980 fi
2981 fi
2982 fi
2983 done
2984 done
2985 ;;
2986 esac
2987
2988 done
2989 IFS=$as_save_IFS
2990
2991 rm -rf conftest.one conftest.two conftest.dir
2992
2993 fi
2994 if test "${ac_cv_path_install+set}" = set; then
2995 INSTALL=$ac_cv_path_install
2996 else
2997 # As a last resort, use the slow shell script. Don't cache a
2998 # value for INSTALL within a source directory, because that will
2999 # break other packages using the cache if that directory is
3000 # removed, or if the value is a relative name.
3001 INSTALL=$ac_install_sh
3002 fi
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3005 $as_echo "$INSTALL" >&6; }
3006
3007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3008 # It thinks the first close brace ends the variable substitution.
3009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010
3011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3012
3013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3016 $as_echo_n "checking whether build environment is sane... " >&6; }
3017 # Reject unsafe characters in $srcdir or the absolute working directory
3018 # name. Accept space and tab only in the latter.
3019 am_lf='
3020 '
3021 case `pwd` in
3022 *[\\\"\#\$\&\'\`$am_lf]*)
3023 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3024 esac
3025 case $srcdir in
3026 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3027 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3028 esac
3029
3030 # Do 'set' in a subshell so we don't clobber the current shell's
3031 # arguments. Must try -L first in case configure is actually a
3032 # symlink; some systems play weird games with the mod time of symlinks
3033 # (eg FreeBSD returns the mod time of the symlink's containing
3034 # directory).
3035 if (
3036 am_has_slept=no
3037 for am_try in 1 2; do
3038 echo "timestamp, slept: $am_has_slept" > conftest.file
3039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3040 if test "$*" = "X"; then
3041 # -L didn't work.
3042 set X `ls -t "$srcdir/configure" conftest.file`
3043 fi
3044 if test "$*" != "X $srcdir/configure conftest.file" \
3045 && test "$*" != "X conftest.file $srcdir/configure"; then
3046
3047 # If neither matched, then we have a broken ls. This can happen
3048 # if, for instance, CONFIG_SHELL is bash and it inherits a
3049 # broken ls alias from the environment. This has actually
3050 # happened. Such a system could not be considered "sane".
3051 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3052 alias in your environment" "$LINENO" 5
3053 fi
3054 if test "$2" = conftest.file || test $am_try -eq 2; then
3055 break
3056 fi
3057 # Just in case.
3058 sleep 1
3059 am_has_slept=yes
3060 done
3061 test "$2" = conftest.file
3062 )
3063 then
3064 # Ok.
3065 :
3066 else
3067 as_fn_error $? "newly created file is older than distributed files!
3068 Check your system clock" "$LINENO" 5
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 $as_echo "yes" >&6; }
3072 # If we didn't sleep, we still need to ensure time stamps of config.status and
3073 # generated files are strictly newer.
3074 am_sleep_pid=
3075 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3076 ( sleep 1 ) &
3077 am_sleep_pid=$!
3078 fi
3079
3080 rm -f conftest.file
3081
3082 test "$program_prefix" != NONE &&
3083 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3084 # Use a double $ so make ignores it.
3085 test "$program_suffix" != NONE &&
3086 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3087 # Double any \ or $.
3088 # By default was `s,x,x', remove it if useless.
3089 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3090 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3091
3092 # Expand $ac_aux_dir to an absolute path.
3093 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3094
3095 if test x"${MISSING+set}" != xset; then
3096 case $am_aux_dir in
3097 *\ * | *\ *)
3098 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3099 *)
3100 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3101 esac
3102 fi
3103 # Use eval to expand $SHELL
3104 if eval "$MISSING --is-lightweight"; then
3105 am_missing_run="$MISSING "
3106 else
3107 am_missing_run=
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3109 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 fi
3111
3112 if test x"${install_sh+set}" != xset; then
3113 case $am_aux_dir in
3114 *\ * | *\ *)
3115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 *)
3117 install_sh="\${SHELL} $am_aux_dir/install-sh"
3118 esac
3119 fi
3120
3121 # Installed binaries are usually stripped using 'strip' when the user
3122 # run "make install-strip". However 'strip' might not be the right
3123 # tool to use in cross-compilation environments, therefore Automake
3124 # will honor the 'STRIP' environment variable to overrule this program.
3125 if test "$cross_compiling" != no; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}strip; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_STRIP+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$STRIP"; then
3135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 STRIP=$ac_cv_prog_STRIP
3155 if test -n "$STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3157 $as_echo "$STRIP" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 fi
3165 if test -z "$ac_cv_prog_STRIP"; then
3166 ac_ct_STRIP=$STRIP
3167 # Extract the first word of "strip", so it can be a program name with args.
3168 set dummy strip; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_STRIP"; then
3175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_STRIP="strip"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3195 if test -n "$ac_ct_STRIP"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3197 $as_echo "$ac_ct_STRIP" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203 if test "x$ac_ct_STRIP" = x; then
3204 STRIP=":"
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 STRIP=$ac_ct_STRIP
3213 fi
3214 else
3215 STRIP="$ac_cv_prog_STRIP"
3216 fi
3217
3218 fi
3219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3222 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3223 if test -z "$MKDIR_P"; then
3224 if ${ac_cv_path_mkdir+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_prog in mkdir gmkdir; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3236 'mkdir (GNU coreutils) '* | \
3237 'mkdir (coreutils) '* | \
3238 'mkdir (fileutils) '4.1*)
3239 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3240 break 3;;
3241 esac
3242 done
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi
3248
3249 test -d ./--version && rmdir ./--version
3250 if test "${ac_cv_path_mkdir+set}" = set; then
3251 MKDIR_P="$ac_cv_path_mkdir -p"
3252 else
3253 # As a last resort, use the slow shell script. Don't cache a
3254 # value for MKDIR_P within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the value is a relative name.
3257 MKDIR_P="$ac_install_sh -d"
3258 fi
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3261 $as_echo "$MKDIR_P" >&6; }
3262
3263 for ac_prog in gawk mawk nawk awk
3264 do
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_AWK+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_AWK="$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 AWK=$ac_cv_prog_AWK
3293 if test -n "$AWK"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295 $as_echo "$AWK" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 test -n "$AWK" && break
3303 done
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3307 set x ${MAKE-make}
3308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat >conftest.make <<\_ACEOF
3313 SHELL = /bin/sh
3314 all:
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3316 _ACEOF
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319 *@@@%%%=?*=@@@%%%*)
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 *)
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3323 esac
3324 rm -f conftest.make
3325 fi
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 SET_MAKE=
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 SET_MAKE="MAKE=${MAKE-make}"
3334 fi
3335
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3339 am__leading_dot=.
3340 else
3341 am__leading_dot=_
3342 fi
3343 rmdir .tst 2>/dev/null
3344
3345 # Check whether --enable-silent-rules was given.
3346 if test "${enable_silent_rules+set}" = set; then :
3347 enableval=$enable_silent_rules;
3348 fi
3349
3350 case $enable_silent_rules in # (((
3351 yes) AM_DEFAULT_VERBOSITY=0;;
3352 no) AM_DEFAULT_VERBOSITY=1;;
3353 *) AM_DEFAULT_VERBOSITY=1;;
3354 esac
3355 am_make=${MAKE-make}
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3358 if ${am_cv_make_support_nested_variables+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if $as_echo 'TRUE=$(BAR$(V))
3362 BAR0=false
3363 BAR1=true
3364 V=1
3365 am__doit:
3366 @$(TRUE)
3367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3368 am_cv_make_support_nested_variables=yes
3369 else
3370 am_cv_make_support_nested_variables=no
3371 fi
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3375 if test $am_cv_make_support_nested_variables = yes; then
3376 AM_V='$(V)'
3377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3378 else
3379 AM_V=$AM_DEFAULT_VERBOSITY
3380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3381 fi
3382 AM_BACKSLASH='\'
3383
3384 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3385 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3386 # is not polluted with repeated "-I."
3387 am__isrc=' -I$(srcdir)'
3388 # test to see if srcdir already configured
3389 if test -f $srcdir/config.status; then
3390 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3391 fi
3392 fi
3393
3394 # test whether we have cygpath
3395 if test -z "$CYGPATH_W"; then
3396 if (cygpath --version) >/dev/null 2>/dev/null; then
3397 CYGPATH_W='cygpath -w'
3398 else
3399 CYGPATH_W=echo
3400 fi
3401 fi
3402
3403
3404 # Define the identity of the package.
3405 PACKAGE='gdbsupport'
3406 VERSION='1.0'
3407
3408
3409 cat >>confdefs.h <<_ACEOF
3410 #define PACKAGE "$PACKAGE"
3411 _ACEOF
3412
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define VERSION "$VERSION"
3416 _ACEOF
3417
3418 # Some tools Automake needs.
3419
3420 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421
3422
3423 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3424
3425
3426 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427
3428
3429 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3430
3431
3432 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3433
3434 # For better backward compatibility. To be removed once Automake 1.9.x
3435 # dies out for good. For more background, see:
3436 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3437 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3438 mkdir_p='$(MKDIR_P)'
3439
3440 # We need awk for the "check" target (and possibly the TAP driver). The
3441 # system "awk" is bad on some platforms.
3442 # Always define AMTAR for backward compatibility. Yes, it's still used
3443 # in the wild :-( We should find a proper way to deprecate it ...
3444 AMTAR='$${TAR-tar}'
3445
3446
3447 # We'll loop over all known methods to create a tar archive until one works.
3448 _am_tools='gnutar pax cpio none'
3449
3450 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3451
3452
3453
3454
3455
3456
3457 # POSIX will say in a future version that running "rm -f" with no argument
3458 # is OK; and we want to be able to make that assumption in our Makefile
3459 # recipes. So use an aggressive probe to check that the usage we want is
3460 # actually supported "in the wild" to an acceptable degree.
3461 # See automake bug#10828.
3462 # To make any issue more visible, cause the running configure to be aborted
3463 # by default if the 'rm' program in use doesn't match our expectations; the
3464 # user can still override this though.
3465 if rm -f && rm -fr && rm -rf; then : OK; else
3466 cat >&2 <<'END'
3467 Oops!
3468
3469 Your 'rm' program seems unable to run without file operands specified
3470 on the command line, even when the '-f' option is present. This is contrary
3471 to the behaviour of most rm programs out there, and not conforming with
3472 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3473
3474 Please tell bug-automake@gnu.org about your system, including the value
3475 of your $PATH and any error possibly output before this message. This
3476 can help us improve future automake versions.
3477
3478 END
3479 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3480 echo 'Configuration will proceed anyway, since you have set the' >&2
3481 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3482 echo >&2
3483 else
3484 cat >&2 <<'END'
3485 Aborting the configuration process, to ensure you take notice of the issue.
3486
3487 You can download and install GNU coreutils to get an 'rm' implementation
3488 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3489
3490 If you want to complete the configuration process using your problematic
3491 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3492 to "yes", and re-run configure.
3493
3494 END
3495 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3496 fi
3497 fi
3498
3499 # Check whether --enable-silent-rules was given.
3500 if test "${enable_silent_rules+set}" = set; then :
3501 enableval=$enable_silent_rules;
3502 fi
3503
3504 case $enable_silent_rules in # (((
3505 yes) AM_DEFAULT_VERBOSITY=0;;
3506 no) AM_DEFAULT_VERBOSITY=1;;
3507 *) AM_DEFAULT_VERBOSITY=0;;
3508 esac
3509 am_make=${MAKE-make}
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3511 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3512 if ${am_cv_make_support_nested_variables+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if $as_echo 'TRUE=$(BAR$(V))
3516 BAR0=false
3517 BAR1=true
3518 V=1
3519 am__doit:
3520 @$(TRUE)
3521 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3522 am_cv_make_support_nested_variables=yes
3523 else
3524 am_cv_make_support_nested_variables=no
3525 fi
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3528 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3529 if test $am_cv_make_support_nested_variables = yes; then
3530 AM_V='$(V)'
3531 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3532 else
3533 AM_V=$AM_DEFAULT_VERBOSITY
3534 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3535 fi
3536 AM_BACKSLASH='\'
3537
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$ac_cv_prog_CC"; then
3584 ac_ct_CC=$CC
3585 # Extract the first word of "gcc", so it can be a program name with args.
3586 set dummy gcc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$ac_ct_CC"; then
3593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="gcc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613 if test -n "$ac_ct_CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615 $as_echo "$ac_ct_CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621 if test "x$ac_ct_CC" = x; then
3622 CC=""
3623 else
3624 case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630 CC=$ac_ct_CC
3631 fi
3632 else
3633 CC="$ac_cv_prog_CC"
3634 fi
3635
3636 if test -z "$CC"; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}cc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_CC+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_CC="${ac_tool_prefix}cc"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 fi
3677 if test -z "$CC"; then
3678 # Extract the first word of "cc", so it can be a program name with args.
3679 set dummy cc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3687 else
3688 ac_prog_rejected=no
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3697 ac_prog_rejected=yes
3698 continue
3699 fi
3700 ac_cv_prog_CC="cc"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 if test $ac_prog_rejected = yes; then
3709 # We found a bogon in the path, so make sure we never use it.
3710 set dummy $ac_cv_prog_CC
3711 shift
3712 if test $# != 0; then
3713 # We chose a different compiler from the bogus one.
3714 # However, it has the same basename, so the bogon will be chosen
3715 # first if we set CC to just the basename; use the full file name.
3716 shift
3717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3718 fi
3719 fi
3720 fi
3721 fi
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 fi
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 for ac_prog in cl.exe
3736 do
3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3757 fi
3758 done
3759 done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 CC=$ac_cv_prog_CC
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3768 else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773
3774 test -n "$CC" && break
3775 done
3776 fi
3777 if test -z "$CC"; then
3778 ac_ct_CC=$CC
3779 for ac_prog in cl.exe
3780 do
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782 set dummy $ac_prog; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$ac_ct_CC"; then
3789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_ac_ct_CC="$ac_prog"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802 done
3803 done
3804 IFS=$as_save_IFS
3805
3806 fi
3807 fi
3808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3809 if test -n "$ac_ct_CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3811 $as_echo "$ac_ct_CC" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817
3818 test -n "$ac_ct_CC" && break
3819 done
3820
3821 if test "x$ac_ct_CC" = x; then
3822 CC=""
3823 else
3824 case $cross_compiling:$ac_tool_warned in
3825 yes:)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3829 esac
3830 CC=$ac_ct_CC
3831 fi
3832 fi
3833
3834 fi
3835
3836
3837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 as_fn_error $? "no acceptable C compiler found in \$PATH
3840 See \`config.log' for more details" "$LINENO" 5; }
3841
3842 # Provide some information about the compiler.
3843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3844 set X $ac_compile
3845 ac_compiler=$2
3846 for ac_option in --version -v -V -qversion; do
3847 { { ac_try="$ac_compiler $ac_option >&5"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3855 ac_status=$?
3856 if test -s conftest.err; then
3857 sed '10a\
3858 ... rest of stderr output deleted ...
3859 10q' conftest.err >conftest.er1
3860 cat conftest.er1 >&5
3861 fi
3862 rm -f conftest.er1 conftest.err
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }
3865 done
3866
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869
3870 int
3871 main ()
3872 {
3873
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 ac_clean_files_save=$ac_clean_files
3879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3880 # Try to create an executable without -o first, disregard a.out.
3881 # It will help us diagnose broken compilers, and finding out an intuition
3882 # of exeext.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3884 $as_echo_n "checking whether the C compiler works... " >&6; }
3885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3886
3887 # The possible output files:
3888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3889
3890 ac_rmfiles=
3891 for ac_file in $ac_files
3892 do
3893 case $ac_file in
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3896 esac
3897 done
3898 rm -f $ac_rmfiles
3899
3900 if { { ac_try="$ac_link_default"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link_default") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3914 # so that the user can short-circuit this test for compilers unknown to
3915 # Autoconf.
3916 for ac_file in $ac_files ''
3917 do
3918 test -f "$ac_file" || continue
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3921 ;;
3922 [ab].out )
3923 # We found the default executable, but exeext='' is most
3924 # certainly right.
3925 break;;
3926 *.* )
3927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3928 then :; else
3929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3930 fi
3931 # We set ac_cv_exeext here because the later test for it is not
3932 # safe: cross compilers may not add the suffix if given an `-o'
3933 # argument, so we may need to know it at that point already.
3934 # Even if this section looks crufty: it has the advantage of
3935 # actually working.
3936 break;;
3937 * )
3938 break;;
3939 esac
3940 done
3941 test "$ac_cv_exeext" = no && ac_cv_exeext=
3942
3943 else
3944 ac_file=''
3945 fi
3946 if test -z "$ac_file"; then :
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error 77 "C compiler cannot create executables
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958 $as_echo "yes" >&6; }
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3961 $as_echo_n "checking for C compiler default output file name... " >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3963 $as_echo "$ac_file" >&6; }
3964 ac_exeext=$ac_cv_exeext
3965
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3967 ac_clean_files=$ac_clean_files_save
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969 $as_echo_n "checking for suffix of executables... " >&6; }
3970 if { { ac_try="$ac_link"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3983 # work properly (i.e., refer to `conftest.exe'), while it won't with
3984 # `rm'.
3985 for ac_file in conftest.exe conftest conftest.*; do
3986 test -f "$ac_file" || continue
3987 case $ac_file in
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 break;;
3991 * ) break;;
3992 esac
3993 done
3994 else
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3998 See \`config.log' for more details" "$LINENO" 5; }
3999 fi
4000 rm -f conftest conftest$ac_cv_exeext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002 $as_echo "$ac_cv_exeext" >&6; }
4003
4004 rm -f conftest.$ac_ext
4005 EXEEXT=$ac_cv_exeext
4006 ac_exeext=$EXEEXT
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <stdio.h>
4010 int
4011 main ()
4012 {
4013 FILE *f = fopen ("conftest.out", "w");
4014 return ferror (f) || fclose (f) != 0;
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 ac_clean_files="$ac_clean_files conftest.out"
4021 # Check that the compiler produces executables we can run. If not, either
4022 # the compiler is broken, or we cross compile.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4024 $as_echo_n "checking whether we are cross compiling... " >&6; }
4025 if test "$cross_compiling" != yes; then
4026 { { ac_try="$ac_link"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037 if { ac_try='./conftest$ac_cv_exeext'
4038 { { case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_try") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; }; then
4048 cross_compiling=no
4049 else
4050 if test "$cross_compiling" = maybe; then
4051 cross_compiling=yes
4052 else
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "cannot run C compiled programs.
4056 If you meant to cross compile, use \`--host'.
4057 See \`config.log' for more details" "$LINENO" 5; }
4058 fi
4059 fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4062 $as_echo "$cross_compiling" >&6; }
4063
4064 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4065 ac_clean_files=$ac_clean_files_save
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4067 $as_echo_n "checking for suffix of object files... " >&6; }
4068 if ${ac_cv_objext+:} false; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main ()
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.o conftest.obj
4083 if { { ac_try="$ac_compile"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compile") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }; then :
4094 for ac_file in conftest.o conftest.obj conftest.*; do
4095 test -f "$ac_file" || continue;
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4099 break;;
4100 esac
4101 done
4102 else
4103 $as_echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108 as_fn_error $? "cannot compute suffix of object files: cannot compile
4109 See \`config.log' for more details" "$LINENO" 5; }
4110 fi
4111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4114 $as_echo "$ac_cv_objext" >&6; }
4115 OBJEXT=$ac_cv_objext
4116 ac_objext=$OBJEXT
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4119 if ${ac_cv_c_compiler_gnu+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124
4125 int
4126 main ()
4127 {
4128 #ifndef __GNUC__
4129 choke me
4130 #endif
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_compiler_gnu=yes
4138 else
4139 ac_compiler_gnu=no
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4143
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4147 if test $ac_compiler_gnu = yes; then
4148 GCC=yes
4149 else
4150 GCC=
4151 fi
4152 ac_test_CFLAGS=${CFLAGS+set}
4153 ac_save_CFLAGS=$CFLAGS
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4156 if ${ac_cv_prog_cc_g+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4161 ac_cv_prog_cc_g=no
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176 else
4177 CFLAGS=""
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main ()
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190
4191 else
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="-g"
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196
4197 int
4198 main ()
4199 {
4200
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_prog_cc_g=yes
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216 $as_echo "$ac_cv_prog_cc_g" >&6; }
4217 if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219 elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="-g -O2"
4222 else
4223 CFLAGS="-g"
4224 fi
4225 else
4226 if test "$GCC" = yes; then
4227 CFLAGS="-O2"
4228 else
4229 CFLAGS=
4230 fi
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234 if ${ac_cv_prog_cc_c89+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 ac_cv_prog_cc_c89=no
4238 ac_save_CC=$CC
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <stdarg.h>
4242 #include <stdio.h>
4243 struct stat;
4244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4245 struct buf { int x; };
4246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4247 static char *e (p, i)
4248 char **p;
4249 int i;
4250 {
4251 return p[i];
4252 }
4253 static char *f (char * (*g) (char **, int), char **p, ...)
4254 {
4255 char *s;
4256 va_list v;
4257 va_start (v,p);
4258 s = g (p, va_arg (v,int));
4259 va_end (v);
4260 return s;
4261 }
4262
4263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4264 function prototypes and stuff, but not '\xHH' hex character constants.
4265 These don't provoke an error unfortunately, instead are silently treated
4266 as 'x'. The following induces an error, until -std is added to get
4267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4268 array size at least. It's necessary to write '\x00'==0 to get something
4269 that's true only with -std. */
4270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4271
4272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4273 inside strings and character constants. */
4274 #define FOO(x) 'x'
4275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4276
4277 int test (int i, double x);
4278 struct s1 {int (*f) (int a);};
4279 struct s2 {int (*f) (double a);};
4280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4281 int argc;
4282 char **argv;
4283 int
4284 main ()
4285 {
4286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293 do
4294 CC="$ac_save_CC $ac_arg"
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_c89=$ac_arg
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
4300 done
4301 rm -f conftest.$ac_ext
4302 CC=$ac_save_CC
4303
4304 fi
4305 # AC_CACHE_VAL
4306 case "x$ac_cv_prog_cc_c89" in
4307 x)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309 $as_echo "none needed" >&6; } ;;
4310 xno)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4312 $as_echo "unsupported" >&6; } ;;
4313 *)
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4317 esac
4318 if test "x$ac_cv_prog_cc_c89" != xno; then :
4319
4320 fi
4321
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4334 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4335 if ${am_cv_prog_cc_c_o+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 # Make sure it works both with $CC and with simple cc.
4350 # Following AC_PROG_CC_C_O, we do the test twice because some
4351 # compilers refuse to overwrite an existing .o file with -o,
4352 # though they will create one.
4353 am_cv_prog_cc_c_o=yes
4354 for am_i in 1 2; do
4355 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4356 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } \
4360 && test -f conftest2.$ac_objext; then
4361 : OK
4362 else
4363 am_cv_prog_cc_c_o=no
4364 break
4365 fi
4366 done
4367 rm -f core conftest*
4368 unset am_i
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4371 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4372 if test "$am_cv_prog_cc_c_o" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379 fi
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386 DEPDIR="${am__leading_dot}deps"
4387
4388 ac_config_commands="$ac_config_commands depfiles"
4389
4390
4391 am_make=${MAKE-make}
4392 cat > confinc << 'END'
4393 am__doit:
4394 @echo this is the am__doit target
4395 .PHONY: am__doit
4396 END
4397 # If we don't find an include directive, just comment out the code.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4400 am__include="#"
4401 am__quote=
4402 _am_result=none
4403 # First try GNU make style include.
4404 echo "include confinc" > confmf
4405 # Ignore all kinds of additional output from 'make'.
4406 case `$am_make -s -f confmf 2> /dev/null` in #(
4407 *the\ am__doit\ target*)
4408 am__include=include
4409 am__quote=
4410 _am_result=GNU
4411 ;;
4412 esac
4413 # Now try BSD make style include.
4414 if test "$am__include" = "#"; then
4415 echo '.include "confinc"' > confmf
4416 case `$am_make -s -f confmf 2> /dev/null` in #(
4417 *the\ am__doit\ target*)
4418 am__include=.include
4419 am__quote="\""
4420 _am_result=BSD
4421 ;;
4422 esac
4423 fi
4424
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4427 $as_echo "$_am_result" >&6; }
4428 rm -f confinc confmf
4429
4430 # Check whether --enable-dependency-tracking was given.
4431 if test "${enable_dependency_tracking+set}" = set; then :
4432 enableval=$enable_dependency_tracking;
4433 fi
4434
4435 if test "x$enable_dependency_tracking" != xno; then
4436 am_depcomp="$ac_aux_dir/depcomp"
4437 AMDEPBACKSLASH='\'
4438 am__nodep='_no'
4439 fi
4440 if test "x$enable_dependency_tracking" != xno; then
4441 AMDEP_TRUE=
4442 AMDEP_FALSE='#'
4443 else
4444 AMDEP_TRUE='#'
4445 AMDEP_FALSE=
4446 fi
4447
4448
4449
4450 depcc="$CC" am_compiler_list=
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 $as_echo_n "checking dependency style of $depcc... " >&6; }
4454 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458 # We make a subdir and do the tests there. Otherwise we can end up
4459 # making bogus files that we don't know about and never remove. For
4460 # instance it was reported that on HP-UX the gcc test will end up
4461 # making a dummy file named 'D' -- because '-MD' means "put the output
4462 # in D".
4463 rm -rf conftest.dir
4464 mkdir conftest.dir
4465 # Copy depcomp to subdir because otherwise we won't find it if we're
4466 # using a relative directory.
4467 cp "$am_depcomp" conftest.dir
4468 cd conftest.dir
4469 # We will build objects and dependencies in a subdirectory because
4470 # it helps to detect inapplicable dependency modes. For instance
4471 # both Tru64's cc and ICC support -MD to output dependencies as a
4472 # side effect of compilation, but ICC will put the dependencies in
4473 # the current directory while Tru64 will put them in the object
4474 # directory.
4475 mkdir sub
4476
4477 am_cv_CC_dependencies_compiler_type=none
4478 if test "$am_compiler_list" = ""; then
4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480 fi
4481 am__universal=false
4482 case " $depcc " in #(
4483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484 esac
4485
4486 for depmode in $am_compiler_list; do
4487 # Setup a source with many dependencies, because some compilers
4488 # like to wrap large dependency lists on column 80 (with \), and
4489 # we should not choose a depcomp mode which is confused by this.
4490 #
4491 # We need to recreate these files for each test, as the compiler may
4492 # overwrite some of them when testing with obscure command lines.
4493 # This happens at least with the AIX C compiler.
4494 : > sub/conftest.c
4495 for i in 1 2 3 4 5 6; do
4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498 # Solaris 10 /bin/sh.
4499 echo '/* dummy */' > sub/conftst$i.h
4500 done
4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504 # mode. It turns out that the SunPro C++ compiler does not properly
4505 # handle '-M -o', and we need to detect this. Also, some Intel
4506 # versions had trouble with output in subdirs.
4507 am__obj=sub/conftest.${OBJEXT-o}
4508 am__minus_obj="-o $am__obj"
4509 case $depmode in
4510 gcc)
4511 # This depmode causes a compiler race in universal mode.
4512 test "$am__universal" = false || continue
4513 ;;
4514 nosideeffect)
4515 # After this tag, mechanisms are not by side-effect, so they'll
4516 # only be used when explicitly requested.
4517 if test "x$enable_dependency_tracking" = xyes; then
4518 continue
4519 else
4520 break
4521 fi
4522 ;;
4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524 # This compiler won't grok '-c -o', but also, the minuso test has
4525 # not run yet. These depmodes are late enough in the game, and
4526 # so weak that their functioning should not be impacted.
4527 am__obj=conftest.${OBJEXT-o}
4528 am__minus_obj=
4529 ;;
4530 none) break ;;
4531 esac
4532 if depmode=$depmode \
4533 source=sub/conftest.c object=$am__obj \
4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536 >/dev/null 2>conftest.err &&
4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541 # icc doesn't choke on unknown options, it will just issue warnings
4542 # or remarks (even with -Werror). So we grep stderr for any message
4543 # that says an option was ignored or not supported.
4544 # When given -MP, icc 7.0 and 7.1 complain thusly:
4545 # icc: Command line warning: ignoring option '-M'; no argument required
4546 # The diagnosis changed in icc 8.0:
4547 # icc: Command line remark: option '-MP' not supported
4548 if (grep 'ignoring option' conftest.err ||
4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550 am_cv_CC_dependencies_compiler_type=$depmode
4551 break
4552 fi
4553 fi
4554 done
4555
4556 cd ..
4557 rm -rf conftest.dir
4558 else
4559 am_cv_CC_dependencies_compiler_type=none
4560 fi
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
4567 if
4568 test "x$enable_dependency_tracking" != xno \
4569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570 am__fastdepCC_TRUE=
4571 am__fastdepCC_FALSE='#'
4572 else
4573 am__fastdepCC_TRUE='#'
4574 am__fastdepCC_FALSE=
4575 fi
4576
4577
4578 ac_ext=cpp
4579 ac_cpp='$CXXCPP $CPPFLAGS'
4580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4583 if test -z "$CXX"; then
4584 if test -n "$CCC"; then
4585 CXX=$CCC
4586 else
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_CXX+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$CXX"; then
4598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 CXX=$ac_cv_prog_CXX
4618 if test -n "$CXX"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4620 $as_echo "$CXX" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 test -n "$CXX" && break
4628 done
4629 fi
4630 if test -z "$CXX"; then
4631 ac_ct_CXX=$CXX
4632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4633 do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_CXX"; then
4642 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CXX="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4662 if test -n "$ac_ct_CXX"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4664 $as_echo "$ac_ct_CXX" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 test -n "$ac_ct_CXX" && break
4672 done
4673
4674 if test "x$ac_ct_CXX" = x; then
4675 CXX="g++"
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678 yes:)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4682 esac
4683 CXX=$ac_ct_CXX
4684 fi
4685 fi
4686
4687 fi
4688 fi
4689 # Provide some information about the compiler.
4690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4691 set X $ac_compile
4692 ac_compiler=$2
4693 for ac_option in --version -v -V -qversion; do
4694 { { ac_try="$ac_compiler $ac_option >&5"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4702 ac_status=$?
4703 if test -s conftest.err; then
4704 sed '10a\
4705 ... rest of stderr output deleted ...
4706 10q' conftest.err >conftest.er1
4707 cat conftest.er1 >&5
4708 fi
4709 rm -f conftest.er1 conftest.err
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; }
4712 done
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4715 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4716 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725 #ifndef __GNUC__
4726 choke me
4727 #endif
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4734 ac_compiler_gnu=yes
4735 else
4736 ac_compiler_gnu=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4743 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4744 if test $ac_compiler_gnu = yes; then
4745 GXX=yes
4746 else
4747 GXX=
4748 fi
4749 ac_test_CXXFLAGS=${CXXFLAGS+set}
4750 ac_save_CXXFLAGS=$CXXFLAGS
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4752 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4753 if ${ac_cv_prog_cxx_g+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4757 ac_cxx_werror_flag=yes
4758 ac_cv_prog_cxx_g=no
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main ()
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
4773 else
4774 CXXFLAGS=""
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_cxx_try_compile "$LINENO"; then :
4787
4788 else
4789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4790 CXXFLAGS="-g"
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793
4794 int
4795 main ()
4796 {
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_cxx_try_compile "$LINENO"; then :
4803 ac_cv_prog_cxx_g=yes
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4813 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4814 if test "$ac_test_CXXFLAGS" = set; then
4815 CXXFLAGS=$ac_save_CXXFLAGS
4816 elif test $ac_cv_prog_cxx_g = yes; then
4817 if test "$GXX" = yes; then
4818 CXXFLAGS="-g -O2"
4819 else
4820 CXXFLAGS="-g"
4821 fi
4822 else
4823 if test "$GXX" = yes; then
4824 CXXFLAGS="-O2"
4825 else
4826 CXXFLAGS=
4827 fi
4828 fi
4829 ac_ext=c
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834
4835 depcc="$CXX" am_compiler_list=
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4838 $as_echo_n "checking dependency style of $depcc... " >&6; }
4839 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named 'D' -- because '-MD' means "put the output
4847 # in D".
4848 rm -rf conftest.dir
4849 mkdir conftest.dir
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4853 cd conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4859 # directory.
4860 mkdir sub
4861
4862 am_cv_CXX_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865 fi
4866 am__universal=false
4867 case " $depcc " in #(
4868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4869 esac
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_CXX_dependencies_compiler_type=$depmode
4936 break
4937 fi
4938 fi
4939 done
4940
4941 cd ..
4942 rm -rf conftest.dir
4943 else
4944 am_cv_CXX_dependencies_compiler_type=none
4945 fi
4946
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4949 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4950 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4951
4952 if
4953 test "x$enable_dependency_tracking" != xno \
4954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4955 am__fastdepCXX_TRUE=
4956 am__fastdepCXX_FALSE='#'
4957 else
4958 am__fastdepCXX_TRUE='#'
4959 am__fastdepCXX_FALSE=
4960 fi
4961
4962
4963 if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_RANLIB+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$RANLIB"; then
4972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 RANLIB=$ac_cv_prog_RANLIB
4992 if test -n "$RANLIB"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4994 $as_echo "$RANLIB" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 fi
5002 if test -z "$ac_cv_prog_RANLIB"; then
5003 ac_ct_RANLIB=$RANLIB
5004 # Extract the first word of "ranlib", so it can be a program name with args.
5005 set dummy ranlib; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$ac_ct_RANLIB"; then
5012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5034 $as_echo "$ac_ct_RANLIB" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040 if test "x$ac_ct_RANLIB" = x; then
5041 RANLIB=":"
5042 else
5043 case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049 RANLIB=$ac_ct_RANLIB
5050 fi
5051 else
5052 RANLIB="$ac_cv_prog_RANLIB"
5053 fi
5054
5055
5056
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5064 # On Suns, sometimes $CPP names a directory.
5065 if test -n "$CPP" && test -d "$CPP"; then
5066 CPP=
5067 fi
5068 if test -z "$CPP"; then
5069 if ${ac_cv_prog_CPP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 # Double quotes because CPP needs to be expanded
5073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5074 do
5075 ac_preproc_ok=false
5076 for ac_c_preproc_warn_flag in '' yes
5077 do
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 #ifdef __STDC__
5087 # include <limits.h>
5088 #else
5089 # include <assert.h>
5090 #endif
5091 Syntax error
5092 _ACEOF
5093 if ac_fn_c_try_cpp "$LINENO"; then :
5094
5095 else
5096 # Broken: fails on valid input.
5097 continue
5098 fi
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <ac_nonexistent.h>
5106 _ACEOF
5107 if ac_fn_c_try_cpp "$LINENO"; then :
5108 # Broken: success on invalid input.
5109 continue
5110 else
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5114 fi
5115 rm -f conftest.err conftest.i conftest.$ac_ext
5116
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.i conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then :
5121 break
5122 fi
5123
5124 done
5125 ac_cv_prog_CPP=$CPP
5126
5127 fi
5128 CPP=$ac_cv_prog_CPP
5129 else
5130 ac_cv_prog_CPP=$CPP
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5133 $as_echo "$CPP" >&6; }
5134 ac_preproc_ok=false
5135 for ac_c_preproc_warn_flag in '' yes
5136 do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #ifdef __STDC__
5146 # include <limits.h>
5147 #else
5148 # include <assert.h>
5149 #endif
5150 Syntax error
5151 _ACEOF
5152 if ac_fn_c_try_cpp "$LINENO"; then :
5153
5154 else
5155 # Broken: fails on valid input.
5156 continue
5157 fi
5158 rm -f conftest.err conftest.i conftest.$ac_ext
5159
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if ac_fn_c_try_cpp "$LINENO"; then :
5167 # Broken: success on invalid input.
5168 continue
5169 else
5170 # Passes both tests.
5171 ac_preproc_ok=:
5172 break
5173 fi
5174 rm -f conftest.err conftest.i conftest.$ac_ext
5175
5176 done
5177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178 rm -f conftest.i conftest.err conftest.$ac_ext
5179 if $ac_preproc_ok; then :
5180
5181 else
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5185 See \`config.log' for more details" "$LINENO" 5; }
5186 fi
5187
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5196 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5197 if ${ac_cv_path_GREP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -z "$GREP"; then
5201 ac_path_GREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in grep ggrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5211 as_fn_executable_p "$ac_path_GREP" || continue
5212 # Check for GNU ac_path_GREP and select it if it is found.
5213 # Check for GNU $ac_path_GREP
5214 case `"$ac_path_GREP" --version 2>&1` in
5215 *GNU*)
5216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5217 *)
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5221 do
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'GREP' >> "conftest.nl"
5226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_GREP="$ac_path_GREP"
5232 ac_path_GREP_max=$ac_count
5233 fi
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238 esac
5239
5240 $ac_path_GREP_found && break 3
5241 done
5242 done
5243 done
5244 IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_GREP"; then
5246 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 fi
5248 else
5249 ac_cv_path_GREP=$GREP
5250 fi
5251
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5254 $as_echo "$ac_cv_path_GREP" >&6; }
5255 GREP="$ac_cv_path_GREP"
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5259 $as_echo_n "checking for egrep... " >&6; }
5260 if ${ac_cv_path_EGREP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5264 then ac_cv_path_EGREP="$GREP -E"
5265 else
5266 if test -z "$EGREP"; then
5267 ac_path_EGREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_prog in egrep; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5277 as_fn_executable_p "$ac_path_EGREP" || continue
5278 # Check for GNU ac_path_EGREP and select it if it is found.
5279 # Check for GNU $ac_path_EGREP
5280 case `"$ac_path_EGREP" --version 2>&1` in
5281 *GNU*)
5282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5283 *)
5284 ac_count=0
5285 $as_echo_n 0123456789 >"conftest.in"
5286 while :
5287 do
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'EGREP' >> "conftest.nl"
5292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5294 as_fn_arith $ac_count + 1 && ac_count=$as_val
5295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_EGREP="$ac_path_EGREP"
5298 ac_path_EGREP_max=$ac_count
5299 fi
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5302 done
5303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5304 esac
5305
5306 $ac_path_EGREP_found && break 3
5307 done
5308 done
5309 done
5310 IFS=$as_save_IFS
5311 if test -z "$ac_cv_path_EGREP"; then
5312 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5313 fi
5314 else
5315 ac_cv_path_EGREP=$EGREP
5316 fi
5317
5318 fi
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5321 $as_echo "$ac_cv_path_EGREP" >&6; }
5322 EGREP="$ac_cv_path_EGREP"
5323
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5326 $as_echo_n "checking for ANSI C header files... " >&6; }
5327 if ${ac_cv_header_stdc+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <stdlib.h>
5333 #include <stdarg.h>
5334 #include <string.h>
5335 #include <float.h>
5336
5337 int
5338 main ()
5339 {
5340
5341 ;
5342 return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_header_stdc=yes
5347 else
5348 ac_cv_header_stdc=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351
5352 if test $ac_cv_header_stdc = yes; then
5353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <string.h>
5357
5358 _ACEOF
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "memchr" >/dev/null 2>&1; then :
5361
5362 else
5363 ac_cv_header_stdc=no
5364 fi
5365 rm -f conftest*
5366
5367 fi
5368
5369 if test $ac_cv_header_stdc = yes; then
5370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #include <stdlib.h>
5374
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev/null 2>&1; then :
5378
5379 else
5380 ac_cv_header_stdc=no
5381 fi
5382 rm -f conftest*
5383
5384 fi
5385
5386 if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then :
5389 :
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <ctype.h>
5394 #include <stdlib.h>
5395 #if ((' ' & 0x0FF) == 0x020)
5396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398 #else
5399 # define ISLOWER(c) \
5400 (('a' <= (c) && (c) <= 'i') \
5401 || ('j' <= (c) && (c) <= 'r') \
5402 || ('s' <= (c) && (c) <= 'z'))
5403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404 #endif
5405
5406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 int
5408 main ()
5409 {
5410 int i;
5411 for (i = 0; i < 256; i++)
5412 if (XOR (islower (i), ISLOWER (i))
5413 || toupper (i) != TOUPPER (i))
5414 return 2;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_run "$LINENO"; then :
5419
5420 else
5421 ac_cv_header_stdc=no
5422 fi
5423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5424 conftest.$ac_objext conftest.beam conftest.$ac_ext
5425 fi
5426
5427 fi
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5430 $as_echo "$ac_cv_header_stdc" >&6; }
5431 if test $ac_cv_header_stdc = yes; then
5432
5433 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5434
5435 fi
5436
5437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5439 inttypes.h stdint.h unistd.h
5440 do :
5441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5443 "
5444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5445 cat >>confdefs.h <<_ACEOF
5446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5448
5449 fi
5450
5451 done
5452
5453
5454
5455 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5456 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5457 MINIX=yes
5458 else
5459 MINIX=
5460 fi
5461
5462
5463 if test "$MINIX" = yes; then
5464
5465 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5466
5467
5468 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5469
5470
5471 $as_echo "#define _MINIX 1" >>confdefs.h
5472
5473 fi
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5477 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5478 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483
5484 # define __EXTENSIONS__ 1
5485 $ac_includes_default
5486 int
5487 main ()
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_safe_to_define___extensions__=yes
5496 else
5497 ac_cv_safe_to_define___extensions__=no
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5502 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5503 test $ac_cv_safe_to_define___extensions__ = yes &&
5504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5505
5506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5507
5508 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5509
5510 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5511
5512 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5513
5514
5515
5516 # The tests for host and target for $enable_largefile require
5517 # canonical names.
5518
5519
5520
5521 # As the $enable_largefile decision depends on --enable-plugins we must set it
5522 # even in directories otherwise not depending on the $plugins option.
5523
5524
5525 maybe_plugins=no
5526 for ac_header in dlfcn.h
5527 do :
5528 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5529 "
5530 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5531 cat >>confdefs.h <<_ACEOF
5532 #define HAVE_DLFCN_H 1
5533 _ACEOF
5534 maybe_plugins=yes
5535 fi
5536
5537 done
5538
5539 for ac_header in windows.h
5540 do :
5541 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5542 "
5543 if test "x$ac_cv_header_windows_h" = xyes; then :
5544 cat >>confdefs.h <<_ACEOF
5545 #define HAVE_WINDOWS_H 1
5546 _ACEOF
5547 maybe_plugins=yes
5548 fi
5549
5550 done
5551
5552
5553 # Check whether --enable-plugins was given.
5554 if test "${enable_plugins+set}" = set; then :
5555 enableval=$enable_plugins; case "${enableval}" in
5556 no) plugins=no ;;
5557 *) plugins=yes
5558 if test "$maybe_plugins" != "yes" ; then
5559 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5560 fi ;;
5561 esac
5562 else
5563 plugins=$maybe_plugins
5564
5565 fi
5566
5567 if test "$plugins" = "yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5569 $as_echo_n "checking for library containing dlsym... " >&6; }
5570 if ${ac_cv_search_dlsym+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 ac_func_search_save_LIBS=$LIBS
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576
5577 /* Override any GCC internal prototype to avoid an error.
5578 Use char because int might match the return type of a GCC
5579 builtin and then its argument prototype would still apply. */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 char dlsym ();
5584 int
5585 main ()
5586 {
5587 return dlsym ();
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 for ac_lib in '' dl; do
5593 if test -z "$ac_lib"; then
5594 ac_res="none required"
5595 else
5596 ac_res=-l$ac_lib
5597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5598 fi
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_search_dlsym=$ac_res
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext \
5603 conftest$ac_exeext
5604 if ${ac_cv_search_dlsym+:} false; then :
5605 break
5606 fi
5607 done
5608 if ${ac_cv_search_dlsym+:} false; then :
5609
5610 else
5611 ac_cv_search_dlsym=no
5612 fi
5613 rm conftest.$ac_ext
5614 LIBS=$ac_func_search_save_LIBS
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5617 $as_echo "$ac_cv_search_dlsym" >&6; }
5618 ac_res=$ac_cv_search_dlsym
5619 if test "$ac_res" != no; then :
5620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5621
5622 fi
5623
5624 fi
5625
5626
5627 case "${host}" in
5628 sparc-*-solaris*|i[3-7]86-*-solaris*)
5629 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5630 # are mutually exclusive; and without procfs support, the bfd/ elf module
5631 # cannot provide certain routines such as elfcore_write_prpsinfo
5632 # or elfcore_write_prstatus. So unless the user explicitly requested
5633 # large-file support through the --enable-largefile switch, disable
5634 # large-file support in favor of procfs support.
5635 test "${target}" = "${host}" -a "x$plugins" = xno \
5636 && : ${enable_largefile="no"}
5637 ;;
5638 esac
5639
5640 # Check whether --enable-largefile was given.
5641 if test "${enable_largefile+set}" = set; then :
5642 enableval=$enable_largefile;
5643 fi
5644
5645 if test "$enable_largefile" != no; then
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5648 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5649 if ${ac_cv_sys_largefile_CC+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 ac_cv_sys_largefile_CC=no
5653 if test "$GCC" != yes; then
5654 ac_save_CC=$CC
5655 while :; do
5656 # IRIX 6.2 and later do not support large files by default,
5657 # so use the C compiler's -n32 option if that helps.
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5669 int
5670 main ()
5671 {
5672
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 break
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext
5681 CC="$CC -n32"
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_sys_largefile_CC=' -n32'; break
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext
5686 break
5687 done
5688 CC=$ac_save_CC
5689 rm -f conftest.$ac_ext
5690 fi
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5693 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5694 if test "$ac_cv_sys_largefile_CC" != no; then
5695 CC=$CC$ac_cv_sys_largefile_CC
5696 fi
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5699 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5700 if ${ac_cv_sys_file_offset_bits+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 while :; do
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5714 ? 1 : -1];
5715 int
5716 main ()
5717 {
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_sys_file_offset_bits=no; break
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #define _FILE_OFFSET_BITS 64
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5738 ? 1 : -1];
5739 int
5740 main ()
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748 ac_cv_sys_file_offset_bits=64; break
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 ac_cv_sys_file_offset_bits=unknown
5752 break
5753 done
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5757 case $ac_cv_sys_file_offset_bits in #(
5758 no | unknown) ;;
5759 *)
5760 cat >>confdefs.h <<_ACEOF
5761 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5762 _ACEOF
5763 ;;
5764 esac
5765 rm -rf conftest*
5766 if test $ac_cv_sys_file_offset_bits = unknown; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5768 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5769 if ${ac_cv_sys_large_files+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 while :; do
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5783 ? 1 : -1];
5784 int
5785 main ()
5786 {
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_sys_large_files=no; break
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #define _LARGE_FILES 1
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5807 ? 1 : -1];
5808 int
5809 main ()
5810 {
5811
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_cv_sys_large_files=1; break
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_cv_sys_large_files=unknown
5821 break
5822 done
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5825 $as_echo "$ac_cv_sys_large_files" >&6; }
5826 case $ac_cv_sys_large_files in #(
5827 no | unknown) ;;
5828 *)
5829 cat >>confdefs.h <<_ACEOF
5830 #define _LARGE_FILES $ac_cv_sys_large_files
5831 _ACEOF
5832 ;;
5833 esac
5834 rm -rf conftest*
5835 fi
5836
5837
5838 fi
5839
5840
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_CC+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$CC"; then
5855 ac_cv_prog_CC="$CC" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 CC=$ac_cv_prog_CC
5875 if test -n "$CC"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5877 $as_echo "$CC" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884 fi
5885 if test -z "$ac_cv_prog_CC"; then
5886 ac_ct_CC=$CC
5887 # Extract the first word of "gcc", so it can be a program name with args.
5888 set dummy gcc; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_CC"; then
5895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_CC="gcc"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5915 if test -n "$ac_ct_CC"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5917 $as_echo "$ac_ct_CC" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923 if test "x$ac_ct_CC" = x; then
5924 CC=""
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 CC=$ac_ct_CC
5933 fi
5934 else
5935 CC="$ac_cv_prog_CC"
5936 fi
5937
5938 if test -z "$CC"; then
5939 if test -n "$ac_tool_prefix"; then
5940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5941 set dummy ${ac_tool_prefix}cc; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_prog_CC+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -n "$CC"; then
5948 ac_cv_prog_CC="$CC" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_CC="${ac_tool_prefix}cc"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 CC=$ac_cv_prog_CC
5968 if test -n "$CC"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5970 $as_echo "$CC" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976
5977 fi
5978 fi
5979 if test -z "$CC"; then
5980 # Extract the first word of "cc", so it can be a program name with args.
5981 set dummy cc; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_CC+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 if test -n "$CC"; then
5988 ac_cv_prog_CC="$CC" # Let the user override the test.
5989 else
5990 ac_prog_rejected=no
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5999 ac_prog_rejected=yes
6000 continue
6001 fi
6002 ac_cv_prog_CC="cc"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 if test $ac_prog_rejected = yes; then
6011 # We found a bogon in the path, so make sure we never use it.
6012 set dummy $ac_cv_prog_CC
6013 shift
6014 if test $# != 0; then
6015 # We chose a different compiler from the bogus one.
6016 # However, it has the same basename, so the bogon will be chosen
6017 # first if we set CC to just the basename; use the full file name.
6018 shift
6019 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6020 fi
6021 fi
6022 fi
6023 fi
6024 CC=$ac_cv_prog_CC
6025 if test -n "$CC"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6027 $as_echo "$CC" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 fi
6035 if test -z "$CC"; then
6036 if test -n "$ac_tool_prefix"; then
6037 for ac_prog in cl.exe
6038 do
6039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_CC+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$CC"; then
6047 ac_cv_prog_CC="$CC" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 CC=$ac_cv_prog_CC
6067 if test -n "$CC"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6069 $as_echo "$CC" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075
6076 test -n "$CC" && break
6077 done
6078 fi
6079 if test -z "$CC"; then
6080 ac_ct_CC=$CC
6081 for ac_prog in cl.exe
6082 do
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy $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_ac_ct_CC+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$ac_ct_CC"; then
6091 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6111 if test -n "$ac_ct_CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6113 $as_echo "$ac_ct_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 "$ac_ct_CC" && break
6121 done
6122
6123 if test "x$ac_ct_CC" = x; then
6124 CC=""
6125 else
6126 case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132 CC=$ac_ct_CC
6133 fi
6134 fi
6135
6136 fi
6137
6138
6139 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6141 as_fn_error $? "no acceptable C compiler found in \$PATH
6142 See \`config.log' for more details" "$LINENO" 5; }
6143
6144 # Provide some information about the compiler.
6145 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6146 set X $ac_compile
6147 ac_compiler=$2
6148 for ac_option in --version -v -V -qversion; do
6149 { { ac_try="$ac_compiler $ac_option >&5"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6155 $as_echo "$ac_try_echo"; } >&5
6156 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6157 ac_status=$?
6158 if test -s conftest.err; then
6159 sed '10a\
6160 ... rest of stderr output deleted ...
6161 10q' conftest.err >conftest.er1
6162 cat conftest.er1 >&5
6163 fi
6164 rm -f conftest.er1 conftest.err
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }
6167 done
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6171 if ${ac_cv_c_compiler_gnu+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176
6177 int
6178 main ()
6179 {
6180 #ifndef __GNUC__
6181 choke me
6182 #endif
6183
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_compiler_gnu=yes
6190 else
6191 ac_compiler_gnu=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6195
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6199 if test $ac_compiler_gnu = yes; then
6200 GCC=yes
6201 else
6202 GCC=
6203 fi
6204 ac_test_CFLAGS=${CFLAGS+set}
6205 ac_save_CFLAGS=$CFLAGS
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6208 if ${ac_cv_prog_cc_g+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 ac_save_c_werror_flag=$ac_c_werror_flag
6212 ac_c_werror_flag=yes
6213 ac_cv_prog_cc_g=no
6214 CFLAGS="-g"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217
6218 int
6219 main ()
6220 {
6221
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_cv_prog_cc_g=yes
6228 else
6229 CFLAGS=""
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232
6233 int
6234 main ()
6235 {
6236
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242
6243 else
6244 ac_c_werror_flag=$ac_save_c_werror_flag
6245 CFLAGS="-g"
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248
6249 int
6250 main ()
6251 {
6252
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_prog_cc_g=yes
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_c_werror_flag=$ac_save_c_werror_flag
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6268 $as_echo "$ac_cv_prog_cc_g" >&6; }
6269 if test "$ac_test_CFLAGS" = set; then
6270 CFLAGS=$ac_save_CFLAGS
6271 elif test $ac_cv_prog_cc_g = yes; then
6272 if test "$GCC" = yes; then
6273 CFLAGS="-g -O2"
6274 else
6275 CFLAGS="-g"
6276 fi
6277 else
6278 if test "$GCC" = yes; then
6279 CFLAGS="-O2"
6280 else
6281 CFLAGS=
6282 fi
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6286 if ${ac_cv_prog_cc_c89+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 ac_cv_prog_cc_c89=no
6290 ac_save_CC=$CC
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <stdarg.h>
6294 #include <stdio.h>
6295 struct stat;
6296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6297 struct buf { int x; };
6298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6299 static char *e (p, i)
6300 char **p;
6301 int i;
6302 {
6303 return p[i];
6304 }
6305 static char *f (char * (*g) (char **, int), char **p, ...)
6306 {
6307 char *s;
6308 va_list v;
6309 va_start (v,p);
6310 s = g (p, va_arg (v,int));
6311 va_end (v);
6312 return s;
6313 }
6314
6315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6316 function prototypes and stuff, but not '\xHH' hex character constants.
6317 These don't provoke an error unfortunately, instead are silently treated
6318 as 'x'. The following induces an error, until -std is added to get
6319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6320 array size at least. It's necessary to write '\x00'==0 to get something
6321 that's true only with -std. */
6322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6323
6324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6325 inside strings and character constants. */
6326 #define FOO(x) 'x'
6327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6328
6329 int test (int i, double x);
6330 struct s1 {int (*f) (int a);};
6331 struct s2 {int (*f) (double a);};
6332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6333 int argc;
6334 char **argv;
6335 int
6336 main ()
6337 {
6338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6345 do
6346 CC="$ac_save_CC $ac_arg"
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 ac_cv_prog_cc_c89=$ac_arg
6349 fi
6350 rm -f core conftest.err conftest.$ac_objext
6351 test "x$ac_cv_prog_cc_c89" != "xno" && break
6352 done
6353 rm -f conftest.$ac_ext
6354 CC=$ac_save_CC
6355
6356 fi
6357 # AC_CACHE_VAL
6358 case "x$ac_cv_prog_cc_c89" in
6359 x)
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6361 $as_echo "none needed" >&6; } ;;
6362 xno)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6364 $as_echo "unsupported" >&6; } ;;
6365 *)
6366 CC="$CC $ac_cv_prog_cc_c89"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6369 esac
6370 if test "x$ac_cv_prog_cc_c89" != xno; then :
6371
6372 fi
6373
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380 ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6387 if ${am_cv_prog_cc_c_o+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392
6393 int
6394 main ()
6395 {
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 # Make sure it works both with $CC and with simple cc.
6402 # Following AC_PROG_CC_C_O, we do the test twice because some
6403 # compilers refuse to overwrite an existing .o file with -o,
6404 # though they will create one.
6405 am_cv_prog_cc_c_o=yes
6406 for am_i in 1 2; do
6407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } \
6412 && test -f conftest2.$ac_objext; then
6413 : OK
6414 else
6415 am_cv_prog_cc_c_o=no
6416 break
6417 fi
6418 done
6419 rm -f core conftest*
6420 unset am_i
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6424 if test "$am_cv_prog_cc_c_o" != yes; then
6425 # Losing compiler, so override with the script.
6426 # FIXME: It is wrong to rewrite CC.
6427 # But if we don't then we get into trouble of one sort or another.
6428 # A longer-term fix would be to have automake use am__CC in this case,
6429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6430 CC="$am_aux_dir/compile $CC"
6431 fi
6432 ac_ext=c
6433 ac_cpp='$CPP $CPPFLAGS'
6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437
6438
6439 depcc="$CC" am_compiler_list=
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6442 $as_echo_n "checking dependency style of $depcc... " >&6; }
6443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6447 # We make a subdir and do the tests there. Otherwise we can end up
6448 # making bogus files that we don't know about and never remove. For
6449 # instance it was reported that on HP-UX the gcc test will end up
6450 # making a dummy file named 'D' -- because '-MD' means "put the output
6451 # in D".
6452 rm -rf conftest.dir
6453 mkdir conftest.dir
6454 # Copy depcomp to subdir because otherwise we won't find it if we're
6455 # using a relative directory.
6456 cp "$am_depcomp" conftest.dir
6457 cd conftest.dir
6458 # We will build objects and dependencies in a subdirectory because
6459 # it helps to detect inapplicable dependency modes. For instance
6460 # both Tru64's cc and ICC support -MD to output dependencies as a
6461 # side effect of compilation, but ICC will put the dependencies in
6462 # the current directory while Tru64 will put them in the object
6463 # directory.
6464 mkdir sub
6465
6466 am_cv_CC_dependencies_compiler_type=none
6467 if test "$am_compiler_list" = ""; then
6468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6469 fi
6470 am__universal=false
6471 case " $depcc " in #(
6472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6473 esac
6474
6475 for depmode in $am_compiler_list; do
6476 # Setup a source with many dependencies, because some compilers
6477 # like to wrap large dependency lists on column 80 (with \), and
6478 # we should not choose a depcomp mode which is confused by this.
6479 #
6480 # We need to recreate these files for each test, as the compiler may
6481 # overwrite some of them when testing with obscure command lines.
6482 # This happens at least with the AIX C compiler.
6483 : > sub/conftest.c
6484 for i in 1 2 3 4 5 6; do
6485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6487 # Solaris 10 /bin/sh.
6488 echo '/* dummy */' > sub/conftst$i.h
6489 done
6490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6491
6492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6493 # mode. It turns out that the SunPro C++ compiler does not properly
6494 # handle '-M -o', and we need to detect this. Also, some Intel
6495 # versions had trouble with output in subdirs.
6496 am__obj=sub/conftest.${OBJEXT-o}
6497 am__minus_obj="-o $am__obj"
6498 case $depmode in
6499 gcc)
6500 # This depmode causes a compiler race in universal mode.
6501 test "$am__universal" = false || continue
6502 ;;
6503 nosideeffect)
6504 # After this tag, mechanisms are not by side-effect, so they'll
6505 # only be used when explicitly requested.
6506 if test "x$enable_dependency_tracking" = xyes; then
6507 continue
6508 else
6509 break
6510 fi
6511 ;;
6512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6513 # This compiler won't grok '-c -o', but also, the minuso test has
6514 # not run yet. These depmodes are late enough in the game, and
6515 # so weak that their functioning should not be impacted.
6516 am__obj=conftest.${OBJEXT-o}
6517 am__minus_obj=
6518 ;;
6519 none) break ;;
6520 esac
6521 if depmode=$depmode \
6522 source=sub/conftest.c object=$am__obj \
6523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6525 >/dev/null 2>conftest.err &&
6526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6530 # icc doesn't choke on unknown options, it will just issue warnings
6531 # or remarks (even with -Werror). So we grep stderr for any message
6532 # that says an option was ignored or not supported.
6533 # When given -MP, icc 7.0 and 7.1 complain thusly:
6534 # icc: Command line warning: ignoring option '-M'; no argument required
6535 # The diagnosis changed in icc 8.0:
6536 # icc: Command line remark: option '-MP' not supported
6537 if (grep 'ignoring option' conftest.err ||
6538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6539 am_cv_CC_dependencies_compiler_type=$depmode
6540 break
6541 fi
6542 fi
6543 done
6544
6545 cd ..
6546 rm -rf conftest.dir
6547 else
6548 am_cv_CC_dependencies_compiler_type=none
6549 fi
6550
6551 fi
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6553 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6555
6556 if
6557 test "x$enable_dependency_tracking" != xno \
6558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6559 am__fastdepCC_TRUE=
6560 am__fastdepCC_FALSE='#'
6561 else
6562 am__fastdepCC_TRUE='#'
6563 am__fastdepCC_FALSE=
6564 fi
6565
6566
6567 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6568
6569
6570 # We require a C++11 compiler. Check if one is available, and if
6571 # necessary, set CXX_DIALECT to some -std=xxx switch.
6572
6573 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6574 ac_ext=cpp
6575 ac_cpp='$CXXCPP $CPPFLAGS'
6576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6579 CXX_DIALECT=""
6580 ac_success=no
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6582 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6583 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588
6589
6590 // If the compiler admits that it is not ready for C++11, why torture it?
6591 // Hopefully, this will speed up the test.
6592
6593 #ifndef __cplusplus
6594
6595 #error "This is not a C++ compiler"
6596
6597 #elif __cplusplus < 201103L
6598
6599 #error "This is not a C++11 compiler"
6600
6601 #else
6602
6603 namespace cxx11
6604 {
6605
6606 namespace test_static_assert
6607 {
6608
6609 template <typename T>
6610 struct check
6611 {
6612 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6613 };
6614
6615 }
6616
6617 namespace test_final_override
6618 {
6619
6620 struct Base
6621 {
6622 virtual void f() {}
6623 };
6624
6625 struct Derived : public Base
6626 {
6627 virtual void f() override {}
6628 };
6629
6630 }
6631
6632 namespace test_double_right_angle_brackets
6633 {
6634
6635 template < typename T >
6636 struct check {};
6637
6638 typedef check<void> single_type;
6639 typedef check<check<void>> double_type;
6640 typedef check<check<check<void>>> triple_type;
6641 typedef check<check<check<check<void>>>> quadruple_type;
6642
6643 }
6644
6645 namespace test_decltype
6646 {
6647
6648 int
6649 f()
6650 {
6651 int a = 1;
6652 decltype(a) b = 2;
6653 return a + b;
6654 }
6655
6656 }
6657
6658 namespace test_type_deduction
6659 {
6660
6661 template < typename T1, typename T2 >
6662 struct is_same
6663 {
6664 static const bool value = false;
6665 };
6666
6667 template < typename T >
6668 struct is_same<T, T>
6669 {
6670 static const bool value = true;
6671 };
6672
6673 template < typename T1, typename T2 >
6674 auto
6675 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6676 {
6677 return a1 + a2;
6678 }
6679
6680 int
6681 test(const int c, volatile int v)
6682 {
6683 static_assert(is_same<int, decltype(0)>::value == true, "");
6684 static_assert(is_same<int, decltype(c)>::value == false, "");
6685 static_assert(is_same<int, decltype(v)>::value == false, "");
6686 auto ac = c;
6687 auto av = v;
6688 auto sumi = ac + av + 'x';
6689 auto sumf = ac + av + 1.0;
6690 static_assert(is_same<int, decltype(ac)>::value == true, "");
6691 static_assert(is_same<int, decltype(av)>::value == true, "");
6692 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6693 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6694 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6695 return (sumf > 0.0) ? sumi : add(c, v);
6696 }
6697
6698 }
6699
6700 namespace test_noexcept
6701 {
6702
6703 int f() { return 0; }
6704 int g() noexcept { return 0; }
6705
6706 static_assert(noexcept(f()) == false, "");
6707 static_assert(noexcept(g()) == true, "");
6708
6709 }
6710
6711 namespace test_constexpr
6712 {
6713
6714 template < typename CharT >
6715 unsigned long constexpr
6716 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6717 {
6718 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6719 }
6720
6721 template < typename CharT >
6722 unsigned long constexpr
6723 strlen_c(const CharT *const s) noexcept
6724 {
6725 return strlen_c_r(s, 0UL);
6726 }
6727
6728 static_assert(strlen_c("") == 0UL, "");
6729 static_assert(strlen_c("1") == 1UL, "");
6730 static_assert(strlen_c("example") == 7UL, "");
6731 static_assert(strlen_c("another\0example") == 7UL, "");
6732
6733 }
6734
6735 namespace test_rvalue_references
6736 {
6737
6738 template < int N >
6739 struct answer
6740 {
6741 static constexpr int value = N;
6742 };
6743
6744 answer<1> f(int&) { return answer<1>(); }
6745 answer<2> f(const int&) { return answer<2>(); }
6746 answer<3> f(int&&) { return answer<3>(); }
6747
6748 void
6749 test()
6750 {
6751 int i = 0;
6752 const int c = 0;
6753 static_assert(decltype(f(i))::value == 1, "");
6754 static_assert(decltype(f(c))::value == 2, "");
6755 static_assert(decltype(f(0))::value == 3, "");
6756 }
6757
6758 }
6759
6760 namespace test_uniform_initialization
6761 {
6762
6763 struct test
6764 {
6765 static const int zero {};
6766 static const int one {1};
6767 };
6768
6769 static_assert(test::zero == 0, "");
6770 static_assert(test::one == 1, "");
6771
6772 }
6773
6774 namespace test_lambdas
6775 {
6776
6777 void
6778 test1()
6779 {
6780 auto lambda1 = [](){};
6781 auto lambda2 = lambda1;
6782 lambda1();
6783 lambda2();
6784 }
6785
6786 int
6787 test2()
6788 {
6789 auto a = [](int i, int j){ return i + j; }(1, 2);
6790 auto b = []() -> int { return '0'; }();
6791 auto c = [=](){ return a + b; }();
6792 auto d = [&](){ return c; }();
6793 auto e = [a, &b](int x) mutable {
6794 const auto identity = [](int y){ return y; };
6795 for (auto i = 0; i < a; ++i)
6796 a += b--;
6797 return x + identity(a + b);
6798 }(0);
6799 return a + b + c + d + e;
6800 }
6801
6802 int
6803 test3()
6804 {
6805 const auto nullary = [](){ return 0; };
6806 const auto unary = [](int x){ return x; };
6807 using nullary_t = decltype(nullary);
6808 using unary_t = decltype(unary);
6809 const auto higher1st = [](nullary_t f){ return f(); };
6810 const auto higher2nd = [unary](nullary_t f1){
6811 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6812 };
6813 return higher1st(nullary) + higher2nd(nullary)(unary);
6814 }
6815
6816 }
6817
6818 namespace test_variadic_templates
6819 {
6820
6821 template <int...>
6822 struct sum;
6823
6824 template <int N0, int... N1toN>
6825 struct sum<N0, N1toN...>
6826 {
6827 static constexpr auto value = N0 + sum<N1toN...>::value;
6828 };
6829
6830 template <>
6831 struct sum<>
6832 {
6833 static constexpr auto value = 0;
6834 };
6835
6836 static_assert(sum<>::value == 0, "");
6837 static_assert(sum<1>::value == 1, "");
6838 static_assert(sum<23>::value == 23, "");
6839 static_assert(sum<1, 2>::value == 3, "");
6840 static_assert(sum<5, 5, 11>::value == 21, "");
6841 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6842
6843 }
6844
6845 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6846 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6847 // because of this.
6848 namespace test_template_alias_sfinae
6849 {
6850
6851 struct foo {};
6852
6853 template<typename T>
6854 using member = typename T::member_type;
6855
6856 template<typename T>
6857 void func(...) {}
6858
6859 template<typename T>
6860 void func(member<T>*) {}
6861
6862 void test();
6863
6864 void test() { func<foo>(0); }
6865
6866 }
6867
6868 } // namespace cxx11
6869
6870 #endif // __cplusplus >= 201103L
6871
6872
6873
6874 _ACEOF
6875 if ac_fn_cxx_try_compile "$LINENO"; then :
6876 ax_cv_cxx_compile_cxx11=yes
6877 else
6878 ax_cv_cxx_compile_cxx11=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6883 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6884 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6885 ac_success=yes
6886 fi
6887
6888 if test x$ac_success = xno; then
6889 for alternative in ${ax_cxx_compile_alternatives}; do
6890 switch="-std=gnu++${alternative}"
6891 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6893 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6894 if eval \${$cachevar+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_save_CXX="$CXX"
6898 CXX="$CXX $switch"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901
6902
6903 // If the compiler admits that it is not ready for C++11, why torture it?
6904 // Hopefully, this will speed up the test.
6905
6906 #ifndef __cplusplus
6907
6908 #error "This is not a C++ compiler"
6909
6910 #elif __cplusplus < 201103L
6911
6912 #error "This is not a C++11 compiler"
6913
6914 #else
6915
6916 namespace cxx11
6917 {
6918
6919 namespace test_static_assert
6920 {
6921
6922 template <typename T>
6923 struct check
6924 {
6925 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6926 };
6927
6928 }
6929
6930 namespace test_final_override
6931 {
6932
6933 struct Base
6934 {
6935 virtual void f() {}
6936 };
6937
6938 struct Derived : public Base
6939 {
6940 virtual void f() override {}
6941 };
6942
6943 }
6944
6945 namespace test_double_right_angle_brackets
6946 {
6947
6948 template < typename T >
6949 struct check {};
6950
6951 typedef check<void> single_type;
6952 typedef check<check<void>> double_type;
6953 typedef check<check<check<void>>> triple_type;
6954 typedef check<check<check<check<void>>>> quadruple_type;
6955
6956 }
6957
6958 namespace test_decltype
6959 {
6960
6961 int
6962 f()
6963 {
6964 int a = 1;
6965 decltype(a) b = 2;
6966 return a + b;
6967 }
6968
6969 }
6970
6971 namespace test_type_deduction
6972 {
6973
6974 template < typename T1, typename T2 >
6975 struct is_same
6976 {
6977 static const bool value = false;
6978 };
6979
6980 template < typename T >
6981 struct is_same<T, T>
6982 {
6983 static const bool value = true;
6984 };
6985
6986 template < typename T1, typename T2 >
6987 auto
6988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6989 {
6990 return a1 + a2;
6991 }
6992
6993 int
6994 test(const int c, volatile int v)
6995 {
6996 static_assert(is_same<int, decltype(0)>::value == true, "");
6997 static_assert(is_same<int, decltype(c)>::value == false, "");
6998 static_assert(is_same<int, decltype(v)>::value == false, "");
6999 auto ac = c;
7000 auto av = v;
7001 auto sumi = ac + av + 'x';
7002 auto sumf = ac + av + 1.0;
7003 static_assert(is_same<int, decltype(ac)>::value == true, "");
7004 static_assert(is_same<int, decltype(av)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7008 return (sumf > 0.0) ? sumi : add(c, v);
7009 }
7010
7011 }
7012
7013 namespace test_noexcept
7014 {
7015
7016 int f() { return 0; }
7017 int g() noexcept { return 0; }
7018
7019 static_assert(noexcept(f()) == false, "");
7020 static_assert(noexcept(g()) == true, "");
7021
7022 }
7023
7024 namespace test_constexpr
7025 {
7026
7027 template < typename CharT >
7028 unsigned long constexpr
7029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7030 {
7031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7032 }
7033
7034 template < typename CharT >
7035 unsigned long constexpr
7036 strlen_c(const CharT *const s) noexcept
7037 {
7038 return strlen_c_r(s, 0UL);
7039 }
7040
7041 static_assert(strlen_c("") == 0UL, "");
7042 static_assert(strlen_c("1") == 1UL, "");
7043 static_assert(strlen_c("example") == 7UL, "");
7044 static_assert(strlen_c("another\0example") == 7UL, "");
7045
7046 }
7047
7048 namespace test_rvalue_references
7049 {
7050
7051 template < int N >
7052 struct answer
7053 {
7054 static constexpr int value = N;
7055 };
7056
7057 answer<1> f(int&) { return answer<1>(); }
7058 answer<2> f(const int&) { return answer<2>(); }
7059 answer<3> f(int&&) { return answer<3>(); }
7060
7061 void
7062 test()
7063 {
7064 int i = 0;
7065 const int c = 0;
7066 static_assert(decltype(f(i))::value == 1, "");
7067 static_assert(decltype(f(c))::value == 2, "");
7068 static_assert(decltype(f(0))::value == 3, "");
7069 }
7070
7071 }
7072
7073 namespace test_uniform_initialization
7074 {
7075
7076 struct test
7077 {
7078 static const int zero {};
7079 static const int one {1};
7080 };
7081
7082 static_assert(test::zero == 0, "");
7083 static_assert(test::one == 1, "");
7084
7085 }
7086
7087 namespace test_lambdas
7088 {
7089
7090 void
7091 test1()
7092 {
7093 auto lambda1 = [](){};
7094 auto lambda2 = lambda1;
7095 lambda1();
7096 lambda2();
7097 }
7098
7099 int
7100 test2()
7101 {
7102 auto a = [](int i, int j){ return i + j; }(1, 2);
7103 auto b = []() -> int { return '0'; }();
7104 auto c = [=](){ return a + b; }();
7105 auto d = [&](){ return c; }();
7106 auto e = [a, &b](int x) mutable {
7107 const auto identity = [](int y){ return y; };
7108 for (auto i = 0; i < a; ++i)
7109 a += b--;
7110 return x + identity(a + b);
7111 }(0);
7112 return a + b + c + d + e;
7113 }
7114
7115 int
7116 test3()
7117 {
7118 const auto nullary = [](){ return 0; };
7119 const auto unary = [](int x){ return x; };
7120 using nullary_t = decltype(nullary);
7121 using unary_t = decltype(unary);
7122 const auto higher1st = [](nullary_t f){ return f(); };
7123 const auto higher2nd = [unary](nullary_t f1){
7124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7125 };
7126 return higher1st(nullary) + higher2nd(nullary)(unary);
7127 }
7128
7129 }
7130
7131 namespace test_variadic_templates
7132 {
7133
7134 template <int...>
7135 struct sum;
7136
7137 template <int N0, int... N1toN>
7138 struct sum<N0, N1toN...>
7139 {
7140 static constexpr auto value = N0 + sum<N1toN...>::value;
7141 };
7142
7143 template <>
7144 struct sum<>
7145 {
7146 static constexpr auto value = 0;
7147 };
7148
7149 static_assert(sum<>::value == 0, "");
7150 static_assert(sum<1>::value == 1, "");
7151 static_assert(sum<23>::value == 23, "");
7152 static_assert(sum<1, 2>::value == 3, "");
7153 static_assert(sum<5, 5, 11>::value == 21, "");
7154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7155
7156 }
7157
7158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7160 // because of this.
7161 namespace test_template_alias_sfinae
7162 {
7163
7164 struct foo {};
7165
7166 template<typename T>
7167 using member = typename T::member_type;
7168
7169 template<typename T>
7170 void func(...) {}
7171
7172 template<typename T>
7173 void func(member<T>*) {}
7174
7175 void test();
7176
7177 void test() { func<foo>(0); }
7178
7179 }
7180
7181 } // namespace cxx11
7182
7183 #endif // __cplusplus >= 201103L
7184
7185
7186
7187 _ACEOF
7188 if ac_fn_cxx_try_compile "$LINENO"; then :
7189 eval $cachevar=yes
7190 else
7191 eval $cachevar=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 CXX="$ac_save_CXX"
7195 fi
7196 eval ac_res=\$$cachevar
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198 $as_echo "$ac_res" >&6; }
7199 if eval test x\$$cachevar = xyes; then
7200 CXX_DIALECT="$switch"
7201 ac_success=yes
7202 break
7203 fi
7204 done
7205 fi
7206
7207 if test x$ac_success = xno; then
7208 for alternative in ${ax_cxx_compile_alternatives}; do
7209 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7210 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7212 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7213 if eval \${$cachevar+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 ac_save_CXX="$CXX"
7217 CXX="$CXX $switch"
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220
7221
7222 // If the compiler admits that it is not ready for C++11, why torture it?
7223 // Hopefully, this will speed up the test.
7224
7225 #ifndef __cplusplus
7226
7227 #error "This is not a C++ compiler"
7228
7229 #elif __cplusplus < 201103L
7230
7231 #error "This is not a C++11 compiler"
7232
7233 #else
7234
7235 namespace cxx11
7236 {
7237
7238 namespace test_static_assert
7239 {
7240
7241 template <typename T>
7242 struct check
7243 {
7244 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7245 };
7246
7247 }
7248
7249 namespace test_final_override
7250 {
7251
7252 struct Base
7253 {
7254 virtual void f() {}
7255 };
7256
7257 struct Derived : public Base
7258 {
7259 virtual void f() override {}
7260 };
7261
7262 }
7263
7264 namespace test_double_right_angle_brackets
7265 {
7266
7267 template < typename T >
7268 struct check {};
7269
7270 typedef check<void> single_type;
7271 typedef check<check<void>> double_type;
7272 typedef check<check<check<void>>> triple_type;
7273 typedef check<check<check<check<void>>>> quadruple_type;
7274
7275 }
7276
7277 namespace test_decltype
7278 {
7279
7280 int
7281 f()
7282 {
7283 int a = 1;
7284 decltype(a) b = 2;
7285 return a + b;
7286 }
7287
7288 }
7289
7290 namespace test_type_deduction
7291 {
7292
7293 template < typename T1, typename T2 >
7294 struct is_same
7295 {
7296 static const bool value = false;
7297 };
7298
7299 template < typename T >
7300 struct is_same<T, T>
7301 {
7302 static const bool value = true;
7303 };
7304
7305 template < typename T1, typename T2 >
7306 auto
7307 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7308 {
7309 return a1 + a2;
7310 }
7311
7312 int
7313 test(const int c, volatile int v)
7314 {
7315 static_assert(is_same<int, decltype(0)>::value == true, "");
7316 static_assert(is_same<int, decltype(c)>::value == false, "");
7317 static_assert(is_same<int, decltype(v)>::value == false, "");
7318 auto ac = c;
7319 auto av = v;
7320 auto sumi = ac + av + 'x';
7321 auto sumf = ac + av + 1.0;
7322 static_assert(is_same<int, decltype(ac)>::value == true, "");
7323 static_assert(is_same<int, decltype(av)>::value == true, "");
7324 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7325 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7326 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7327 return (sumf > 0.0) ? sumi : add(c, v);
7328 }
7329
7330 }
7331
7332 namespace test_noexcept
7333 {
7334
7335 int f() { return 0; }
7336 int g() noexcept { return 0; }
7337
7338 static_assert(noexcept(f()) == false, "");
7339 static_assert(noexcept(g()) == true, "");
7340
7341 }
7342
7343 namespace test_constexpr
7344 {
7345
7346 template < typename CharT >
7347 unsigned long constexpr
7348 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7349 {
7350 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7351 }
7352
7353 template < typename CharT >
7354 unsigned long constexpr
7355 strlen_c(const CharT *const s) noexcept
7356 {
7357 return strlen_c_r(s, 0UL);
7358 }
7359
7360 static_assert(strlen_c("") == 0UL, "");
7361 static_assert(strlen_c("1") == 1UL, "");
7362 static_assert(strlen_c("example") == 7UL, "");
7363 static_assert(strlen_c("another\0example") == 7UL, "");
7364
7365 }
7366
7367 namespace test_rvalue_references
7368 {
7369
7370 template < int N >
7371 struct answer
7372 {
7373 static constexpr int value = N;
7374 };
7375
7376 answer<1> f(int&) { return answer<1>(); }
7377 answer<2> f(const int&) { return answer<2>(); }
7378 answer<3> f(int&&) { return answer<3>(); }
7379
7380 void
7381 test()
7382 {
7383 int i = 0;
7384 const int c = 0;
7385 static_assert(decltype(f(i))::value == 1, "");
7386 static_assert(decltype(f(c))::value == 2, "");
7387 static_assert(decltype(f(0))::value == 3, "");
7388 }
7389
7390 }
7391
7392 namespace test_uniform_initialization
7393 {
7394
7395 struct test
7396 {
7397 static const int zero {};
7398 static const int one {1};
7399 };
7400
7401 static_assert(test::zero == 0, "");
7402 static_assert(test::one == 1, "");
7403
7404 }
7405
7406 namespace test_lambdas
7407 {
7408
7409 void
7410 test1()
7411 {
7412 auto lambda1 = [](){};
7413 auto lambda2 = lambda1;
7414 lambda1();
7415 lambda2();
7416 }
7417
7418 int
7419 test2()
7420 {
7421 auto a = [](int i, int j){ return i + j; }(1, 2);
7422 auto b = []() -> int { return '0'; }();
7423 auto c = [=](){ return a + b; }();
7424 auto d = [&](){ return c; }();
7425 auto e = [a, &b](int x) mutable {
7426 const auto identity = [](int y){ return y; };
7427 for (auto i = 0; i < a; ++i)
7428 a += b--;
7429 return x + identity(a + b);
7430 }(0);
7431 return a + b + c + d + e;
7432 }
7433
7434 int
7435 test3()
7436 {
7437 const auto nullary = [](){ return 0; };
7438 const auto unary = [](int x){ return x; };
7439 using nullary_t = decltype(nullary);
7440 using unary_t = decltype(unary);
7441 const auto higher1st = [](nullary_t f){ return f(); };
7442 const auto higher2nd = [unary](nullary_t f1){
7443 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7444 };
7445 return higher1st(nullary) + higher2nd(nullary)(unary);
7446 }
7447
7448 }
7449
7450 namespace test_variadic_templates
7451 {
7452
7453 template <int...>
7454 struct sum;
7455
7456 template <int N0, int... N1toN>
7457 struct sum<N0, N1toN...>
7458 {
7459 static constexpr auto value = N0 + sum<N1toN...>::value;
7460 };
7461
7462 template <>
7463 struct sum<>
7464 {
7465 static constexpr auto value = 0;
7466 };
7467
7468 static_assert(sum<>::value == 0, "");
7469 static_assert(sum<1>::value == 1, "");
7470 static_assert(sum<23>::value == 23, "");
7471 static_assert(sum<1, 2>::value == 3, "");
7472 static_assert(sum<5, 5, 11>::value == 21, "");
7473 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7474
7475 }
7476
7477 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7478 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7479 // because of this.
7480 namespace test_template_alias_sfinae
7481 {
7482
7483 struct foo {};
7484
7485 template<typename T>
7486 using member = typename T::member_type;
7487
7488 template<typename T>
7489 void func(...) {}
7490
7491 template<typename T>
7492 void func(member<T>*) {}
7493
7494 void test();
7495
7496 void test() { func<foo>(0); }
7497
7498 }
7499
7500 } // namespace cxx11
7501
7502 #endif // __cplusplus >= 201103L
7503
7504
7505
7506 _ACEOF
7507 if ac_fn_cxx_try_compile "$LINENO"; then :
7508 eval $cachevar=yes
7509 else
7510 eval $cachevar=no
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 CXX="$ac_save_CXX"
7514 fi
7515 eval ac_res=\$$cachevar
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7517 $as_echo "$ac_res" >&6; }
7518 if eval test x\$$cachevar = xyes; then
7519 CXX_DIALECT="$switch"
7520 ac_success=yes
7521 break
7522 fi
7523 done
7524 if test x$ac_success = xyes; then
7525 break
7526 fi
7527 done
7528 fi
7529 ac_ext=c
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7536 if test x$ac_success = xno; then
7537 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7538 fi
7539 fi
7540 if test x$ac_success = xno; then
7541 HAVE_CXX11=0
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7543 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7544 else
7545 HAVE_CXX11=1
7546
7547 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7548
7549 fi
7550
7551
7552
7553
7554 # If we haven't got the data from the intl directory,
7555 # assume NLS is disabled.
7556 USE_NLS=no
7557 LIBINTL=
7558 LIBINTL_DEP=
7559 INCINTL=
7560 XGETTEXT=
7561 GMSGFMT=
7562 POSUB=
7563
7564 if test -f ../intl/config.intl; then
7565 . ../intl/config.intl
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7568 $as_echo_n "checking whether NLS is requested... " >&6; }
7569 if test x"$USE_NLS" != xyes; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7575
7576 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7577
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7580 $as_echo_n "checking for catalogs to be installed... " >&6; }
7581 # Look for .po and .gmo files in the source directory.
7582 CATALOGS=
7583 XLINGUAS=
7584 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7585 # If there aren't any .gmo files the shell will give us the
7586 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7587 # weeded out.
7588 case "$cat" in *\**)
7589 continue;;
7590 esac
7591 # The quadruple backslash is collapsed to a double backslash
7592 # by the backticks, then collapsed again by the double quotes,
7593 # leaving us with one backslash in the sed expression (right
7594 # before the dot that mustn't act as a wildcard).
7595 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7596 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7597 # The user is allowed to set LINGUAS to a list of languages to
7598 # install catalogs for. If it's empty that means "all of them."
7599 if test "x$LINGUAS" = x; then
7600 CATALOGS="$CATALOGS $cat"
7601 XLINGUAS="$XLINGUAS $lang"
7602 else
7603 case "$LINGUAS" in *$lang*)
7604 CATALOGS="$CATALOGS $cat"
7605 XLINGUAS="$XLINGUAS $lang"
7606 ;;
7607 esac
7608 fi
7609 done
7610 LINGUAS="$XLINGUAS"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7612 $as_echo "$LINGUAS" >&6; }
7613
7614
7615 DATADIRNAME=share
7616
7617 INSTOBJEXT=.mo
7618
7619 GENCAT=gencat
7620
7621 CATOBJEXT=.gmo
7622
7623 fi
7624
7625
7626 # Check for presence and size of long long.
7627 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7628 if test "x$ac_cv_type_long_long" = xyes; then :
7629
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_LONG_LONG 1
7632 _ACEOF
7633
7634 # The cast to long int works around a bug in the HP C Compiler
7635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7637 # This bug is HP SR number 8606223364.
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7639 $as_echo_n "checking size of long long... " >&6; }
7640 if ${ac_cv_sizeof_long_long+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7644
7645 else
7646 if test "$ac_cv_type_long_long" = yes; then
7647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7649 as_fn_error 77 "cannot compute sizeof (long long)
7650 See \`config.log' for more details" "$LINENO" 5; }
7651 else
7652 ac_cv_sizeof_long_long=0
7653 fi
7654 fi
7655
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7658 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7659
7660
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7664 _ACEOF
7665
7666
7667 fi
7668
7669
7670 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7671 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7672 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7673 ac_have_decl=1
7674 else
7675 ac_have_decl=0
7676 fi
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_BASENAME $ac_have_decl
7680 _ACEOF
7681 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7682 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7683 ac_have_decl=1
7684 else
7685 ac_have_decl=0
7686 fi
7687
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_DECL_FFS $ac_have_decl
7690 _ACEOF
7691 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7692 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7693 ac_have_decl=1
7694 else
7695 ac_have_decl=0
7696 fi
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_DECL_ASPRINTF $ac_have_decl
7700 _ACEOF
7701 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7702 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7703 ac_have_decl=1
7704 else
7705 ac_have_decl=0
7706 fi
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_DECL_VASPRINTF $ac_have_decl
7710 _ACEOF
7711 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7712 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7713 ac_have_decl=1
7714 else
7715 ac_have_decl=0
7716 fi
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_SNPRINTF $ac_have_decl
7720 _ACEOF
7721 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7722 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7723 ac_have_decl=1
7724 else
7725 ac_have_decl=0
7726 fi
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7730 _ACEOF
7731
7732 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7733 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7734 ac_have_decl=1
7735 else
7736 ac_have_decl=0
7737 fi
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_DECL_STRTOL $ac_have_decl
7741 _ACEOF
7742 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7743 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7744 ac_have_decl=1
7745 else
7746 ac_have_decl=0
7747 fi
7748
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_DECL_STRTOUL $ac_have_decl
7751 _ACEOF
7752 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7753 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7754 ac_have_decl=1
7755 else
7756 ac_have_decl=0
7757 fi
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_STRTOLL $ac_have_decl
7761 _ACEOF
7762 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7763 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7764 ac_have_decl=1
7765 else
7766 ac_have_decl=0
7767 fi
7768
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_DECL_STRTOULL $ac_have_decl
7771 _ACEOF
7772
7773 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7774 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7775 ac_have_decl=1
7776 else
7777 ac_have_decl=0
7778 fi
7779
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7782 _ACEOF
7783
7784
7785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7786 if test "x$ac_cv_type_size_t" = xyes; then :
7787
7788 else
7789
7790 cat >>confdefs.h <<_ACEOF
7791 #define size_t unsigned int
7792 _ACEOF
7793
7794 fi
7795
7796
7797
7798
7799 for ac_header in $ac_header_list
7800 do :
7801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7803 "
7804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7805 cat >>confdefs.h <<_ACEOF
7806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 _ACEOF
7808
7809 fi
7810
7811 done
7812
7813
7814
7815
7816
7817
7818
7819 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7820 if test "x$ac_cv_type_pid_t" = xyes; then :
7821
7822 else
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define pid_t int
7826 _ACEOF
7827
7828 fi
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7831 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7832 if ${ac_cv_path_SED+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7836 for ac_i in 1 2 3 4 5 6 7; do
7837 ac_script="$ac_script$as_nl$ac_script"
7838 done
7839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7840 { ac_script=; unset ac_script;}
7841 if test -z "$SED"; then
7842 ac_path_SED_found=false
7843 # Loop through the user's path and test for each of PROGNAME-LIST
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_prog in sed gsed; do
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7852 as_fn_executable_p "$ac_path_SED" || continue
7853 # Check for GNU ac_path_SED and select it if it is found.
7854 # Check for GNU $ac_path_SED
7855 case `"$ac_path_SED" --version 2>&1` in
7856 *GNU*)
7857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7858 *)
7859 ac_count=0
7860 $as_echo_n 0123456789 >"conftest.in"
7861 while :
7862 do
7863 cat "conftest.in" "conftest.in" >"conftest.tmp"
7864 mv "conftest.tmp" "conftest.in"
7865 cp "conftest.in" "conftest.nl"
7866 $as_echo '' >> "conftest.nl"
7867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7869 as_fn_arith $ac_count + 1 && ac_count=$as_val
7870 if test $ac_count -gt ${ac_path_SED_max-0}; then
7871 # Best one so far, save it but keep looking for a better one
7872 ac_cv_path_SED="$ac_path_SED"
7873 ac_path_SED_max=$ac_count
7874 fi
7875 # 10*(2^10) chars as input seems more than enough
7876 test $ac_count -gt 10 && break
7877 done
7878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7879 esac
7880
7881 $ac_path_SED_found && break 3
7882 done
7883 done
7884 done
7885 IFS=$as_save_IFS
7886 if test -z "$ac_cv_path_SED"; then
7887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7888 fi
7889 else
7890 ac_cv_path_SED=$SED
7891 fi
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7895 $as_echo "$ac_cv_path_SED" >&6; }
7896 SED="$ac_cv_path_SED"
7897 rm -f conftest.sed
7898
7899
7900 if test "X$prefix" = "XNONE"; then
7901 acl_final_prefix="$ac_default_prefix"
7902 else
7903 acl_final_prefix="$prefix"
7904 fi
7905 if test "X$exec_prefix" = "XNONE"; then
7906 acl_final_exec_prefix='${prefix}'
7907 else
7908 acl_final_exec_prefix="$exec_prefix"
7909 fi
7910 acl_save_prefix="$prefix"
7911 prefix="$acl_final_prefix"
7912 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7913 prefix="$acl_save_prefix"
7914
7915
7916 # Check whether --with-gnu-ld was given.
7917 if test "${with_gnu_ld+set}" = set; then :
7918 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7919 else
7920 with_gnu_ld=no
7921 fi
7922
7923 # Prepare PATH_SEPARATOR.
7924 # The user is always right.
7925 if test "${PATH_SEPARATOR+set}" != set; then
7926 echo "#! /bin/sh" >conf$$.sh
7927 echo "exit 0" >>conf$$.sh
7928 chmod +x conf$$.sh
7929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7930 PATH_SEPARATOR=';'
7931 else
7932 PATH_SEPARATOR=:
7933 fi
7934 rm -f conf$$.sh
7935 fi
7936 ac_prog=ld
7937 if test "$GCC" = yes; then
7938 # Check if gcc -print-prog-name=ld gives a path.
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7940 $as_echo_n "checking for ld used by GCC... " >&6; }
7941 case $host in
7942 *-*-mingw*)
7943 # gcc leaves a trailing carriage return which upsets mingw
7944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7945 *)
7946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7947 esac
7948 case $ac_prog in
7949 # Accept absolute paths.
7950 [\\/]* | [A-Za-z]:[\\/]*)
7951 re_direlt='/[^/][^/]*/\.\./'
7952 # Canonicalize the path of ld
7953 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7955 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7956 done
7957 test -z "$LD" && LD="$ac_prog"
7958 ;;
7959 "")
7960 # If it fails, then pretend we aren't using GCC.
7961 ac_prog=ld
7962 ;;
7963 *)
7964 # If it is relative, then search for the first ld in PATH.
7965 with_gnu_ld=unknown
7966 ;;
7967 esac
7968 elif test "$with_gnu_ld" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7970 $as_echo_n "checking for GNU ld... " >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7973 $as_echo_n "checking for non-GNU ld... " >&6; }
7974 fi
7975 if ${acl_cv_path_LD+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -z "$LD"; then
7979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7980 for ac_dir in $PATH; do
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7983 acl_cv_path_LD="$ac_dir/$ac_prog"
7984 # Check to see if the program is GNU ld. I'd rather use --version,
7985 # but apparently some GNU ld's only accept -v.
7986 # Break only if it was the GNU/non-GNU ld that we prefer.
7987 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7988 test "$with_gnu_ld" != no && break
7989 else
7990 test "$with_gnu_ld" != yes && break
7991 fi
7992 fi
7993 done
7994 IFS="$ac_save_ifs"
7995 else
7996 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7997 fi
7998 fi
7999
8000 LD="$acl_cv_path_LD"
8001 if test -n "$LD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8003 $as_echo "$LD" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8011 if ${acl_cv_prog_gnu_ld+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8015 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8016 acl_cv_prog_gnu_ld=yes
8017 else
8018 acl_cv_prog_gnu_ld=no
8019 fi
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8022 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8023 with_gnu_ld=$acl_cv_prog_gnu_ld
8024
8025
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8028 $as_echo_n "checking for shared library run path origin... " >&6; }
8029 if ${acl_cv_rpath+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032
8033 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8034 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8035 . ./conftest.sh
8036 rm -f ./conftest.sh
8037 acl_cv_rpath=done
8038
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8041 $as_echo "$acl_cv_rpath" >&6; }
8042 wl="$acl_cv_wl"
8043 libext="$acl_cv_libext"
8044 shlibext="$acl_cv_shlibext"
8045 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8046 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8047 hardcode_direct="$acl_cv_hardcode_direct"
8048 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8049 # Check whether --enable-rpath was given.
8050 if test "${enable_rpath+set}" = set; then :
8051 enableval=$enable_rpath; :
8052 else
8053 enable_rpath=yes
8054 fi
8055
8056
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8059 $as_echo_n "checking for ANSI C header files... " >&6; }
8060 if ${ac_cv_header_stdc+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 #include <stdlib.h>
8066 #include <stdarg.h>
8067 #include <string.h>
8068 #include <float.h>
8069
8070 int
8071 main ()
8072 {
8073
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 ac_cv_header_stdc=yes
8080 else
8081 ac_cv_header_stdc=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084
8085 if test $ac_cv_header_stdc = yes; then
8086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 #include <string.h>
8090
8091 _ACEOF
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 $EGREP "memchr" >/dev/null 2>&1; then :
8094
8095 else
8096 ac_cv_header_stdc=no
8097 fi
8098 rm -f conftest*
8099
8100 fi
8101
8102 if test $ac_cv_header_stdc = yes; then
8103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <stdlib.h>
8107
8108 _ACEOF
8109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8110 $EGREP "free" >/dev/null 2>&1; then :
8111
8112 else
8113 ac_cv_header_stdc=no
8114 fi
8115 rm -f conftest*
8116
8117 fi
8118
8119 if test $ac_cv_header_stdc = yes; then
8120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8121 if test "$cross_compiling" = yes; then :
8122 :
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <ctype.h>
8127 #include <stdlib.h>
8128 #if ((' ' & 0x0FF) == 0x020)
8129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8131 #else
8132 # define ISLOWER(c) \
8133 (('a' <= (c) && (c) <= 'i') \
8134 || ('j' <= (c) && (c) <= 'r') \
8135 || ('s' <= (c) && (c) <= 'z'))
8136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8137 #endif
8138
8139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8140 int
8141 main ()
8142 {
8143 int i;
8144 for (i = 0; i < 256; i++)
8145 if (XOR (islower (i), ISLOWER (i))
8146 || toupper (i) != TOUPPER (i))
8147 return 2;
8148 return 0;
8149 }
8150 _ACEOF
8151 if ac_fn_c_try_run "$LINENO"; then :
8152
8153 else
8154 ac_cv_header_stdc=no
8155 fi
8156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8157 conftest.$ac_objext conftest.beam conftest.$ac_ext
8158 fi
8159
8160 fi
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8163 $as_echo "$ac_cv_header_stdc" >&6; }
8164 if test $ac_cv_header_stdc = yes; then
8165
8166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8167
8168 fi
8169
8170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8171 # for constant arguments. Useless!
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8173 $as_echo_n "checking for working alloca.h... " >&6; }
8174 if ${ac_cv_working_alloca_h+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <alloca.h>
8180 int
8181 main ()
8182 {
8183 char *p = (char *) alloca (2 * sizeof (int));
8184 if (p) return 0;
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190 ac_cv_working_alloca_h=yes
8191 else
8192 ac_cv_working_alloca_h=no
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8198 $as_echo "$ac_cv_working_alloca_h" >&6; }
8199 if test $ac_cv_working_alloca_h = yes; then
8200
8201 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8202
8203 fi
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8206 $as_echo_n "checking for alloca... " >&6; }
8207 if ${ac_cv_func_alloca_works+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 #ifdef __GNUC__
8213 # define alloca __builtin_alloca
8214 #else
8215 # ifdef _MSC_VER
8216 # include <malloc.h>
8217 # define alloca _alloca
8218 # else
8219 # ifdef HAVE_ALLOCA_H
8220 # include <alloca.h>
8221 # else
8222 # ifdef _AIX
8223 #pragma alloca
8224 # else
8225 # ifndef alloca /* predefined by HP cc +Olibcalls */
8226 void *alloca (size_t);
8227 # endif
8228 # endif
8229 # endif
8230 # endif
8231 #endif
8232
8233 int
8234 main ()
8235 {
8236 char *p = (char *) alloca (1);
8237 if (p) return 0;
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 ac_cv_func_alloca_works=yes
8244 else
8245 ac_cv_func_alloca_works=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8251 $as_echo "$ac_cv_func_alloca_works" >&6; }
8252
8253 if test $ac_cv_func_alloca_works = yes; then
8254
8255 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8256
8257 else
8258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8259 # that cause trouble. Some versions do not even contain alloca or
8260 # contain a buggy version. If you still want to use their alloca,
8261 # use ar to extract alloca.o from them instead of compiling alloca.c.
8262
8263 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8264
8265 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8266
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8269 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8270 if ${ac_cv_os_cray+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #if defined CRAY && ! defined CRAY2
8276 webecray
8277 #else
8278 wenotbecray
8279 #endif
8280
8281 _ACEOF
8282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283 $EGREP "webecray" >/dev/null 2>&1; then :
8284 ac_cv_os_cray=yes
8285 else
8286 ac_cv_os_cray=no
8287 fi
8288 rm -f conftest*
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8292 $as_echo "$ac_cv_os_cray" >&6; }
8293 if test $ac_cv_os_cray = yes; then
8294 for ac_func in _getb67 GETB67 getb67; do
8295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define CRAY_STACKSEG_END $ac_func
8301 _ACEOF
8302
8303 break
8304 fi
8305
8306 done
8307 fi
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8310 $as_echo_n "checking stack direction for C alloca... " >&6; }
8311 if ${ac_cv_c_stack_direction+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test "$cross_compiling" = yes; then :
8315 ac_cv_c_stack_direction=0
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 $ac_includes_default
8320 int
8321 find_stack_direction (int *addr, int depth)
8322 {
8323 int dir, dummy = 0;
8324 if (! addr)
8325 addr = &dummy;
8326 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8327 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8328 return dir + dummy;
8329 }
8330
8331 int
8332 main (int argc, char **argv)
8333 {
8334 return find_stack_direction (0, argc + !argv + 20) < 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_run "$LINENO"; then :
8338 ac_cv_c_stack_direction=1
8339 else
8340 ac_cv_c_stack_direction=-1
8341 fi
8342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8343 conftest.$ac_objext conftest.beam conftest.$ac_ext
8344 fi
8345
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8348 $as_echo "$ac_cv_c_stack_direction" >&6; }
8349 cat >>confdefs.h <<_ACEOF
8350 #define STACK_DIRECTION $ac_cv_c_stack_direction
8351 _ACEOF
8352
8353
8354 fi
8355
8356
8357 WIN32APILIBS=
8358 case ${host} in
8359 *mingw32*)
8360
8361 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8362
8363 WIN32APILIBS="-lws2_32"
8364 ;;
8365 esac
8366
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8369 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8370 if ${am_cv_langinfo_codeset+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <langinfo.h>
8376 int
8377 main ()
8378 {
8379 char* cs = nl_langinfo(CODESET);
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 am_cv_langinfo_codeset=yes
8386 else
8387 am_cv_langinfo_codeset=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8394 $as_echo "$am_cv_langinfo_codeset" >&6; }
8395 if test $am_cv_langinfo_codeset = yes; then
8396
8397 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8398
8399 fi
8400
8401
8402 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h sys/procfs.h proc_service.h
8403 do :
8404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8407 cat >>confdefs.h <<_ACEOF
8408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 _ACEOF
8410
8411 fi
8412
8413 done
8414
8415
8416
8417 for ac_func in getpagesize
8418 do :
8419 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8420 if test "x$ac_cv_func_getpagesize" = xyes; then :
8421 cat >>confdefs.h <<_ACEOF
8422 #define HAVE_GETPAGESIZE 1
8423 _ACEOF
8424
8425 fi
8426 done
8427
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8429 $as_echo_n "checking for working mmap... " >&6; }
8430 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test "$cross_compiling" = yes; then :
8434 ac_cv_func_mmap_fixed_mapped=no
8435 else
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 /* malloc might have been renamed as rpl_malloc. */
8440 #undef malloc
8441
8442 /* Thanks to Mike Haertel and Jim Avera for this test.
8443 Here is a matrix of mmap possibilities:
8444 mmap private not fixed
8445 mmap private fixed at somewhere currently unmapped
8446 mmap private fixed at somewhere already mapped
8447 mmap shared not fixed
8448 mmap shared fixed at somewhere currently unmapped
8449 mmap shared fixed at somewhere already mapped
8450 For private mappings, we should verify that changes cannot be read()
8451 back from the file, nor mmap's back from the file at a different
8452 address. (There have been systems where private was not correctly
8453 implemented like the infamous i386 svr4.0, and systems where the
8454 VM page cache was not coherent with the file system buffer cache
8455 like early versions of FreeBSD and possibly contemporary NetBSD.)
8456 For shared mappings, we should conversely verify that changes get
8457 propagated back to all the places they're supposed to be.
8458
8459 Grep wants private fixed already mapped.
8460 The main things grep needs to know about mmap are:
8461 * does it exist and is it safe to write into the mmap'd area
8462 * how to use it (BSD variants) */
8463
8464 #include <fcntl.h>
8465 #include <sys/mman.h>
8466
8467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8468 char *malloc ();
8469 #endif
8470
8471 /* This mess was copied from the GNU getpagesize.h. */
8472 #ifndef HAVE_GETPAGESIZE
8473 # ifdef _SC_PAGESIZE
8474 # define getpagesize() sysconf(_SC_PAGESIZE)
8475 # else /* no _SC_PAGESIZE */
8476 # ifdef HAVE_SYS_PARAM_H
8477 # include <sys/param.h>
8478 # ifdef EXEC_PAGESIZE
8479 # define getpagesize() EXEC_PAGESIZE
8480 # else /* no EXEC_PAGESIZE */
8481 # ifdef NBPG
8482 # define getpagesize() NBPG * CLSIZE
8483 # ifndef CLSIZE
8484 # define CLSIZE 1
8485 # endif /* no CLSIZE */
8486 # else /* no NBPG */
8487 # ifdef NBPC
8488 # define getpagesize() NBPC
8489 # else /* no NBPC */
8490 # ifdef PAGESIZE
8491 # define getpagesize() PAGESIZE
8492 # endif /* PAGESIZE */
8493 # endif /* no NBPC */
8494 # endif /* no NBPG */
8495 # endif /* no EXEC_PAGESIZE */
8496 # else /* no HAVE_SYS_PARAM_H */
8497 # define getpagesize() 8192 /* punt totally */
8498 # endif /* no HAVE_SYS_PARAM_H */
8499 # endif /* no _SC_PAGESIZE */
8500
8501 #endif /* no HAVE_GETPAGESIZE */
8502
8503 int
8504 main ()
8505 {
8506 char *data, *data2, *data3;
8507 const char *cdata2;
8508 int i, pagesize;
8509 int fd, fd2;
8510
8511 pagesize = getpagesize ();
8512
8513 /* First, make a file with some known garbage in it. */
8514 data = (char *) malloc (pagesize);
8515 if (!data)
8516 return 1;
8517 for (i = 0; i < pagesize; ++i)
8518 *(data + i) = rand ();
8519 umask (0);
8520 fd = creat ("conftest.mmap", 0600);
8521 if (fd < 0)
8522 return 2;
8523 if (write (fd, data, pagesize) != pagesize)
8524 return 3;
8525 close (fd);
8526
8527 /* Next, check that the tail of a page is zero-filled. File must have
8528 non-zero length, otherwise we risk SIGBUS for entire page. */
8529 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8530 if (fd2 < 0)
8531 return 4;
8532 cdata2 = "";
8533 if (write (fd2, cdata2, 1) != 1)
8534 return 5;
8535 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8536 if (data2 == MAP_FAILED)
8537 return 6;
8538 for (i = 0; i < pagesize; ++i)
8539 if (*(data2 + i))
8540 return 7;
8541 close (fd2);
8542 if (munmap (data2, pagesize))
8543 return 8;
8544
8545 /* Next, try to mmap the file at a fixed address which already has
8546 something else allocated at it. If we can, also make sure that
8547 we see the same garbage. */
8548 fd = open ("conftest.mmap", O_RDWR);
8549 if (fd < 0)
8550 return 9;
8551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8553 return 10;
8554 for (i = 0; i < pagesize; ++i)
8555 if (*(data + i) != *(data2 + i))
8556 return 11;
8557
8558 /* Finally, make sure that changes to the mapped area do not
8559 percolate back to the file as seen by read(). (This is a bug on
8560 some variants of i386 svr4.0.) */
8561 for (i = 0; i < pagesize; ++i)
8562 *(data2 + i) = *(data2 + i) + 1;
8563 data3 = (char *) malloc (pagesize);
8564 if (!data3)
8565 return 12;
8566 if (read (fd, data3, pagesize) != pagesize)
8567 return 13;
8568 for (i = 0; i < pagesize; ++i)
8569 if (*(data + i) != *(data3 + i))
8570 return 14;
8571 close (fd);
8572 return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_run "$LINENO"; then :
8576 ac_cv_func_mmap_fixed_mapped=yes
8577 else
8578 ac_cv_func_mmap_fixed_mapped=no
8579 fi
8580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8581 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 fi
8583
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8586 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8588
8589 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8590
8591 fi
8592 rm -f conftest.mmap conftest.txt
8593
8594 for ac_header in vfork.h
8595 do :
8596 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8597 if test "x$ac_cv_header_vfork_h" = xyes; then :
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_VFORK_H 1
8600 _ACEOF
8601
8602 fi
8603
8604 done
8605
8606 for ac_func in fork vfork
8607 do :
8608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8610 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8611 cat >>confdefs.h <<_ACEOF
8612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616 done
8617
8618 if test "x$ac_cv_func_fork" = xyes; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8620 $as_echo_n "checking for working fork... " >&6; }
8621 if ${ac_cv_func_fork_works+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test "$cross_compiling" = yes; then :
8625 ac_cv_func_fork_works=cross
8626 else
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 $ac_includes_default
8630 int
8631 main ()
8632 {
8633
8634 /* By Ruediger Kuhlmann. */
8635 return fork () < 0;
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_run "$LINENO"; then :
8642 ac_cv_func_fork_works=yes
8643 else
8644 ac_cv_func_fork_works=no
8645 fi
8646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8647 conftest.$ac_objext conftest.beam conftest.$ac_ext
8648 fi
8649
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8652 $as_echo "$ac_cv_func_fork_works" >&6; }
8653
8654 else
8655 ac_cv_func_fork_works=$ac_cv_func_fork
8656 fi
8657 if test "x$ac_cv_func_fork_works" = xcross; then
8658 case $host in
8659 *-*-amigaos* | *-*-msdosdjgpp*)
8660 # Override, as these systems have only a dummy fork() stub
8661 ac_cv_func_fork_works=no
8662 ;;
8663 *)
8664 ac_cv_func_fork_works=yes
8665 ;;
8666 esac
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8668 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8669 fi
8670 ac_cv_func_vfork_works=$ac_cv_func_vfork
8671 if test "x$ac_cv_func_vfork" = xyes; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8673 $as_echo_n "checking for working vfork... " >&6; }
8674 if ${ac_cv_func_vfork_works+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 if test "$cross_compiling" = yes; then :
8678 ac_cv_func_vfork_works=cross
8679 else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 /* Thanks to Paul Eggert for this test. */
8683 $ac_includes_default
8684 #include <sys/wait.h>
8685 #ifdef HAVE_VFORK_H
8686 # include <vfork.h>
8687 #endif
8688 /* On some sparc systems, changes by the child to local and incoming
8689 argument registers are propagated back to the parent. The compiler
8690 is told about this with #include <vfork.h>, but some compilers
8691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8692 static variable whose address is put into a register that is
8693 clobbered by the vfork. */
8694 static void
8695 #ifdef __cplusplus
8696 sparc_address_test (int arg)
8697 # else
8698 sparc_address_test (arg) int arg;
8699 #endif
8700 {
8701 static pid_t child;
8702 if (!child) {
8703 child = vfork ();
8704 if (child < 0) {
8705 perror ("vfork");
8706 _exit(2);
8707 }
8708 if (!child) {
8709 arg = getpid();
8710 write(-1, "", 0);
8711 _exit (arg);
8712 }
8713 }
8714 }
8715
8716 int
8717 main ()
8718 {
8719 pid_t parent = getpid ();
8720 pid_t child;
8721
8722 sparc_address_test (0);
8723
8724 child = vfork ();
8725
8726 if (child == 0) {
8727 /* Here is another test for sparc vfork register problems. This
8728 test uses lots of local variables, at least as many local
8729 variables as main has allocated so far including compiler
8730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8732 reuse the register of parent for one of the local variables,
8733 since it will think that parent can't possibly be used any more
8734 in this routine. Assigning to the local variable will thus
8735 munge parent in the parent process. */
8736 pid_t
8737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8739 /* Convince the compiler that p..p7 are live; otherwise, it might
8740 use the same hardware register for all 8 local variables. */
8741 if (p != p1 || p != p2 || p != p3 || p != p4
8742 || p != p5 || p != p6 || p != p7)
8743 _exit(1);
8744
8745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8746 from child file descriptors. If the child closes a descriptor
8747 before it execs or exits, this munges the parent's descriptor
8748 as well. Test for this by closing stdout in the child. */
8749 _exit(close(fileno(stdout)) != 0);
8750 } else {
8751 int status;
8752 struct stat st;
8753
8754 while (wait(&status) != child)
8755 ;
8756 return (
8757 /* Was there some problem with vforking? */
8758 child < 0
8759
8760 /* Did the child fail? (This shouldn't happen.) */
8761 || status
8762
8763 /* Did the vfork/compiler bug occur? */
8764 || parent != getpid()
8765
8766 /* Did the file descriptor bug occur? */
8767 || fstat(fileno(stdout), &st) != 0
8768 );
8769 }
8770 }
8771 _ACEOF
8772 if ac_fn_c_try_run "$LINENO"; then :
8773 ac_cv_func_vfork_works=yes
8774 else
8775 ac_cv_func_vfork_works=no
8776 fi
8777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8778 conftest.$ac_objext conftest.beam conftest.$ac_ext
8779 fi
8780
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8783 $as_echo "$ac_cv_func_vfork_works" >&6; }
8784
8785 fi;
8786 if test "x$ac_cv_func_fork_works" = xcross; then
8787 ac_cv_func_vfork_works=$ac_cv_func_vfork
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8789 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8790 fi
8791
8792 if test "x$ac_cv_func_vfork_works" = xyes; then
8793
8794 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8795
8796 else
8797
8798 $as_echo "#define vfork fork" >>confdefs.h
8799
8800 fi
8801 if test "x$ac_cv_func_fork_works" = xyes; then
8802
8803 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8804
8805 fi
8806
8807 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8808 ptrace64 sbrk setns sigaltstack sigprocmask \
8809 setpgid setpgrp getrusage getauxval
8810 do :
8811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8812 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8813 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8814 cat >>confdefs.h <<_ACEOF
8815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816 _ACEOF
8817
8818 fi
8819 done
8820
8821
8822 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8823 "
8824 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8825 ac_have_decl=1
8826 else
8827 ac_have_decl=0
8828 fi
8829
8830 cat >>confdefs.h <<_ACEOF
8831 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8832 _ACEOF
8833
8834
8835 if test "$cross_compiling" = yes; then :
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <sys/personality.h>
8839 int
8840 main ()
8841 {
8842
8843 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8844 # define ADDR_NO_RANDOMIZE 0x0040000
8845 # endif
8846 /* Test the flag could be set and stays set. */
8847 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8848 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8849 return 1
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855 have_personality=true
8856 else
8857 have_personality=false
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 else
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 #include <sys/personality.h>
8865 int
8866 main ()
8867 {
8868
8869 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8870 # define ADDR_NO_RANDOMIZE 0x0040000
8871 # endif
8872 /* Test the flag could be set and stays set. */
8873 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8874 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8875 return 1
8876 ;
8877 return 0;
8878 }
8879 _ACEOF
8880 if ac_fn_c_try_run "$LINENO"; then :
8881 have_personality=true
8882 else
8883 have_personality=false
8884 fi
8885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8886 conftest.$ac_objext conftest.beam conftest.$ac_ext
8887 fi
8888
8889 if $have_personality
8890 then
8891
8892 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8893
8894 fi
8895
8896 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8897 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8898 ac_have_decl=1
8899 else
8900 ac_have_decl=0
8901 fi
8902
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_DECL_STRSTR $ac_have_decl
8905 _ACEOF
8906
8907
8908 # ----------------------- #
8909 # Checks for structures. #
8910 # ----------------------- #
8911
8912 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8913 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8917 _ACEOF
8918
8919
8920 fi
8921 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8922 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8926 _ACEOF
8927
8928
8929 fi
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8933 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8934 if ${ac_cv_search_kinfo_getfile+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 ac_func_search_save_LIBS=$LIBS
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944 #ifdef __cplusplus
8945 extern "C"
8946 #endif
8947 char kinfo_getfile ();
8948 int
8949 main ()
8950 {
8951 return kinfo_getfile ();
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 for ac_lib in '' util util-freebsd; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 fi
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_kinfo_getfile=$ac_res
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if ${ac_cv_search_kinfo_getfile+:} false; then :
8969 break
8970 fi
8971 done
8972 if ${ac_cv_search_kinfo_getfile+:} false; then :
8973
8974 else
8975 ac_cv_search_kinfo_getfile=no
8976 fi
8977 rm conftest.$ac_ext
8978 LIBS=$ac_func_search_save_LIBS
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8981 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8982 ac_res=$ac_cv_search_kinfo_getfile
8983 if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985
8986 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8987
8988 fi
8989
8990
8991 # Check for std::thread. This does not work on some platforms, like
8992 # mingw and DJGPP.
8993 ac_ext=cpp
8994 ac_cpp='$CXXCPP $CPPFLAGS'
8995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8998
8999
9000
9001
9002
9003 ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009 ax_pthread_ok=no
9010
9011 # We used to check for pthread.h first, but this fails if pthread.h
9012 # requires special compiler flags (e.g. on Tru64 or Sequent).
9013 # It gets checked for in the link test anyway.
9014
9015 # First of all, check if the user has set any of the PTHREAD_LIBS,
9016 # etcetera environment variables, and if threads linking works using
9017 # them:
9018 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9019 ax_pthread_save_CC="$CC"
9020 ax_pthread_save_CFLAGS="$CFLAGS"
9021 ax_pthread_save_LIBS="$LIBS"
9022 if test "x$PTHREAD_CC" != "x"; then :
9023 CC="$PTHREAD_CC"
9024 fi
9025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9026 LIBS="$PTHREAD_LIBS $LIBS"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9028 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 char pthread_join ();
9039 int
9040 main ()
9041 {
9042 return pthread_join ();
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_c_try_link "$LINENO"; then :
9048 ax_pthread_ok=yes
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9053 $as_echo "$ax_pthread_ok" >&6; }
9054 if test "x$ax_pthread_ok" = "xno"; then
9055 PTHREAD_LIBS=""
9056 PTHREAD_CFLAGS=""
9057 fi
9058 CC="$ax_pthread_save_CC"
9059 CFLAGS="$ax_pthread_save_CFLAGS"
9060 LIBS="$ax_pthread_save_LIBS"
9061 fi
9062
9063 # We must check for the threads library under a number of different
9064 # names; the ordering is very important because some systems
9065 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9066 # libraries is broken (non-POSIX).
9067
9068 # Create a list of thread flags to try. Items starting with a "-" are
9069 # C compiler flags, and other items are library names, except for "none"
9070 # which indicates that we try without any flags at all, and "pthread-config"
9071 # which is a program returning the flags for the Pth emulation library.
9072
9073 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9074
9075 # The ordering *is* (sometimes) important. Some notes on the
9076 # individual items follow:
9077
9078 # pthreads: AIX (must check this before -lpthread)
9079 # none: in case threads are in libc; should be tried before -Kthread and
9080 # other compiler flags to prevent continual compiler warnings
9081 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9083 # (Note: HP C rejects this with "bad form for `-t' option")
9084 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9086 # doesn't hurt to check since this sometimes defines pthreads and
9087 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9088 # is present but should not be used directly; and before -mthreads,
9089 # because the compiler interprets this as "-mt" + "-hreads")
9090 # -mthreads: Mingw32/gcc, Lynx/gcc
9091 # pthread: Linux, etcetera
9092 # --thread-safe: KAI C++
9093 # pthread-config: use pthread-config program (for GNU Pth library)
9094
9095 case $host_os in
9096
9097 freebsd*)
9098
9099 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9100 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9101
9102 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9103 ;;
9104
9105 hpux*)
9106
9107 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9108 # multi-threading and also sets -lpthread."
9109
9110 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9111 ;;
9112
9113 openedition*)
9114
9115 # IBM z/OS requires a feature-test macro to be defined in order to
9116 # enable POSIX threads at all, so give the user a hint if this is
9117 # not set. (We don't define these ourselves, as they can affect
9118 # other portions of the system API in unpredictable ways.)
9119
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122
9123 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9124 AX_PTHREAD_ZOS_MISSING
9125 # endif
9126
9127 _ACEOF
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9131 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9132 fi
9133 rm -f conftest*
9134
9135 ;;
9136
9137 solaris*)
9138
9139 # On Solaris (at least, for some versions), libc contains stubbed
9140 # (non-functional) versions of the pthreads routines, so link-based
9141 # tests will erroneously succeed. (N.B.: The stubs are missing
9142 # pthread_cleanup_push, or rather a function called by this macro,
9143 # so we could check for that, but who knows whether they'll stub
9144 # that too in a future libc.) So we'll check first for the
9145 # standard Solaris way of linking pthreads (-mt -lpthread).
9146
9147 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9148 ;;
9149 esac
9150
9151 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9152
9153 if test "x$GCC" = "xyes"; then :
9154 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9155 fi
9156
9157 # The presence of a feature test macro requesting re-entrant function
9158 # definitions is, on some systems, a strong hint that pthreads support is
9159 # correctly enabled
9160
9161 case $host_os in
9162 darwin* | hpux* | linux* | osf* | solaris*)
9163 ax_pthread_check_macro="_REENTRANT"
9164 ;;
9165
9166 aix*)
9167 ax_pthread_check_macro="_THREAD_SAFE"
9168 ;;
9169
9170 *)
9171 ax_pthread_check_macro="--"
9172 ;;
9173 esac
9174 if test "x$ax_pthread_check_macro" = "x--"; then :
9175 ax_pthread_check_cond=0
9176 else
9177 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9178 fi
9179
9180 # Are we compiling with Clang?
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9183 $as_echo_n "checking whether $CC is Clang... " >&6; }
9184 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 ax_cv_PTHREAD_CLANG=no
9188 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9189 if test "x$GCC" = "xyes"; then
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9193 # if defined(__clang__) && defined(__llvm__)
9194 AX_PTHREAD_CC_IS_CLANG
9195 # endif
9196
9197 _ACEOF
9198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9199 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9200 ax_cv_PTHREAD_CLANG=yes
9201 fi
9202 rm -f conftest*
9203
9204 fi
9205
9206 fi
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9208 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9209 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9210
9211 ax_pthread_clang_warning=no
9212
9213 # Clang needs special handling, because older versions handle the -pthread
9214 # option in a rather... idiosyncratic way
9215
9216 if test "x$ax_pthread_clang" = "xyes"; then
9217
9218 # Clang takes -pthread; it has never supported any other flag
9219
9220 # (Note 1: This will need to be revisited if a system that Clang
9221 # supports has POSIX threads in a separate library. This tends not
9222 # to be the way of modern systems, but it's conceivable.)
9223
9224 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9225 # to get POSIX threads support; the API is always present and
9226 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9227 # -pthread does define _REENTRANT, and while the Darwin headers
9228 # ignore this macro, third-party headers might not.)
9229
9230 PTHREAD_CFLAGS="-pthread"
9231 PTHREAD_LIBS=
9232
9233 ax_pthread_ok=yes
9234
9235 # However, older versions of Clang make a point of warning the user
9236 # that, in an invocation where only linking and no compilation is
9237 # taking place, the -pthread option has no effect ("argument unused
9238 # during compilation"). They expect -pthread to be passed in only
9239 # when source code is being compiled.
9240 #
9241 # Problem is, this is at odds with the way Automake and most other
9242 # C build frameworks function, which is that the same flags used in
9243 # compilation (CFLAGS) are also used in linking. Many systems
9244 # supported by AX_PTHREAD require exactly this for POSIX threads
9245 # support, and in fact it is often not straightforward to specify a
9246 # flag that is used only in the compilation phase and not in
9247 # linking. Such a scenario is extremely rare in practice.
9248 #
9249 # Even though use of the -pthread flag in linking would only print
9250 # a warning, this can be a nuisance for well-run software projects
9251 # that build with -Werror. So if the active version of Clang has
9252 # this misfeature, we search for an option to squash it.
9253
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9255 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9256 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9260 # Create an alternate version of $ac_link that compiles and
9261 # links in two steps (.c -> .o, .o -> exe) instead of one
9262 # (.c -> exe), because the warning occurs only in the second
9263 # step
9264 ax_pthread_save_ac_link="$ac_link"
9265 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9266 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9267 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9268 ax_pthread_save_CFLAGS="$CFLAGS"
9269 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9270 if test "x$ax_pthread_try" = "xunknown"; then :
9271 break
9272 fi
9273 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9274 ac_link="$ax_pthread_save_ac_link"
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int main(void){return 0;}
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 ac_link="$ax_pthread_2step_ac_link"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int main(void){return 0;}
9284 _ACEOF
9285 if ac_fn_c_try_link "$LINENO"; then :
9286 break
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 done
9295 ac_link="$ax_pthread_save_ac_link"
9296 CFLAGS="$ax_pthread_save_CFLAGS"
9297 if test "x$ax_pthread_try" = "x"; then :
9298 ax_pthread_try=no
9299 fi
9300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9301
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9304 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9305
9306 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9307 no | unknown) ;;
9308 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9309 esac
9310
9311 fi # $ax_pthread_clang = yes
9312
9313 if test "x$ax_pthread_ok" = "xno"; then
9314 for ax_pthread_try_flag in $ax_pthread_flags; do
9315
9316 case $ax_pthread_try_flag in
9317 none)
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9319 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9320 ;;
9321
9322 -mt,pthread)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9324 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9325 PTHREAD_CFLAGS="-mt"
9326 PTHREAD_LIBS="-lpthread"
9327 ;;
9328
9329 -*)
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9331 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9332 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9333 ;;
9334
9335 pthread-config)
9336 # Extract the first word of "pthread-config", so it can be a program name with args.
9337 set dummy pthread-config; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 if test -n "$ax_pthread_config"; then
9344 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_ax_pthread_config="yes"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
9357 done
9358 done
9359 IFS=$as_save_IFS
9360
9361 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9362 fi
9363 fi
9364 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9365 if test -n "$ax_pthread_config"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9367 $as_echo "$ax_pthread_config" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9371 fi
9372
9373
9374 if test "x$ax_pthread_config" = "xno"; then :
9375 continue
9376 fi
9377 PTHREAD_CFLAGS="`pthread-config --cflags`"
9378 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9379 ;;
9380
9381 *)
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9383 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9384 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9385 ;;
9386 esac
9387
9388 ax_pthread_save_CFLAGS="$CFLAGS"
9389 ax_pthread_save_LIBS="$LIBS"
9390 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9391 LIBS="$PTHREAD_LIBS $LIBS"
9392
9393 # Check for various functions. We must include pthread.h,
9394 # since some functions may be macros. (On the Sequent, we
9395 # need a special flag -Kthread to make this header compile.)
9396 # We check for pthread_join because it is in -lpthread on IRIX
9397 # while pthread_create is in libc. We check for pthread_attr_init
9398 # due to DEC craziness with -lpthreads. We check for
9399 # pthread_cleanup_push because it is one of the few pthread
9400 # functions on Solaris that doesn't have a non-functional libc stub.
9401 # We try pthread_create on general principles.
9402
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <pthread.h>
9406 # if $ax_pthread_check_cond
9407 # error "$ax_pthread_check_macro must be defined"
9408 # endif
9409 static void routine(void *a) { a = 0; }
9410 static void *start_routine(void *a) { return a; }
9411 int
9412 main ()
9413 {
9414 pthread_t th; pthread_attr_t attr;
9415 pthread_create(&th, 0, start_routine, 0);
9416 pthread_join(th, 0);
9417 pthread_attr_init(&attr);
9418 pthread_cleanup_push(routine, 0);
9419 pthread_cleanup_pop(0) /* ; */
9420 ;
9421 return 0;
9422 }
9423 _ACEOF
9424 if ac_fn_c_try_link "$LINENO"; then :
9425 ax_pthread_ok=yes
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429
9430 CFLAGS="$ax_pthread_save_CFLAGS"
9431 LIBS="$ax_pthread_save_LIBS"
9432
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9434 $as_echo "$ax_pthread_ok" >&6; }
9435 if test "x$ax_pthread_ok" = "xyes"; then :
9436 break
9437 fi
9438
9439 PTHREAD_LIBS=""
9440 PTHREAD_CFLAGS=""
9441 done
9442 fi
9443
9444 # Various other checks:
9445 if test "x$ax_pthread_ok" = "xyes"; then
9446 ax_pthread_save_CFLAGS="$CFLAGS"
9447 ax_pthread_save_LIBS="$LIBS"
9448 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9449 LIBS="$PTHREAD_LIBS $LIBS"
9450
9451 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9453 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9454 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9458 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <pthread.h>
9462 int
9463 main ()
9464 {
9465 int attr = $ax_pthread_attr; return attr /* ; */
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 done
9476
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9479 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9480 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9481 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9482 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9486 _ACEOF
9487
9488 ax_pthread_joinable_attr_defined=yes
9489
9490 fi
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9493 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9494 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9498 case $host_os in
9499 solaris*)
9500 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9501 ;;
9502 esac
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9506 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9507 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9508 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9509 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9510 ax_pthread_special_flags_added=yes
9511 fi
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9514 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9515 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <pthread.h>
9521 int
9522 main ()
9523 {
9524 int i = PTHREAD_PRIO_INHERIT;
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 ax_cv_PTHREAD_PRIO_INHERIT=yes
9531 else
9532 ax_cv_PTHREAD_PRIO_INHERIT=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9539 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9540 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9541 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9542
9543 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9544
9545 ax_pthread_prio_inherit_defined=yes
9546
9547 fi
9548
9549 CFLAGS="$ax_pthread_save_CFLAGS"
9550 LIBS="$ax_pthread_save_LIBS"
9551
9552 # More AIX lossage: compile with *_r variant
9553 if test "x$GCC" != "xyes"; then
9554 case $host_os in
9555 aix*)
9556 case "x/$CC" in #(
9557 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9558 #handle absolute path differently from PATH based program lookup
9559 case "x$CC" in #(
9560 x/*) :
9561 if as_fn_executable_p ${CC}_r; then :
9562 PTHREAD_CC="${CC}_r"
9563 fi ;; #(
9564 *) :
9565 for ac_prog in ${CC}_r
9566 do
9567 # Extract the first word of "$ac_prog", so it can be a program name with args.
9568 set dummy $ac_prog; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$PTHREAD_CC"; then
9575 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_PTHREAD_CC="$ac_prog"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 fi
9593 fi
9594 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9595 if test -n "$PTHREAD_CC"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9597 $as_echo "$PTHREAD_CC" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604 test -n "$PTHREAD_CC" && break
9605 done
9606 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9607 ;;
9608 esac ;; #(
9609 *) :
9610 ;;
9611 esac
9612 ;;
9613 esac
9614 fi
9615 fi
9616
9617 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9618
9619
9620
9621
9622
9623 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9624 if test "x$ax_pthread_ok" = "xyes"; then
9625 threads=yes
9626 :
9627 else
9628 ax_pthread_ok=no
9629 threads=no
9630 fi
9631 ac_ext=cpp
9632 ac_cpp='$CXXCPP $CPPFLAGS'
9633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636
9637
9638 if test "$threads" = "yes"; then
9639 save_LIBS="$LIBS"
9640 LIBS="$PTHREAD_LIBS $LIBS"
9641 save_CXXFLAGS="$CXXFLAGS"
9642 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9644 $as_echo_n "checking for std::thread... " >&6; }
9645 if ${gdb_cv_cxx_std_thread+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #include <thread>
9651 void callback() { }
9652 int
9653 main ()
9654 {
9655 std::thread t(callback);
9656 ;
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_cxx_try_compile "$LINENO"; then :
9661 gdb_cv_cxx_std_thread=yes
9662 else
9663 gdb_cv_cxx_std_thread=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9668 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9669
9670 # This check must be here, while LIBS includes any necessary
9671 # threading library.
9672 for ac_func in pthread_sigmask pthread_setname_np
9673 do :
9674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9676 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9677 cat >>confdefs.h <<_ACEOF
9678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679 _ACEOF
9680
9681 fi
9682 done
9683
9684
9685 LIBS="$save_LIBS"
9686 CXXFLAGS="$save_CXXFLAGS"
9687 fi
9688 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9689
9690 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9691
9692 fi
9693 ac_ext=c
9694 ac_cpp='$CPP $CPPFLAGS'
9695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9698
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9701 $as_echo_n "checking for sigsetjmp... " >&6; }
9702 if ${gdb_cv_func_sigsetjmp+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707
9708 #include <setjmp.h>
9709
9710 int
9711 main ()
9712 {
9713 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 gdb_cv_func_sigsetjmp=yes
9720 else
9721 gdb_cv_func_sigsetjmp=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9726 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9727 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9728
9729 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9730
9731 fi
9732
9733
9734 # Check whether --with-intel_pt was given.
9735 if test "${with_intel_pt+set}" = set; then :
9736 withval=$with_intel_pt;
9737 else
9738 with_intel_pt=auto
9739 fi
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9742 $as_echo_n "checking whether to use intel pt... " >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9744 $as_echo "$with_intel_pt" >&6; }
9745
9746 if test "${with_intel_pt}" = no; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9748 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9749 HAVE_LIBIPT=no
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753
9754 #include <linux/perf_event.h>
9755 #ifndef PERF_ATTR_SIZE_VER5
9756 # error
9757 #endif
9758
9759 _ACEOF
9760 if ac_fn_c_try_cpp "$LINENO"; then :
9761 perf_event=yes
9762 else
9763 perf_event=no
9764 fi
9765 rm -f conftest.err conftest.i conftest.$ac_ext
9766 if test "$perf_event" != yes; then
9767 if test "$with_intel_pt" = yes; then
9768 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9771 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9772 fi
9773 fi
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783 use_additional=yes
9784
9785 acl_save_prefix="$prefix"
9786 prefix="$acl_final_prefix"
9787 acl_save_exec_prefix="$exec_prefix"
9788 exec_prefix="$acl_final_exec_prefix"
9789
9790 eval additional_includedir=\"$includedir\"
9791 eval additional_libdir=\"$libdir\"
9792
9793 exec_prefix="$acl_save_exec_prefix"
9794 prefix="$acl_save_prefix"
9795
9796
9797 # Check whether --with-libipt-prefix was given.
9798 if test "${with_libipt_prefix+set}" = set; then :
9799 withval=$with_libipt_prefix;
9800 if test "X$withval" = "Xno"; then
9801 use_additional=no
9802 else
9803 if test "X$withval" = "X"; then
9804
9805 acl_save_prefix="$prefix"
9806 prefix="$acl_final_prefix"
9807 acl_save_exec_prefix="$exec_prefix"
9808 exec_prefix="$acl_final_exec_prefix"
9809
9810 eval additional_includedir=\"$includedir\"
9811 eval additional_libdir=\"$libdir\"
9812
9813 exec_prefix="$acl_save_exec_prefix"
9814 prefix="$acl_save_prefix"
9815
9816 else
9817 additional_includedir="$withval/include"
9818 additional_libdir="$withval/lib"
9819 fi
9820 fi
9821
9822 fi
9823
9824 LIBIPT=
9825 LTLIBIPT=
9826 INCIPT=
9827 rpathdirs=
9828 ltrpathdirs=
9829 names_already_handled=
9830 names_next_round='ipt '
9831 while test -n "$names_next_round"; do
9832 names_this_round="$names_next_round"
9833 names_next_round=
9834 for name in $names_this_round; do
9835 already_handled=
9836 for n in $names_already_handled; do
9837 if test "$n" = "$name"; then
9838 already_handled=yes
9839 break
9840 fi
9841 done
9842 if test -z "$already_handled"; then
9843 names_already_handled="$names_already_handled $name"
9844 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9845 eval value=\"\$HAVE_LIB$uppername\"
9846 if test -n "$value"; then
9847 if test "$value" = yes; then
9848 eval value=\"\$LIB$uppername\"
9849 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9850 eval value=\"\$LTLIB$uppername\"
9851 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9852 else
9853 :
9854 fi
9855 else
9856 found_dir=
9857 found_la=
9858 found_so=
9859 found_a=
9860 if test $use_additional = yes; then
9861 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9862 found_dir="$additional_libdir"
9863 found_so="$additional_libdir/lib$name.$shlibext"
9864 if test -f "$additional_libdir/lib$name.la"; then
9865 found_la="$additional_libdir/lib$name.la"
9866 fi
9867 else
9868 if test -f "$additional_libdir/lib$name.$libext"; then
9869 found_dir="$additional_libdir"
9870 found_a="$additional_libdir/lib$name.$libext"
9871 if test -f "$additional_libdir/lib$name.la"; then
9872 found_la="$additional_libdir/lib$name.la"
9873 fi
9874 fi
9875 fi
9876 fi
9877 if test "X$found_dir" = "X"; then
9878 for x in $LDFLAGS $LTLIBIPT; do
9879
9880 acl_save_prefix="$prefix"
9881 prefix="$acl_final_prefix"
9882 acl_save_exec_prefix="$exec_prefix"
9883 exec_prefix="$acl_final_exec_prefix"
9884 eval x=\"$x\"
9885 exec_prefix="$acl_save_exec_prefix"
9886 prefix="$acl_save_prefix"
9887
9888 case "$x" in
9889 -L*)
9890 dir=`echo "X$x" | sed -e 's/^X-L//'`
9891 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9892 found_dir="$dir"
9893 found_so="$dir/lib$name.$shlibext"
9894 if test -f "$dir/lib$name.la"; then
9895 found_la="$dir/lib$name.la"
9896 fi
9897 else
9898 if test -f "$dir/lib$name.$libext"; then
9899 found_dir="$dir"
9900 found_a="$dir/lib$name.$libext"
9901 if test -f "$dir/lib$name.la"; then
9902 found_la="$dir/lib$name.la"
9903 fi
9904 fi
9905 fi
9906 ;;
9907 esac
9908 if test "X$found_dir" != "X"; then
9909 break
9910 fi
9911 done
9912 fi
9913 if test "X$found_dir" != "X"; then
9914 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9915 if test "X$found_so" != "X"; then
9916 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9917 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9918 else
9919 haveit=
9920 for x in $ltrpathdirs; do
9921 if test "X$x" = "X$found_dir"; then
9922 haveit=yes
9923 break
9924 fi
9925 done
9926 if test -z "$haveit"; then
9927 ltrpathdirs="$ltrpathdirs $found_dir"
9928 fi
9929 if test "$hardcode_direct" = yes; then
9930 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9931 else
9932 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9933 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9934 haveit=
9935 for x in $rpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9937 haveit=yes
9938 break
9939 fi
9940 done
9941 if test -z "$haveit"; then
9942 rpathdirs="$rpathdirs $found_dir"
9943 fi
9944 else
9945 haveit=
9946 for x in $LDFLAGS $LIBIPT; do
9947
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9952 eval x=\"$x\"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
9955
9956 if test "X$x" = "X-L$found_dir"; then
9957 haveit=yes
9958 break
9959 fi
9960 done
9961 if test -z "$haveit"; then
9962 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9963 fi
9964 if test "$hardcode_minus_L" != no; then
9965 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9966 else
9967 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9968 fi
9969 fi
9970 fi
9971 fi
9972 else
9973 if test "X$found_a" != "X"; then
9974 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9975 else
9976 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9977 fi
9978 fi
9979 additional_includedir=
9980 case "$found_dir" in
9981 */lib | */lib/)
9982 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9983 additional_includedir="$basedir/include"
9984 ;;
9985 esac
9986 if test "X$additional_includedir" != "X"; then
9987 if test "X$additional_includedir" != "X/usr/include"; then
9988 haveit=
9989 if test "X$additional_includedir" = "X/usr/local/include"; then
9990 if test -n "$GCC"; then
9991 case $host_os in
9992 linux*) haveit=yes;;
9993 esac
9994 fi
9995 fi
9996 if test -z "$haveit"; then
9997 for x in $CPPFLAGS $INCIPT; do
9998
9999 acl_save_prefix="$prefix"
10000 prefix="$acl_final_prefix"
10001 acl_save_exec_prefix="$exec_prefix"
10002 exec_prefix="$acl_final_exec_prefix"
10003 eval x=\"$x\"
10004 exec_prefix="$acl_save_exec_prefix"
10005 prefix="$acl_save_prefix"
10006
10007 if test "X$x" = "X-I$additional_includedir"; then
10008 haveit=yes
10009 break
10010 fi
10011 done
10012 if test -z "$haveit"; then
10013 if test -d "$additional_includedir"; then
10014 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10015 fi
10016 fi
10017 fi
10018 fi
10019 fi
10020 if test -n "$found_la"; then
10021 save_libdir="$libdir"
10022 case "$found_la" in
10023 */* | *\\*) . "$found_la" ;;
10024 *) . "./$found_la" ;;
10025 esac
10026 libdir="$save_libdir"
10027 for dep in $dependency_libs; do
10028 case "$dep" in
10029 -L*)
10030 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10031 if test "X$additional_libdir" != "X/usr/lib"; then
10032 haveit=
10033 if test "X$additional_libdir" = "X/usr/local/lib"; then
10034 if test -n "$GCC"; then
10035 case $host_os in
10036 linux*) haveit=yes;;
10037 esac
10038 fi
10039 fi
10040 if test -z "$haveit"; then
10041 haveit=
10042 for x in $LDFLAGS $LIBIPT; do
10043
10044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10048 eval x=\"$x\"
10049 exec_prefix="$acl_save_exec_prefix"
10050 prefix="$acl_save_prefix"
10051
10052 if test "X$x" = "X-L$additional_libdir"; then
10053 haveit=yes
10054 break
10055 fi
10056 done
10057 if test -z "$haveit"; then
10058 if test -d "$additional_libdir"; then
10059 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10060 fi
10061 fi
10062 haveit=
10063 for x in $LDFLAGS $LTLIBIPT; do
10064
10065 acl_save_prefix="$prefix"
10066 prefix="$acl_final_prefix"
10067 acl_save_exec_prefix="$exec_prefix"
10068 exec_prefix="$acl_final_exec_prefix"
10069 eval x=\"$x\"
10070 exec_prefix="$acl_save_exec_prefix"
10071 prefix="$acl_save_prefix"
10072
10073 if test "X$x" = "X-L$additional_libdir"; then
10074 haveit=yes
10075 break
10076 fi
10077 done
10078 if test -z "$haveit"; then
10079 if test -d "$additional_libdir"; then
10080 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10081 fi
10082 fi
10083 fi
10084 fi
10085 ;;
10086 -R*)
10087 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10088 if test "$enable_rpath" != no; then
10089 haveit=
10090 for x in $rpathdirs; do
10091 if test "X$x" = "X$dir"; then
10092 haveit=yes
10093 break
10094 fi
10095 done
10096 if test -z "$haveit"; then
10097 rpathdirs="$rpathdirs $dir"
10098 fi
10099 haveit=
10100 for x in $ltrpathdirs; do
10101 if test "X$x" = "X$dir"; then
10102 haveit=yes
10103 break
10104 fi
10105 done
10106 if test -z "$haveit"; then
10107 ltrpathdirs="$ltrpathdirs $dir"
10108 fi
10109 fi
10110 ;;
10111 -l*)
10112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10113 ;;
10114 *.la)
10115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10116 ;;
10117 *)
10118 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10119 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10120 ;;
10121 esac
10122 done
10123 fi
10124 else
10125 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10126 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10127 fi
10128 fi
10129 fi
10130 done
10131 done
10132 if test "X$rpathdirs" != "X"; then
10133 if test -n "$hardcode_libdir_separator"; then
10134 alldirs=
10135 for found_dir in $rpathdirs; do
10136 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10137 done
10138 acl_save_libdir="$libdir"
10139 libdir="$alldirs"
10140 eval flag=\"$hardcode_libdir_flag_spec\"
10141 libdir="$acl_save_libdir"
10142 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10143 else
10144 for found_dir in $rpathdirs; do
10145 acl_save_libdir="$libdir"
10146 libdir="$found_dir"
10147 eval flag=\"$hardcode_libdir_flag_spec\"
10148 libdir="$acl_save_libdir"
10149 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10150 done
10151 fi
10152 fi
10153 if test "X$ltrpathdirs" != "X"; then
10154 for found_dir in $ltrpathdirs; do
10155 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10156 done
10157 fi
10158
10159
10160 ac_save_CPPFLAGS="$CPPFLAGS"
10161
10162 for element in $INCIPT; do
10163 haveit=
10164 for x in $CPPFLAGS; do
10165
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 acl_save_exec_prefix="$exec_prefix"
10169 exec_prefix="$acl_final_exec_prefix"
10170 eval x=\"$x\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
10173
10174 if test "X$x" = "X$element"; then
10175 haveit=yes
10176 break
10177 fi
10178 done
10179 if test -z "$haveit"; then
10180 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10181 fi
10182 done
10183
10184
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10186 $as_echo_n "checking for libipt... " >&6; }
10187 if ${ac_cv_libipt+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190
10191 ac_save_LIBS="$LIBS"
10192 LIBS="$LIBS $LIBIPT"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include "intel-pt.h"
10196 int
10197 main ()
10198 {
10199 pt_insn_alloc_decoder (0);
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 ac_cv_libipt=yes
10206 else
10207 ac_cv_libipt=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LIBS="$ac_save_LIBS"
10212
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10215 $as_echo "$ac_cv_libipt" >&6; }
10216 if test "$ac_cv_libipt" = yes; then
10217 HAVE_LIBIPT=yes
10218
10219 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10220
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10222 $as_echo_n "checking how to link with libipt... " >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10224 $as_echo "$LIBIPT" >&6; }
10225 else
10226 HAVE_LIBIPT=no
10227 CPPFLAGS="$ac_save_CPPFLAGS"
10228 LIBIPT=
10229 LTLIBIPT=
10230 fi
10231
10232
10233
10234
10235
10236
10237 if test "$HAVE_LIBIPT" != yes; then
10238 if test "$with_intel_pt" = yes; then
10239 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10242 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10243 fi
10244 else
10245 save_LIBS=$LIBS
10246 LIBS="$LIBS $LIBIPT"
10247 for ac_func in pt_insn_event
10248 do :
10249 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10250 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10251 cat >>confdefs.h <<_ACEOF
10252 #define HAVE_PT_INSN_EVENT 1
10253 _ACEOF
10254
10255 fi
10256 done
10257
10258 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10259 "
10260 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10264 _ACEOF
10265
10266
10267 fi
10268 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10269 "
10270 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
10271
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10274 _ACEOF
10275
10276
10277 fi
10278
10279 LIBS=$save_LIBS
10280 fi
10281 fi
10282
10283 if test "$ac_cv_header_sys_procfs_h" = yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10285 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10286 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291
10292 #define _SYSCALL32
10293 /* Needed for new procfs interface on sparc-solaris. */
10294 #define _STRUCTURED_PROC 1
10295 #include <sys/procfs.h>
10296 int
10297 main ()
10298 {
10299 gregset_t avar
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_compile "$LINENO"; then :
10305 bfd_cv_have_sys_procfs_type_gregset_t=yes
10306 else
10307 bfd_cv_have_sys_procfs_type_gregset_t=no
10308
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312
10313 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10314
10315 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10316
10317 fi
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10319 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10320
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10322 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10323 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328
10329 #define _SYSCALL32
10330 /* Needed for new procfs interface on sparc-solaris. */
10331 #define _STRUCTURED_PROC 1
10332 #include <sys/procfs.h>
10333 int
10334 main ()
10335 {
10336 fpregset_t avar
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_compile "$LINENO"; then :
10342 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10343 else
10344 bfd_cv_have_sys_procfs_type_fpregset_t=no
10345
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348 fi
10349
10350 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10351
10352 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10353
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10356 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10359 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10360 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365
10366 #define _SYSCALL32
10367 /* Needed for new procfs interface on sparc-solaris. */
10368 #define _STRUCTURED_PROC 1
10369 #include <sys/procfs.h>
10370 int
10371 main ()
10372 {
10373 prgregset_t avar
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10380 else
10381 bfd_cv_have_sys_procfs_type_prgregset_t=no
10382
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 fi
10386
10387 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10388
10389 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10390
10391 fi
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10393 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10396 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10397 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402
10403 #define _SYSCALL32
10404 /* Needed for new procfs interface on sparc-solaris. */
10405 #define _STRUCTURED_PROC 1
10406 #include <sys/procfs.h>
10407 int
10408 main ()
10409 {
10410 prfpregset_t avar
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_compile "$LINENO"; then :
10416 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10417 else
10418 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10419
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 fi
10423
10424 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10425
10426 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10430 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10431
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10433 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10434 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439
10440 #define _SYSCALL32
10441 /* Needed for new procfs interface on sparc-solaris. */
10442 #define _STRUCTURED_PROC 1
10443 #include <sys/procfs.h>
10444 int
10445 main ()
10446 {
10447 prgregset32_t avar
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10454 else
10455 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10456
10457 fi
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 fi
10460
10461 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10462
10463 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10467 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10468
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10470 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10471 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476
10477 #define _SYSCALL32
10478 /* Needed for new procfs interface on sparc-solaris. */
10479 #define _STRUCTURED_PROC 1
10480 #include <sys/procfs.h>
10481 int
10482 main ()
10483 {
10484 lwpid_t avar
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_c_try_compile "$LINENO"; then :
10490 bfd_cv_have_sys_procfs_type_lwpid_t=yes
10491 else
10492 bfd_cv_have_sys_procfs_type_lwpid_t=no
10493
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 fi
10497
10498 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10499
10500 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10504 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10505
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10507 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10508 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513
10514 #define _SYSCALL32
10515 /* Needed for new procfs interface on sparc-solaris. */
10516 #define _STRUCTURED_PROC 1
10517 #include <sys/procfs.h>
10518 int
10519 main ()
10520 {
10521 psaddr_t avar
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_compile "$LINENO"; then :
10527 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10528 else
10529 bfd_cv_have_sys_procfs_type_psaddr_t=no
10530
10531 fi
10532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10533 fi
10534
10535 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10536
10537 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10538
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10541 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10542
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10544 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10545 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550
10551 #define _SYSCALL32
10552 /* Needed for new procfs interface on sparc-solaris. */
10553 #define _STRUCTURED_PROC 1
10554 #include <sys/procfs.h>
10555 int
10556 main ()
10557 {
10558 elf_fpregset_t avar
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_compile "$LINENO"; then :
10564 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
10565 else
10566 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10567
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 fi
10571
10572 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10573
10574 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10575
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10578 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10579
10580 fi
10581
10582
10583 # Check whether we will enable the inclusion of unit tests when
10584 # compiling GDB.
10585 #
10586 # The default value of this option changes depending whether we're on
10587 # development mode (in which case it's "true") or not (in which case
10588 # it's "false").
10589 # Check whether --enable-unit-tests was given.
10590 if test "${enable_unit_tests+set}" = set; then :
10591 enableval=$enable_unit_tests; case "${enableval}" in
10592 yes) enable_unittests=true ;;
10593 no) enable_unittests=false ;;
10594 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10595 esac
10596 else
10597 enable_unittests=$development
10598 fi
10599
10600
10601 if $enable_unittests; then
10602
10603 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10604
10605
10606 fi
10607
10608 if $enable_unittests; then
10609 SELFTEST_TRUE=
10610 SELFTEST_FALSE='#'
10611 else
10612 SELFTEST_TRUE='#'
10613 SELFTEST_FALSE=
10614 fi
10615
10616
10617 # Check the return and argument types of ptrace.
10618
10619
10620 for ac_header in sys/ptrace.h ptrace.h
10621 do :
10622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10625 cat >>confdefs.h <<_ACEOF
10626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627 _ACEOF
10628
10629 fi
10630
10631 done
10632
10633
10634 gdb_ptrace_headers='
10635 #include <sys/types.h>
10636 #if HAVE_SYS_PTRACE_H
10637 # include <sys/ptrace.h>
10638 #endif
10639 #if HAVE_UNISTD_H
10640 # include <unistd.h>
10641 #endif
10642 '
10643 # There is no point in checking if we don't have a prototype.
10644 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10645 "
10646 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
10647 ac_have_decl=1
10648 else
10649 ac_have_decl=0
10650 fi
10651
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_DECL_PTRACE $ac_have_decl
10654 _ACEOF
10655 if test $ac_have_decl = 1; then :
10656
10657 else
10658
10659 : ${gdb_cv_func_ptrace_ret='int'}
10660 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10661
10662 fi
10663
10664 # Check return type. Varargs (used on GNU/Linux) conflict with the
10665 # empty argument list, so check for that explicitly.
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10667 $as_echo_n "checking return type of ptrace... " >&6; }
10668 if ${gdb_cv_func_ptrace_ret+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 $gdb_ptrace_headers
10674 int
10675 main ()
10676 {
10677 extern long ptrace (enum __ptrace_request, ...);
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 gdb_cv_func_ptrace_ret='long'
10684 else
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 $gdb_ptrace_headers
10688 int
10689 main ()
10690 {
10691 extern int ptrace ();
10692 ;
10693 return 0;
10694 }
10695 _ACEOF
10696 if ac_fn_c_try_compile "$LINENO"; then :
10697 gdb_cv_func_ptrace_ret='int'
10698 else
10699 gdb_cv_func_ptrace_ret='long'
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 fi
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10706 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10707
10708 cat >>confdefs.h <<_ACEOF
10709 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10710 _ACEOF
10711
10712 # Check argument types.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10714 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10715 if ${gdb_cv_func_ptrace_args+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 $gdb_ptrace_headers
10722 int
10723 main ()
10724 {
10725 extern long ptrace (enum __ptrace_request, ...);
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 if ac_fn_c_try_compile "$LINENO"; then :
10731 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10732 else
10733
10734 for gdb_arg1 in 'int' 'long'; do
10735 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10736 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10737 for gdb_arg4 in 'int' 'long' 'void *'; do
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 $gdb_ptrace_headers
10741 int
10742 main ()
10743 {
10744
10745 extern $gdb_cv_func_ptrace_ret
10746 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10747
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10754 break 4;
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 for gdb_arg5 in 'int *' 'int' 'long'; do
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 $gdb_ptrace_headers
10761 int
10762 main ()
10763 {
10764
10765 extern $gdb_cv_func_ptrace_ret
10766 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10767
10768 ;
10769 return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_c_try_compile "$LINENO"; then :
10773
10774 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10775 break 5;
10776 fi
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 done
10779 done
10780 done
10781 done
10782 done
10783 # Provide a safe default value.
10784 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10785
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10790 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10791 ac_save_IFS=$IFS; IFS=','
10792 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10793 IFS=$ac_save_IFS
10794 shift
10795
10796 cat >>confdefs.h <<_ACEOF
10797 #define PTRACE_TYPE_ARG1 $1
10798 _ACEOF
10799
10800
10801 cat >>confdefs.h <<_ACEOF
10802 #define PTRACE_TYPE_ARG3 $3
10803 _ACEOF
10804
10805
10806 cat >>confdefs.h <<_ACEOF
10807 #define PTRACE_TYPE_ARG4 $4
10808 _ACEOF
10809
10810 if test -n "$5"; then
10811
10812 cat >>confdefs.h <<_ACEOF
10813 #define PTRACE_TYPE_ARG5 $5
10814 _ACEOF
10815
10816 fi
10817
10818
10819 # Detect support warning flags.
10820
10821 # Check whether --enable-werror was given.
10822 if test "${enable_werror+set}" = set; then :
10823 enableval=$enable_werror; case "${enableval}" in
10824 yes | y) ERROR_ON_WARNING="yes" ;;
10825 no | n) ERROR_ON_WARNING="no" ;;
10826 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10827 esac
10828 fi
10829
10830
10831 # Enable -Werror by default when using gcc. Turn it off for releases.
10832 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10833 ERROR_ON_WARNING=yes
10834 fi
10835
10836 WERROR_CFLAGS=""
10837 if test "${ERROR_ON_WARNING}" = yes ; then
10838 WERROR_CFLAGS="-Werror"
10839 fi
10840
10841 # The options we'll try to enable.
10842 build_warnings="-Wall -Wpointer-arith \
10843 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10844 -Wno-switch -Wno-char-subscripts \
10845 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10846 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10847 -Wno-mismatched-tags \
10848 -Wno-error=deprecated-register \
10849 -Wsuggest-override \
10850 -Wimplicit-fallthrough=3 \
10851 -Wduplicated-cond \
10852 -Wshadow=local \
10853 -Wdeprecated-copy \
10854 -Wdeprecated-copy-dtor \
10855 -Wredundant-move \
10856 -Wmissing-declarations \
10857 -Wstrict-null-sentinel \
10858 "
10859
10860 case "${host}" in
10861 *-*-mingw32*)
10862 # Enable -Wno-format by default when using gcc on mingw since many
10863 # GCC versions complain about %I64.
10864 build_warnings="$build_warnings -Wno-format" ;;
10865 *-*-solaris*)
10866 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10867 # doesn't understand.
10868 build_warnings="$build_warnings -Wno-unknown-pragmas"
10869 # Solaris 11 <unistd.h> marks vfork deprecated.
10870 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10871 *)
10872 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10873 # but there's a special case for this below.
10874 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10875 esac
10876
10877 # Check whether --enable-build-warnings was given.
10878 if test "${enable_build_warnings+set}" = set; then :
10879 enableval=$enable_build_warnings; case "${enableval}" in
10880 yes) ;;
10881 no) build_warnings="-w";;
10882 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10883 build_warnings="${build_warnings} ${t}";;
10884 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10885 build_warnings="${t} ${build_warnings}";;
10886 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10887 esac
10888 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10889 echo "Setting compiler warning flags = $build_warnings" 6>&1
10890 fi
10891 fi
10892 # Check whether --enable-gdb-build-warnings was given.
10893 if test "${enable_gdb_build_warnings+set}" = set; then :
10894 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10895 yes) ;;
10896 no) build_warnings="-w";;
10897 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10898 build_warnings="${build_warnings} ${t}";;
10899 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10900 build_warnings="${t} ${build_warnings}";;
10901 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10902 esac
10903 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10904 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10905 fi
10906 fi
10907
10908 # The set of warnings supported by a C++ compiler is not the same as
10909 # of the C compiler.
10910 ac_ext=cpp
10911 ac_cpp='$CXXCPP $CPPFLAGS'
10912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10915
10916
10917 WARN_CFLAGS=""
10918 if test "x${build_warnings}" != x -a "x$GCC" = xyes
10919 then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10921 $as_echo_n "checking compiler warning flags... " >&6; }
10922 # Separate out the -Werror flag as some files just cannot be
10923 # compiled with it enabled.
10924 for w in ${build_warnings}; do
10925 # GCC does not complain about -Wno-unknown-warning. Invert
10926 # and test -Wunknown-warning instead.
10927 case $w in
10928 -Wno-*)
10929 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10930 -Wformat-nonliteral)
10931 # gcc requires -Wformat before -Wformat-nonliteral
10932 # will work, so stick them together.
10933 w="-Wformat $w"
10934 wtest="$w"
10935 ;;
10936 *)
10937 wtest=$w ;;
10938 esac
10939
10940 case $w in
10941 -Werr*) WERROR_CFLAGS=-Werror ;;
10942 *)
10943 # Check whether GCC accepts it.
10944 saved_CFLAGS="$CFLAGS"
10945 CFLAGS="$CFLAGS -Werror $wtest"
10946 saved_CXXFLAGS="$CXXFLAGS"
10947 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10948 if test "x$w" = "x-Wunused-variable"; then
10949 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10950 # fixed in GCC 4.9. This test is derived from the gdb
10951 # source code that triggered this bug in GCC.
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954 struct scoped_restore_base {};
10955 struct scoped_restore_tmpl : public scoped_restore_base {
10956 ~scoped_restore_tmpl() {}
10957 };
10958 int
10959 main ()
10960 {
10961 const scoped_restore_base &b = scoped_restore_tmpl();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_cxx_try_compile "$LINENO"; then :
10967 WARN_CFLAGS="${WARN_CFLAGS} $w"
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 else
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 int
10975 main ()
10976 {
10977
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_cxx_try_compile "$LINENO"; then :
10983 WARN_CFLAGS="${WARN_CFLAGS} $w"
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 fi
10987 CFLAGS="$saved_CFLAGS"
10988 CXXFLAGS="$saved_CXXFLAGS"
10989 esac
10990 done
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10992 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10993 fi
10994
10995
10996
10997 ac_ext=c
10998 ac_cpp='$CPP $CPPFLAGS'
10999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11002
11003
11004
11005 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11006
11007 cat >>confdefs.h <<_ACEOF
11008 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11009 _ACEOF
11010
11011
11012 case ${host} in
11013 *mingw32*)
11014
11015 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11016
11017 ;;
11018 esac
11019
11020 ac_config_files="$ac_config_files Makefile"
11021
11022 cat >confcache <<\_ACEOF
11023 # This file is a shell script that caches the results of configure
11024 # tests run on this system so they can be shared between configure
11025 # scripts and configure runs, see configure's option --config-cache.
11026 # It is not useful on other systems. If it contains results you don't
11027 # want to keep, you may remove or edit it.
11028 #
11029 # config.status only pays attention to the cache file if you give it
11030 # the --recheck option to rerun configure.
11031 #
11032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11034 # following values.
11035
11036 _ACEOF
11037
11038 # The following way of writing the cache mishandles newlines in values,
11039 # but we know of no workaround that is simple, portable, and efficient.
11040 # So, we kill variables containing newlines.
11041 # Ultrix sh set writes to stderr and can't be redirected directly,
11042 # and sets the high bit in the cache file unless we assign to the vars.
11043 (
11044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11045 eval ac_val=\$$ac_var
11046 case $ac_val in #(
11047 *${as_nl}*)
11048 case $ac_var in #(
11049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11051 esac
11052 case $ac_var in #(
11053 _ | IFS | as_nl) ;; #(
11054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11055 *) { eval $ac_var=; unset $ac_var;} ;;
11056 esac ;;
11057 esac
11058 done
11059
11060 (set) 2>&1 |
11061 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11062 *${as_nl}ac_space=\ *)
11063 # `set' does not quote correctly, so add quotes: double-quote
11064 # substitution turns \\\\ into \\, and sed turns \\ into \.
11065 sed -n \
11066 "s/'/'\\\\''/g;
11067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11068 ;; #(
11069 *)
11070 # `set' quotes correctly as required by POSIX, so do not add quotes.
11071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11072 ;;
11073 esac |
11074 sort
11075 ) |
11076 sed '
11077 /^ac_cv_env_/b end
11078 t clear
11079 :clear
11080 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11081 t end
11082 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11083 :end' >>confcache
11084 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11085 if test -w "$cache_file"; then
11086 if test "x$cache_file" != "x/dev/null"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11088 $as_echo "$as_me: updating cache $cache_file" >&6;}
11089 if test ! -f "$cache_file" || test -h "$cache_file"; then
11090 cat confcache >"$cache_file"
11091 else
11092 case $cache_file in #(
11093 */* | ?:*)
11094 mv -f confcache "$cache_file"$$ &&
11095 mv -f "$cache_file"$$ "$cache_file" ;; #(
11096 *)
11097 mv -f confcache "$cache_file" ;;
11098 esac
11099 fi
11100 fi
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11103 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11104 fi
11105 fi
11106 rm -f confcache
11107
11108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11109 # Let make expand exec_prefix.
11110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11111
11112 DEFS=-DHAVE_CONFIG_H
11113
11114 ac_libobjs=
11115 ac_ltlibobjs=
11116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11117 # 1. Remove the extension, and $U if already installed.
11118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11119 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11121 # will be set to the directory where LIBOBJS objects are built.
11122 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11123 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11124 done
11125 LIBOBJS=$ac_libobjs
11126
11127 LTLIBOBJS=$ac_ltlibobjs
11128
11129
11130 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11131 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11133 fi
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11135 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11136 if test -n "$am_sleep_pid"; then
11137 # Hide warnings about reused PIDs.
11138 wait $am_sleep_pid 2>/dev/null
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11141 $as_echo "done" >&6; }
11142 if test -n "$EXEEXT"; then
11143 am__EXEEXT_TRUE=
11144 am__EXEEXT_FALSE='#'
11145 else
11146 am__EXEEXT_TRUE='#'
11147 am__EXEEXT_FALSE=
11148 fi
11149
11150 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11151 as_fn_error $? "conditional \"AMDEP\" was never defined.
11152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11153 fi
11154 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11155 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11157 fi
11158 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11159 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11161 fi
11162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11163 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11165 fi
11166 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11167 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11169 fi
11170
11171 : "${CONFIG_STATUS=./config.status}"
11172 ac_write_fail=0
11173 ac_clean_files_save=$ac_clean_files
11174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11176 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11177 as_write_fail=0
11178 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11179 #! $SHELL
11180 # Generated by $as_me.
11181 # Run this file to recreate the current configuration.
11182 # Compiler output produced by configure, useful for debugging
11183 # configure, is in config.log if it exists.
11184
11185 debug=false
11186 ac_cs_recheck=false
11187 ac_cs_silent=false
11188
11189 SHELL=\${CONFIG_SHELL-$SHELL}
11190 export SHELL
11191 _ASEOF
11192 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11193 ## -------------------- ##
11194 ## M4sh Initialization. ##
11195 ## -------------------- ##
11196
11197 # Be more Bourne compatible
11198 DUALCASE=1; export DUALCASE # for MKS sh
11199 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11200 emulate sh
11201 NULLCMD=:
11202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11203 # is contrary to our usage. Disable this feature.
11204 alias -g '${1+"$@"}'='"$@"'
11205 setopt NO_GLOB_SUBST
11206 else
11207 case `(set -o) 2>/dev/null` in #(
11208 *posix*) :
11209 set -o posix ;; #(
11210 *) :
11211 ;;
11212 esac
11213 fi
11214
11215
11216 as_nl='
11217 '
11218 export as_nl
11219 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11220 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11223 # Prefer a ksh shell builtin over an external printf program on Solaris,
11224 # but without wasting forks for bash or zsh.
11225 if test -z "$BASH_VERSION$ZSH_VERSION" \
11226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11227 as_echo='print -r --'
11228 as_echo_n='print -rn --'
11229 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11230 as_echo='printf %s\n'
11231 as_echo_n='printf %s'
11232 else
11233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11235 as_echo_n='/usr/ucb/echo -n'
11236 else
11237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11238 as_echo_n_body='eval
11239 arg=$1;
11240 case $arg in #(
11241 *"$as_nl"*)
11242 expr "X$arg" : "X\\(.*\\)$as_nl";
11243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11244 esac;
11245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11246 '
11247 export as_echo_n_body
11248 as_echo_n='sh -c $as_echo_n_body as_echo'
11249 fi
11250 export as_echo_body
11251 as_echo='sh -c $as_echo_body as_echo'
11252 fi
11253
11254 # The user is always right.
11255 if test "${PATH_SEPARATOR+set}" != set; then
11256 PATH_SEPARATOR=:
11257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11259 PATH_SEPARATOR=';'
11260 }
11261 fi
11262
11263
11264 # IFS
11265 # We need space, tab and new line, in precisely that order. Quoting is
11266 # there to prevent editors from complaining about space-tab.
11267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11268 # splitting by setting IFS to empty value.)
11269 IFS=" "" $as_nl"
11270
11271 # Find who we are. Look in the path if we contain no directory separator.
11272 as_myself=
11273 case $0 in #((
11274 *[\\/]* ) as_myself=$0 ;;
11275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11281 done
11282 IFS=$as_save_IFS
11283
11284 ;;
11285 esac
11286 # We did not find ourselves, most probably we were run as `sh COMMAND'
11287 # in which case we are not to be found in the path.
11288 if test "x$as_myself" = x; then
11289 as_myself=$0
11290 fi
11291 if test ! -f "$as_myself"; then
11292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11293 exit 1
11294 fi
11295
11296 # Unset variables that we do not need and which cause bugs (e.g. in
11297 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11298 # suppresses any "Segmentation fault" message there. '((' could
11299 # trigger a bug in pdksh 5.2.14.
11300 for as_var in BASH_ENV ENV MAIL MAILPATH
11301 do eval test x\${$as_var+set} = xset \
11302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11303 done
11304 PS1='$ '
11305 PS2='> '
11306 PS4='+ '
11307
11308 # NLS nuisances.
11309 LC_ALL=C
11310 export LC_ALL
11311 LANGUAGE=C
11312 export LANGUAGE
11313
11314 # CDPATH.
11315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11316
11317
11318 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11319 # ----------------------------------------
11320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11322 # script with STATUS, using 1 if that was 0.
11323 as_fn_error ()
11324 {
11325 as_status=$1; test $as_status -eq 0 && as_status=1
11326 if test "$4"; then
11327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11329 fi
11330 $as_echo "$as_me: error: $2" >&2
11331 as_fn_exit $as_status
11332 } # as_fn_error
11333
11334
11335 # as_fn_set_status STATUS
11336 # -----------------------
11337 # Set $? to STATUS, without forking.
11338 as_fn_set_status ()
11339 {
11340 return $1
11341 } # as_fn_set_status
11342
11343 # as_fn_exit STATUS
11344 # -----------------
11345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11346 as_fn_exit ()
11347 {
11348 set +e
11349 as_fn_set_status $1
11350 exit $1
11351 } # as_fn_exit
11352
11353 # as_fn_unset VAR
11354 # ---------------
11355 # Portably unset VAR.
11356 as_fn_unset ()
11357 {
11358 { eval $1=; unset $1;}
11359 }
11360 as_unset=as_fn_unset
11361 # as_fn_append VAR VALUE
11362 # ----------------------
11363 # Append the text in VALUE to the end of the definition contained in VAR. Take
11364 # advantage of any shell optimizations that allow amortized linear growth over
11365 # repeated appends, instead of the typical quadratic growth present in naive
11366 # implementations.
11367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11368 eval 'as_fn_append ()
11369 {
11370 eval $1+=\$2
11371 }'
11372 else
11373 as_fn_append ()
11374 {
11375 eval $1=\$$1\$2
11376 }
11377 fi # as_fn_append
11378
11379 # as_fn_arith ARG...
11380 # ------------------
11381 # Perform arithmetic evaluation on the ARGs, and store the result in the
11382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11383 # must be portable across $(()) and expr.
11384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11385 eval 'as_fn_arith ()
11386 {
11387 as_val=$(( $* ))
11388 }'
11389 else
11390 as_fn_arith ()
11391 {
11392 as_val=`expr "$@" || test $? -eq 1`
11393 }
11394 fi # as_fn_arith
11395
11396
11397 if expr a : '\(a\)' >/dev/null 2>&1 &&
11398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11399 as_expr=expr
11400 else
11401 as_expr=false
11402 fi
11403
11404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11405 as_basename=basename
11406 else
11407 as_basename=false
11408 fi
11409
11410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11411 as_dirname=dirname
11412 else
11413 as_dirname=false
11414 fi
11415
11416 as_me=`$as_basename -- "$0" ||
11417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11418 X"$0" : 'X\(//\)$' \| \
11419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11420 $as_echo X/"$0" |
11421 sed '/^.*\/\([^/][^/]*\)\/*$/{
11422 s//\1/
11423 q
11424 }
11425 /^X\/\(\/\/\)$/{
11426 s//\1/
11427 q
11428 }
11429 /^X\/\(\/\).*/{
11430 s//\1/
11431 q
11432 }
11433 s/.*/./; q'`
11434
11435 # Avoid depending upon Character Ranges.
11436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11439 as_cr_digits='0123456789'
11440 as_cr_alnum=$as_cr_Letters$as_cr_digits
11441
11442 ECHO_C= ECHO_N= ECHO_T=
11443 case `echo -n x` in #(((((
11444 -n*)
11445 case `echo 'xy\c'` in
11446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11447 xy) ECHO_C='\c';;
11448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11449 ECHO_T=' ';;
11450 esac;;
11451 *)
11452 ECHO_N='-n';;
11453 esac
11454
11455 rm -f conf$$ conf$$.exe conf$$.file
11456 if test -d conf$$.dir; then
11457 rm -f conf$$.dir/conf$$.file
11458 else
11459 rm -f conf$$.dir
11460 mkdir conf$$.dir 2>/dev/null
11461 fi
11462 if (echo >conf$$.file) 2>/dev/null; then
11463 if ln -s conf$$.file conf$$ 2>/dev/null; then
11464 as_ln_s='ln -s'
11465 # ... but there are two gotchas:
11466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11468 # In both cases, we have to default to `cp -pR'.
11469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11470 as_ln_s='cp -pR'
11471 elif ln conf$$.file conf$$ 2>/dev/null; then
11472 as_ln_s=ln
11473 else
11474 as_ln_s='cp -pR'
11475 fi
11476 else
11477 as_ln_s='cp -pR'
11478 fi
11479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11480 rmdir conf$$.dir 2>/dev/null
11481
11482
11483 # as_fn_mkdir_p
11484 # -------------
11485 # Create "$as_dir" as a directory, including parents if necessary.
11486 as_fn_mkdir_p ()
11487 {
11488
11489 case $as_dir in #(
11490 -*) as_dir=./$as_dir;;
11491 esac
11492 test -d "$as_dir" || eval $as_mkdir_p || {
11493 as_dirs=
11494 while :; do
11495 case $as_dir in #(
11496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11497 *) as_qdir=$as_dir;;
11498 esac
11499 as_dirs="'$as_qdir' $as_dirs"
11500 as_dir=`$as_dirname -- "$as_dir" ||
11501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11502 X"$as_dir" : 'X\(//\)[^/]' \| \
11503 X"$as_dir" : 'X\(//\)$' \| \
11504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11505 $as_echo X"$as_dir" |
11506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11507 s//\1/
11508 q
11509 }
11510 /^X\(\/\/\)[^/].*/{
11511 s//\1/
11512 q
11513 }
11514 /^X\(\/\/\)$/{
11515 s//\1/
11516 q
11517 }
11518 /^X\(\/\).*/{
11519 s//\1/
11520 q
11521 }
11522 s/.*/./; q'`
11523 test -d "$as_dir" && break
11524 done
11525 test -z "$as_dirs" || eval "mkdir $as_dirs"
11526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11527
11528
11529 } # as_fn_mkdir_p
11530 if mkdir -p . 2>/dev/null; then
11531 as_mkdir_p='mkdir -p "$as_dir"'
11532 else
11533 test -d ./-p && rmdir ./-p
11534 as_mkdir_p=false
11535 fi
11536
11537
11538 # as_fn_executable_p FILE
11539 # -----------------------
11540 # Test if FILE is an executable regular file.
11541 as_fn_executable_p ()
11542 {
11543 test -f "$1" && test -x "$1"
11544 } # as_fn_executable_p
11545 as_test_x='test -x'
11546 as_executable_p=as_fn_executable_p
11547
11548 # Sed expression to map a string onto a valid CPP name.
11549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11550
11551 # Sed expression to map a string onto a valid variable name.
11552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11553
11554
11555 exec 6>&1
11556 ## ----------------------------------- ##
11557 ## Main body of $CONFIG_STATUS script. ##
11558 ## ----------------------------------- ##
11559 _ASEOF
11560 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11561
11562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11563 # Save the log message, to keep $0 and so on meaningful, and to
11564 # report actual input values of CONFIG_FILES etc. instead of their
11565 # values after options handling.
11566 ac_log="
11567 This file was extended by gdbsupport $as_me 1.0, which was
11568 generated by GNU Autoconf 2.69. Invocation command line was
11569
11570 CONFIG_FILES = $CONFIG_FILES
11571 CONFIG_HEADERS = $CONFIG_HEADERS
11572 CONFIG_LINKS = $CONFIG_LINKS
11573 CONFIG_COMMANDS = $CONFIG_COMMANDS
11574 $ $0 $@
11575
11576 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11577 "
11578
11579 _ACEOF
11580
11581 case $ac_config_files in *"
11582 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11583 esac
11584
11585 case $ac_config_headers in *"
11586 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11587 esac
11588
11589
11590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591 # Files that config.status was made for.
11592 config_files="$ac_config_files"
11593 config_headers="$ac_config_headers"
11594 config_commands="$ac_config_commands"
11595
11596 _ACEOF
11597
11598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11599 ac_cs_usage="\
11600 \`$as_me' instantiates files and other configuration actions
11601 from templates according to the current configuration. Unless the files
11602 and actions are specified as TAGs, all are instantiated by default.
11603
11604 Usage: $0 [OPTION]... [TAG]...
11605
11606 -h, --help print this help, then exit
11607 -V, --version print version number and configuration settings, then exit
11608 --config print configuration, then exit
11609 -q, --quiet, --silent
11610 do not print progress messages
11611 -d, --debug don't remove temporary files
11612 --recheck update $as_me by reconfiguring in the same conditions
11613 --file=FILE[:TEMPLATE]
11614 instantiate the configuration file FILE
11615 --header=FILE[:TEMPLATE]
11616 instantiate the configuration header FILE
11617
11618 Configuration files:
11619 $config_files
11620
11621 Configuration headers:
11622 $config_headers
11623
11624 Configuration commands:
11625 $config_commands
11626
11627 Report bugs to the package provider."
11628
11629 _ACEOF
11630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11631 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11632 ac_cs_version="\\
11633 gdbsupport config.status 1.0
11634 configured by $0, generated by GNU Autoconf 2.69,
11635 with options \\"\$ac_cs_config\\"
11636
11637 Copyright (C) 2012 Free Software Foundation, Inc.
11638 This config.status script is free software; the Free Software Foundation
11639 gives unlimited permission to copy, distribute and modify it."
11640
11641 ac_pwd='$ac_pwd'
11642 srcdir='$srcdir'
11643 INSTALL='$INSTALL'
11644 MKDIR_P='$MKDIR_P'
11645 AWK='$AWK'
11646 test -n "\$AWK" || AWK=awk
11647 _ACEOF
11648
11649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11650 # The default lists apply if the user does not specify any file.
11651 ac_need_defaults=:
11652 while test $# != 0
11653 do
11654 case $1 in
11655 --*=?*)
11656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11658 ac_shift=:
11659 ;;
11660 --*=)
11661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11662 ac_optarg=
11663 ac_shift=:
11664 ;;
11665 *)
11666 ac_option=$1
11667 ac_optarg=$2
11668 ac_shift=shift
11669 ;;
11670 esac
11671
11672 case $ac_option in
11673 # Handling of the options.
11674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11675 ac_cs_recheck=: ;;
11676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11677 $as_echo "$ac_cs_version"; exit ;;
11678 --config | --confi | --conf | --con | --co | --c )
11679 $as_echo "$ac_cs_config"; exit ;;
11680 --debug | --debu | --deb | --de | --d | -d )
11681 debug=: ;;
11682 --file | --fil | --fi | --f )
11683 $ac_shift
11684 case $ac_optarg in
11685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11686 '') as_fn_error $? "missing file argument" ;;
11687 esac
11688 as_fn_append CONFIG_FILES " '$ac_optarg'"
11689 ac_need_defaults=false;;
11690 --header | --heade | --head | --hea )
11691 $ac_shift
11692 case $ac_optarg in
11693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11694 esac
11695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11696 ac_need_defaults=false;;
11697 --he | --h)
11698 # Conflict between --help and --header
11699 as_fn_error $? "ambiguous option: \`$1'
11700 Try \`$0 --help' for more information.";;
11701 --help | --hel | -h )
11702 $as_echo "$ac_cs_usage"; exit ;;
11703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11705 ac_cs_silent=: ;;
11706
11707 # This is an error.
11708 -*) as_fn_error $? "unrecognized option: \`$1'
11709 Try \`$0 --help' for more information." ;;
11710
11711 *) as_fn_append ac_config_targets " $1"
11712 ac_need_defaults=false ;;
11713
11714 esac
11715 shift
11716 done
11717
11718 ac_configure_extra_args=
11719
11720 if $ac_cs_silent; then
11721 exec 6>/dev/null
11722 ac_configure_extra_args="$ac_configure_extra_args --silent"
11723 fi
11724
11725 _ACEOF
11726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11727 if \$ac_cs_recheck; then
11728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11729 shift
11730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11731 CONFIG_SHELL='$SHELL'
11732 export CONFIG_SHELL
11733 exec "\$@"
11734 fi
11735
11736 _ACEOF
11737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11738 exec 5>>config.log
11739 {
11740 echo
11741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11742 ## Running $as_me. ##
11743 _ASBOX
11744 $as_echo "$ac_log"
11745 } >&5
11746
11747 _ACEOF
11748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11749 #
11750 # INIT-COMMANDS
11751 #
11752 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11753
11754 _ACEOF
11755
11756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11757
11758 # Handling of arguments.
11759 for ac_config_target in $ac_config_targets
11760 do
11761 case $ac_config_target in
11762 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11763 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11765
11766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11767 esac
11768 done
11769
11770
11771 # If the user did not use the arguments to specify the items to instantiate,
11772 # then the envvar interface is used. Set only those that are not.
11773 # We use the long form for the default assignment because of an extremely
11774 # bizarre bug on SunOS 4.1.3.
11775 if $ac_need_defaults; then
11776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11779 fi
11780
11781 # Have a temporary directory for convenience. Make it in the build tree
11782 # simply because there is no reason against having it here, and in addition,
11783 # creating and moving files from /tmp can sometimes cause problems.
11784 # Hook for its removal unless debugging.
11785 # Note that there is a small window in which the directory will not be cleaned:
11786 # after its creation but before its name has been assigned to `$tmp'.
11787 $debug ||
11788 {
11789 tmp= ac_tmp=
11790 trap 'exit_status=$?
11791 : "${ac_tmp:=$tmp}"
11792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11793 ' 0
11794 trap 'as_fn_exit 1' 1 2 13 15
11795 }
11796 # Create a (secure) tmp directory for tmp files.
11797
11798 {
11799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11800 test -d "$tmp"
11801 } ||
11802 {
11803 tmp=./conf$$-$RANDOM
11804 (umask 077 && mkdir "$tmp")
11805 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11806 ac_tmp=$tmp
11807
11808 # Set up the scripts for CONFIG_FILES section.
11809 # No need to generate them if there are no CONFIG_FILES.
11810 # This happens for instance with `./config.status config.h'.
11811 if test -n "$CONFIG_FILES"; then
11812
11813
11814 ac_cr=`echo X | tr X '\015'`
11815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11816 # But we know of no other shell where ac_cr would be empty at this
11817 # point, so we can use a bashism as a fallback.
11818 if test "x$ac_cr" = x; then
11819 eval ac_cr=\$\'\\r\'
11820 fi
11821 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11823 ac_cs_awk_cr='\\r'
11824 else
11825 ac_cs_awk_cr=$ac_cr
11826 fi
11827
11828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11829 _ACEOF
11830
11831
11832 {
11833 echo "cat >conf$$subs.awk <<_ACEOF" &&
11834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11835 echo "_ACEOF"
11836 } >conf$$subs.sh ||
11837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11839 ac_delim='%!_!# '
11840 for ac_last_try in false false false false false :; do
11841 . ./conf$$subs.sh ||
11842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11843
11844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11845 if test $ac_delim_n = $ac_delim_num; then
11846 break
11847 elif $ac_last_try; then
11848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11849 else
11850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11851 fi
11852 done
11853 rm -f conf$$subs.sh
11854
11855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11857 _ACEOF
11858 sed -n '
11859 h
11860 s/^/S["/; s/!.*/"]=/
11861 p
11862 g
11863 s/^[^!]*!//
11864 :repl
11865 t repl
11866 s/'"$ac_delim"'$//
11867 t delim
11868 :nl
11869 h
11870 s/\(.\{148\}\)..*/\1/
11871 t more1
11872 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11873 p
11874 n
11875 b repl
11876 :more1
11877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11878 p
11879 g
11880 s/.\{148\}//
11881 t nl
11882 :delim
11883 h
11884 s/\(.\{148\}\)..*/\1/
11885 t more2
11886 s/["\\]/\\&/g; s/^/"/; s/$/"/
11887 p
11888 b
11889 :more2
11890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11891 p
11892 g
11893 s/.\{148\}//
11894 t delim
11895 ' <conf$$subs.awk | sed '
11896 /^[^""]/{
11897 N
11898 s/\n//
11899 }
11900 ' >>$CONFIG_STATUS || ac_write_fail=1
11901 rm -f conf$$subs.awk
11902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11903 _ACAWK
11904 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11905 for (key in S) S_is_set[key] = 1
11906 FS = "\a"
11907
11908 }
11909 {
11910 line = $ 0
11911 nfields = split(line, field, "@")
11912 substed = 0
11913 len = length(field[1])
11914 for (i = 2; i < nfields; i++) {
11915 key = field[i]
11916 keylen = length(key)
11917 if (S_is_set[key]) {
11918 value = S[key]
11919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11920 len += length(value) + length(field[++i])
11921 substed = 1
11922 } else
11923 len += 1 + keylen
11924 }
11925
11926 print line
11927 }
11928
11929 _ACAWK
11930 _ACEOF
11931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11932 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11933 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11934 else
11935 cat
11936 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11937 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11938 _ACEOF
11939
11940 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11941 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11942 # trailing colons and then remove the whole line if VPATH becomes empty
11943 # (actually we leave an empty line to preserve line numbers).
11944 if test "x$srcdir" = x.; then
11945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11946 h
11947 s///
11948 s/^/:/
11949 s/[ ]*$/:/
11950 s/:\$(srcdir):/:/g
11951 s/:\${srcdir}:/:/g
11952 s/:@srcdir@:/:/g
11953 s/^:*//
11954 s/:*$//
11955 x
11956 s/\(=[ ]*\).*/\1/
11957 G
11958 s/\n//
11959 s/^[^=]*=[ ]*$//
11960 }'
11961 fi
11962
11963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11964 fi # test -n "$CONFIG_FILES"
11965
11966 # Set up the scripts for CONFIG_HEADERS section.
11967 # No need to generate them if there are no CONFIG_HEADERS.
11968 # This happens for instance with `./config.status Makefile'.
11969 if test -n "$CONFIG_HEADERS"; then
11970 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11971 BEGIN {
11972 _ACEOF
11973
11974 # Transform confdefs.h into an awk script `defines.awk', embedded as
11975 # here-document in config.status, that substitutes the proper values into
11976 # config.h.in to produce config.h.
11977
11978 # Create a delimiter string that does not exist in confdefs.h, to ease
11979 # handling of long lines.
11980 ac_delim='%!_!# '
11981 for ac_last_try in false false :; do
11982 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11983 if test -z "$ac_tt"; then
11984 break
11985 elif $ac_last_try; then
11986 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11987 else
11988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11989 fi
11990 done
11991
11992 # For the awk script, D is an array of macro values keyed by name,
11993 # likewise P contains macro parameters if any. Preserve backslash
11994 # newline sequences.
11995
11996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11997 sed -n '
11998 s/.\{148\}/&'"$ac_delim"'/g
11999 t rset
12000 :rset
12001 s/^[ ]*#[ ]*define[ ][ ]*/ /
12002 t def
12003 d
12004 :def
12005 s/\\$//
12006 t bsnl
12007 s/["\\]/\\&/g
12008 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12009 D["\1"]=" \3"/p
12010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12011 d
12012 :bsnl
12013 s/["\\]/\\&/g
12014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12015 D["\1"]=" \3\\\\\\n"\\/p
12016 t cont
12017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12018 t cont
12019 d
12020 :cont
12021 n
12022 s/.\{148\}/&'"$ac_delim"'/g
12023 t clear
12024 :clear
12025 s/\\$//
12026 t bsnlc
12027 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12028 d
12029 :bsnlc
12030 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12031 b cont
12032 ' <confdefs.h | sed '
12033 s/'"$ac_delim"'/"\\\
12034 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12035
12036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037 for (key in D) D_is_set[key] = 1
12038 FS = "\a"
12039 }
12040 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12041 line = \$ 0
12042 split(line, arg, " ")
12043 if (arg[1] == "#") {
12044 defundef = arg[2]
12045 mac1 = arg[3]
12046 } else {
12047 defundef = substr(arg[1], 2)
12048 mac1 = arg[2]
12049 }
12050 split(mac1, mac2, "(") #)
12051 macro = mac2[1]
12052 prefix = substr(line, 1, index(line, defundef) - 1)
12053 if (D_is_set[macro]) {
12054 # Preserve the white space surrounding the "#".
12055 print prefix "define", macro P[macro] D[macro]
12056 next
12057 } else {
12058 # Replace #undef with comments. This is necessary, for example,
12059 # in the case of _POSIX_SOURCE, which is predefined and required
12060 # on some systems where configure will not decide to define it.
12061 if (defundef == "undef") {
12062 print "/*", prefix defundef, macro, "*/"
12063 next
12064 }
12065 }
12066 }
12067 { print }
12068 _ACAWK
12069 _ACEOF
12070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12071 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12072 fi # test -n "$CONFIG_HEADERS"
12073
12074
12075 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12076 shift
12077 for ac_tag
12078 do
12079 case $ac_tag in
12080 :[FHLC]) ac_mode=$ac_tag; continue;;
12081 esac
12082 case $ac_mode$ac_tag in
12083 :[FHL]*:*);;
12084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12085 :[FH]-) ac_tag=-:-;;
12086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12087 esac
12088 ac_save_IFS=$IFS
12089 IFS=:
12090 set x $ac_tag
12091 IFS=$ac_save_IFS
12092 shift
12093 ac_file=$1
12094 shift
12095
12096 case $ac_mode in
12097 :L) ac_source=$1;;
12098 :[FH])
12099 ac_file_inputs=
12100 for ac_f
12101 do
12102 case $ac_f in
12103 -) ac_f="$ac_tmp/stdin";;
12104 *) # Look for the file first in the build tree, then in the source tree
12105 # (if the path is not absolute). The absolute path cannot be DOS-style,
12106 # because $ac_f cannot contain `:'.
12107 test -f "$ac_f" ||
12108 case $ac_f in
12109 [\\/$]*) false;;
12110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12111 esac ||
12112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12113 esac
12114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12115 as_fn_append ac_file_inputs " '$ac_f'"
12116 done
12117
12118 # Let's still pretend it is `configure' which instantiates (i.e., don't
12119 # use $as_me), people would be surprised to read:
12120 # /* config.h. Generated by config.status. */
12121 configure_input='Generated from '`
12122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12123 `' by configure.'
12124 if test x"$ac_file" != x-; then
12125 configure_input="$ac_file. $configure_input"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12127 $as_echo "$as_me: creating $ac_file" >&6;}
12128 fi
12129 # Neutralize special characters interpreted by sed in replacement strings.
12130 case $configure_input in #(
12131 *\&* | *\|* | *\\* )
12132 ac_sed_conf_input=`$as_echo "$configure_input" |
12133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12134 *) ac_sed_conf_input=$configure_input;;
12135 esac
12136
12137 case $ac_tag in
12138 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12140 esac
12141 ;;
12142 esac
12143
12144 ac_dir=`$as_dirname -- "$ac_file" ||
12145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12146 X"$ac_file" : 'X\(//\)[^/]' \| \
12147 X"$ac_file" : 'X\(//\)$' \| \
12148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12149 $as_echo X"$ac_file" |
12150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12151 s//\1/
12152 q
12153 }
12154 /^X\(\/\/\)[^/].*/{
12155 s//\1/
12156 q
12157 }
12158 /^X\(\/\/\)$/{
12159 s//\1/
12160 q
12161 }
12162 /^X\(\/\).*/{
12163 s//\1/
12164 q
12165 }
12166 s/.*/./; q'`
12167 as_dir="$ac_dir"; as_fn_mkdir_p
12168 ac_builddir=.
12169
12170 case "$ac_dir" in
12171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12172 *)
12173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12174 # A ".." for each directory in $ac_dir_suffix.
12175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12176 case $ac_top_builddir_sub in
12177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12179 esac ;;
12180 esac
12181 ac_abs_top_builddir=$ac_pwd
12182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12183 # for backward compatibility:
12184 ac_top_builddir=$ac_top_build_prefix
12185
12186 case $srcdir in
12187 .) # We are building in place.
12188 ac_srcdir=.
12189 ac_top_srcdir=$ac_top_builddir_sub
12190 ac_abs_top_srcdir=$ac_pwd ;;
12191 [\\/]* | ?:[\\/]* ) # Absolute name.
12192 ac_srcdir=$srcdir$ac_dir_suffix;
12193 ac_top_srcdir=$srcdir
12194 ac_abs_top_srcdir=$srcdir ;;
12195 *) # Relative name.
12196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12197 ac_top_srcdir=$ac_top_build_prefix$srcdir
12198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12199 esac
12200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12201
12202
12203 case $ac_mode in
12204 :F)
12205 #
12206 # CONFIG_FILE
12207 #
12208
12209 case $INSTALL in
12210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12212 esac
12213 ac_MKDIR_P=$MKDIR_P
12214 case $MKDIR_P in
12215 [\\/$]* | ?:[\\/]* ) ;;
12216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12217 esac
12218 _ACEOF
12219
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 # If the template does not know about datarootdir, expand it.
12222 # FIXME: This hack should be removed a few years after 2.60.
12223 ac_datarootdir_hack=; ac_datarootdir_seen=
12224 ac_sed_dataroot='
12225 /datarootdir/ {
12226 p
12227 q
12228 }
12229 /@datadir@/p
12230 /@docdir@/p
12231 /@infodir@/p
12232 /@localedir@/p
12233 /@mandir@/p'
12234 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12235 *datarootdir*) ac_datarootdir_seen=yes;;
12236 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12238 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12239 _ACEOF
12240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12241 ac_datarootdir_hack='
12242 s&@datadir@&$datadir&g
12243 s&@docdir@&$docdir&g
12244 s&@infodir@&$infodir&g
12245 s&@localedir@&$localedir&g
12246 s&@mandir@&$mandir&g
12247 s&\\\${datarootdir}&$datarootdir&g' ;;
12248 esac
12249 _ACEOF
12250
12251 # Neutralize VPATH when `$srcdir' = `.'.
12252 # Shell code in configure.ac might set extrasub.
12253 # FIXME: do we really want to maintain this feature?
12254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255 ac_sed_extra="$ac_vpsub
12256 $extrasub
12257 _ACEOF
12258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12259 :t
12260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12261 s|@configure_input@|$ac_sed_conf_input|;t t
12262 s&@top_builddir@&$ac_top_builddir_sub&;t t
12263 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12264 s&@srcdir@&$ac_srcdir&;t t
12265 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12266 s&@top_srcdir@&$ac_top_srcdir&;t t
12267 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12268 s&@builddir@&$ac_builddir&;t t
12269 s&@abs_builddir@&$ac_abs_builddir&;t t
12270 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12271 s&@INSTALL@&$ac_INSTALL&;t t
12272 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12273 $ac_datarootdir_hack
12274 "
12275 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12277
12278 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12281 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12283 which seems to be undefined. Please make sure it is defined" >&5
12284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12285 which seems to be undefined. Please make sure it is defined" >&2;}
12286
12287 rm -f "$ac_tmp/stdin"
12288 case $ac_file in
12289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12291 esac \
12292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12293 ;;
12294 :H)
12295 #
12296 # CONFIG_HEADER
12297 #
12298 if test x"$ac_file" != x-; then
12299 {
12300 $as_echo "/* $configure_input */" \
12301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12302 } >"$ac_tmp/config.h" \
12303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12307 else
12308 rm -f "$ac_file"
12309 mv "$ac_tmp/config.h" "$ac_file" \
12310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12311 fi
12312 else
12313 $as_echo "/* $configure_input */" \
12314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12315 || as_fn_error $? "could not create -" "$LINENO" 5
12316 fi
12317 # Compute "$ac_file"'s index in $config_headers.
12318 _am_arg="$ac_file"
12319 _am_stamp_count=1
12320 for _am_header in $config_headers :; do
12321 case $_am_header in
12322 $_am_arg | $_am_arg:* )
12323 break ;;
12324 * )
12325 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12326 esac
12327 done
12328 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12329 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12330 X"$_am_arg" : 'X\(//\)[^/]' \| \
12331 X"$_am_arg" : 'X\(//\)$' \| \
12332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12333 $as_echo X"$_am_arg" |
12334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12335 s//\1/
12336 q
12337 }
12338 /^X\(\/\/\)[^/].*/{
12339 s//\1/
12340 q
12341 }
12342 /^X\(\/\/\)$/{
12343 s//\1/
12344 q
12345 }
12346 /^X\(\/\).*/{
12347 s//\1/
12348 q
12349 }
12350 s/.*/./; q'`/stamp-h$_am_stamp_count
12351 ;;
12352
12353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12354 $as_echo "$as_me: executing $ac_file commands" >&6;}
12355 ;;
12356 esac
12357
12358
12359 case $ac_file$ac_mode in
12360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12361 # Older Autoconf quotes --file arguments for eval, but not when files
12362 # are listed without --file. Let's play safe and only enable the eval
12363 # if we detect the quoting.
12364 case $CONFIG_FILES in
12365 *\'*) eval set x "$CONFIG_FILES" ;;
12366 *) set x $CONFIG_FILES ;;
12367 esac
12368 shift
12369 for mf
12370 do
12371 # Strip MF so we end up with the name of the file.
12372 mf=`echo "$mf" | sed -e 's/:.*$//'`
12373 # Check whether this is an Automake generated Makefile or not.
12374 # We used to match only the files named 'Makefile.in', but
12375 # some people rename them; so instead we look at the file content.
12376 # Grep'ing the first line is not enough: some people post-process
12377 # each Makefile.in and add a new line on top of each file to say so.
12378 # Grep'ing the whole file is not good either: AIX grep has a line
12379 # limit of 2048, but all sed's we know have understand at least 4000.
12380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12381 dirpart=`$as_dirname -- "$mf" ||
12382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$mf" : 'X\(//\)[^/]' \| \
12384 X"$mf" : 'X\(//\)$' \| \
12385 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12386 $as_echo X"$mf" |
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12388 s//\1/
12389 q
12390 }
12391 /^X\(\/\/\)[^/].*/{
12392 s//\1/
12393 q
12394 }
12395 /^X\(\/\/\)$/{
12396 s//\1/
12397 q
12398 }
12399 /^X\(\/\).*/{
12400 s//\1/
12401 q
12402 }
12403 s/.*/./; q'`
12404 else
12405 continue
12406 fi
12407 # Extract the definition of DEPDIR, am__include, and am__quote
12408 # from the Makefile without running 'make'.
12409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12410 test -z "$DEPDIR" && continue
12411 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12412 test -z "$am__include" && continue
12413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12414 # Find all dependency output files, they are included files with
12415 # $(DEPDIR) in their names. We invoke sed twice because it is the
12416 # simplest approach to changing $(DEPDIR) to its actual value in the
12417 # expansion.
12418 for file in `sed -n "
12419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12421 # Make sure the directory exists.
12422 test -f "$dirpart/$file" && continue
12423 fdir=`$as_dirname -- "$file" ||
12424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12425 X"$file" : 'X\(//\)[^/]' \| \
12426 X"$file" : 'X\(//\)$' \| \
12427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12428 $as_echo X"$file" |
12429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12430 s//\1/
12431 q
12432 }
12433 /^X\(\/\/\)[^/].*/{
12434 s//\1/
12435 q
12436 }
12437 /^X\(\/\/\)$/{
12438 s//\1/
12439 q
12440 }
12441 /^X\(\/\).*/{
12442 s//\1/
12443 q
12444 }
12445 s/.*/./; q'`
12446 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12447 # echo "creating $dirpart/$file"
12448 echo '# dummy' > "$dirpart/$file"
12449 done
12450 done
12451 }
12452 ;;
12453
12454 esac
12455 done # for ac_tag
12456
12457
12458 as_fn_exit 0
12459 _ACEOF
12460 ac_clean_files=$ac_clean_files_save
12461
12462 test $ac_write_fail = 0 ||
12463 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12464
12465
12466 # configure is writing to config.log, and then calls config.status.
12467 # config.status does its own redirection, appending to config.log.
12468 # Unfortunately, on DOS this fails, as config.log is still kept open
12469 # by configure, so config.status won't be able to write to it; its
12470 # output is simply discarded. So we exec the FD to /dev/null,
12471 # effectively closing config.log, so it can be properly (re)opened and
12472 # appended to by config.status. When coming back to configure, we
12473 # need to make the FD available again.
12474 if test "$no_create" != yes; then
12475 ac_cs_success=:
12476 ac_config_status_args=
12477 test "$silent" = yes &&
12478 ac_config_status_args="$ac_config_status_args --quiet"
12479 exec 5>/dev/null
12480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12481 exec 5>>config.log
12482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12483 # would make configure fail if this is the last instruction.
12484 $ac_cs_success || as_fn_exit 1
12485 fi
12486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12489 fi
12490
This page took 0.456814 seconds and 4 git commands to generate.