gdb: add target_ops::supports_displaced_step
[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 with_libipt_type
774 enable_unit_tests
775 enable_werror
776 enable_build_warnings
777 enable_gdb_build_warnings
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CXX
788 CXXFLAGS
789 CCC
790 CPP'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1385
1386 cat <<\_ACEOF
1387
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1403 esac
1404 cat <<\_ACEOF
1405
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-maintainer-mode
1411 enable make rules and dependencies not useful (and
1412 sometimes confusing) to the casual installer
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-plugins Enable support for plugins
1420 --disable-largefile omit support for large files
1421 --disable-rpath do not hardcode runtime library paths
1422 --enable-unit-tests Enable the inclusion of unit tests when compiling
1423 GDB
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings if gcc is used
1426 --enable-gdb-build-warnings
1427 enable GDB specific build-time compiler warnings if
1428 gcc is used
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1434 --with-gnu-ld assume the C compiler uses GNU ld default=no
1435 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1436 --without-libipt-prefix don't search for libipt in includedir and libdir
1437 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CXX C++ compiler command
1448 CXXFLAGS C++ compiler flags
1449 CPP C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 gdbsupport configure 1.0
1518 generated by GNU Autoconf 2.69
1519
1520 Copyright (C) 2012 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_cxx_try_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 }; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1648 # accordingly.
1649 ac_fn_c_check_header_mongrel ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 else
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1672 else
1673 ac_header_compiler=no
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1678
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1688 else
1689 ac_header_preproc=no
1690 fi
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1694
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697 yes:no: )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 no:yes:* )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 esac
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 eval "$3=\$ac_header_compiler"
1722 fi
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_c_check_header_mongrel
1730
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status
1766 fi
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_run
1772
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_header_compile
1803
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_link ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest$ac_exeext
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_link
1849
1850 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1851 # -------------------------------------------
1852 # Tests whether TYPE exists after having included INCLUDES, setting cache
1853 # variable VAR accordingly.
1854 ac_fn_c_check_type ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=no"
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 int
1867 main ()
1868 {
1869 if (sizeof ($2))
1870 return 0;
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 $4
1879 int
1880 main ()
1881 {
1882 if (sizeof (($2)))
1883 return 0;
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889
1890 else
1891 eval "$3=yes"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_type
1903
1904 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905 # --------------------------------------------
1906 # Tries to find the compile-time value of EXPR in a program that includes
1907 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1908 # computed
1909 ac_fn_c_compute_int ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if test "$cross_compiling" = yes; then
1913 # Depending upon the size, compute the lo and hi bounds.
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 int
1918 main ()
1919 {
1920 static int test_array [1 - 2 * !(($2) >= 0)];
1921 test_array [0] = 0;
1922 return test_array [0];
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_lo=0 ac_mid=0
1930 while :; do
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main ()
1936 {
1937 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_hi=$ac_mid; break
1947 else
1948 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1949 if test $ac_lo -le $ac_mid; then
1950 ac_lo= ac_hi=
1951 break
1952 fi
1953 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 done
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $4
1961 int
1962 main ()
1963 {
1964 static int test_array [1 - 2 * !(($2) < 0)];
1965 test_array [0] = 0;
1966 return test_array [0];
1967
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_hi=-1 ac_mid=-1
1974 while :; do
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1982 test_array [0] = 0;
1983 return test_array [0];
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_lo=$ac_mid; break
1991 else
1992 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1993 if test $ac_mid -le $ac_hi; then
1994 ac_lo= ac_hi=
1995 break
1996 fi
1997 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 done
2001 else
2002 ac_lo= ac_hi=
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 # Binary search between lo and hi bounds.
2008 while test "x$ac_lo" != "x$ac_hi"; do
2009 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017 test_array [0] = 0;
2018 return test_array [0];
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=$ac_mid
2026 else
2027 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 done
2031 case $ac_lo in #((
2032 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2033 '') ac_retval=1 ;;
2034 esac
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 static long int longval () { return $2; }
2040 static unsigned long int ulongval () { return $2; }
2041 #include <stdio.h>
2042 #include <stdlib.h>
2043 int
2044 main ()
2045 {
2046
2047 FILE *f = fopen ("conftest.val", "w");
2048 if (! f)
2049 return 1;
2050 if (($2) < 0)
2051 {
2052 long int i = longval ();
2053 if (i != ($2))
2054 return 1;
2055 fprintf (f, "%ld", i);
2056 }
2057 else
2058 {
2059 unsigned long int i = ulongval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%lu", i);
2063 }
2064 /* Do not output a trailing newline, as this causes \r\n confusion
2065 on some platforms. */
2066 return ferror (f) || fclose (f) != 0;
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_run "$LINENO"; then :
2073 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2074 else
2075 ac_retval=1
2076 fi
2077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2078 conftest.$ac_objext conftest.beam conftest.$ac_ext
2079 rm -f conftest.val
2080
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_compute_int
2086
2087 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2088 # ---------------------------------------------
2089 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2090 # accordingly.
2091 ac_fn_c_check_decl ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 as_decl_name=`echo $2|sed 's/ *(.*//'`
2095 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2097 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 #ifndef $as_decl_name
2108 #ifdef __cplusplus
2109 (void) $as_decl_use;
2110 #else
2111 (void) $as_decl_name;
2112 #endif
2113 #endif
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 eval "$3=yes"
2121 else
2122 eval "$3=no"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131 } # ac_fn_c_check_decl
2132
2133 # ac_fn_c_check_func LINENO FUNC VAR
2134 # ----------------------------------
2135 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2136 ac_fn_c_check_func ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2148 #define $2 innocuous_$2
2149
2150 /* System header to define __stub macros and hopefully few prototypes,
2151 which can conflict with char $2 (); below.
2152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2153 <limits.h> exists even on freestanding compilers. */
2154
2155 #ifdef __STDC__
2156 # include <limits.h>
2157 #else
2158 # include <assert.h>
2159 #endif
2160
2161 #undef $2
2162
2163 /* Override any GCC internal prototype to avoid an error.
2164 Use char because int might match the return type of a GCC
2165 builtin and then its argument prototype would still apply. */
2166 #ifdef __cplusplus
2167 extern "C"
2168 #endif
2169 char $2 ();
2170 /* The GNU C library defines this for functions which it implements
2171 to always fail with ENOSYS. Some functions are actually named
2172 something starting with __ and the normal name is an alias. */
2173 #if defined __stub_$2 || defined __stub___$2
2174 choke me
2175 #endif
2176
2177 int
2178 main ()
2179 {
2180 return $2 ();
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_link "$LINENO"; then :
2186 eval "$3=yes"
2187 else
2188 eval "$3=no"
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext \
2191 conftest$ac_exeext conftest.$ac_ext
2192 fi
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_check_func
2199
2200 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2201 # ----------------------------------------------------
2202 # Tries to find if the field MEMBER exists in type AGGR, after including
2203 # INCLUDES, setting cache variable VAR accordingly.
2204 ac_fn_c_check_member ()
2205 {
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2208 $as_echo_n "checking for $2.$3... " >&6; }
2209 if eval \${$4+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $5
2215 int
2216 main ()
2217 {
2218 static $2 ac_aggr;
2219 if (ac_aggr.$3)
2220 return 0;
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$4=yes"
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 $5
2231 int
2232 main ()
2233 {
2234 static $2 ac_aggr;
2235 if (sizeof ac_aggr.$3)
2236 return 0;
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 eval "$4=yes"
2243 else
2244 eval "$4=no"
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 eval ac_res=\$$4
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255 } # ac_fn_c_check_member
2256
2257 # ac_fn_cxx_try_link LINENO
2258 # -------------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_link ()
2261 {
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext conftest$ac_exeext
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 test -x conftest$ac_exeext
2285 }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=1
2292 fi
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status $ac_retval
2300
2301 } # ac_fn_cxx_try_link
2302
2303 # ac_fn_cxx_check_func LINENO FUNC VAR
2304 # ------------------------------------
2305 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2306 ac_fn_cxx_check_func ()
2307 {
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2318 #define $2 innocuous_$2
2319
2320 /* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char $2 (); below.
2322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 <limits.h> exists even on freestanding compilers. */
2324
2325 #ifdef __STDC__
2326 # include <limits.h>
2327 #else
2328 # include <assert.h>
2329 #endif
2330
2331 #undef $2
2332
2333 /* Override any GCC internal prototype to avoid an error.
2334 Use char because int might match the return type of a GCC
2335 builtin and then its argument prototype would still apply. */
2336 #ifdef __cplusplus
2337 extern "C"
2338 #endif
2339 char $2 ();
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined __stub_$2 || defined __stub___$2
2344 choke me
2345 #endif
2346
2347 int
2348 main ()
2349 {
2350 return $2 ();
2351 ;
2352 return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_cxx_try_link "$LINENO"; then :
2356 eval "$3=yes"
2357 else
2358 eval "$3=no"
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext \
2361 conftest$ac_exeext conftest.$ac_ext
2362 fi
2363 eval ac_res=\$$3
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_cxx_check_func
2369 cat >config.log <<_ACEOF
2370 This file contains any messages produced by compilers while
2371 running configure, to aid debugging if configure makes a mistake.
2372
2373 It was created by gdbsupport $as_me 1.0, which was
2374 generated by GNU Autoconf 2.69. Invocation command line was
2375
2376 $ $0 $@
2377
2378 _ACEOF
2379 exec 5>>config.log
2380 {
2381 cat <<_ASUNAME
2382 ## --------- ##
2383 ## Platform. ##
2384 ## --------- ##
2385
2386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2391
2392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2394
2395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2402
2403 _ASUNAME
2404
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 $as_echo "PATH: $as_dir"
2411 done
2412 IFS=$as_save_IFS
2413
2414 } >&5
2415
2416 cat >&5 <<_ACEOF
2417
2418
2419 ## ----------- ##
2420 ## Core tests. ##
2421 ## ----------- ##
2422
2423 _ACEOF
2424
2425
2426 # Keep a trace of the command line.
2427 # Strip out --no-create and --no-recursion so they do not pile up.
2428 # Strip out --silent because we don't want to record it for future runs.
2429 # Also quote any args containing shell meta-characters.
2430 # Make two passes to allow for proper duplicate-argument suppression.
2431 ac_configure_args=
2432 ac_configure_args0=
2433 ac_configure_args1=
2434 ac_must_keep_next=false
2435 for ac_pass in 1 2
2436 do
2437 for ac_arg
2438 do
2439 case $ac_arg in
2440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442 | -silent | --silent | --silen | --sile | --sil)
2443 continue ;;
2444 *\'*)
2445 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446 esac
2447 case $ac_pass in
2448 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2449 2)
2450 as_fn_append ac_configure_args1 " '$ac_arg'"
2451 if test $ac_must_keep_next = true; then
2452 ac_must_keep_next=false # Got value, back to normal.
2453 else
2454 case $ac_arg in
2455 *=* | --config-cache | -C | -disable-* | --disable-* \
2456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458 | -with-* | --with-* | -without-* | --without-* | --x)
2459 case "$ac_configure_args0 " in
2460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 esac
2462 ;;
2463 -* ) ac_must_keep_next=true ;;
2464 esac
2465 fi
2466 as_fn_append ac_configure_args " '$ac_arg'"
2467 ;;
2468 esac
2469 done
2470 done
2471 { ac_configure_args0=; unset ac_configure_args0;}
2472 { ac_configure_args1=; unset ac_configure_args1;}
2473
2474 # When interrupted or exit'd, cleanup temporary files, and complete
2475 # config.log. We remove comments because anyway the quotes in there
2476 # would cause problems or look ugly.
2477 # WARNING: Use '\'' to represent an apostrophe within the trap.
2478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479 trap 'exit_status=$?
2480 # Save into config.log some information that might help in debugging.
2481 {
2482 echo
2483
2484 $as_echo "## ---------------- ##
2485 ## Cache variables. ##
2486 ## ---------------- ##"
2487 echo
2488 # The following way of writing the cache mishandles newlines in values,
2489 (
2490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491 eval ac_val=\$$ac_var
2492 case $ac_val in #(
2493 *${as_nl}*)
2494 case $ac_var in #(
2495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 esac
2498 case $ac_var in #(
2499 _ | IFS | as_nl) ;; #(
2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501 *) { eval $ac_var=; unset $ac_var;} ;;
2502 esac ;;
2503 esac
2504 done
2505 (set) 2>&1 |
2506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507 *${as_nl}ac_space=\ *)
2508 sed -n \
2509 "s/'\''/'\''\\\\'\'''\''/g;
2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 ;; #(
2512 *)
2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514 ;;
2515 esac |
2516 sort
2517 )
2518 echo
2519
2520 $as_echo "## ----------------- ##
2521 ## Output variables. ##
2522 ## ----------------- ##"
2523 echo
2524 for ac_var in $ac_subst_vars
2525 do
2526 eval ac_val=\$$ac_var
2527 case $ac_val in
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 esac
2530 $as_echo "$ac_var='\''$ac_val'\''"
2531 done | sort
2532 echo
2533
2534 if test -n "$ac_subst_files"; then
2535 $as_echo "## ------------------- ##
2536 ## File substitutions. ##
2537 ## ------------------- ##"
2538 echo
2539 for ac_var in $ac_subst_files
2540 do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in
2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 esac
2545 $as_echo "$ac_var='\''$ac_val'\''"
2546 done | sort
2547 echo
2548 fi
2549
2550 if test -s confdefs.h; then
2551 $as_echo "## ----------- ##
2552 ## confdefs.h. ##
2553 ## ----------- ##"
2554 echo
2555 cat confdefs.h
2556 echo
2557 fi
2558 test "$ac_signal" != 0 &&
2559 $as_echo "$as_me: caught signal $ac_signal"
2560 $as_echo "$as_me: exit $exit_status"
2561 } >&5
2562 rm -f core *.core core.conftest.* &&
2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 exit $exit_status
2565 ' 0
2566 for ac_signal in 1 2 13 15; do
2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568 done
2569 ac_signal=0
2570
2571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2572 rm -f -r conftest* confdefs.h
2573
2574 $as_echo "/* confdefs.h */" > confdefs.h
2575
2576 # Predefined preprocessor variables.
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_URL "$PACKAGE_URL"
2600 _ACEOF
2601
2602
2603 # Let the site file select an alternate cache file if it wants to.
2604 # Prefer an explicitly selected file to automatically selected ones.
2605 ac_site_file1=NONE
2606 ac_site_file2=NONE
2607 if test -n "$CONFIG_SITE"; then
2608 # We do not want a PATH search for config.site.
2609 case $CONFIG_SITE in #((
2610 -*) ac_site_file1=./$CONFIG_SITE;;
2611 */*) ac_site_file1=$CONFIG_SITE;;
2612 *) ac_site_file1=./$CONFIG_SITE;;
2613 esac
2614 elif test "x$prefix" != xNONE; then
2615 ac_site_file1=$prefix/share/config.site
2616 ac_site_file2=$prefix/etc/config.site
2617 else
2618 ac_site_file1=$ac_default_prefix/share/config.site
2619 ac_site_file2=$ac_default_prefix/etc/config.site
2620 fi
2621 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622 do
2623 test "x$ac_site_file" = xNONE && continue
2624 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627 sed 's/^/| /' "$ac_site_file" >&5
2628 . "$ac_site_file" \
2629 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error $? "failed to load site script $ac_site_file
2632 See \`config.log' for more details" "$LINENO" 5; }
2633 fi
2634 done
2635
2636 if test -r "$cache_file"; then
2637 # Some versions of bash will fail to source /dev/null (special files
2638 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2639 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641 $as_echo "$as_me: loading cache $cache_file" >&6;}
2642 case $cache_file in
2643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644 *) . "./$cache_file";;
2645 esac
2646 fi
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649 $as_echo "$as_me: creating cache $cache_file" >&6;}
2650 >$cache_file
2651 fi
2652
2653 as_fn_append ac_header_list " stdlib.h"
2654 as_fn_append ac_header_list " unistd.h"
2655 as_fn_append ac_header_list " sys/param.h"
2656 # Check that the precious variables saved in the cache have kept the same
2657 # value.
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2665 set,)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2669 ,set)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,);;
2674 *)
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 fi;;
2693 esac
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2696 case $ac_new_val in
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2699 esac
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703 esac
2704 fi
2705 done
2706 if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712 fi
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2716
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725
2726
2727
2728 ac_config_headers="$ac_config_headers config.h:config.in"
2729
2730 ac_aux_dir=
2731 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2732 if test -f "$ac_dir/install-sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 break
2736 elif test -f "$ac_dir/install.sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 break
2740 elif test -f "$ac_dir/shtool"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/shtool install -c"
2743 break
2744 fi
2745 done
2746 if test -z "$ac_aux_dir"; then
2747 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2748 fi
2749
2750 # These three variables are undocumented and unsupported,
2751 # and are intended to be withdrawn in a future Autoconf release.
2752 # They can cause serious problems if a builder's source tree is in a directory
2753 # whose full name contains unusual characters.
2754 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2755 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2756 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757
2758
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if ${ac_cv_build+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2775
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2780 *-*-*) ;;
2781 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2782 esac
2783 build=$ac_cv_build
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_build
2786 shift
2787 build_cpu=$1
2788 build_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 build_os=$*
2793 IFS=$ac_save_IFS
2794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2795
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if ${ac_cv_host+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2804 else
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807 fi
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2812 case $ac_cv_host in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2815 esac
2816 host=$ac_cv_host
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_host
2819 shift
2820 host_cpu=$1
2821 host_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 host_os=$*
2826 IFS=$ac_save_IFS
2827 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2831 $as_echo_n "checking target system type... " >&6; }
2832 if ${ac_cv_target+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$target_alias" = x; then
2836 ac_cv_target=$ac_cv_host
2837 else
2838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844 $as_echo "$ac_cv_target" >&6; }
2845 case $ac_cv_target in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2848 esac
2849 target=$ac_cv_target
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_target
2852 shift
2853 target_cpu=$1
2854 target_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 target_os=$*
2859 IFS=$ac_save_IFS
2860 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2861
2862
2863 # The aliases save the names the user supplied, while $host etc.
2864 # will get canonicalized.
2865 test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2867 NONENONEs,x,x, &&
2868 program_prefix=${target_alias}-
2869
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2872 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2873 # Check whether --enable-maintainer-mode was given.
2874 if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2876 else
2877 USE_MAINTAINER_MODE=no
2878 fi
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2881 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2882 if test $USE_MAINTAINER_MODE = yes; then
2883 MAINTAINER_MODE_TRUE=
2884 MAINTAINER_MODE_FALSE='#'
2885 else
2886 MAINTAINER_MODE_TRUE='#'
2887 MAINTAINER_MODE_FALSE=
2888 fi
2889
2890 MAINT=$MAINTAINER_MODE_TRUE
2891
2892
2893 ac_aux_dir=
2894 for ac_dir in .. "$srcdir"/..; do
2895 if test -f "$ac_dir/install-sh"; then
2896 ac_aux_dir=$ac_dir
2897 ac_install_sh="$ac_aux_dir/install-sh -c"
2898 break
2899 elif test -f "$ac_dir/install.sh"; then
2900 ac_aux_dir=$ac_dir
2901 ac_install_sh="$ac_aux_dir/install.sh -c"
2902 break
2903 elif test -f "$ac_dir/shtool"; then
2904 ac_aux_dir=$ac_dir
2905 ac_install_sh="$ac_aux_dir/shtool install -c"
2906 break
2907 fi
2908 done
2909 if test -z "$ac_aux_dir"; then
2910 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2911 fi
2912
2913 # These three variables are undocumented and unsupported,
2914 # and are intended to be withdrawn in a future Autoconf release.
2915 # They can cause serious problems if a builder's source tree is in a directory
2916 # whose full name contains unusual characters.
2917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2920
2921
2922 am__api_version='1.15'
2923
2924 # Find a good install program. We prefer a C program (faster),
2925 # so one script is as good as another. But avoid the broken or
2926 # incompatible versions:
2927 # SysV /etc/install, /usr/sbin/install
2928 # SunOS /usr/etc/install
2929 # IRIX /sbin/install
2930 # AIX /bin/install
2931 # AmigaOS /C/install, which installs bootblocks on floppy discs
2932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935 # OS/2's system install, which has a completely different semantic
2936 # ./install, which can be erroneously created by make from ./install.sh.
2937 # Reject install programs that cannot install multiple files.
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2939 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2940 if test -z "$INSTALL"; then
2941 if ${ac_cv_path_install+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 # Account for people who put trailing slashes in PATH elements.
2950 case $as_dir/ in #((
2951 ./ | .// | /[cC]/* | \
2952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2954 /usr/ucb/* ) ;;
2955 *)
2956 # OSF1 and SCO ODT 3.0 have their own names for install.
2957 # Don't use installbsd from OSF since it installs stuff as root
2958 # by default.
2959 for ac_prog in ginstall scoinst install; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2962 if test $ac_prog = install &&
2963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2965 :
2966 elif test $ac_prog = install &&
2967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2969 :
2970 else
2971 rm -rf conftest.one conftest.two conftest.dir
2972 echo one > conftest.one
2973 echo two > conftest.two
2974 mkdir conftest.dir
2975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2976 test -s conftest.one && test -s conftest.two &&
2977 test -s conftest.dir/conftest.one &&
2978 test -s conftest.dir/conftest.two
2979 then
2980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2981 break 3
2982 fi
2983 fi
2984 fi
2985 done
2986 done
2987 ;;
2988 esac
2989
2990 done
2991 IFS=$as_save_IFS
2992
2993 rm -rf conftest.one conftest.two conftest.dir
2994
2995 fi
2996 if test "${ac_cv_path_install+set}" = set; then
2997 INSTALL=$ac_cv_path_install
2998 else
2999 # As a last resort, use the slow shell script. Don't cache a
3000 # value for INSTALL within a source directory, because that will
3001 # break other packages using the cache if that directory is
3002 # removed, or if the value is a relative name.
3003 INSTALL=$ac_install_sh
3004 fi
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3007 $as_echo "$INSTALL" >&6; }
3008
3009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3010 # It thinks the first close brace ends the variable substitution.
3011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3012
3013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3014
3015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3016
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3018 $as_echo_n "checking whether build environment is sane... " >&6; }
3019 # Reject unsafe characters in $srcdir or the absolute working directory
3020 # name. Accept space and tab only in the latter.
3021 am_lf='
3022 '
3023 case `pwd` in
3024 *[\\\"\#\$\&\'\`$am_lf]*)
3025 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3026 esac
3027 case $srcdir in
3028 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3029 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3030 esac
3031
3032 # Do 'set' in a subshell so we don't clobber the current shell's
3033 # arguments. Must try -L first in case configure is actually a
3034 # symlink; some systems play weird games with the mod time of symlinks
3035 # (eg FreeBSD returns the mod time of the symlink's containing
3036 # directory).
3037 if (
3038 am_has_slept=no
3039 for am_try in 1 2; do
3040 echo "timestamp, slept: $am_has_slept" > conftest.file
3041 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3042 if test "$*" = "X"; then
3043 # -L didn't work.
3044 set X `ls -t "$srcdir/configure" conftest.file`
3045 fi
3046 if test "$*" != "X $srcdir/configure conftest.file" \
3047 && test "$*" != "X conftest.file $srcdir/configure"; then
3048
3049 # If neither matched, then we have a broken ls. This can happen
3050 # if, for instance, CONFIG_SHELL is bash and it inherits a
3051 # broken ls alias from the environment. This has actually
3052 # happened. Such a system could not be considered "sane".
3053 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3054 alias in your environment" "$LINENO" 5
3055 fi
3056 if test "$2" = conftest.file || test $am_try -eq 2; then
3057 break
3058 fi
3059 # Just in case.
3060 sleep 1
3061 am_has_slept=yes
3062 done
3063 test "$2" = conftest.file
3064 )
3065 then
3066 # Ok.
3067 :
3068 else
3069 as_fn_error $? "newly created file is older than distributed files!
3070 Check your system clock" "$LINENO" 5
3071 fi
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074 # If we didn't sleep, we still need to ensure time stamps of config.status and
3075 # generated files are strictly newer.
3076 am_sleep_pid=
3077 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3078 ( sleep 1 ) &
3079 am_sleep_pid=$!
3080 fi
3081
3082 rm -f conftest.file
3083
3084 test "$program_prefix" != NONE &&
3085 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3086 # Use a double $ so make ignores it.
3087 test "$program_suffix" != NONE &&
3088 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3089 # Double any \ or $.
3090 # By default was `s,x,x', remove it if useless.
3091 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3092 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3093
3094 # Expand $ac_aux_dir to an absolute path.
3095 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3096
3097 if test x"${MISSING+set}" != xset; then
3098 case $am_aux_dir in
3099 *\ * | *\ *)
3100 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3101 *)
3102 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3103 esac
3104 fi
3105 # Use eval to expand $SHELL
3106 if eval "$MISSING --is-lightweight"; then
3107 am_missing_run="$MISSING "
3108 else
3109 am_missing_run=
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3111 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3112 fi
3113
3114 if test x"${install_sh+set}" != xset; then
3115 case $am_aux_dir in
3116 *\ * | *\ *)
3117 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3118 *)
3119 install_sh="\${SHELL} $am_aux_dir/install-sh"
3120 esac
3121 fi
3122
3123 # Installed binaries are usually stripped using 'strip' when the user
3124 # run "make install-strip". However 'strip' might not be the right
3125 # tool to use in cross-compilation environments, therefore Automake
3126 # will honor the 'STRIP' environment variable to overrule this program.
3127 if test "$cross_compiling" != no; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}strip; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_STRIP+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$STRIP"; then
3137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 STRIP=$ac_cv_prog_STRIP
3157 if test -n "$STRIP"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3159 $as_echo "$STRIP" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 if test -z "$ac_cv_prog_STRIP"; then
3168 ac_ct_STRIP=$STRIP
3169 # Extract the first word of "strip", so it can be a program name with args.
3170 set dummy strip; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$ac_ct_STRIP"; then
3177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_STRIP="strip"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3197 if test -n "$ac_ct_STRIP"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3199 $as_echo "$ac_ct_STRIP" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205 if test "x$ac_ct_STRIP" = x; then
3206 STRIP=":"
3207 else
3208 case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214 STRIP=$ac_ct_STRIP
3215 fi
3216 else
3217 STRIP="$ac_cv_prog_STRIP"
3218 fi
3219
3220 fi
3221 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3222
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3225 if test -z "$MKDIR_P"; then
3226 if ${ac_cv_path_mkdir+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_prog in mkdir gmkdir; do
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3238 'mkdir (GNU coreutils) '* | \
3239 'mkdir (coreutils) '* | \
3240 'mkdir (fileutils) '4.1*)
3241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3242 break 3;;
3243 esac
3244 done
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi
3250
3251 test -d ./--version && rmdir ./--version
3252 if test "${ac_cv_path_mkdir+set}" = set; then
3253 MKDIR_P="$ac_cv_path_mkdir -p"
3254 else
3255 # As a last resort, use the slow shell script. Don't cache a
3256 # value for MKDIR_P within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the value is a relative name.
3259 MKDIR_P="$ac_install_sh -d"
3260 fi
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3263 $as_echo "$MKDIR_P" >&6; }
3264
3265 for ac_prog in gawk mawk nawk awk
3266 do
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_AWK+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$AWK"; then
3275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_AWK="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 AWK=$ac_cv_prog_AWK
3295 if test -n "$AWK"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3297 $as_echo "$AWK" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304 test -n "$AWK" && break
3305 done
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3308 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3309 set x ${MAKE-make}
3310 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3311 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat >conftest.make <<\_ACEOF
3315 SHELL = /bin/sh
3316 all:
3317 @echo '@@@%%%=$(MAKE)=@@@%%%'
3318 _ACEOF
3319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3320 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3321 *@@@%%%=?*=@@@%%%*)
3322 eval ac_cv_prog_make_${ac_make}_set=yes;;
3323 *)
3324 eval ac_cv_prog_make_${ac_make}_set=no;;
3325 esac
3326 rm -f conftest.make
3327 fi
3328 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331 SET_MAKE=
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 SET_MAKE="MAKE=${MAKE-make}"
3336 fi
3337
3338 rm -rf .tst 2>/dev/null
3339 mkdir .tst 2>/dev/null
3340 if test -d .tst; then
3341 am__leading_dot=.
3342 else
3343 am__leading_dot=_
3344 fi
3345 rmdir .tst 2>/dev/null
3346
3347 # Check whether --enable-silent-rules was given.
3348 if test "${enable_silent_rules+set}" = set; then :
3349 enableval=$enable_silent_rules;
3350 fi
3351
3352 case $enable_silent_rules in # (((
3353 yes) AM_DEFAULT_VERBOSITY=0;;
3354 no) AM_DEFAULT_VERBOSITY=1;;
3355 *) AM_DEFAULT_VERBOSITY=1;;
3356 esac
3357 am_make=${MAKE-make}
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3359 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3360 if ${am_cv_make_support_nested_variables+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if $as_echo 'TRUE=$(BAR$(V))
3364 BAR0=false
3365 BAR1=true
3366 V=1
3367 am__doit:
3368 @$(TRUE)
3369 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3370 am_cv_make_support_nested_variables=yes
3371 else
3372 am_cv_make_support_nested_variables=no
3373 fi
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3377 if test $am_cv_make_support_nested_variables = yes; then
3378 AM_V='$(V)'
3379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3380 else
3381 AM_V=$AM_DEFAULT_VERBOSITY
3382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3383 fi
3384 AM_BACKSLASH='\'
3385
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388 # is not polluted with repeated "-I."
3389 am__isrc=' -I$(srcdir)'
3390 # test to see if srcdir already configured
3391 if test -f $srcdir/config.status; then
3392 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393 fi
3394 fi
3395
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398 if (cygpath --version) >/dev/null 2>/dev/null; then
3399 CYGPATH_W='cygpath -w'
3400 else
3401 CYGPATH_W=echo
3402 fi
3403 fi
3404
3405
3406 # Define the identity of the package.
3407 PACKAGE='gdbsupport'
3408 VERSION='1.0'
3409
3410
3411 cat >>confdefs.h <<_ACEOF
3412 #define PACKAGE "$PACKAGE"
3413 _ACEOF
3414
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define VERSION "$VERSION"
3418 _ACEOF
3419
3420 # Some tools Automake needs.
3421
3422 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3423
3424
3425 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3426
3427
3428 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3429
3430
3431 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3432
3433
3434 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3435
3436 # For better backward compatibility. To be removed once Automake 1.9.x
3437 # dies out for good. For more background, see:
3438 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3440 mkdir_p='$(MKDIR_P)'
3441
3442 # We need awk for the "check" target (and possibly the TAP driver). The
3443 # system "awk" is bad on some platforms.
3444 # Always define AMTAR for backward compatibility. Yes, it's still used
3445 # in the wild :-( We should find a proper way to deprecate it ...
3446 AMTAR='$${TAR-tar}'
3447
3448
3449 # We'll loop over all known methods to create a tar archive until one works.
3450 _am_tools='gnutar pax cpio none'
3451
3452 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3453
3454
3455
3456
3457
3458
3459 # POSIX will say in a future version that running "rm -f" with no argument
3460 # is OK; and we want to be able to make that assumption in our Makefile
3461 # recipes. So use an aggressive probe to check that the usage we want is
3462 # actually supported "in the wild" to an acceptable degree.
3463 # See automake bug#10828.
3464 # To make any issue more visible, cause the running configure to be aborted
3465 # by default if the 'rm' program in use doesn't match our expectations; the
3466 # user can still override this though.
3467 if rm -f && rm -fr && rm -rf; then : OK; else
3468 cat >&2 <<'END'
3469 Oops!
3470
3471 Your 'rm' program seems unable to run without file operands specified
3472 on the command line, even when the '-f' option is present. This is contrary
3473 to the behaviour of most rm programs out there, and not conforming with
3474 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3475
3476 Please tell bug-automake@gnu.org about your system, including the value
3477 of your $PATH and any error possibly output before this message. This
3478 can help us improve future automake versions.
3479
3480 END
3481 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3482 echo 'Configuration will proceed anyway, since you have set the' >&2
3483 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3484 echo >&2
3485 else
3486 cat >&2 <<'END'
3487 Aborting the configuration process, to ensure you take notice of the issue.
3488
3489 You can download and install GNU coreutils to get an 'rm' implementation
3490 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3491
3492 If you want to complete the configuration process using your problematic
3493 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3494 to "yes", and re-run configure.
3495
3496 END
3497 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3498 fi
3499 fi
3500
3501 # Check whether --enable-silent-rules was given.
3502 if test "${enable_silent_rules+set}" = set; then :
3503 enableval=$enable_silent_rules;
3504 fi
3505
3506 case $enable_silent_rules in # (((
3507 yes) AM_DEFAULT_VERBOSITY=0;;
3508 no) AM_DEFAULT_VERBOSITY=1;;
3509 *) AM_DEFAULT_VERBOSITY=0;;
3510 esac
3511 am_make=${MAKE-make}
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3513 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3514 if ${am_cv_make_support_nested_variables+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if $as_echo 'TRUE=$(BAR$(V))
3518 BAR0=false
3519 BAR1=true
3520 V=1
3521 am__doit:
3522 @$(TRUE)
3523 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3524 am_cv_make_support_nested_variables=yes
3525 else
3526 am_cv_make_support_nested_variables=no
3527 fi
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3530 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3531 if test $am_cv_make_support_nested_variables = yes; then
3532 AM_V='$(V)'
3533 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3534 else
3535 AM_V=$AM_DEFAULT_VERBOSITY
3536 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3537 fi
3538 AM_BACKSLASH='\'
3539
3540
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 fi
3585 if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_ac_ct_CC="gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615 if test -n "$ac_ct_CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617 $as_echo "$ac_ct_CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623 if test "x$ac_ct_CC" = x; then
3624 CC=""
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627 yes:)
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630 ac_tool_warned=yes ;;
3631 esac
3632 CC=$ac_ct_CC
3633 fi
3634 else
3635 CC="$ac_cv_prog_CC"
3636 fi
3637
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3641 set dummy ${ac_tool_prefix}cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_CC="${ac_tool_prefix}cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 fi
3666 fi
3667 CC=$ac_cv_prog_CC
3668 if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676
3677 fi
3678 fi
3679 if test -z "$CC"; then
3680 # Extract the first word of "cc", so it can be a program name with args.
3681 set dummy cc; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 ac_prog_rejected=no
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699 ac_prog_rejected=yes
3700 continue
3701 fi
3702 ac_cv_prog_CC="cc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 if test $ac_prog_rejected = yes; then
3711 # We found a bogon in the path, so make sure we never use it.
3712 set dummy $ac_cv_prog_CC
3713 shift
3714 if test $# != 0; then
3715 # We chose a different compiler from the bogus one.
3716 # However, it has the same basename, so the bogon will be chosen
3717 # first if we set CC to just the basename; use the full file name.
3718 shift
3719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3720 fi
3721 fi
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 CC=$ac_cv_prog_CC
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 test -n "$CC" && break
3777 done
3778 fi
3779 if test -z "$CC"; then
3780 ac_ct_CC=$CC
3781 for ac_prog in cl.exe
3782 do
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820 test -n "$ac_ct_CC" && break
3821 done
3822
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3833 fi
3834 fi
3835
3836 fi
3837
3838
3839 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "no acceptable C compiler found in \$PATH
3842 See \`config.log' for more details" "$LINENO" 5; }
3843
3844 # Provide some information about the compiler.
3845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3846 set X $ac_compile
3847 ac_compiler=$2
3848 for ac_option in --version -v -V -qversion; do
3849 { { ac_try="$ac_compiler $ac_option >&5"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3857 ac_status=$?
3858 if test -s conftest.err; then
3859 sed '10a\
3860 ... rest of stderr output deleted ...
3861 10q' conftest.err >conftest.er1
3862 cat conftest.er1 >&5
3863 fi
3864 rm -f conftest.er1 conftest.err
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 done
3868
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 ac_clean_files_save=$ac_clean_files
3881 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3882 # Try to create an executable without -o first, disregard a.out.
3883 # It will help us diagnose broken compilers, and finding out an intuition
3884 # of exeext.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3886 $as_echo_n "checking whether the C compiler works... " >&6; }
3887 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3888
3889 # The possible output files:
3890 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3891
3892 ac_rmfiles=
3893 for ac_file in $ac_files
3894 do
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3898 esac
3899 done
3900 rm -f $ac_rmfiles
3901
3902 if { { ac_try="$ac_link_default"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link_default") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3915 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3916 # so that the user can short-circuit this test for compilers unknown to
3917 # Autoconf.
3918 for ac_file in $ac_files ''
3919 do
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3923 ;;
3924 [ab].out )
3925 # We found the default executable, but exeext='' is most
3926 # certainly right.
3927 break;;
3928 *.* )
3929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3930 then :; else
3931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932 fi
3933 # We set ac_cv_exeext here because the later test for it is not
3934 # safe: cross compilers may not add the suffix if given an `-o'
3935 # argument, so we may need to know it at that point already.
3936 # Even if this section looks crufty: it has the advantage of
3937 # actually working.
3938 break;;
3939 * )
3940 break;;
3941 esac
3942 done
3943 test "$ac_cv_exeext" = no && ac_cv_exeext=
3944
3945 else
3946 ac_file=''
3947 fi
3948 if test -z "$ac_file"; then :
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "C compiler cannot create executables
3957 See \`config.log' for more details" "$LINENO" 5; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3963 $as_echo_n "checking for C compiler default output file name... " >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3965 $as_echo "$ac_file" >&6; }
3966 ac_exeext=$ac_cv_exeext
3967
3968 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3969 ac_clean_files=$ac_clean_files_save
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3971 $as_echo_n "checking for suffix of executables... " >&6; }
3972 if { { ac_try="$ac_link"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }; then :
3983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3984 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3985 # work properly (i.e., refer to `conftest.exe'), while it won't with
3986 # `rm'.
3987 for ac_file in conftest.exe conftest conftest.*; do
3988 test -f "$ac_file" || continue
3989 case $ac_file in
3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 break;;
3993 * ) break;;
3994 esac
3995 done
3996 else
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4000 See \`config.log' for more details" "$LINENO" 5; }
4001 fi
4002 rm -f conftest conftest$ac_cv_exeext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4004 $as_echo "$ac_cv_exeext" >&6; }
4005
4006 rm -f conftest.$ac_ext
4007 EXEEXT=$ac_cv_exeext
4008 ac_exeext=$EXEEXT
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <stdio.h>
4012 int
4013 main ()
4014 {
4015 FILE *f = fopen ("conftest.out", "w");
4016 return ferror (f) || fclose (f) != 0;
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 ac_clean_files="$ac_clean_files conftest.out"
4023 # Check that the compiler produces executables we can run. If not, either
4024 # the compiler is broken, or we cross compile.
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4026 $as_echo_n "checking whether we are cross compiling... " >&6; }
4027 if test "$cross_compiling" != yes; then
4028 { { ac_try="$ac_link"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 if { ac_try='./conftest$ac_cv_exeext'
4040 { { case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; }; then
4050 cross_compiling=no
4051 else
4052 if test "$cross_compiling" = maybe; then
4053 cross_compiling=yes
4054 else
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error $? "cannot run C compiled programs.
4058 If you meant to cross compile, use \`--host'.
4059 See \`config.log' for more details" "$LINENO" 5; }
4060 fi
4061 fi
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4064 $as_echo "$cross_compiling" >&6; }
4065
4066 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4067 ac_clean_files=$ac_clean_files_save
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069 $as_echo_n "checking for suffix of object files... " >&6; }
4070 if ${ac_cv_objext+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 int
4077 main ()
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.o conftest.obj
4085 if { { ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4098 case $ac_file in
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4101 break;;
4102 esac
4103 done
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 as_fn_error $? "cannot compute suffix of object files: cannot compile
4111 See \`config.log' for more details" "$LINENO" 5; }
4112 fi
4113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116 $as_echo "$ac_cv_objext" >&6; }
4117 OBJEXT=$ac_cv_objext
4118 ac_objext=$OBJEXT
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121 if ${ac_cv_c_compiler_gnu+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main ()
4129 {
4130 #ifndef __GNUC__
4131 choke me
4132 #endif
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_compiler_gnu=yes
4140 else
4141 ac_compiler_gnu=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151 else
4152 GCC=
4153 fi
4154 ac_test_CFLAGS=${CFLAGS+set}
4155 ac_save_CFLAGS=$CFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4158 if ${ac_cv_prog_cc_g+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4163 ac_cv_prog_cc_g=no
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main ()
4170 {
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_g=yes
4178 else
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main ()
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192
4193 else
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main ()
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_g=yes
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 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 $as_echo "$ac_cv_prog_cc_g" >&6; }
4219 if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4226 fi
4227 else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236 if ${ac_cv_prog_cc_c89+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_cv_prog_cc_c89=no
4240 ac_save_CC=$CC
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <stdarg.h>
4244 #include <stdio.h>
4245 struct stat;
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250 char **p;
4251 int i;
4252 {
4253 return p[i];
4254 }
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4256 {
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4263 }
4264
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4285 int
4286 main ()
4287 {
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 do
4296 CC="$ac_save_CC $ac_arg"
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
4302 done
4303 rm -f conftest.$ac_ext
4304 CC=$ac_save_CC
4305
4306 fi
4307 # AC_CACHE_VAL
4308 case "x$ac_cv_prog_cc_c89" in
4309 x)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 $as_echo "none needed" >&6; } ;;
4312 xno)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 $as_echo "unsupported" >&6; } ;;
4315 *)
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 esac
4320 if test "x$ac_cv_prog_cc_c89" != xno; then :
4321
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4336 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4337 if ${am_cv_prog_cc_c_o+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 # Make sure it works both with $CC and with simple cc.
4352 # Following AC_PROG_CC_C_O, we do the test twice because some
4353 # compilers refuse to overwrite an existing .o file with -o,
4354 # though they will create one.
4355 am_cv_prog_cc_c_o=yes
4356 for am_i in 1 2; do
4357 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4358 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } \
4362 && test -f conftest2.$ac_objext; then
4363 : OK
4364 else
4365 am_cv_prog_cc_c_o=no
4366 break
4367 fi
4368 done
4369 rm -f core conftest*
4370 unset am_i
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4373 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4374 if test "$am_cv_prog_cc_c_o" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC="$am_aux_dir/compile $CC"
4381 fi
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388 DEPDIR="${am__leading_dot}deps"
4389
4390 ac_config_commands="$ac_config_commands depfiles"
4391
4392
4393 am_make=${MAKE-make}
4394 cat > confinc << 'END'
4395 am__doit:
4396 @echo this is the am__doit target
4397 .PHONY: am__doit
4398 END
4399 # If we don't find an include directive, just comment out the code.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4402 am__include="#"
4403 am__quote=
4404 _am_result=none
4405 # First try GNU make style include.
4406 echo "include confinc" > confmf
4407 # Ignore all kinds of additional output from 'make'.
4408 case `$am_make -s -f confmf 2> /dev/null` in #(
4409 *the\ am__doit\ target*)
4410 am__include=include
4411 am__quote=
4412 _am_result=GNU
4413 ;;
4414 esac
4415 # Now try BSD make style include.
4416 if test "$am__include" = "#"; then
4417 echo '.include "confinc"' > confmf
4418 case `$am_make -s -f confmf 2> /dev/null` in #(
4419 *the\ am__doit\ target*)
4420 am__include=.include
4421 am__quote="\""
4422 _am_result=BSD
4423 ;;
4424 esac
4425 fi
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429 $as_echo "$_am_result" >&6; }
4430 rm -f confinc confmf
4431
4432 # Check whether --enable-dependency-tracking was given.
4433 if test "${enable_dependency_tracking+set}" = set; then :
4434 enableval=$enable_dependency_tracking;
4435 fi
4436
4437 if test "x$enable_dependency_tracking" != xno; then
4438 am_depcomp="$ac_aux_dir/depcomp"
4439 AMDEPBACKSLASH='\'
4440 am__nodep='_no'
4441 fi
4442 if test "x$enable_dependency_tracking" != xno; then
4443 AMDEP_TRUE=
4444 AMDEP_FALSE='#'
4445 else
4446 AMDEP_TRUE='#'
4447 AMDEP_FALSE=
4448 fi
4449
4450
4451
4452 depcc="$CC" am_compiler_list=
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4455 $as_echo_n "checking dependency style of $depcc... " >&6; }
4456 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named 'D' -- because '-MD' means "put the output
4464 # in D".
4465 rm -rf conftest.dir
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4478
4479 am_cv_CC_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 fi
4483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4487
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4492 #
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500 # Solaris 10 /bin/sh.
4501 echo '/* dummy */' > sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
4505 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle '-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs.
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4511 case $depmode in
4512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4515 ;;
4516 nosideeffect)
4517 # After this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested.
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4523 fi
4524 ;;
4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526 # This compiler won't grok '-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4531 ;;
4532 none) break ;;
4533 esac
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CC_dependencies_compiler_type=$depmode
4553 break
4554 fi
4555 fi
4556 done
4557
4558 cd ..
4559 rm -rf conftest.dir
4560 else
4561 am_cv_CC_dependencies_compiler_type=none
4562 fi
4563
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568
4569 if
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCC_TRUE=
4573 am__fastdepCC_FALSE='#'
4574 else
4575 am__fastdepCC_TRUE='#'
4576 am__fastdepCC_FALSE=
4577 fi
4578
4579
4580 ac_ext=cpp
4581 ac_cpp='$CXXCPP $CPPFLAGS'
4582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4585 if test -z "$CXX"; then
4586 if test -n "$CCC"; then
4587 CXX=$CCC
4588 else
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_CXX+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$CXX"; then
4600 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 CXX=$ac_cv_prog_CXX
4620 if test -n "$CXX"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4622 $as_echo "$CXX" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629 test -n "$CXX" && break
4630 done
4631 fi
4632 if test -z "$CXX"; then
4633 ac_ct_CXX=$CXX
4634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4635 do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4664 if test -n "$ac_ct_CXX"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4666 $as_echo "$ac_ct_CXX" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 test -n "$ac_ct_CXX" && break
4674 done
4675
4676 if test "x$ac_ct_CXX" = x; then
4677 CXX="g++"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 CXX=$ac_ct_CXX
4686 fi
4687 fi
4688
4689 fi
4690 fi
4691 # Provide some information about the compiler.
4692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4693 set X $ac_compile
4694 ac_compiler=$2
4695 for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704 ac_status=$?
4705 if test -s conftest.err; then
4706 sed '10a\
4707 ... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 fi
4711 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 done
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4718 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 int
4725 main ()
4726 {
4727 #ifndef __GNUC__
4728 choke me
4729 #endif
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_cxx_try_compile "$LINENO"; then :
4736 ac_compiler_gnu=yes
4737 else
4738 ac_compiler_gnu=no
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4745 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4746 if test $ac_compiler_gnu = yes; then
4747 GXX=yes
4748 else
4749 GXX=
4750 fi
4751 ac_test_CXXFLAGS=${CXXFLAGS+set}
4752 ac_save_CXXFLAGS=$CXXFLAGS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4754 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4755 if ${ac_cv_prog_cxx_g+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4759 ac_cxx_werror_flag=yes
4760 ac_cv_prog_cxx_g=no
4761 CXXFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764
4765 int
4766 main ()
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_cxx_try_compile "$LINENO"; then :
4774 ac_cv_prog_cxx_g=yes
4775 else
4776 CXXFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_cxx_try_compile "$LINENO"; then :
4789
4790 else
4791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 CXXFLAGS="-g"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795
4796 int
4797 main ()
4798 {
4799
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_cxx_try_compile "$LINENO"; then :
4805 ac_cv_prog_cxx_g=yes
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 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4815 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4816 if test "$ac_test_CXXFLAGS" = set; then
4817 CXXFLAGS=$ac_save_CXXFLAGS
4818 elif test $ac_cv_prog_cxx_g = yes; then
4819 if test "$GXX" = yes; then
4820 CXXFLAGS="-g -O2"
4821 else
4822 CXXFLAGS="-g"
4823 fi
4824 else
4825 if test "$GXX" = yes; then
4826 CXXFLAGS="-O2"
4827 else
4828 CXXFLAGS=
4829 fi
4830 fi
4831 ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837 depcc="$CXX" am_compiler_list=
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4849 # in D".
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_CXX_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
4869 case " $depcc " in #(
4870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4871 esac
4872
4873 for depmode in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4877 #
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4881 : > sub/conftest.c
4882 for i in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4885 # Solaris 10 /bin/sh.
4886 echo '/* dummy */' > sub/conftst$i.h
4887 done
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle '-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs.
4894 am__obj=sub/conftest.${OBJEXT-o}
4895 am__minus_obj="-o $am__obj"
4896 case $depmode in
4897 gcc)
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false || continue
4900 ;;
4901 nosideeffect)
4902 # After this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested.
4904 if test "x$enable_dependency_tracking" = xyes; then
4905 continue
4906 else
4907 break
4908 fi
4909 ;;
4910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4911 # This compiler won't grok '-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj=conftest.${OBJEXT-o}
4915 am__minus_obj=
4916 ;;
4917 none) break ;;
4918 esac
4919 if depmode=$depmode \
4920 source=sub/conftest.c object=$am__obj \
4921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4923 >/dev/null 2>conftest.err &&
4924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4937 am_cv_CXX_dependencies_compiler_type=$depmode
4938 break
4939 fi
4940 fi
4941 done
4942
4943 cd ..
4944 rm -rf conftest.dir
4945 else
4946 am_cv_CXX_dependencies_compiler_type=none
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4951 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4952 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4953
4954 if
4955 test "x$enable_dependency_tracking" != xno \
4956 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4957 am__fastdepCXX_TRUE=
4958 am__fastdepCXX_FALSE='#'
4959 else
4960 am__fastdepCXX_TRUE='#'
4961 am__fastdepCXX_FALSE=
4962 fi
4963
4964
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_RANLIB+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 RANLIB=$ac_cv_prog_RANLIB
4994 if test -n "$RANLIB"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4996 $as_echo "$RANLIB" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 fi
5004 if test -z "$ac_cv_prog_RANLIB"; then
5005 ac_ct_RANLIB=$RANLIB
5006 # Extract the first word of "ranlib", so it can be a program name with args.
5007 set dummy ranlib; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$ac_ct_RANLIB"; then
5014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_RANLIB="ranlib"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5034 if test -n "$ac_ct_RANLIB"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5036 $as_echo "$ac_ct_RANLIB" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042 if test "x$ac_ct_RANLIB" = x; then
5043 RANLIB=":"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 RANLIB=$ac_ct_RANLIB
5052 fi
5053 else
5054 RANLIB="$ac_cv_prog_RANLIB"
5055 fi
5056
5057
5058
5059 ac_ext=c
5060 ac_cpp='$CPP $CPPFLAGS'
5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5066 # On Suns, sometimes $CPP names a directory.
5067 if test -n "$CPP" && test -d "$CPP"; then
5068 CPP=
5069 fi
5070 if test -z "$CPP"; then
5071 if ${ac_cv_prog_CPP+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 # Double quotes because CPP needs to be expanded
5075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5076 do
5077 ac_preproc_ok=false
5078 for ac_c_preproc_warn_flag in '' yes
5079 do
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #ifdef __STDC__
5089 # include <limits.h>
5090 #else
5091 # include <assert.h>
5092 #endif
5093 Syntax error
5094 _ACEOF
5095 if ac_fn_c_try_cpp "$LINENO"; then :
5096
5097 else
5098 # Broken: fails on valid input.
5099 continue
5100 fi
5101 rm -f conftest.err conftest.i conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if ac_fn_c_try_cpp "$LINENO"; then :
5110 # Broken: success on invalid input.
5111 continue
5112 else
5113 # Passes both tests.
5114 ac_preproc_ok=:
5115 break
5116 fi
5117 rm -f conftest.err conftest.i conftest.$ac_ext
5118
5119 done
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.i conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then :
5123 break
5124 fi
5125
5126 done
5127 ac_cv_prog_CPP=$CPP
5128
5129 fi
5130 CPP=$ac_cv_prog_CPP
5131 else
5132 ac_cv_prog_CPP=$CPP
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5135 $as_echo "$CPP" >&6; }
5136 ac_preproc_ok=false
5137 for ac_c_preproc_warn_flag in '' yes
5138 do
5139 # Use a header file that comes with gcc, so configuring glibc
5140 # with a fresh cross-compiler works.
5141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142 # <limits.h> exists even on freestanding compilers.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152 Syntax error
5153 _ACEOF
5154 if ac_fn_c_try_cpp "$LINENO"; then :
5155
5156 else
5157 # Broken: fails on valid input.
5158 continue
5159 fi
5160 rm -f conftest.err conftest.i conftest.$ac_ext
5161
5162 # OK, works on sane cases. Now check whether nonexistent headers
5163 # can be detected and how.
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 #include <ac_nonexistent.h>
5167 _ACEOF
5168 if ac_fn_c_try_cpp "$LINENO"; then :
5169 # Broken: success on invalid input.
5170 continue
5171 else
5172 # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5175 fi
5176 rm -f conftest.err conftest.i conftest.$ac_ext
5177
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.i conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then :
5182
5183 else
5184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5187 See \`config.log' for more details" "$LINENO" 5; }
5188 fi
5189
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5199 if ${ac_cv_path_GREP+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -z "$GREP"; then
5203 ac_path_GREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in grep ggrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_GREP" || continue
5214 # Check for GNU ac_path_GREP and select it if it is found.
5215 # Check for GNU $ac_path_GREP
5216 case `"$ac_path_GREP" --version 2>&1` in
5217 *GNU*)
5218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5219 *)
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5223 do
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'GREP' >> "conftest.nl"
5228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_GREP="$ac_path_GREP"
5234 ac_path_GREP_max=$ac_count
5235 fi
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240 esac
5241
5242 $ac_path_GREP_found && break 3
5243 done
5244 done
5245 done
5246 IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_GREP"; then
5248 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5249 fi
5250 else
5251 ac_cv_path_GREP=$GREP
5252 fi
5253
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5256 $as_echo "$ac_cv_path_GREP" >&6; }
5257 GREP="$ac_cv_path_GREP"
5258
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5261 $as_echo_n "checking for egrep... " >&6; }
5262 if ${ac_cv_path_EGREP+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5266 then ac_cv_path_EGREP="$GREP -E"
5267 else
5268 if test -z "$EGREP"; then
5269 ac_path_EGREP_found=false
5270 # Loop through the user's path and test for each of PROGNAME-LIST
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_prog in egrep; do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5279 as_fn_executable_p "$ac_path_EGREP" || continue
5280 # Check for GNU ac_path_EGREP and select it if it is found.
5281 # Check for GNU $ac_path_EGREP
5282 case `"$ac_path_EGREP" --version 2>&1` in
5283 *GNU*)
5284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5285 *)
5286 ac_count=0
5287 $as_echo_n 0123456789 >"conftest.in"
5288 while :
5289 do
5290 cat "conftest.in" "conftest.in" >"conftest.tmp"
5291 mv "conftest.tmp" "conftest.in"
5292 cp "conftest.in" "conftest.nl"
5293 $as_echo 'EGREP' >> "conftest.nl"
5294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5296 as_fn_arith $ac_count + 1 && ac_count=$as_val
5297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5298 # Best one so far, save it but keep looking for a better one
5299 ac_cv_path_EGREP="$ac_path_EGREP"
5300 ac_path_EGREP_max=$ac_count
5301 fi
5302 # 10*(2^10) chars as input seems more than enough
5303 test $ac_count -gt 10 && break
5304 done
5305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5306 esac
5307
5308 $ac_path_EGREP_found && break 3
5309 done
5310 done
5311 done
5312 IFS=$as_save_IFS
5313 if test -z "$ac_cv_path_EGREP"; then
5314 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 fi
5316 else
5317 ac_cv_path_EGREP=$EGREP
5318 fi
5319
5320 fi
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5323 $as_echo "$ac_cv_path_EGREP" >&6; }
5324 EGREP="$ac_cv_path_EGREP"
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5328 $as_echo_n "checking for ANSI C header files... " >&6; }
5329 if ${ac_cv_header_stdc+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <stdlib.h>
5335 #include <stdarg.h>
5336 #include <string.h>
5337 #include <float.h>
5338
5339 int
5340 main ()
5341 {
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 ac_cv_header_stdc=yes
5349 else
5350 ac_cv_header_stdc=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353
5354 if test $ac_cv_header_stdc = yes; then
5355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <string.h>
5359
5360 _ACEOF
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev/null 2>&1; then :
5363
5364 else
5365 ac_cv_header_stdc=no
5366 fi
5367 rm -f conftest*
5368
5369 fi
5370
5371 if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 #include <stdlib.h>
5376
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then :
5380
5381 else
5382 ac_cv_header_stdc=no
5383 fi
5384 rm -f conftest*
5385
5386 fi
5387
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then :
5391 :
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <ctype.h>
5396 #include <stdlib.h>
5397 #if ((' ' & 0x0FF) == 0x020)
5398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400 #else
5401 # define ISLOWER(c) \
5402 (('a' <= (c) && (c) <= 'i') \
5403 || ('j' <= (c) && (c) <= 'r') \
5404 || ('s' <= (c) && (c) <= 'z'))
5405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406 #endif
5407
5408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409 int
5410 main ()
5411 {
5412 int i;
5413 for (i = 0; i < 256; i++)
5414 if (XOR (islower (i), ISLOWER (i))
5415 || toupper (i) != TOUPPER (i))
5416 return 2;
5417 return 0;
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_run "$LINENO"; then :
5421
5422 else
5423 ac_cv_header_stdc=no
5424 fi
5425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5426 conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 fi
5428
5429 fi
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5432 $as_echo "$ac_cv_header_stdc" >&6; }
5433 if test $ac_cv_header_stdc = yes; then
5434
5435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5436
5437 fi
5438
5439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5441 inttypes.h stdint.h unistd.h
5442 do :
5443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5445 "
5446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5447 cat >>confdefs.h <<_ACEOF
5448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5449 _ACEOF
5450
5451 fi
5452
5453 done
5454
5455
5456
5457 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5458 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5459 MINIX=yes
5460 else
5461 MINIX=
5462 fi
5463
5464
5465 if test "$MINIX" = yes; then
5466
5467 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5468
5469
5470 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5471
5472
5473 $as_echo "#define _MINIX 1" >>confdefs.h
5474
5475 fi
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5479 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5480 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485
5486 # define __EXTENSIONS__ 1
5487 $ac_includes_default
5488 int
5489 main ()
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_safe_to_define___extensions__=yes
5498 else
5499 ac_cv_safe_to_define___extensions__=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5504 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5505 test $ac_cv_safe_to_define___extensions__ = yes &&
5506 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5507
5508 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5509
5510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5511
5512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5513
5514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5515
5516
5517
5518 # The tests for host and target for $enable_largefile require
5519 # canonical names.
5520
5521
5522
5523 # As the $enable_largefile decision depends on --enable-plugins we must set it
5524 # even in directories otherwise not depending on the $plugins option.
5525
5526
5527 maybe_plugins=no
5528 for ac_header in dlfcn.h
5529 do :
5530 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5531 "
5532 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5533 cat >>confdefs.h <<_ACEOF
5534 #define HAVE_DLFCN_H 1
5535 _ACEOF
5536 maybe_plugins=yes
5537 fi
5538
5539 done
5540
5541 for ac_header in windows.h
5542 do :
5543 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5544 "
5545 if test "x$ac_cv_header_windows_h" = xyes; then :
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_WINDOWS_H 1
5548 _ACEOF
5549 maybe_plugins=yes
5550 fi
5551
5552 done
5553
5554
5555 # Check whether --enable-plugins was given.
5556 if test "${enable_plugins+set}" = set; then :
5557 enableval=$enable_plugins; case "${enableval}" in
5558 no) plugins=no ;;
5559 *) plugins=yes
5560 if test "$maybe_plugins" != "yes" ; then
5561 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5562 fi ;;
5563 esac
5564 else
5565 plugins=$maybe_plugins
5566
5567 fi
5568
5569 if test "$plugins" = "yes"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5571 $as_echo_n "checking for library containing dlsym... " >&6; }
5572 if ${ac_cv_search_dlsym+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 ac_func_search_save_LIBS=$LIBS
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 /* Override any GCC internal prototype to avoid an error.
5580 Use char because int might match the return type of a GCC
5581 builtin and then its argument prototype would still apply. */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 char dlsym ();
5586 int
5587 main ()
5588 {
5589 return dlsym ();
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 for ac_lib in '' dl; do
5595 if test -z "$ac_lib"; then
5596 ac_res="none required"
5597 else
5598 ac_res=-l$ac_lib
5599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5600 fi
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 ac_cv_search_dlsym=$ac_res
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext
5606 if ${ac_cv_search_dlsym+:} false; then :
5607 break
5608 fi
5609 done
5610 if ${ac_cv_search_dlsym+:} false; then :
5611
5612 else
5613 ac_cv_search_dlsym=no
5614 fi
5615 rm conftest.$ac_ext
5616 LIBS=$ac_func_search_save_LIBS
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5619 $as_echo "$ac_cv_search_dlsym" >&6; }
5620 ac_res=$ac_cv_search_dlsym
5621 if test "$ac_res" != no; then :
5622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5623
5624 fi
5625
5626 fi
5627
5628
5629 case "${host}" in
5630 sparc-*-solaris*|i[3-7]86-*-solaris*)
5631 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5632 # are mutually exclusive; and without procfs support, the bfd/ elf module
5633 # cannot provide certain routines such as elfcore_write_prpsinfo
5634 # or elfcore_write_prstatus. So unless the user explicitly requested
5635 # large-file support through the --enable-largefile switch, disable
5636 # large-file support in favor of procfs support.
5637 test "${target}" = "${host}" -a "x$plugins" = xno \
5638 && : ${enable_largefile="no"}
5639 ;;
5640 esac
5641
5642 # Check whether --enable-largefile was given.
5643 if test "${enable_largefile+set}" = set; then :
5644 enableval=$enable_largefile;
5645 fi
5646
5647 if test "$enable_largefile" != no; then
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5650 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5651 if ${ac_cv_sys_largefile_CC+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_cv_sys_largefile_CC=no
5655 if test "$GCC" != yes; then
5656 ac_save_CC=$CC
5657 while :; do
5658 # IRIX 6.2 and later do not support large files by default,
5659 # so use the C compiler's -n32 option if that helps.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 break
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext
5683 CC="$CC -n32"
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_largefile_CC=' -n32'; break
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext
5688 break
5689 done
5690 CC=$ac_save_CC
5691 rm -f conftest.$ac_ext
5692 fi
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5695 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5696 if test "$ac_cv_sys_largefile_CC" != no; then
5697 CC=$CC$ac_cv_sys_largefile_CC
5698 fi
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5701 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5702 if ${ac_cv_sys_file_offset_bits+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 while :; do
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5709 /* Check that off_t can represent 2**63 - 1 correctly.
5710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5711 since some C++ compilers masquerading as C compilers
5712 incorrectly reject 9223372036854775807. */
5713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5715 && LARGE_OFF_T % 2147483647 == 1)
5716 ? 1 : -1];
5717 int
5718 main ()
5719 {
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 ac_cv_sys_file_offset_bits=no; break
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #define _FILE_OFFSET_BITS 64
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5740 ? 1 : -1];
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_sys_file_offset_bits=64; break
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 ac_cv_sys_file_offset_bits=unknown
5754 break
5755 done
5756 fi
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5758 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5759 case $ac_cv_sys_file_offset_bits in #(
5760 no | unknown) ;;
5761 *)
5762 cat >>confdefs.h <<_ACEOF
5763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5764 _ACEOF
5765 ;;
5766 esac
5767 rm -rf conftest*
5768 if test $ac_cv_sys_file_offset_bits = unknown; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5770 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5771 if ${ac_cv_sys_large_files+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 while :; do
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"; then :
5795 ac_cv_sys_large_files=no; break
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #define _LARGE_FILES 1
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5810 int
5811 main ()
5812 {
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_compile "$LINENO"; then :
5819 ac_cv_sys_large_files=1; break
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_sys_large_files=unknown
5823 break
5824 done
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5827 $as_echo "$ac_cv_sys_large_files" >&6; }
5828 case $ac_cv_sys_large_files in #(
5829 no | unknown) ;;
5830 *)
5831 cat >>confdefs.h <<_ACEOF
5832 #define _LARGE_FILES $ac_cv_sys_large_files
5833 _ACEOF
5834 ;;
5835 esac
5836 rm -rf conftest*
5837 fi
5838
5839
5840 fi
5841
5842
5843 ac_ext=c
5844 ac_cpp='$CPP $CPPFLAGS'
5845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_CC+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$CC"; then
5857 ac_cv_prog_CC="$CC" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 CC=$ac_cv_prog_CC
5877 if test -n "$CC"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5879 $as_echo "$CC" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885
5886 fi
5887 if test -z "$ac_cv_prog_CC"; then
5888 ac_ct_CC=$CC
5889 # Extract the first word of "gcc", so it can be a program name with args.
5890 set dummy gcc; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_CC"; then
5897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_CC="gcc"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5917 if test -n "$ac_ct_CC"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5919 $as_echo "$ac_ct_CC" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925 if test "x$ac_ct_CC" = x; then
5926 CC=""
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 CC=$ac_ct_CC
5935 fi
5936 else
5937 CC="$ac_cv_prog_CC"
5938 fi
5939
5940 if test -z "$CC"; then
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}cc; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_CC+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$CC"; then
5950 ac_cv_prog_CC="$CC" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_CC="${ac_tool_prefix}cc"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 CC=$ac_cv_prog_CC
5970 if test -n "$CC"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5972 $as_echo "$CC" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 fi
5981 if test -z "$CC"; then
5982 # Extract the first word of "cc", so it can be a program name with args.
5983 set dummy cc; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_CC+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$CC"; then
5990 ac_cv_prog_CC="$CC" # Let the user override the test.
5991 else
5992 ac_prog_rejected=no
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6001 ac_prog_rejected=yes
6002 continue
6003 fi
6004 ac_cv_prog_CC="cc"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 if test $ac_prog_rejected = yes; then
6013 # We found a bogon in the path, so make sure we never use it.
6014 set dummy $ac_cv_prog_CC
6015 shift
6016 if test $# != 0; then
6017 # We chose a different compiler from the bogus one.
6018 # However, it has the same basename, so the bogon will be chosen
6019 # first if we set CC to just the basename; use the full file name.
6020 shift
6021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6022 fi
6023 fi
6024 fi
6025 fi
6026 CC=$ac_cv_prog_CC
6027 if test -n "$CC"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6029 $as_echo "$CC" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$CC"; then
6038 if test -n "$ac_tool_prefix"; then
6039 for ac_prog in cl.exe
6040 do
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_CC+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$CC"; then
6049 ac_cv_prog_CC="$CC" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 CC=$ac_cv_prog_CC
6069 if test -n "$CC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6071 $as_echo "$CC" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 test -n "$CC" && break
6079 done
6080 fi
6081 if test -z "$CC"; then
6082 ac_ct_CC=$CC
6083 for ac_prog in cl.exe
6084 do
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
6086 set dummy $ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$ac_ct_CC"; then
6093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_CC="$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6113 if test -n "$ac_ct_CC"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6115 $as_echo "$ac_ct_CC" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122 test -n "$ac_ct_CC" && break
6123 done
6124
6125 if test "x$ac_ct_CC" = x; then
6126 CC=""
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134 CC=$ac_ct_CC
6135 fi
6136 fi
6137
6138 fi
6139
6140
6141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6143 as_fn_error $? "no acceptable C compiler found in \$PATH
6144 See \`config.log' for more details" "$LINENO" 5; }
6145
6146 # Provide some information about the compiler.
6147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6148 set X $ac_compile
6149 ac_compiler=$2
6150 for ac_option in --version -v -V -qversion; do
6151 { { ac_try="$ac_compiler $ac_option >&5"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6157 $as_echo "$ac_try_echo"; } >&5
6158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6159 ac_status=$?
6160 if test -s conftest.err; then
6161 sed '10a\
6162 ... rest of stderr output deleted ...
6163 10q' conftest.err >conftest.er1
6164 cat conftest.er1 >&5
6165 fi
6166 rm -f conftest.er1 conftest.err
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }
6169 done
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6173 if ${ac_cv_c_compiler_gnu+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178
6179 int
6180 main ()
6181 {
6182 #ifndef __GNUC__
6183 choke me
6184 #endif
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_compiler_gnu=yes
6192 else
6193 ac_compiler_gnu=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6197
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6201 if test $ac_compiler_gnu = yes; then
6202 GCC=yes
6203 else
6204 GCC=
6205 fi
6206 ac_test_CFLAGS=${CFLAGS+set}
6207 ac_save_CFLAGS=$CFLAGS
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6210 if ${ac_cv_prog_cc_g+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 ac_save_c_werror_flag=$ac_c_werror_flag
6214 ac_c_werror_flag=yes
6215 ac_cv_prog_cc_g=no
6216 CFLAGS="-g"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219
6220 int
6221 main ()
6222 {
6223
6224 ;
6225 return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 ac_cv_prog_cc_g=yes
6230 else
6231 CFLAGS=""
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234
6235 int
6236 main ()
6237 {
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244
6245 else
6246 ac_c_werror_flag=$ac_save_c_werror_flag
6247 CFLAGS="-g"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_prog_cc_g=yes
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 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_c_werror_flag=$ac_save_c_werror_flag
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6270 $as_echo "$ac_cv_prog_cc_g" >&6; }
6271 if test "$ac_test_CFLAGS" = set; then
6272 CFLAGS=$ac_save_CFLAGS
6273 elif test $ac_cv_prog_cc_g = yes; then
6274 if test "$GCC" = yes; then
6275 CFLAGS="-g -O2"
6276 else
6277 CFLAGS="-g"
6278 fi
6279 else
6280 if test "$GCC" = yes; then
6281 CFLAGS="-O2"
6282 else
6283 CFLAGS=
6284 fi
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6288 if ${ac_cv_prog_cc_c89+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 ac_cv_prog_cc_c89=no
6292 ac_save_CC=$CC
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <stdarg.h>
6296 #include <stdio.h>
6297 struct stat;
6298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6299 struct buf { int x; };
6300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6301 static char *e (p, i)
6302 char **p;
6303 int i;
6304 {
6305 return p[i];
6306 }
6307 static char *f (char * (*g) (char **, int), char **p, ...)
6308 {
6309 char *s;
6310 va_list v;
6311 va_start (v,p);
6312 s = g (p, va_arg (v,int));
6313 va_end (v);
6314 return s;
6315 }
6316
6317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6318 function prototypes and stuff, but not '\xHH' hex character constants.
6319 These don't provoke an error unfortunately, instead are silently treated
6320 as 'x'. The following induces an error, until -std is added to get
6321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6322 array size at least. It's necessary to write '\x00'==0 to get something
6323 that's true only with -std. */
6324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6325
6326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6327 inside strings and character constants. */
6328 #define FOO(x) 'x'
6329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6330
6331 int test (int i, double x);
6332 struct s1 {int (*f) (int a);};
6333 struct s2 {int (*f) (double a);};
6334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6335 int argc;
6336 char **argv;
6337 int
6338 main ()
6339 {
6340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6341 ;
6342 return 0;
6343 }
6344 _ACEOF
6345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6347 do
6348 CC="$ac_save_CC $ac_arg"
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 ac_cv_prog_cc_c89=$ac_arg
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext
6353 test "x$ac_cv_prog_cc_c89" != "xno" && break
6354 done
6355 rm -f conftest.$ac_ext
6356 CC=$ac_save_CC
6357
6358 fi
6359 # AC_CACHE_VAL
6360 case "x$ac_cv_prog_cc_c89" in
6361 x)
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6363 $as_echo "none needed" >&6; } ;;
6364 xno)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6366 $as_echo "unsupported" >&6; } ;;
6367 *)
6368 CC="$CC $ac_cv_prog_cc_c89"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6370 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6371 esac
6372 if test "x$ac_cv_prog_cc_c89" != xno; then :
6373
6374 fi
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382 ac_ext=c
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6388 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6389 if ${am_cv_prog_cc_c_o+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395 int
6396 main ()
6397 {
6398
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 # Make sure it works both with $CC and with simple cc.
6404 # Following AC_PROG_CC_C_O, we do the test twice because some
6405 # compilers refuse to overwrite an existing .o file with -o,
6406 # though they will create one.
6407 am_cv_prog_cc_c_o=yes
6408 for am_i in 1 2; do
6409 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6410 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } \
6414 && test -f conftest2.$ac_objext; then
6415 : OK
6416 else
6417 am_cv_prog_cc_c_o=no
6418 break
6419 fi
6420 done
6421 rm -f core conftest*
6422 unset am_i
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6425 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6426 if test "$am_cv_prog_cc_c_o" != yes; then
6427 # Losing compiler, so override with the script.
6428 # FIXME: It is wrong to rewrite CC.
6429 # But if we don't then we get into trouble of one sort or another.
6430 # A longer-term fix would be to have automake use am__CC in this case,
6431 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6432 CC="$am_aux_dir/compile $CC"
6433 fi
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440
6441 depcc="$CC" am_compiler_list=
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6444 $as_echo_n "checking dependency style of $depcc... " >&6; }
6445 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6449 # We make a subdir and do the tests there. Otherwise we can end up
6450 # making bogus files that we don't know about and never remove. For
6451 # instance it was reported that on HP-UX the gcc test will end up
6452 # making a dummy file named 'D' -- because '-MD' means "put the output
6453 # in D".
6454 rm -rf conftest.dir
6455 mkdir conftest.dir
6456 # Copy depcomp to subdir because otherwise we won't find it if we're
6457 # using a relative directory.
6458 cp "$am_depcomp" conftest.dir
6459 cd conftest.dir
6460 # We will build objects and dependencies in a subdirectory because
6461 # it helps to detect inapplicable dependency modes. For instance
6462 # both Tru64's cc and ICC support -MD to output dependencies as a
6463 # side effect of compilation, but ICC will put the dependencies in
6464 # the current directory while Tru64 will put them in the object
6465 # directory.
6466 mkdir sub
6467
6468 am_cv_CC_dependencies_compiler_type=none
6469 if test "$am_compiler_list" = ""; then
6470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6471 fi
6472 am__universal=false
6473 case " $depcc " in #(
6474 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6475 esac
6476
6477 for depmode in $am_compiler_list; do
6478 # Setup a source with many dependencies, because some compilers
6479 # like to wrap large dependency lists on column 80 (with \), and
6480 # we should not choose a depcomp mode which is confused by this.
6481 #
6482 # We need to recreate these files for each test, as the compiler may
6483 # overwrite some of them when testing with obscure command lines.
6484 # This happens at least with the AIX C compiler.
6485 : > sub/conftest.c
6486 for i in 1 2 3 4 5 6; do
6487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6488 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6489 # Solaris 10 /bin/sh.
6490 echo '/* dummy */' > sub/conftst$i.h
6491 done
6492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6493
6494 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle '-M -o', and we need to detect this. Also, some Intel
6497 # versions had trouble with output in subdirs.
6498 am__obj=sub/conftest.${OBJEXT-o}
6499 am__minus_obj="-o $am__obj"
6500 case $depmode in
6501 gcc)
6502 # This depmode causes a compiler race in universal mode.
6503 test "$am__universal" = false || continue
6504 ;;
6505 nosideeffect)
6506 # After this tag, mechanisms are not by side-effect, so they'll
6507 # only be used when explicitly requested.
6508 if test "x$enable_dependency_tracking" = xyes; then
6509 continue
6510 else
6511 break
6512 fi
6513 ;;
6514 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6515 # This compiler won't grok '-c -o', but also, the minuso test has
6516 # not run yet. These depmodes are late enough in the game, and
6517 # so weak that their functioning should not be impacted.
6518 am__obj=conftest.${OBJEXT-o}
6519 am__minus_obj=
6520 ;;
6521 none) break ;;
6522 esac
6523 if depmode=$depmode \
6524 source=sub/conftest.c object=$am__obj \
6525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6526 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6527 >/dev/null 2>conftest.err &&
6528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6530 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6532 # icc doesn't choke on unknown options, it will just issue warnings
6533 # or remarks (even with -Werror). So we grep stderr for any message
6534 # that says an option was ignored or not supported.
6535 # When given -MP, icc 7.0 and 7.1 complain thusly:
6536 # icc: Command line warning: ignoring option '-M'; no argument required
6537 # The diagnosis changed in icc 8.0:
6538 # icc: Command line remark: option '-MP' not supported
6539 if (grep 'ignoring option' conftest.err ||
6540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6541 am_cv_CC_dependencies_compiler_type=$depmode
6542 break
6543 fi
6544 fi
6545 done
6546
6547 cd ..
6548 rm -rf conftest.dir
6549 else
6550 am_cv_CC_dependencies_compiler_type=none
6551 fi
6552
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6555 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6557
6558 if
6559 test "x$enable_dependency_tracking" != xno \
6560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6561 am__fastdepCC_TRUE=
6562 am__fastdepCC_FALSE='#'
6563 else
6564 am__fastdepCC_TRUE='#'
6565 am__fastdepCC_FALSE=
6566 fi
6567
6568
6569 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6570
6571
6572 # We require a C++11 compiler. Check if one is available, and if
6573 # necessary, set CXX_DIALECT to some -std=xxx switch.
6574
6575 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6576 ac_ext=cpp
6577 ac_cpp='$CXXCPP $CPPFLAGS'
6578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6581 CXX_DIALECT=""
6582 ac_success=no
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6584 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6585 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591
6592 // If the compiler admits that it is not ready for C++11, why torture it?
6593 // Hopefully, this will speed up the test.
6594
6595 #ifndef __cplusplus
6596
6597 #error "This is not a C++ compiler"
6598
6599 #elif __cplusplus < 201103L
6600
6601 #error "This is not a C++11 compiler"
6602
6603 #else
6604
6605 namespace cxx11
6606 {
6607
6608 namespace test_static_assert
6609 {
6610
6611 template <typename T>
6612 struct check
6613 {
6614 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6615 };
6616
6617 }
6618
6619 namespace test_final_override
6620 {
6621
6622 struct Base
6623 {
6624 virtual void f() {}
6625 };
6626
6627 struct Derived : public Base
6628 {
6629 virtual void f() override {}
6630 };
6631
6632 }
6633
6634 namespace test_double_right_angle_brackets
6635 {
6636
6637 template < typename T >
6638 struct check {};
6639
6640 typedef check<void> single_type;
6641 typedef check<check<void>> double_type;
6642 typedef check<check<check<void>>> triple_type;
6643 typedef check<check<check<check<void>>>> quadruple_type;
6644
6645 }
6646
6647 namespace test_decltype
6648 {
6649
6650 int
6651 f()
6652 {
6653 int a = 1;
6654 decltype(a) b = 2;
6655 return a + b;
6656 }
6657
6658 }
6659
6660 namespace test_type_deduction
6661 {
6662
6663 template < typename T1, typename T2 >
6664 struct is_same
6665 {
6666 static const bool value = false;
6667 };
6668
6669 template < typename T >
6670 struct is_same<T, T>
6671 {
6672 static const bool value = true;
6673 };
6674
6675 template < typename T1, typename T2 >
6676 auto
6677 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6678 {
6679 return a1 + a2;
6680 }
6681
6682 int
6683 test(const int c, volatile int v)
6684 {
6685 static_assert(is_same<int, decltype(0)>::value == true, "");
6686 static_assert(is_same<int, decltype(c)>::value == false, "");
6687 static_assert(is_same<int, decltype(v)>::value == false, "");
6688 auto ac = c;
6689 auto av = v;
6690 auto sumi = ac + av + 'x';
6691 auto sumf = ac + av + 1.0;
6692 static_assert(is_same<int, decltype(ac)>::value == true, "");
6693 static_assert(is_same<int, decltype(av)>::value == true, "");
6694 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6695 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6696 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6697 return (sumf > 0.0) ? sumi : add(c, v);
6698 }
6699
6700 }
6701
6702 namespace test_noexcept
6703 {
6704
6705 int f() { return 0; }
6706 int g() noexcept { return 0; }
6707
6708 static_assert(noexcept(f()) == false, "");
6709 static_assert(noexcept(g()) == true, "");
6710
6711 }
6712
6713 namespace test_constexpr
6714 {
6715
6716 template < typename CharT >
6717 unsigned long constexpr
6718 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6719 {
6720 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6721 }
6722
6723 template < typename CharT >
6724 unsigned long constexpr
6725 strlen_c(const CharT *const s) noexcept
6726 {
6727 return strlen_c_r(s, 0UL);
6728 }
6729
6730 static_assert(strlen_c("") == 0UL, "");
6731 static_assert(strlen_c("1") == 1UL, "");
6732 static_assert(strlen_c("example") == 7UL, "");
6733 static_assert(strlen_c("another\0example") == 7UL, "");
6734
6735 }
6736
6737 namespace test_rvalue_references
6738 {
6739
6740 template < int N >
6741 struct answer
6742 {
6743 static constexpr int value = N;
6744 };
6745
6746 answer<1> f(int&) { return answer<1>(); }
6747 answer<2> f(const int&) { return answer<2>(); }
6748 answer<3> f(int&&) { return answer<3>(); }
6749
6750 void
6751 test()
6752 {
6753 int i = 0;
6754 const int c = 0;
6755 static_assert(decltype(f(i))::value == 1, "");
6756 static_assert(decltype(f(c))::value == 2, "");
6757 static_assert(decltype(f(0))::value == 3, "");
6758 }
6759
6760 }
6761
6762 namespace test_uniform_initialization
6763 {
6764
6765 struct test
6766 {
6767 static const int zero {};
6768 static const int one {1};
6769 };
6770
6771 static_assert(test::zero == 0, "");
6772 static_assert(test::one == 1, "");
6773
6774 }
6775
6776 namespace test_lambdas
6777 {
6778
6779 void
6780 test1()
6781 {
6782 auto lambda1 = [](){};
6783 auto lambda2 = lambda1;
6784 lambda1();
6785 lambda2();
6786 }
6787
6788 int
6789 test2()
6790 {
6791 auto a = [](int i, int j){ return i + j; }(1, 2);
6792 auto b = []() -> int { return '0'; }();
6793 auto c = [=](){ return a + b; }();
6794 auto d = [&](){ return c; }();
6795 auto e = [a, &b](int x) mutable {
6796 const auto identity = [](int y){ return y; };
6797 for (auto i = 0; i < a; ++i)
6798 a += b--;
6799 return x + identity(a + b);
6800 }(0);
6801 return a + b + c + d + e;
6802 }
6803
6804 int
6805 test3()
6806 {
6807 const auto nullary = [](){ return 0; };
6808 const auto unary = [](int x){ return x; };
6809 using nullary_t = decltype(nullary);
6810 using unary_t = decltype(unary);
6811 const auto higher1st = [](nullary_t f){ return f(); };
6812 const auto higher2nd = [unary](nullary_t f1){
6813 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6814 };
6815 return higher1st(nullary) + higher2nd(nullary)(unary);
6816 }
6817
6818 }
6819
6820 namespace test_variadic_templates
6821 {
6822
6823 template <int...>
6824 struct sum;
6825
6826 template <int N0, int... N1toN>
6827 struct sum<N0, N1toN...>
6828 {
6829 static constexpr auto value = N0 + sum<N1toN...>::value;
6830 };
6831
6832 template <>
6833 struct sum<>
6834 {
6835 static constexpr auto value = 0;
6836 };
6837
6838 static_assert(sum<>::value == 0, "");
6839 static_assert(sum<1>::value == 1, "");
6840 static_assert(sum<23>::value == 23, "");
6841 static_assert(sum<1, 2>::value == 3, "");
6842 static_assert(sum<5, 5, 11>::value == 21, "");
6843 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6844
6845 }
6846
6847 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6848 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6849 // because of this.
6850 namespace test_template_alias_sfinae
6851 {
6852
6853 struct foo {};
6854
6855 template<typename T>
6856 using member = typename T::member_type;
6857
6858 template<typename T>
6859 void func(...) {}
6860
6861 template<typename T>
6862 void func(member<T>*) {}
6863
6864 void test();
6865
6866 void test() { func<foo>(0); }
6867
6868 }
6869
6870 } // namespace cxx11
6871
6872 #endif // __cplusplus >= 201103L
6873
6874
6875
6876 _ACEOF
6877 if ac_fn_cxx_try_compile "$LINENO"; then :
6878 ax_cv_cxx_compile_cxx11=yes
6879 else
6880 ax_cv_cxx_compile_cxx11=no
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6885 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6886 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6887 ac_success=yes
6888 fi
6889
6890 if test x$ac_success = xno; then
6891 for alternative in ${ax_cxx_compile_alternatives}; do
6892 switch="-std=gnu++${alternative}"
6893 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6895 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6896 if eval \${$cachevar+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 ac_save_CXX="$CXX"
6900 CXX="$CXX $switch"
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903
6904
6905 // If the compiler admits that it is not ready for C++11, why torture it?
6906 // Hopefully, this will speed up the test.
6907
6908 #ifndef __cplusplus
6909
6910 #error "This is not a C++ compiler"
6911
6912 #elif __cplusplus < 201103L
6913
6914 #error "This is not a C++11 compiler"
6915
6916 #else
6917
6918 namespace cxx11
6919 {
6920
6921 namespace test_static_assert
6922 {
6923
6924 template <typename T>
6925 struct check
6926 {
6927 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6928 };
6929
6930 }
6931
6932 namespace test_final_override
6933 {
6934
6935 struct Base
6936 {
6937 virtual void f() {}
6938 };
6939
6940 struct Derived : public Base
6941 {
6942 virtual void f() override {}
6943 };
6944
6945 }
6946
6947 namespace test_double_right_angle_brackets
6948 {
6949
6950 template < typename T >
6951 struct check {};
6952
6953 typedef check<void> single_type;
6954 typedef check<check<void>> double_type;
6955 typedef check<check<check<void>>> triple_type;
6956 typedef check<check<check<check<void>>>> quadruple_type;
6957
6958 }
6959
6960 namespace test_decltype
6961 {
6962
6963 int
6964 f()
6965 {
6966 int a = 1;
6967 decltype(a) b = 2;
6968 return a + b;
6969 }
6970
6971 }
6972
6973 namespace test_type_deduction
6974 {
6975
6976 template < typename T1, typename T2 >
6977 struct is_same
6978 {
6979 static const bool value = false;
6980 };
6981
6982 template < typename T >
6983 struct is_same<T, T>
6984 {
6985 static const bool value = true;
6986 };
6987
6988 template < typename T1, typename T2 >
6989 auto
6990 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6991 {
6992 return a1 + a2;
6993 }
6994
6995 int
6996 test(const int c, volatile int v)
6997 {
6998 static_assert(is_same<int, decltype(0)>::value == true, "");
6999 static_assert(is_same<int, decltype(c)>::value == false, "");
7000 static_assert(is_same<int, decltype(v)>::value == false, "");
7001 auto ac = c;
7002 auto av = v;
7003 auto sumi = ac + av + 'x';
7004 auto sumf = ac + av + 1.0;
7005 static_assert(is_same<int, decltype(ac)>::value == true, "");
7006 static_assert(is_same<int, decltype(av)>::value == true, "");
7007 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7008 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7009 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7010 return (sumf > 0.0) ? sumi : add(c, v);
7011 }
7012
7013 }
7014
7015 namespace test_noexcept
7016 {
7017
7018 int f() { return 0; }
7019 int g() noexcept { return 0; }
7020
7021 static_assert(noexcept(f()) == false, "");
7022 static_assert(noexcept(g()) == true, "");
7023
7024 }
7025
7026 namespace test_constexpr
7027 {
7028
7029 template < typename CharT >
7030 unsigned long constexpr
7031 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7032 {
7033 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7034 }
7035
7036 template < typename CharT >
7037 unsigned long constexpr
7038 strlen_c(const CharT *const s) noexcept
7039 {
7040 return strlen_c_r(s, 0UL);
7041 }
7042
7043 static_assert(strlen_c("") == 0UL, "");
7044 static_assert(strlen_c("1") == 1UL, "");
7045 static_assert(strlen_c("example") == 7UL, "");
7046 static_assert(strlen_c("another\0example") == 7UL, "");
7047
7048 }
7049
7050 namespace test_rvalue_references
7051 {
7052
7053 template < int N >
7054 struct answer
7055 {
7056 static constexpr int value = N;
7057 };
7058
7059 answer<1> f(int&) { return answer<1>(); }
7060 answer<2> f(const int&) { return answer<2>(); }
7061 answer<3> f(int&&) { return answer<3>(); }
7062
7063 void
7064 test()
7065 {
7066 int i = 0;
7067 const int c = 0;
7068 static_assert(decltype(f(i))::value == 1, "");
7069 static_assert(decltype(f(c))::value == 2, "");
7070 static_assert(decltype(f(0))::value == 3, "");
7071 }
7072
7073 }
7074
7075 namespace test_uniform_initialization
7076 {
7077
7078 struct test
7079 {
7080 static const int zero {};
7081 static const int one {1};
7082 };
7083
7084 static_assert(test::zero == 0, "");
7085 static_assert(test::one == 1, "");
7086
7087 }
7088
7089 namespace test_lambdas
7090 {
7091
7092 void
7093 test1()
7094 {
7095 auto lambda1 = [](){};
7096 auto lambda2 = lambda1;
7097 lambda1();
7098 lambda2();
7099 }
7100
7101 int
7102 test2()
7103 {
7104 auto a = [](int i, int j){ return i + j; }(1, 2);
7105 auto b = []() -> int { return '0'; }();
7106 auto c = [=](){ return a + b; }();
7107 auto d = [&](){ return c; }();
7108 auto e = [a, &b](int x) mutable {
7109 const auto identity = [](int y){ return y; };
7110 for (auto i = 0; i < a; ++i)
7111 a += b--;
7112 return x + identity(a + b);
7113 }(0);
7114 return a + b + c + d + e;
7115 }
7116
7117 int
7118 test3()
7119 {
7120 const auto nullary = [](){ return 0; };
7121 const auto unary = [](int x){ return x; };
7122 using nullary_t = decltype(nullary);
7123 using unary_t = decltype(unary);
7124 const auto higher1st = [](nullary_t f){ return f(); };
7125 const auto higher2nd = [unary](nullary_t f1){
7126 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7127 };
7128 return higher1st(nullary) + higher2nd(nullary)(unary);
7129 }
7130
7131 }
7132
7133 namespace test_variadic_templates
7134 {
7135
7136 template <int...>
7137 struct sum;
7138
7139 template <int N0, int... N1toN>
7140 struct sum<N0, N1toN...>
7141 {
7142 static constexpr auto value = N0 + sum<N1toN...>::value;
7143 };
7144
7145 template <>
7146 struct sum<>
7147 {
7148 static constexpr auto value = 0;
7149 };
7150
7151 static_assert(sum<>::value == 0, "");
7152 static_assert(sum<1>::value == 1, "");
7153 static_assert(sum<23>::value == 23, "");
7154 static_assert(sum<1, 2>::value == 3, "");
7155 static_assert(sum<5, 5, 11>::value == 21, "");
7156 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7157
7158 }
7159
7160 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7161 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7162 // because of this.
7163 namespace test_template_alias_sfinae
7164 {
7165
7166 struct foo {};
7167
7168 template<typename T>
7169 using member = typename T::member_type;
7170
7171 template<typename T>
7172 void func(...) {}
7173
7174 template<typename T>
7175 void func(member<T>*) {}
7176
7177 void test();
7178
7179 void test() { func<foo>(0); }
7180
7181 }
7182
7183 } // namespace cxx11
7184
7185 #endif // __cplusplus >= 201103L
7186
7187
7188
7189 _ACEOF
7190 if ac_fn_cxx_try_compile "$LINENO"; then :
7191 eval $cachevar=yes
7192 else
7193 eval $cachevar=no
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 CXX="$ac_save_CXX"
7197 fi
7198 eval ac_res=\$$cachevar
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if eval test x\$$cachevar = xyes; then
7202 CXX_DIALECT="$switch"
7203 ac_success=yes
7204 break
7205 fi
7206 done
7207 fi
7208
7209 if test x$ac_success = xno; then
7210 for alternative in ${ax_cxx_compile_alternatives}; do
7211 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7212 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7214 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7215 if eval \${$cachevar+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 ac_save_CXX="$CXX"
7219 CXX="$CXX $switch"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222
7223
7224 // If the compiler admits that it is not ready for C++11, why torture it?
7225 // Hopefully, this will speed up the test.
7226
7227 #ifndef __cplusplus
7228
7229 #error "This is not a C++ compiler"
7230
7231 #elif __cplusplus < 201103L
7232
7233 #error "This is not a C++11 compiler"
7234
7235 #else
7236
7237 namespace cxx11
7238 {
7239
7240 namespace test_static_assert
7241 {
7242
7243 template <typename T>
7244 struct check
7245 {
7246 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7247 };
7248
7249 }
7250
7251 namespace test_final_override
7252 {
7253
7254 struct Base
7255 {
7256 virtual void f() {}
7257 };
7258
7259 struct Derived : public Base
7260 {
7261 virtual void f() override {}
7262 };
7263
7264 }
7265
7266 namespace test_double_right_angle_brackets
7267 {
7268
7269 template < typename T >
7270 struct check {};
7271
7272 typedef check<void> single_type;
7273 typedef check<check<void>> double_type;
7274 typedef check<check<check<void>>> triple_type;
7275 typedef check<check<check<check<void>>>> quadruple_type;
7276
7277 }
7278
7279 namespace test_decltype
7280 {
7281
7282 int
7283 f()
7284 {
7285 int a = 1;
7286 decltype(a) b = 2;
7287 return a + b;
7288 }
7289
7290 }
7291
7292 namespace test_type_deduction
7293 {
7294
7295 template < typename T1, typename T2 >
7296 struct is_same
7297 {
7298 static const bool value = false;
7299 };
7300
7301 template < typename T >
7302 struct is_same<T, T>
7303 {
7304 static const bool value = true;
7305 };
7306
7307 template < typename T1, typename T2 >
7308 auto
7309 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7310 {
7311 return a1 + a2;
7312 }
7313
7314 int
7315 test(const int c, volatile int v)
7316 {
7317 static_assert(is_same<int, decltype(0)>::value == true, "");
7318 static_assert(is_same<int, decltype(c)>::value == false, "");
7319 static_assert(is_same<int, decltype(v)>::value == false, "");
7320 auto ac = c;
7321 auto av = v;
7322 auto sumi = ac + av + 'x';
7323 auto sumf = ac + av + 1.0;
7324 static_assert(is_same<int, decltype(ac)>::value == true, "");
7325 static_assert(is_same<int, decltype(av)>::value == true, "");
7326 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7327 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7328 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7329 return (sumf > 0.0) ? sumi : add(c, v);
7330 }
7331
7332 }
7333
7334 namespace test_noexcept
7335 {
7336
7337 int f() { return 0; }
7338 int g() noexcept { return 0; }
7339
7340 static_assert(noexcept(f()) == false, "");
7341 static_assert(noexcept(g()) == true, "");
7342
7343 }
7344
7345 namespace test_constexpr
7346 {
7347
7348 template < typename CharT >
7349 unsigned long constexpr
7350 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7351 {
7352 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7353 }
7354
7355 template < typename CharT >
7356 unsigned long constexpr
7357 strlen_c(const CharT *const s) noexcept
7358 {
7359 return strlen_c_r(s, 0UL);
7360 }
7361
7362 static_assert(strlen_c("") == 0UL, "");
7363 static_assert(strlen_c("1") == 1UL, "");
7364 static_assert(strlen_c("example") == 7UL, "");
7365 static_assert(strlen_c("another\0example") == 7UL, "");
7366
7367 }
7368
7369 namespace test_rvalue_references
7370 {
7371
7372 template < int N >
7373 struct answer
7374 {
7375 static constexpr int value = N;
7376 };
7377
7378 answer<1> f(int&) { return answer<1>(); }
7379 answer<2> f(const int&) { return answer<2>(); }
7380 answer<3> f(int&&) { return answer<3>(); }
7381
7382 void
7383 test()
7384 {
7385 int i = 0;
7386 const int c = 0;
7387 static_assert(decltype(f(i))::value == 1, "");
7388 static_assert(decltype(f(c))::value == 2, "");
7389 static_assert(decltype(f(0))::value == 3, "");
7390 }
7391
7392 }
7393
7394 namespace test_uniform_initialization
7395 {
7396
7397 struct test
7398 {
7399 static const int zero {};
7400 static const int one {1};
7401 };
7402
7403 static_assert(test::zero == 0, "");
7404 static_assert(test::one == 1, "");
7405
7406 }
7407
7408 namespace test_lambdas
7409 {
7410
7411 void
7412 test1()
7413 {
7414 auto lambda1 = [](){};
7415 auto lambda2 = lambda1;
7416 lambda1();
7417 lambda2();
7418 }
7419
7420 int
7421 test2()
7422 {
7423 auto a = [](int i, int j){ return i + j; }(1, 2);
7424 auto b = []() -> int { return '0'; }();
7425 auto c = [=](){ return a + b; }();
7426 auto d = [&](){ return c; }();
7427 auto e = [a, &b](int x) mutable {
7428 const auto identity = [](int y){ return y; };
7429 for (auto i = 0; i < a; ++i)
7430 a += b--;
7431 return x + identity(a + b);
7432 }(0);
7433 return a + b + c + d + e;
7434 }
7435
7436 int
7437 test3()
7438 {
7439 const auto nullary = [](){ return 0; };
7440 const auto unary = [](int x){ return x; };
7441 using nullary_t = decltype(nullary);
7442 using unary_t = decltype(unary);
7443 const auto higher1st = [](nullary_t f){ return f(); };
7444 const auto higher2nd = [unary](nullary_t f1){
7445 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7446 };
7447 return higher1st(nullary) + higher2nd(nullary)(unary);
7448 }
7449
7450 }
7451
7452 namespace test_variadic_templates
7453 {
7454
7455 template <int...>
7456 struct sum;
7457
7458 template <int N0, int... N1toN>
7459 struct sum<N0, N1toN...>
7460 {
7461 static constexpr auto value = N0 + sum<N1toN...>::value;
7462 };
7463
7464 template <>
7465 struct sum<>
7466 {
7467 static constexpr auto value = 0;
7468 };
7469
7470 static_assert(sum<>::value == 0, "");
7471 static_assert(sum<1>::value == 1, "");
7472 static_assert(sum<23>::value == 23, "");
7473 static_assert(sum<1, 2>::value == 3, "");
7474 static_assert(sum<5, 5, 11>::value == 21, "");
7475 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7476
7477 }
7478
7479 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7480 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7481 // because of this.
7482 namespace test_template_alias_sfinae
7483 {
7484
7485 struct foo {};
7486
7487 template<typename T>
7488 using member = typename T::member_type;
7489
7490 template<typename T>
7491 void func(...) {}
7492
7493 template<typename T>
7494 void func(member<T>*) {}
7495
7496 void test();
7497
7498 void test() { func<foo>(0); }
7499
7500 }
7501
7502 } // namespace cxx11
7503
7504 #endif // __cplusplus >= 201103L
7505
7506
7507
7508 _ACEOF
7509 if ac_fn_cxx_try_compile "$LINENO"; then :
7510 eval $cachevar=yes
7511 else
7512 eval $cachevar=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 CXX="$ac_save_CXX"
7516 fi
7517 eval ac_res=\$$cachevar
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7519 $as_echo "$ac_res" >&6; }
7520 if eval test x\$$cachevar = xyes; then
7521 CXX_DIALECT="$switch"
7522 ac_success=yes
7523 break
7524 fi
7525 done
7526 if test x$ac_success = xyes; then
7527 break
7528 fi
7529 done
7530 fi
7531 ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
7537 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7538 if test x$ac_success = xno; then
7539 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7540 fi
7541 fi
7542 if test x$ac_success = xno; then
7543 HAVE_CXX11=0
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7545 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7546 else
7547 HAVE_CXX11=1
7548
7549 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7550
7551 fi
7552
7553
7554
7555
7556 # If we haven't got the data from the intl directory,
7557 # assume NLS is disabled.
7558 USE_NLS=no
7559 LIBINTL=
7560 LIBINTL_DEP=
7561 INCINTL=
7562 XGETTEXT=
7563 GMSGFMT=
7564 POSUB=
7565
7566 if test -f ../intl/config.intl; then
7567 . ../intl/config.intl
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7570 $as_echo_n "checking whether NLS is requested... " >&6; }
7571 if test x"$USE_NLS" != xyes; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7577
7578 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7582 $as_echo_n "checking for catalogs to be installed... " >&6; }
7583 # Look for .po and .gmo files in the source directory.
7584 CATALOGS=
7585 XLINGUAS=
7586 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7587 # If there aren't any .gmo files the shell will give us the
7588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7589 # weeded out.
7590 case "$cat" in *\**)
7591 continue;;
7592 esac
7593 # The quadruple backslash is collapsed to a double backslash
7594 # by the backticks, then collapsed again by the double quotes,
7595 # leaving us with one backslash in the sed expression (right
7596 # before the dot that mustn't act as a wildcard).
7597 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7598 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7599 # The user is allowed to set LINGUAS to a list of languages to
7600 # install catalogs for. If it's empty that means "all of them."
7601 if test "x$LINGUAS" = x; then
7602 CATALOGS="$CATALOGS $cat"
7603 XLINGUAS="$XLINGUAS $lang"
7604 else
7605 case "$LINGUAS" in *$lang*)
7606 CATALOGS="$CATALOGS $cat"
7607 XLINGUAS="$XLINGUAS $lang"
7608 ;;
7609 esac
7610 fi
7611 done
7612 LINGUAS="$XLINGUAS"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7614 $as_echo "$LINGUAS" >&6; }
7615
7616
7617 DATADIRNAME=share
7618
7619 INSTOBJEXT=.mo
7620
7621 GENCAT=gencat
7622
7623 CATOBJEXT=.gmo
7624
7625 fi
7626
7627
7628 # Check for presence and size of long long.
7629 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7630 if test "x$ac_cv_type_long_long" = xyes; then :
7631
7632 cat >>confdefs.h <<_ACEOF
7633 #define HAVE_LONG_LONG 1
7634 _ACEOF
7635
7636 # The cast to long int works around a bug in the HP C Compiler
7637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7639 # This bug is HP SR number 8606223364.
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7641 $as_echo_n "checking size of long long... " >&6; }
7642 if ${ac_cv_sizeof_long_long+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7646
7647 else
7648 if test "$ac_cv_type_long_long" = yes; then
7649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651 as_fn_error 77 "cannot compute sizeof (long long)
7652 See \`config.log' for more details" "$LINENO" 5; }
7653 else
7654 ac_cv_sizeof_long_long=0
7655 fi
7656 fi
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7660 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7661
7662
7663
7664 cat >>confdefs.h <<_ACEOF
7665 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7666 _ACEOF
7667
7668
7669 fi
7670
7671
7672 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7673 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7674 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7675 ac_have_decl=1
7676 else
7677 ac_have_decl=0
7678 fi
7679
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_DECL_BASENAME $ac_have_decl
7682 _ACEOF
7683 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7684 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7685 ac_have_decl=1
7686 else
7687 ac_have_decl=0
7688 fi
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_DECL_FFS $ac_have_decl
7692 _ACEOF
7693 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7694 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7695 ac_have_decl=1
7696 else
7697 ac_have_decl=0
7698 fi
7699
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_DECL_ASPRINTF $ac_have_decl
7702 _ACEOF
7703 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7704 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7705 ac_have_decl=1
7706 else
7707 ac_have_decl=0
7708 fi
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DECL_VASPRINTF $ac_have_decl
7712 _ACEOF
7713 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7714 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7715 ac_have_decl=1
7716 else
7717 ac_have_decl=0
7718 fi
7719
7720 cat >>confdefs.h <<_ACEOF
7721 #define HAVE_DECL_SNPRINTF $ac_have_decl
7722 _ACEOF
7723 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7724 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7725 ac_have_decl=1
7726 else
7727 ac_have_decl=0
7728 fi
7729
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7732 _ACEOF
7733
7734 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7735 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7736 ac_have_decl=1
7737 else
7738 ac_have_decl=0
7739 fi
7740
7741 cat >>confdefs.h <<_ACEOF
7742 #define HAVE_DECL_STRTOL $ac_have_decl
7743 _ACEOF
7744 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7745 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7746 ac_have_decl=1
7747 else
7748 ac_have_decl=0
7749 fi
7750
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_DECL_STRTOUL $ac_have_decl
7753 _ACEOF
7754 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7755 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7756 ac_have_decl=1
7757 else
7758 ac_have_decl=0
7759 fi
7760
7761 cat >>confdefs.h <<_ACEOF
7762 #define HAVE_DECL_STRTOLL $ac_have_decl
7763 _ACEOF
7764 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7765 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7766 ac_have_decl=1
7767 else
7768 ac_have_decl=0
7769 fi
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define HAVE_DECL_STRTOULL $ac_have_decl
7773 _ACEOF
7774
7775 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7776 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7777 ac_have_decl=1
7778 else
7779 ac_have_decl=0
7780 fi
7781
7782 cat >>confdefs.h <<_ACEOF
7783 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7784 _ACEOF
7785
7786
7787 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7788 if test "x$ac_cv_type_size_t" = xyes; then :
7789
7790 else
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define size_t unsigned int
7794 _ACEOF
7795
7796 fi
7797
7798
7799
7800
7801 for ac_header in $ac_header_list
7802 do :
7803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7805 "
7806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7807 cat >>confdefs.h <<_ACEOF
7808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 _ACEOF
7810
7811 fi
7812
7813 done
7814
7815
7816
7817
7818
7819
7820
7821 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7822 if test "x$ac_cv_type_pid_t" = xyes; then :
7823
7824 else
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define pid_t int
7828 _ACEOF
7829
7830 fi
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7833 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7834 if ${ac_cv_path_SED+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7838 for ac_i in 1 2 3 4 5 6 7; do
7839 ac_script="$ac_script$as_nl$ac_script"
7840 done
7841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7842 { ac_script=; unset ac_script;}
7843 if test -z "$SED"; then
7844 ac_path_SED_found=false
7845 # Loop through the user's path and test for each of PROGNAME-LIST
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_prog in sed gsed; do
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7854 as_fn_executable_p "$ac_path_SED" || continue
7855 # Check for GNU ac_path_SED and select it if it is found.
7856 # Check for GNU $ac_path_SED
7857 case `"$ac_path_SED" --version 2>&1` in
7858 *GNU*)
7859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7860 *)
7861 ac_count=0
7862 $as_echo_n 0123456789 >"conftest.in"
7863 while :
7864 do
7865 cat "conftest.in" "conftest.in" >"conftest.tmp"
7866 mv "conftest.tmp" "conftest.in"
7867 cp "conftest.in" "conftest.nl"
7868 $as_echo '' >> "conftest.nl"
7869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7871 as_fn_arith $ac_count + 1 && ac_count=$as_val
7872 if test $ac_count -gt ${ac_path_SED_max-0}; then
7873 # Best one so far, save it but keep looking for a better one
7874 ac_cv_path_SED="$ac_path_SED"
7875 ac_path_SED_max=$ac_count
7876 fi
7877 # 10*(2^10) chars as input seems more than enough
7878 test $ac_count -gt 10 && break
7879 done
7880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7881 esac
7882
7883 $ac_path_SED_found && break 3
7884 done
7885 done
7886 done
7887 IFS=$as_save_IFS
7888 if test -z "$ac_cv_path_SED"; then
7889 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7890 fi
7891 else
7892 ac_cv_path_SED=$SED
7893 fi
7894
7895 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7897 $as_echo "$ac_cv_path_SED" >&6; }
7898 SED="$ac_cv_path_SED"
7899 rm -f conftest.sed
7900
7901
7902 if test "X$prefix" = "XNONE"; then
7903 acl_final_prefix="$ac_default_prefix"
7904 else
7905 acl_final_prefix="$prefix"
7906 fi
7907 if test "X$exec_prefix" = "XNONE"; then
7908 acl_final_exec_prefix='${prefix}'
7909 else
7910 acl_final_exec_prefix="$exec_prefix"
7911 fi
7912 acl_save_prefix="$prefix"
7913 prefix="$acl_final_prefix"
7914 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7915 prefix="$acl_save_prefix"
7916
7917
7918 # Check whether --with-gnu-ld was given.
7919 if test "${with_gnu_ld+set}" = set; then :
7920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7921 else
7922 with_gnu_ld=no
7923 fi
7924
7925 # Prepare PATH_SEPARATOR.
7926 # The user is always right.
7927 if test "${PATH_SEPARATOR+set}" != set; then
7928 echo "#! /bin/sh" >conf$$.sh
7929 echo "exit 0" >>conf$$.sh
7930 chmod +x conf$$.sh
7931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7932 PATH_SEPARATOR=';'
7933 else
7934 PATH_SEPARATOR=:
7935 fi
7936 rm -f conf$$.sh
7937 fi
7938 ac_prog=ld
7939 if test "$GCC" = yes; then
7940 # Check if gcc -print-prog-name=ld gives a path.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7942 $as_echo_n "checking for ld used by GCC... " >&6; }
7943 case $host in
7944 *-*-mingw*)
7945 # gcc leaves a trailing carriage return which upsets mingw
7946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7947 *)
7948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7949 esac
7950 case $ac_prog in
7951 # Accept absolute paths.
7952 [\\/]* | [A-Za-z]:[\\/]*)
7953 re_direlt='/[^/][^/]*/\.\./'
7954 # Canonicalize the path of ld
7955 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7956 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7957 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7958 done
7959 test -z "$LD" && LD="$ac_prog"
7960 ;;
7961 "")
7962 # If it fails, then pretend we aren't using GCC.
7963 ac_prog=ld
7964 ;;
7965 *)
7966 # If it is relative, then search for the first ld in PATH.
7967 with_gnu_ld=unknown
7968 ;;
7969 esac
7970 elif test "$with_gnu_ld" = yes; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7972 $as_echo_n "checking for GNU ld... " >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7975 $as_echo_n "checking for non-GNU ld... " >&6; }
7976 fi
7977 if ${acl_cv_path_LD+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -z "$LD"; then
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7982 for ac_dir in $PATH; do
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7985 acl_cv_path_LD="$ac_dir/$ac_prog"
7986 # Check to see if the program is GNU ld. I'd rather use --version,
7987 # but apparently some GNU ld's only accept -v.
7988 # Break only if it was the GNU/non-GNU ld that we prefer.
7989 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7990 test "$with_gnu_ld" != no && break
7991 else
7992 test "$with_gnu_ld" != yes && break
7993 fi
7994 fi
7995 done
7996 IFS="$ac_save_ifs"
7997 else
7998 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7999 fi
8000 fi
8001
8002 LD="$acl_cv_path_LD"
8003 if test -n "$LD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8005 $as_echo "$LD" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009 fi
8010 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8012 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8013 if ${acl_cv_prog_gnu_ld+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8017 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8018 acl_cv_prog_gnu_ld=yes
8019 else
8020 acl_cv_prog_gnu_ld=no
8021 fi
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8024 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8025 with_gnu_ld=$acl_cv_prog_gnu_ld
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8030 $as_echo_n "checking for shared library run path origin... " >&6; }
8031 if ${acl_cv_rpath+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034
8035 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8036 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8037 . ./conftest.sh
8038 rm -f ./conftest.sh
8039 acl_cv_rpath=done
8040
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8043 $as_echo "$acl_cv_rpath" >&6; }
8044 wl="$acl_cv_wl"
8045 libext="$acl_cv_libext"
8046 shlibext="$acl_cv_shlibext"
8047 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8048 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8049 hardcode_direct="$acl_cv_hardcode_direct"
8050 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8051 # Check whether --enable-rpath was given.
8052 if test "${enable_rpath+set}" = set; then :
8053 enableval=$enable_rpath; :
8054 else
8055 enable_rpath=yes
8056 fi
8057
8058
8059
8060 # Set the 'development' global.
8061 . $srcdir/../bfd/development.sh
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8064 $as_echo_n "checking for ANSI C header files... " >&6; }
8065 if ${ac_cv_header_stdc+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <stdlib.h>
8071 #include <stdarg.h>
8072 #include <string.h>
8073 #include <float.h>
8074
8075 int
8076 main ()
8077 {
8078
8079 ;
8080 return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084 ac_cv_header_stdc=yes
8085 else
8086 ac_cv_header_stdc=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090 if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then :
8099
8100 else
8101 ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 #include <stdlib.h>
8112
8113 _ACEOF
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "free" >/dev/null 2>&1; then :
8116
8117 else
8118 ac_cv_header_stdc=no
8119 fi
8120 rm -f conftest*
8121
8122 fi
8123
8124 if test $ac_cv_header_stdc = yes; then
8125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8126 if test "$cross_compiling" = yes; then :
8127 :
8128 else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 #include <ctype.h>
8132 #include <stdlib.h>
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136 #else
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #endif
8143
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 int
8146 main ()
8147 {
8148 int i;
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8152 return 2;
8153 return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_run "$LINENO"; then :
8157
8158 else
8159 ac_cv_header_stdc=no
8160 fi
8161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8162 conftest.$ac_objext conftest.beam conftest.$ac_ext
8163 fi
8164
8165 fi
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8168 $as_echo "$ac_cv_header_stdc" >&6; }
8169 if test $ac_cv_header_stdc = yes; then
8170
8171 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8172
8173 fi
8174
8175 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8176 # for constant arguments. Useless!
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8178 $as_echo_n "checking for working alloca.h... " >&6; }
8179 if ${ac_cv_working_alloca_h+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <alloca.h>
8185 int
8186 main ()
8187 {
8188 char *p = (char *) alloca (2 * sizeof (int));
8189 if (p) return 0;
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 ac_cv_working_alloca_h=yes
8196 else
8197 ac_cv_working_alloca_h=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8203 $as_echo "$ac_cv_working_alloca_h" >&6; }
8204 if test $ac_cv_working_alloca_h = yes; then
8205
8206 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8207
8208 fi
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8211 $as_echo_n "checking for alloca... " >&6; }
8212 if ${ac_cv_func_alloca_works+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #ifdef __GNUC__
8218 # define alloca __builtin_alloca
8219 #else
8220 # ifdef _MSC_VER
8221 # include <malloc.h>
8222 # define alloca _alloca
8223 # else
8224 # ifdef HAVE_ALLOCA_H
8225 # include <alloca.h>
8226 # else
8227 # ifdef _AIX
8228 #pragma alloca
8229 # else
8230 # ifndef alloca /* predefined by HP cc +Olibcalls */
8231 void *alloca (size_t);
8232 # endif
8233 # endif
8234 # endif
8235 # endif
8236 #endif
8237
8238 int
8239 main ()
8240 {
8241 char *p = (char *) alloca (1);
8242 if (p) return 0;
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248 ac_cv_func_alloca_works=yes
8249 else
8250 ac_cv_func_alloca_works=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8256 $as_echo "$ac_cv_func_alloca_works" >&6; }
8257
8258 if test $ac_cv_func_alloca_works = yes; then
8259
8260 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8261
8262 else
8263 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8264 # that cause trouble. Some versions do not even contain alloca or
8265 # contain a buggy version. If you still want to use their alloca,
8266 # use ar to extract alloca.o from them instead of compiling alloca.c.
8267
8268 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8269
8270 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8271
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8274 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8275 if ${ac_cv_os_cray+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #if defined CRAY && ! defined CRAY2
8281 webecray
8282 #else
8283 wenotbecray
8284 #endif
8285
8286 _ACEOF
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "webecray" >/dev/null 2>&1; then :
8289 ac_cv_os_cray=yes
8290 else
8291 ac_cv_os_cray=no
8292 fi
8293 rm -f conftest*
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8297 $as_echo "$ac_cv_os_cray" >&6; }
8298 if test $ac_cv_os_cray = yes; then
8299 for ac_func in _getb67 GETB67 getb67; do
8300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8303
8304 cat >>confdefs.h <<_ACEOF
8305 #define CRAY_STACKSEG_END $ac_func
8306 _ACEOF
8307
8308 break
8309 fi
8310
8311 done
8312 fi
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8315 $as_echo_n "checking stack direction for C alloca... " >&6; }
8316 if ${ac_cv_c_stack_direction+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test "$cross_compiling" = yes; then :
8320 ac_cv_c_stack_direction=0
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 int
8326 find_stack_direction (int *addr, int depth)
8327 {
8328 int dir, dummy = 0;
8329 if (! addr)
8330 addr = &dummy;
8331 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8332 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8333 return dir + dummy;
8334 }
8335
8336 int
8337 main (int argc, char **argv)
8338 {
8339 return find_stack_direction (0, argc + !argv + 20) < 0;
8340 }
8341 _ACEOF
8342 if ac_fn_c_try_run "$LINENO"; then :
8343 ac_cv_c_stack_direction=1
8344 else
8345 ac_cv_c_stack_direction=-1
8346 fi
8347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 conftest.$ac_objext conftest.beam conftest.$ac_ext
8349 fi
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8353 $as_echo "$ac_cv_c_stack_direction" >&6; }
8354 cat >>confdefs.h <<_ACEOF
8355 #define STACK_DIRECTION $ac_cv_c_stack_direction
8356 _ACEOF
8357
8358
8359 fi
8360
8361
8362 WIN32APILIBS=
8363 case ${host} in
8364 *mingw32*)
8365
8366 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8367
8368 WIN32APILIBS="-lws2_32"
8369 ;;
8370 esac
8371
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8375 if ${am_cv_langinfo_codeset+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 #include <langinfo.h>
8381 int
8382 main ()
8383 {
8384 char* cs = nl_langinfo(CODESET);
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 if ac_fn_c_try_link "$LINENO"; then :
8390 am_cv_langinfo_codeset=yes
8391 else
8392 am_cv_langinfo_codeset=no
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8399 $as_echo "$am_cv_langinfo_codeset" >&6; }
8400 if test $am_cv_langinfo_codeset = yes; then
8401
8402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8403
8404 fi
8405
8406
8407 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 poll.h sys/poll.h sys/select.h
8408 do :
8409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8412 cat >>confdefs.h <<_ACEOF
8413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8414 _ACEOF
8415
8416 fi
8417
8418 done
8419
8420
8421
8422 for ac_func in getpagesize
8423 do :
8424 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8425 if test "x$ac_cv_func_getpagesize" = xyes; then :
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_GETPAGESIZE 1
8428 _ACEOF
8429
8430 fi
8431 done
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8434 $as_echo_n "checking for working mmap... " >&6; }
8435 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test "$cross_compiling" = yes; then :
8439 ac_cv_func_mmap_fixed_mapped=no
8440 else
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 $ac_includes_default
8444 /* malloc might have been renamed as rpl_malloc. */
8445 #undef malloc
8446
8447 /* Thanks to Mike Haertel and Jim Avera for this test.
8448 Here is a matrix of mmap possibilities:
8449 mmap private not fixed
8450 mmap private fixed at somewhere currently unmapped
8451 mmap private fixed at somewhere already mapped
8452 mmap shared not fixed
8453 mmap shared fixed at somewhere currently unmapped
8454 mmap shared fixed at somewhere already mapped
8455 For private mappings, we should verify that changes cannot be read()
8456 back from the file, nor mmap's back from the file at a different
8457 address. (There have been systems where private was not correctly
8458 implemented like the infamous i386 svr4.0, and systems where the
8459 VM page cache was not coherent with the file system buffer cache
8460 like early versions of FreeBSD and possibly contemporary NetBSD.)
8461 For shared mappings, we should conversely verify that changes get
8462 propagated back to all the places they're supposed to be.
8463
8464 Grep wants private fixed already mapped.
8465 The main things grep needs to know about mmap are:
8466 * does it exist and is it safe to write into the mmap'd area
8467 * how to use it (BSD variants) */
8468
8469 #include <fcntl.h>
8470 #include <sys/mman.h>
8471
8472 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8473 char *malloc ();
8474 #endif
8475
8476 /* This mess was copied from the GNU getpagesize.h. */
8477 #ifndef HAVE_GETPAGESIZE
8478 # ifdef _SC_PAGESIZE
8479 # define getpagesize() sysconf(_SC_PAGESIZE)
8480 # else /* no _SC_PAGESIZE */
8481 # ifdef HAVE_SYS_PARAM_H
8482 # include <sys/param.h>
8483 # ifdef EXEC_PAGESIZE
8484 # define getpagesize() EXEC_PAGESIZE
8485 # else /* no EXEC_PAGESIZE */
8486 # ifdef NBPG
8487 # define getpagesize() NBPG * CLSIZE
8488 # ifndef CLSIZE
8489 # define CLSIZE 1
8490 # endif /* no CLSIZE */
8491 # else /* no NBPG */
8492 # ifdef NBPC
8493 # define getpagesize() NBPC
8494 # else /* no NBPC */
8495 # ifdef PAGESIZE
8496 # define getpagesize() PAGESIZE
8497 # endif /* PAGESIZE */
8498 # endif /* no NBPC */
8499 # endif /* no NBPG */
8500 # endif /* no EXEC_PAGESIZE */
8501 # else /* no HAVE_SYS_PARAM_H */
8502 # define getpagesize() 8192 /* punt totally */
8503 # endif /* no HAVE_SYS_PARAM_H */
8504 # endif /* no _SC_PAGESIZE */
8505
8506 #endif /* no HAVE_GETPAGESIZE */
8507
8508 int
8509 main ()
8510 {
8511 char *data, *data2, *data3;
8512 const char *cdata2;
8513 int i, pagesize;
8514 int fd, fd2;
8515
8516 pagesize = getpagesize ();
8517
8518 /* First, make a file with some known garbage in it. */
8519 data = (char *) malloc (pagesize);
8520 if (!data)
8521 return 1;
8522 for (i = 0; i < pagesize; ++i)
8523 *(data + i) = rand ();
8524 umask (0);
8525 fd = creat ("conftest.mmap", 0600);
8526 if (fd < 0)
8527 return 2;
8528 if (write (fd, data, pagesize) != pagesize)
8529 return 3;
8530 close (fd);
8531
8532 /* Next, check that the tail of a page is zero-filled. File must have
8533 non-zero length, otherwise we risk SIGBUS for entire page. */
8534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8535 if (fd2 < 0)
8536 return 4;
8537 cdata2 = "";
8538 if (write (fd2, cdata2, 1) != 1)
8539 return 5;
8540 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8541 if (data2 == MAP_FAILED)
8542 return 6;
8543 for (i = 0; i < pagesize; ++i)
8544 if (*(data2 + i))
8545 return 7;
8546 close (fd2);
8547 if (munmap (data2, pagesize))
8548 return 8;
8549
8550 /* Next, try to mmap the file at a fixed address which already has
8551 something else allocated at it. If we can, also make sure that
8552 we see the same garbage. */
8553 fd = open ("conftest.mmap", O_RDWR);
8554 if (fd < 0)
8555 return 9;
8556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8558 return 10;
8559 for (i = 0; i < pagesize; ++i)
8560 if (*(data + i) != *(data2 + i))
8561 return 11;
8562
8563 /* Finally, make sure that changes to the mapped area do not
8564 percolate back to the file as seen by read(). (This is a bug on
8565 some variants of i386 svr4.0.) */
8566 for (i = 0; i < pagesize; ++i)
8567 *(data2 + i) = *(data2 + i) + 1;
8568 data3 = (char *) malloc (pagesize);
8569 if (!data3)
8570 return 12;
8571 if (read (fd, data3, pagesize) != pagesize)
8572 return 13;
8573 for (i = 0; i < pagesize; ++i)
8574 if (*(data + i) != *(data3 + i))
8575 return 14;
8576 close (fd);
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_run "$LINENO"; then :
8581 ac_cv_func_mmap_fixed_mapped=yes
8582 else
8583 ac_cv_func_mmap_fixed_mapped=no
8584 fi
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586 conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 fi
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8593
8594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8595
8596 fi
8597 rm -f conftest.mmap conftest.txt
8598
8599 for ac_header in vfork.h
8600 do :
8601 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8602 if test "x$ac_cv_header_vfork_h" = xyes; then :
8603 cat >>confdefs.h <<_ACEOF
8604 #define HAVE_VFORK_H 1
8605 _ACEOF
8606
8607 fi
8608
8609 done
8610
8611 for ac_func in fork vfork
8612 do :
8613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8616 cat >>confdefs.h <<_ACEOF
8617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8618 _ACEOF
8619
8620 fi
8621 done
8622
8623 if test "x$ac_cv_func_fork" = xyes; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8625 $as_echo_n "checking for working fork... " >&6; }
8626 if ${ac_cv_func_fork_works+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if test "$cross_compiling" = yes; then :
8630 ac_cv_func_fork_works=cross
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 $ac_includes_default
8635 int
8636 main ()
8637 {
8638
8639 /* By Ruediger Kuhlmann. */
8640 return fork () < 0;
8641
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_run "$LINENO"; then :
8647 ac_cv_func_fork_works=yes
8648 else
8649 ac_cv_func_fork_works=no
8650 fi
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8653 fi
8654
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8657 $as_echo "$ac_cv_func_fork_works" >&6; }
8658
8659 else
8660 ac_cv_func_fork_works=$ac_cv_func_fork
8661 fi
8662 if test "x$ac_cv_func_fork_works" = xcross; then
8663 case $host in
8664 *-*-amigaos* | *-*-msdosdjgpp*)
8665 # Override, as these systems have only a dummy fork() stub
8666 ac_cv_func_fork_works=no
8667 ;;
8668 *)
8669 ac_cv_func_fork_works=yes
8670 ;;
8671 esac
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8674 fi
8675 ac_cv_func_vfork_works=$ac_cv_func_vfork
8676 if test "x$ac_cv_func_vfork" = xyes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8678 $as_echo_n "checking for working vfork... " >&6; }
8679 if ${ac_cv_func_vfork_works+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test "$cross_compiling" = yes; then :
8683 ac_cv_func_vfork_works=cross
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 /* Thanks to Paul Eggert for this test. */
8688 $ac_includes_default
8689 #include <sys/wait.h>
8690 #ifdef HAVE_VFORK_H
8691 # include <vfork.h>
8692 #endif
8693 /* On some sparc systems, changes by the child to local and incoming
8694 argument registers are propagated back to the parent. The compiler
8695 is told about this with #include <vfork.h>, but some compilers
8696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8697 static variable whose address is put into a register that is
8698 clobbered by the vfork. */
8699 static void
8700 #ifdef __cplusplus
8701 sparc_address_test (int arg)
8702 # else
8703 sparc_address_test (arg) int arg;
8704 #endif
8705 {
8706 static pid_t child;
8707 if (!child) {
8708 child = vfork ();
8709 if (child < 0) {
8710 perror ("vfork");
8711 _exit(2);
8712 }
8713 if (!child) {
8714 arg = getpid();
8715 write(-1, "", 0);
8716 _exit (arg);
8717 }
8718 }
8719 }
8720
8721 int
8722 main ()
8723 {
8724 pid_t parent = getpid ();
8725 pid_t child;
8726
8727 sparc_address_test (0);
8728
8729 child = vfork ();
8730
8731 if (child == 0) {
8732 /* Here is another test for sparc vfork register problems. This
8733 test uses lots of local variables, at least as many local
8734 variables as main has allocated so far including compiler
8735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8737 reuse the register of parent for one of the local variables,
8738 since it will think that parent can't possibly be used any more
8739 in this routine. Assigning to the local variable will thus
8740 munge parent in the parent process. */
8741 pid_t
8742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8744 /* Convince the compiler that p..p7 are live; otherwise, it might
8745 use the same hardware register for all 8 local variables. */
8746 if (p != p1 || p != p2 || p != p3 || p != p4
8747 || p != p5 || p != p6 || p != p7)
8748 _exit(1);
8749
8750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8751 from child file descriptors. If the child closes a descriptor
8752 before it execs or exits, this munges the parent's descriptor
8753 as well. Test for this by closing stdout in the child. */
8754 _exit(close(fileno(stdout)) != 0);
8755 } else {
8756 int status;
8757 struct stat st;
8758
8759 while (wait(&status) != child)
8760 ;
8761 return (
8762 /* Was there some problem with vforking? */
8763 child < 0
8764
8765 /* Did the child fail? (This shouldn't happen.) */
8766 || status
8767
8768 /* Did the vfork/compiler bug occur? */
8769 || parent != getpid()
8770
8771 /* Did the file descriptor bug occur? */
8772 || fstat(fileno(stdout), &st) != 0
8773 );
8774 }
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_run "$LINENO"; then :
8778 ac_cv_func_vfork_works=yes
8779 else
8780 ac_cv_func_vfork_works=no
8781 fi
8782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8783 conftest.$ac_objext conftest.beam conftest.$ac_ext
8784 fi
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8788 $as_echo "$ac_cv_func_vfork_works" >&6; }
8789
8790 fi;
8791 if test "x$ac_cv_func_fork_works" = xcross; then
8792 ac_cv_func_vfork_works=$ac_cv_func_vfork
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8795 fi
8796
8797 if test "x$ac_cv_func_vfork_works" = xyes; then
8798
8799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8800
8801 else
8802
8803 $as_echo "#define vfork fork" >>confdefs.h
8804
8805 fi
8806 if test "x$ac_cv_func_fork_works" = xyes; then
8807
8808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8809
8810 fi
8811
8812 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8813 ptrace64 sbrk setns sigaltstack sigprocmask \
8814 setpgid setpgrp getrusage getauxval
8815 do :
8816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8821 _ACEOF
8822
8823 fi
8824 done
8825
8826
8827 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8828 "
8829 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8830 ac_have_decl=1
8831 else
8832 ac_have_decl=0
8833 fi
8834
8835 cat >>confdefs.h <<_ACEOF
8836 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8837 _ACEOF
8838
8839
8840 if test "$cross_compiling" = yes; then :
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/personality.h>
8844 int
8845 main ()
8846 {
8847
8848 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8849 # define ADDR_NO_RANDOMIZE 0x0040000
8850 # endif
8851 /* Test the flag could be set and stays set. */
8852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8854 return 1
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_link "$LINENO"; then :
8860 have_personality=true
8861 else
8862 have_personality=false
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <sys/personality.h>
8870 int
8871 main ()
8872 {
8873
8874 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8875 # define ADDR_NO_RANDOMIZE 0x0040000
8876 # endif
8877 /* Test the flag could be set and stays set. */
8878 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8879 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8880 return 1
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_run "$LINENO"; then :
8886 have_personality=true
8887 else
8888 have_personality=false
8889 fi
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891 conftest.$ac_objext conftest.beam conftest.$ac_ext
8892 fi
8893
8894 if $have_personality
8895 then
8896
8897 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8898
8899 fi
8900
8901 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8902 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8903 ac_have_decl=1
8904 else
8905 ac_have_decl=0
8906 fi
8907
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_DECL_STRSTR $ac_have_decl
8910 _ACEOF
8911
8912
8913 # ----------------------- #
8914 # Checks for structures. #
8915 # ----------------------- #
8916
8917 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8918 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8922 _ACEOF
8923
8924
8925 fi
8926 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8927 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8928
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8931 _ACEOF
8932
8933
8934 fi
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8938 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8939 if ${ac_cv_search_kinfo_getfile+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 ac_func_search_save_LIBS=$LIBS
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 char kinfo_getfile ();
8953 int
8954 main ()
8955 {
8956 return kinfo_getfile ();
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 for ac_lib in '' util util-freebsd; do
8962 if test -z "$ac_lib"; then
8963 ac_res="none required"
8964 else
8965 ac_res=-l$ac_lib
8966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8967 fi
8968 if ac_fn_c_try_link "$LINENO"; then :
8969 ac_cv_search_kinfo_getfile=$ac_res
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext
8973 if ${ac_cv_search_kinfo_getfile+:} false; then :
8974 break
8975 fi
8976 done
8977 if ${ac_cv_search_kinfo_getfile+:} false; then :
8978
8979 else
8980 ac_cv_search_kinfo_getfile=no
8981 fi
8982 rm conftest.$ac_ext
8983 LIBS=$ac_func_search_save_LIBS
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8986 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8987 ac_res=$ac_cv_search_kinfo_getfile
8988 if test "$ac_res" != no; then :
8989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8990
8991 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8992
8993 fi
8994
8995
8996 # Check for std::thread. This does not work on some platforms, like
8997 # mingw and DJGPP.
8998 ac_ext=cpp
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9003
9004
9005
9006
9007
9008 ac_ext=c
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014 ax_pthread_ok=no
9015
9016 # We used to check for pthread.h first, but this fails if pthread.h
9017 # requires special compiler flags (e.g. on Tru64 or Sequent).
9018 # It gets checked for in the link test anyway.
9019
9020 # First of all, check if the user has set any of the PTHREAD_LIBS,
9021 # etcetera environment variables, and if threads linking works using
9022 # them:
9023 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9024 ax_pthread_save_CC="$CC"
9025 ax_pthread_save_CFLAGS="$CFLAGS"
9026 ax_pthread_save_LIBS="$LIBS"
9027 if test "x$PTHREAD_CC" != "x"; then :
9028 CC="$PTHREAD_CC"
9029 fi
9030 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9031 LIBS="$PTHREAD_LIBS $LIBS"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9033 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036
9037 /* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 char pthread_join ();
9044 int
9045 main ()
9046 {
9047 return pthread_join ();
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 ax_pthread_ok=yes
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9058 $as_echo "$ax_pthread_ok" >&6; }
9059 if test "x$ax_pthread_ok" = "xno"; then
9060 PTHREAD_LIBS=""
9061 PTHREAD_CFLAGS=""
9062 fi
9063 CC="$ax_pthread_save_CC"
9064 CFLAGS="$ax_pthread_save_CFLAGS"
9065 LIBS="$ax_pthread_save_LIBS"
9066 fi
9067
9068 # We must check for the threads library under a number of different
9069 # names; the ordering is very important because some systems
9070 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9071 # libraries is broken (non-POSIX).
9072
9073 # Create a list of thread flags to try. Items starting with a "-" are
9074 # C compiler flags, and other items are library names, except for "none"
9075 # which indicates that we try without any flags at all, and "pthread-config"
9076 # which is a program returning the flags for the Pth emulation library.
9077
9078 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9079
9080 # The ordering *is* (sometimes) important. Some notes on the
9081 # individual items follow:
9082
9083 # pthreads: AIX (must check this before -lpthread)
9084 # none: in case threads are in libc; should be tried before -Kthread and
9085 # other compiler flags to prevent continual compiler warnings
9086 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9087 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9088 # (Note: HP C rejects this with "bad form for `-t' option")
9089 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9090 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9091 # doesn't hurt to check since this sometimes defines pthreads and
9092 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9093 # is present but should not be used directly; and before -mthreads,
9094 # because the compiler interprets this as "-mt" + "-hreads")
9095 # -mthreads: Mingw32/gcc, Lynx/gcc
9096 # pthread: Linux, etcetera
9097 # --thread-safe: KAI C++
9098 # pthread-config: use pthread-config program (for GNU Pth library)
9099
9100 case $host_os in
9101
9102 freebsd*)
9103
9104 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9105 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9106
9107 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9108 ;;
9109
9110 hpux*)
9111
9112 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9113 # multi-threading and also sets -lpthread."
9114
9115 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9116 ;;
9117
9118 openedition*)
9119
9120 # IBM z/OS requires a feature-test macro to be defined in order to
9121 # enable POSIX threads at all, so give the user a hint if this is
9122 # not set. (We don't define these ourselves, as they can affect
9123 # other portions of the system API in unpredictable ways.)
9124
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127
9128 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9129 AX_PTHREAD_ZOS_MISSING
9130 # endif
9131
9132 _ACEOF
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9136 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9137 fi
9138 rm -f conftest*
9139
9140 ;;
9141
9142 solaris*)
9143
9144 # On Solaris (at least, for some versions), libc contains stubbed
9145 # (non-functional) versions of the pthreads routines, so link-based
9146 # tests will erroneously succeed. (N.B.: The stubs are missing
9147 # pthread_cleanup_push, or rather a function called by this macro,
9148 # so we could check for that, but who knows whether they'll stub
9149 # that too in a future libc.) So we'll check first for the
9150 # standard Solaris way of linking pthreads (-mt -lpthread).
9151
9152 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9153 ;;
9154 esac
9155
9156 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9157
9158 if test "x$GCC" = "xyes"; then :
9159 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9160 fi
9161
9162 # The presence of a feature test macro requesting re-entrant function
9163 # definitions is, on some systems, a strong hint that pthreads support is
9164 # correctly enabled
9165
9166 case $host_os in
9167 darwin* | hpux* | linux* | osf* | solaris*)
9168 ax_pthread_check_macro="_REENTRANT"
9169 ;;
9170
9171 aix*)
9172 ax_pthread_check_macro="_THREAD_SAFE"
9173 ;;
9174
9175 *)
9176 ax_pthread_check_macro="--"
9177 ;;
9178 esac
9179 if test "x$ax_pthread_check_macro" = "x--"; then :
9180 ax_pthread_check_cond=0
9181 else
9182 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9183 fi
9184
9185 # Are we compiling with Clang?
9186
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9188 $as_echo_n "checking whether $CC is Clang... " >&6; }
9189 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 ax_cv_PTHREAD_CLANG=no
9193 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9194 if test "x$GCC" = "xyes"; then
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9198 # if defined(__clang__) && defined(__llvm__)
9199 AX_PTHREAD_CC_IS_CLANG
9200 # endif
9201
9202 _ACEOF
9203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9205 ax_cv_PTHREAD_CLANG=yes
9206 fi
9207 rm -f conftest*
9208
9209 fi
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9213 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9214 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9215
9216 ax_pthread_clang_warning=no
9217
9218 # Clang needs special handling, because older versions handle the -pthread
9219 # option in a rather... idiosyncratic way
9220
9221 if test "x$ax_pthread_clang" = "xyes"; then
9222
9223 # Clang takes -pthread; it has never supported any other flag
9224
9225 # (Note 1: This will need to be revisited if a system that Clang
9226 # supports has POSIX threads in a separate library. This tends not
9227 # to be the way of modern systems, but it's conceivable.)
9228
9229 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9230 # to get POSIX threads support; the API is always present and
9231 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9232 # -pthread does define _REENTRANT, and while the Darwin headers
9233 # ignore this macro, third-party headers might not.)
9234
9235 PTHREAD_CFLAGS="-pthread"
9236 PTHREAD_LIBS=
9237
9238 ax_pthread_ok=yes
9239
9240 # However, older versions of Clang make a point of warning the user
9241 # that, in an invocation where only linking and no compilation is
9242 # taking place, the -pthread option has no effect ("argument unused
9243 # during compilation"). They expect -pthread to be passed in only
9244 # when source code is being compiled.
9245 #
9246 # Problem is, this is at odds with the way Automake and most other
9247 # C build frameworks function, which is that the same flags used in
9248 # compilation (CFLAGS) are also used in linking. Many systems
9249 # supported by AX_PTHREAD require exactly this for POSIX threads
9250 # support, and in fact it is often not straightforward to specify a
9251 # flag that is used only in the compilation phase and not in
9252 # linking. Such a scenario is extremely rare in practice.
9253 #
9254 # Even though use of the -pthread flag in linking would only print
9255 # a warning, this can be a nuisance for well-run software projects
9256 # that build with -Werror. So if the active version of Clang has
9257 # this misfeature, we search for an option to squash it.
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9260 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9261 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9265 # Create an alternate version of $ac_link that compiles and
9266 # links in two steps (.c -> .o, .o -> exe) instead of one
9267 # (.c -> exe), because the warning occurs only in the second
9268 # step
9269 ax_pthread_save_ac_link="$ac_link"
9270 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9271 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9272 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9273 ax_pthread_save_CFLAGS="$CFLAGS"
9274 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9275 if test "x$ax_pthread_try" = "xunknown"; then :
9276 break
9277 fi
9278 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9279 ac_link="$ax_pthread_save_ac_link"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int main(void){return 0;}
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"; then :
9285 ac_link="$ax_pthread_2step_ac_link"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 int main(void){return 0;}
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 break
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 done
9300 ac_link="$ax_pthread_save_ac_link"
9301 CFLAGS="$ax_pthread_save_CFLAGS"
9302 if test "x$ax_pthread_try" = "x"; then :
9303 ax_pthread_try=no
9304 fi
9305 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9306
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9309 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9310
9311 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9312 no | unknown) ;;
9313 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9314 esac
9315
9316 fi # $ax_pthread_clang = yes
9317
9318 if test "x$ax_pthread_ok" = "xno"; then
9319 for ax_pthread_try_flag in $ax_pthread_flags; do
9320
9321 case $ax_pthread_try_flag in
9322 none)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9324 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9325 ;;
9326
9327 -mt,pthread)
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9329 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9330 PTHREAD_CFLAGS="-mt"
9331 PTHREAD_LIBS="-lpthread"
9332 ;;
9333
9334 -*)
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9336 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9337 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9338 ;;
9339
9340 pthread-config)
9341 # Extract the first word of "pthread-config", so it can be a program name with args.
9342 set dummy pthread-config; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 if test -n "$ax_pthread_config"; then
9349 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9350 else
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9353 do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_ax_pthread_config="yes"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9361 fi
9362 done
9363 done
9364 IFS=$as_save_IFS
9365
9366 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9367 fi
9368 fi
9369 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9370 if test -n "$ax_pthread_config"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9372 $as_echo "$ax_pthread_config" >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9376 fi
9377
9378
9379 if test "x$ax_pthread_config" = "xno"; then :
9380 continue
9381 fi
9382 PTHREAD_CFLAGS="`pthread-config --cflags`"
9383 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9384 ;;
9385
9386 *)
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9388 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9389 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9390 ;;
9391 esac
9392
9393 ax_pthread_save_CFLAGS="$CFLAGS"
9394 ax_pthread_save_LIBS="$LIBS"
9395 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9396 LIBS="$PTHREAD_LIBS $LIBS"
9397
9398 # Check for various functions. We must include pthread.h,
9399 # since some functions may be macros. (On the Sequent, we
9400 # need a special flag -Kthread to make this header compile.)
9401 # We check for pthread_join because it is in -lpthread on IRIX
9402 # while pthread_create is in libc. We check for pthread_attr_init
9403 # due to DEC craziness with -lpthreads. We check for
9404 # pthread_cleanup_push because it is one of the few pthread
9405 # functions on Solaris that doesn't have a non-functional libc stub.
9406 # We try pthread_create on general principles.
9407
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include <pthread.h>
9411 # if $ax_pthread_check_cond
9412 # error "$ax_pthread_check_macro must be defined"
9413 # endif
9414 static void routine(void *a) { a = 0; }
9415 static void *start_routine(void *a) { return a; }
9416 int
9417 main ()
9418 {
9419 pthread_t th; pthread_attr_t attr;
9420 pthread_create(&th, 0, start_routine, 0);
9421 pthread_join(th, 0);
9422 pthread_attr_init(&attr);
9423 pthread_cleanup_push(routine, 0);
9424 pthread_cleanup_pop(0) /* ; */
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 ax_pthread_ok=yes
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434
9435 CFLAGS="$ax_pthread_save_CFLAGS"
9436 LIBS="$ax_pthread_save_LIBS"
9437
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9439 $as_echo "$ax_pthread_ok" >&6; }
9440 if test "x$ax_pthread_ok" = "xyes"; then :
9441 break
9442 fi
9443
9444 PTHREAD_LIBS=""
9445 PTHREAD_CFLAGS=""
9446 done
9447 fi
9448
9449 # Various other checks:
9450 if test "x$ax_pthread_ok" = "xyes"; then
9451 ax_pthread_save_CFLAGS="$CFLAGS"
9452 ax_pthread_save_LIBS="$LIBS"
9453 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9454 LIBS="$PTHREAD_LIBS $LIBS"
9455
9456 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9458 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9459 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9463 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <pthread.h>
9467 int
9468 main ()
9469 {
9470 int attr = $ax_pthread_attr; return attr /* ; */
9471 ;
9472 return 0;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 done
9481
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9484 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9485 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9486 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9487 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9488
9489 cat >>confdefs.h <<_ACEOF
9490 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9491 _ACEOF
9492
9493 ax_pthread_joinable_attr_defined=yes
9494
9495 fi
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9498 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9499 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9503 case $host_os in
9504 solaris*)
9505 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9506 ;;
9507 esac
9508
9509 fi
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9511 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9512 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9513 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9514 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9515 ax_pthread_special_flags_added=yes
9516 fi
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9519 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9520 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 #include <pthread.h>
9526 int
9527 main ()
9528 {
9529 int i = PTHREAD_PRIO_INHERIT;
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"; then :
9535 ax_cv_PTHREAD_PRIO_INHERIT=yes
9536 else
9537 ax_cv_PTHREAD_PRIO_INHERIT=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9544 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9545 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9546 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9547
9548 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9549
9550 ax_pthread_prio_inherit_defined=yes
9551
9552 fi
9553
9554 CFLAGS="$ax_pthread_save_CFLAGS"
9555 LIBS="$ax_pthread_save_LIBS"
9556
9557 # More AIX lossage: compile with *_r variant
9558 if test "x$GCC" != "xyes"; then
9559 case $host_os in
9560 aix*)
9561 case "x/$CC" in #(
9562 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9563 #handle absolute path differently from PATH based program lookup
9564 case "x$CC" in #(
9565 x/*) :
9566 if as_fn_executable_p ${CC}_r; then :
9567 PTHREAD_CC="${CC}_r"
9568 fi ;; #(
9569 *) :
9570 for ac_prog in ${CC}_r
9571 do
9572 # Extract the first word of "$ac_prog", so it can be a program name with args.
9573 set dummy $ac_prog; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 if test -n "$PTHREAD_CC"; then
9580 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_PTHREAD_CC="$ac_prog"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593 done
9594 done
9595 IFS=$as_save_IFS
9596
9597 fi
9598 fi
9599 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9600 if test -n "$PTHREAD_CC"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9602 $as_echo "$PTHREAD_CC" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 fi
9607
9608
9609 test -n "$PTHREAD_CC" && break
9610 done
9611 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9612 ;;
9613 esac ;; #(
9614 *) :
9615 ;;
9616 esac
9617 ;;
9618 esac
9619 fi
9620 fi
9621
9622 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9623
9624
9625
9626
9627
9628 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9629 if test "x$ax_pthread_ok" = "xyes"; then
9630 threads=yes
9631 :
9632 else
9633 ax_pthread_ok=no
9634 threads=no
9635 fi
9636 ac_ext=cpp
9637 ac_cpp='$CXXCPP $CPPFLAGS'
9638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9641
9642
9643 if test "$threads" = "yes"; then
9644 save_LIBS="$LIBS"
9645 LIBS="$PTHREAD_LIBS $LIBS"
9646 save_CXXFLAGS="$CXXFLAGS"
9647 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9649 $as_echo_n "checking for std::thread... " >&6; }
9650 if ${gdb_cv_cxx_std_thread+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <thread>
9656 void callback() { }
9657 int
9658 main ()
9659 {
9660 std::thread t(callback);
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 if ac_fn_cxx_try_compile "$LINENO"; then :
9666 gdb_cv_cxx_std_thread=yes
9667 else
9668 gdb_cv_cxx_std_thread=no
9669 fi
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9673 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9674
9675 # This check must be here, while LIBS includes any necessary
9676 # threading library.
9677 for ac_func in pthread_sigmask pthread_setname_np
9678 do :
9679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9682 cat >>confdefs.h <<_ACEOF
9683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9684 _ACEOF
9685
9686 fi
9687 done
9688
9689
9690 LIBS="$save_LIBS"
9691 CXXFLAGS="$save_CXXFLAGS"
9692 fi
9693 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9694
9695 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9696
9697 fi
9698 ac_ext=c
9699 ac_cpp='$CPP $CPPFLAGS'
9700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703
9704
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9706 $as_echo_n "checking for sigsetjmp... " >&6; }
9707 if ${gdb_cv_func_sigsetjmp+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712
9713 #include <setjmp.h>
9714
9715 int
9716 main ()
9717 {
9718 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 gdb_cv_func_sigsetjmp=yes
9725 else
9726 gdb_cv_func_sigsetjmp=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9731 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9732 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9733
9734 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9735
9736 fi
9737
9738
9739 # Check whether --with-intel_pt was given.
9740 if test "${with_intel_pt+set}" = set; then :
9741 withval=$with_intel_pt;
9742 else
9743 with_intel_pt=auto
9744 fi
9745
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9747 $as_echo_n "checking whether to use intel pt... " >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9749 $as_echo "$with_intel_pt" >&6; }
9750
9751 if test "${with_intel_pt}" = no; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9753 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9754 HAVE_LIBIPT=no
9755 else
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758
9759 #include <linux/perf_event.h>
9760 #ifndef PERF_ATTR_SIZE_VER5
9761 # error
9762 #endif
9763
9764 _ACEOF
9765 if ac_fn_c_try_cpp "$LINENO"; then :
9766 perf_event=yes
9767 else
9768 perf_event=no
9769 fi
9770 rm -f conftest.err conftest.i conftest.$ac_ext
9771 if test "$perf_event" != yes; then
9772 if test "$with_intel_pt" = yes; then
9773 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9776 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9777 fi
9778 fi
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788 use_additional=yes
9789
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9794
9795 eval additional_includedir=\"$includedir\"
9796 eval additional_libdir=\"$libdir\"
9797
9798 exec_prefix="$acl_save_exec_prefix"
9799 prefix="$acl_save_prefix"
9800
9801
9802 # Check whether --with-libipt-prefix was given.
9803 if test "${with_libipt_prefix+set}" = set; then :
9804 withval=$with_libipt_prefix;
9805 if test "X$withval" = "Xno"; then
9806 use_additional=no
9807 else
9808 if test "X$withval" = "X"; then
9809
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 acl_save_exec_prefix="$exec_prefix"
9813 exec_prefix="$acl_final_exec_prefix"
9814
9815 eval additional_includedir=\"$includedir\"
9816 eval additional_libdir=\"$libdir\"
9817
9818 exec_prefix="$acl_save_exec_prefix"
9819 prefix="$acl_save_prefix"
9820
9821 else
9822 additional_includedir="$withval/include"
9823 additional_libdir="$withval/lib"
9824 fi
9825 fi
9826
9827 fi
9828
9829
9830 # Check whether --with-libipt-type was given.
9831 if test "${with_libipt_type+set}" = set; then :
9832 withval=$with_libipt_type; with_libipt_type=$withval
9833 else
9834 with_libipt_type=auto
9835 fi
9836
9837 lib_type=`eval echo \$with_libipt_type`
9838
9839 LIBIPT=
9840 LTLIBIPT=
9841 INCIPT=
9842 rpathdirs=
9843 ltrpathdirs=
9844 names_already_handled=
9845 names_next_round='ipt '
9846 while test -n "$names_next_round"; do
9847 names_this_round="$names_next_round"
9848 names_next_round=
9849 for name in $names_this_round; do
9850 already_handled=
9851 for n in $names_already_handled; do
9852 if test "$n" = "$name"; then
9853 already_handled=yes
9854 break
9855 fi
9856 done
9857 if test -z "$already_handled"; then
9858 names_already_handled="$names_already_handled $name"
9859 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9860 eval value=\"\$HAVE_LIB$uppername\"
9861 if test -n "$value"; then
9862 if test "$value" = yes; then
9863 eval value=\"\$LIB$uppername\"
9864 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9865 eval value=\"\$LTLIB$uppername\"
9866 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9867 else
9868 :
9869 fi
9870 else
9871 found_dir=
9872 found_la=
9873 found_so=
9874 found_a=
9875 if test $use_additional = yes; then
9876 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9877 found_dir="$additional_libdir"
9878 found_so="$additional_libdir/lib$name.$shlibext"
9879 if test -f "$additional_libdir/lib$name.la"; then
9880 found_la="$additional_libdir/lib$name.la"
9881 fi
9882 elif test x$lib_type != xshared; then
9883 if test -f "$additional_libdir/lib$name.$libext"; then
9884 found_dir="$additional_libdir"
9885 found_a="$additional_libdir/lib$name.$libext"
9886 if test -f "$additional_libdir/lib$name.la"; then
9887 found_la="$additional_libdir/lib$name.la"
9888 fi
9889 fi
9890 fi
9891 fi
9892 if test "X$found_dir" = "X"; then
9893 for x in $LDFLAGS $LTLIBIPT; do
9894
9895 acl_save_prefix="$prefix"
9896 prefix="$acl_final_prefix"
9897 acl_save_exec_prefix="$exec_prefix"
9898 exec_prefix="$acl_final_exec_prefix"
9899 eval x=\"$x\"
9900 exec_prefix="$acl_save_exec_prefix"
9901 prefix="$acl_save_prefix"
9902
9903 case "$x" in
9904 -L*)
9905 dir=`echo "X$x" | sed -e 's/^X-L//'`
9906 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9907 found_dir="$dir"
9908 found_so="$dir/lib$name.$shlibext"
9909 if test -f "$dir/lib$name.la"; then
9910 found_la="$dir/lib$name.la"
9911 fi
9912 elif test x$lib_type != xshared; then
9913 if test -f "$dir/lib$name.$libext"; then
9914 found_dir="$dir"
9915 found_a="$dir/lib$name.$libext"
9916 if test -f "$dir/lib$name.la"; then
9917 found_la="$dir/lib$name.la"
9918 fi
9919 fi
9920 fi
9921 ;;
9922 esac
9923 if test "X$found_dir" != "X"; then
9924 break
9925 fi
9926 done
9927 fi
9928 if test "X$found_dir" != "X"; then
9929 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9930 if test "X$found_so" != "X"; then
9931 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9932 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9933 else
9934 haveit=
9935 for x in $ltrpathdirs; 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 ltrpathdirs="$ltrpathdirs $found_dir"
9943 fi
9944 if test "$hardcode_direct" = yes; then
9945 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9946 else
9947 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9948 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9949 haveit=
9950 for x in $rpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9952 haveit=yes
9953 break
9954 fi
9955 done
9956 if test -z "$haveit"; then
9957 rpathdirs="$rpathdirs $found_dir"
9958 fi
9959 else
9960 haveit=
9961 for x in $LDFLAGS $LIBIPT; do
9962
9963 acl_save_prefix="$prefix"
9964 prefix="$acl_final_prefix"
9965 acl_save_exec_prefix="$exec_prefix"
9966 exec_prefix="$acl_final_exec_prefix"
9967 eval x=\"$x\"
9968 exec_prefix="$acl_save_exec_prefix"
9969 prefix="$acl_save_prefix"
9970
9971 if test "X$x" = "X-L$found_dir"; then
9972 haveit=yes
9973 break
9974 fi
9975 done
9976 if test -z "$haveit"; then
9977 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9978 fi
9979 if test "$hardcode_minus_L" != no; then
9980 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9981 else
9982 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9983 fi
9984 fi
9985 fi
9986 fi
9987 else
9988 if test "X$found_a" != "X"; then
9989 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9990 else
9991 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9992 fi
9993 fi
9994 additional_includedir=
9995 case "$found_dir" in
9996 */lib | */lib/)
9997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9998 additional_includedir="$basedir/include"
9999 ;;
10000 esac
10001 if test "X$additional_includedir" != "X"; then
10002 if test "X$additional_includedir" != "X/usr/include"; then
10003 haveit=
10004 if test "X$additional_includedir" = "X/usr/local/include"; then
10005 if test -n "$GCC"; then
10006 case $host_os in
10007 linux*) haveit=yes;;
10008 esac
10009 fi
10010 fi
10011 if test -z "$haveit"; then
10012 for x in $CPPFLAGS $INCIPT; do
10013
10014 acl_save_prefix="$prefix"
10015 prefix="$acl_final_prefix"
10016 acl_save_exec_prefix="$exec_prefix"
10017 exec_prefix="$acl_final_exec_prefix"
10018 eval x=\"$x\"
10019 exec_prefix="$acl_save_exec_prefix"
10020 prefix="$acl_save_prefix"
10021
10022 if test "X$x" = "X-I$additional_includedir"; then
10023 haveit=yes
10024 break
10025 fi
10026 done
10027 if test -z "$haveit"; then
10028 if test -d "$additional_includedir"; then
10029 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10030 fi
10031 fi
10032 fi
10033 fi
10034 fi
10035 if test -n "$found_la"; then
10036 save_libdir="$libdir"
10037 case "$found_la" in
10038 */* | *\\*) . "$found_la" ;;
10039 *) . "./$found_la" ;;
10040 esac
10041 libdir="$save_libdir"
10042 for dep in $dependency_libs; do
10043 case "$dep" in
10044 -L*)
10045 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10046 if test "X$additional_libdir" != "X/usr/lib"; then
10047 haveit=
10048 if test "X$additional_libdir" = "X/usr/local/lib"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10053 fi
10054 fi
10055 if test -z "$haveit"; then
10056 haveit=
10057 for x in $LDFLAGS $LIBIPT; do
10058
10059 acl_save_prefix="$prefix"
10060 prefix="$acl_final_prefix"
10061 acl_save_exec_prefix="$exec_prefix"
10062 exec_prefix="$acl_final_exec_prefix"
10063 eval x=\"$x\"
10064 exec_prefix="$acl_save_exec_prefix"
10065 prefix="$acl_save_prefix"
10066
10067 if test "X$x" = "X-L$additional_libdir"; then
10068 haveit=yes
10069 break
10070 fi
10071 done
10072 if test -z "$haveit"; then
10073 if test -d "$additional_libdir"; then
10074 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10075 fi
10076 fi
10077 haveit=
10078 for x in $LDFLAGS $LTLIBIPT; do
10079
10080 acl_save_prefix="$prefix"
10081 prefix="$acl_final_prefix"
10082 acl_save_exec_prefix="$exec_prefix"
10083 exec_prefix="$acl_final_exec_prefix"
10084 eval x=\"$x\"
10085 exec_prefix="$acl_save_exec_prefix"
10086 prefix="$acl_save_prefix"
10087
10088 if test "X$x" = "X-L$additional_libdir"; then
10089 haveit=yes
10090 break
10091 fi
10092 done
10093 if test -z "$haveit"; then
10094 if test -d "$additional_libdir"; then
10095 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10096 fi
10097 fi
10098 fi
10099 fi
10100 ;;
10101 -R*)
10102 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10103 if test "$enable_rpath" != no; then
10104 haveit=
10105 for x in $rpathdirs; do
10106 if test "X$x" = "X$dir"; then
10107 haveit=yes
10108 break
10109 fi
10110 done
10111 if test -z "$haveit"; then
10112 rpathdirs="$rpathdirs $dir"
10113 fi
10114 haveit=
10115 for x in $ltrpathdirs; do
10116 if test "X$x" = "X$dir"; then
10117 haveit=yes
10118 break
10119 fi
10120 done
10121 if test -z "$haveit"; then
10122 ltrpathdirs="$ltrpathdirs $dir"
10123 fi
10124 fi
10125 ;;
10126 -l*)
10127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10128 ;;
10129 *.la)
10130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10131 ;;
10132 *)
10133 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10134 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10135 ;;
10136 esac
10137 done
10138 fi
10139 else
10140 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10141 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10142 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10143 else
10144 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10145 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10146 fi
10147 fi
10148 fi
10149 fi
10150 done
10151 done
10152 if test "X$rpathdirs" != "X"; then
10153 if test -n "$hardcode_libdir_separator"; then
10154 alldirs=
10155 for found_dir in $rpathdirs; do
10156 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10157 done
10158 acl_save_libdir="$libdir"
10159 libdir="$alldirs"
10160 eval flag=\"$hardcode_libdir_flag_spec\"
10161 libdir="$acl_save_libdir"
10162 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10163 else
10164 for found_dir in $rpathdirs; do
10165 acl_save_libdir="$libdir"
10166 libdir="$found_dir"
10167 eval flag=\"$hardcode_libdir_flag_spec\"
10168 libdir="$acl_save_libdir"
10169 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10170 done
10171 fi
10172 fi
10173 if test "X$ltrpathdirs" != "X"; then
10174 for found_dir in $ltrpathdirs; do
10175 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10176 done
10177 fi
10178
10179
10180 ac_save_CPPFLAGS="$CPPFLAGS"
10181
10182 for element in $INCIPT; do
10183 haveit=
10184 for x in $CPPFLAGS; do
10185
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 acl_save_exec_prefix="$exec_prefix"
10189 exec_prefix="$acl_final_exec_prefix"
10190 eval x=\"$x\"
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
10193
10194 if test "X$x" = "X$element"; then
10195 haveit=yes
10196 break
10197 fi
10198 done
10199 if test -z "$haveit"; then
10200 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10201 fi
10202 done
10203
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10206 $as_echo_n "checking for libipt... " >&6; }
10207 if ${ac_cv_libipt+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210
10211 ac_save_LIBS="$LIBS"
10212 LIBS="$LIBS $LIBIPT"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include "intel-pt.h"
10216 int
10217 main ()
10218 {
10219 pt_insn_alloc_decoder (0);
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 ac_cv_libipt=yes
10226 else
10227 ac_cv_libipt=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS="$ac_save_LIBS"
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10235 $as_echo "$ac_cv_libipt" >&6; }
10236 if test "$ac_cv_libipt" = yes; then
10237 HAVE_LIBIPT=yes
10238
10239 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10242 $as_echo_n "checking how to link with libipt... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10244 $as_echo "$LIBIPT" >&6; }
10245 else
10246 HAVE_LIBIPT=no
10247 CPPFLAGS="$ac_save_CPPFLAGS"
10248 LIBIPT=
10249 LTLIBIPT=
10250 fi
10251
10252
10253
10254
10255
10256
10257 if test "$HAVE_LIBIPT" != yes; then
10258 if test "$with_intel_pt" = yes; then
10259 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10262 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10263 fi
10264 else
10265 save_LIBS=$LIBS
10266 LIBS="$LIBS $LIBIPT"
10267 for ac_func in pt_insn_event
10268 do :
10269 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10270 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10271 cat >>confdefs.h <<_ACEOF
10272 #define HAVE_PT_INSN_EVENT 1
10273 _ACEOF
10274
10275 fi
10276 done
10277
10278 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10279 "
10280 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10281
10282 cat >>confdefs.h <<_ACEOF
10283 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10284 _ACEOF
10285
10286
10287 fi
10288 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10289 "
10290 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
10291
10292 cat >>confdefs.h <<_ACEOF
10293 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10294 _ACEOF
10295
10296
10297 fi
10298
10299 LIBS=$save_LIBS
10300 fi
10301 fi
10302
10303 if test "$ac_cv_header_sys_procfs_h" = yes; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10305 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10306 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 #define _SYSCALL32
10313 /* Needed for new procfs interface on sparc-solaris. */
10314 #define _STRUCTURED_PROC 1
10315 #include <sys/procfs.h>
10316 int
10317 main ()
10318 {
10319 gregset_t avar
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_compile "$LINENO"; then :
10325 bfd_cv_have_sys_procfs_type_gregset_t=yes
10326 else
10327 bfd_cv_have_sys_procfs_type_gregset_t=no
10328
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 fi
10332
10333 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10334
10335 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10339 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10342 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10343 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348
10349 #define _SYSCALL32
10350 /* Needed for new procfs interface on sparc-solaris. */
10351 #define _STRUCTURED_PROC 1
10352 #include <sys/procfs.h>
10353 int
10354 main ()
10355 {
10356 fpregset_t avar
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 if ac_fn_c_try_compile "$LINENO"; then :
10362 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10363 else
10364 bfd_cv_have_sys_procfs_type_fpregset_t=no
10365
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 fi
10369
10370 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10371
10372 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10373
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10376 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10379 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10380 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385
10386 #define _SYSCALL32
10387 /* Needed for new procfs interface on sparc-solaris. */
10388 #define _STRUCTURED_PROC 1
10389 #include <sys/procfs.h>
10390 int
10391 main ()
10392 {
10393 prgregset_t avar
10394 ;
10395 return 0;
10396 }
10397 _ACEOF
10398 if ac_fn_c_try_compile "$LINENO"; then :
10399 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10400 else
10401 bfd_cv_have_sys_procfs_type_prgregset_t=no
10402
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406
10407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10408
10409 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10410
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10413 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10416 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10417 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422
10423 #define _SYSCALL32
10424 /* Needed for new procfs interface on sparc-solaris. */
10425 #define _STRUCTURED_PROC 1
10426 #include <sys/procfs.h>
10427 int
10428 main ()
10429 {
10430 prfpregset_t avar
10431 ;
10432 return 0;
10433 }
10434 _ACEOF
10435 if ac_fn_c_try_compile "$LINENO"; then :
10436 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10437 else
10438 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10439
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 fi
10443
10444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10445
10446 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10447
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10450 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10451
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10453 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10454 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10459
10460 #define _SYSCALL32
10461 /* Needed for new procfs interface on sparc-solaris. */
10462 #define _STRUCTURED_PROC 1
10463 #include <sys/procfs.h>
10464 int
10465 main ()
10466 {
10467 prgregset32_t avar
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_compile "$LINENO"; then :
10473 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10474 else
10475 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10476
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 fi
10480
10481 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10482
10483 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10484
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10487 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10488
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10490 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10491 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496
10497 #define _SYSCALL32
10498 /* Needed for new procfs interface on sparc-solaris. */
10499 #define _STRUCTURED_PROC 1
10500 #include <sys/procfs.h>
10501 int
10502 main ()
10503 {
10504 lwpid_t avar
10505 ;
10506 return 0;
10507 }
10508 _ACEOF
10509 if ac_fn_c_try_compile "$LINENO"; then :
10510 bfd_cv_have_sys_procfs_type_lwpid_t=yes
10511 else
10512 bfd_cv_have_sys_procfs_type_lwpid_t=no
10513
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 fi
10517
10518 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10519
10520 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10521
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10524 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10525
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10527 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10528 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533
10534 #define _SYSCALL32
10535 /* Needed for new procfs interface on sparc-solaris. */
10536 #define _STRUCTURED_PROC 1
10537 #include <sys/procfs.h>
10538 int
10539 main ()
10540 {
10541 psaddr_t avar
10542 ;
10543 return 0;
10544 }
10545 _ACEOF
10546 if ac_fn_c_try_compile "$LINENO"; then :
10547 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10548 else
10549 bfd_cv_have_sys_procfs_type_psaddr_t=no
10550
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 fi
10554
10555 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10556
10557 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10558
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10561 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10562
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10564 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10565 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570
10571 #define _SYSCALL32
10572 /* Needed for new procfs interface on sparc-solaris. */
10573 #define _STRUCTURED_PROC 1
10574 #include <sys/procfs.h>
10575 int
10576 main ()
10577 {
10578 elf_fpregset_t avar
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_compile "$LINENO"; then :
10584 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
10585 else
10586 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10587
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 fi
10591
10592 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10593
10594 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10595
10596 fi
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10598 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10599
10600 fi
10601
10602
10603 # Check whether we will enable the inclusion of unit tests when
10604 # compiling GDB.
10605 #
10606 # The default value of this option changes depending whether we're on
10607 # development mode (in which case it's "true") or not (in which case
10608 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10609 # macro, which must therefore be used before GDB_AC_SELFTEST.
10610
10611 if test "x$development" != xtrue && test "x$development" != xfalse; then :
10612 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10613 fi
10614
10615 # Check whether --enable-unit-tests was given.
10616 if test "${enable_unit_tests+set}" = set; then :
10617 enableval=$enable_unit_tests; case "${enableval}" in
10618 yes) enable_unittests=true ;;
10619 no) enable_unittests=false ;;
10620 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10621 esac
10622 else
10623 enable_unittests=$development
10624 fi
10625
10626
10627 if $enable_unittests; then
10628
10629 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10630
10631
10632 fi
10633
10634 if $enable_unittests; then
10635 SELFTEST_TRUE=
10636 SELFTEST_FALSE='#'
10637 else
10638 SELFTEST_TRUE='#'
10639 SELFTEST_FALSE=
10640 fi
10641
10642
10643 # Check the return and argument types of ptrace.
10644
10645
10646 for ac_header in sys/ptrace.h ptrace.h
10647 do :
10648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10651 cat >>confdefs.h <<_ACEOF
10652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653 _ACEOF
10654
10655 fi
10656
10657 done
10658
10659
10660 gdb_ptrace_headers='
10661 #include <sys/types.h>
10662 #if HAVE_SYS_PTRACE_H
10663 # include <sys/ptrace.h>
10664 #endif
10665 #if HAVE_UNISTD_H
10666 # include <unistd.h>
10667 #endif
10668 '
10669
10670 # Check return type. Varargs (used on GNU/Linux) conflict with the
10671 # empty argument list, so check for that explicitly.
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10673 $as_echo_n "checking return type of ptrace... " >&6; }
10674 if ${gdb_cv_func_ptrace_ret+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 $gdb_ptrace_headers
10680 int
10681 main ()
10682 {
10683 extern long ptrace (enum __ptrace_request, ...);
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 gdb_cv_func_ptrace_ret='long'
10690 else
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 $gdb_ptrace_headers
10694 int
10695 main ()
10696 {
10697 extern int ptrace ();
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 gdb_cv_func_ptrace_ret='int'
10704 else
10705 gdb_cv_func_ptrace_ret='long'
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10712 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10713
10714 cat >>confdefs.h <<_ACEOF
10715 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10716 _ACEOF
10717
10718 # Check argument types.
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10720 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10721 if ${gdb_cv_func_ptrace_args+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727 $gdb_ptrace_headers
10728 int
10729 main ()
10730 {
10731 extern long ptrace (enum __ptrace_request, ...);
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_compile "$LINENO"; then :
10737 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10738 else
10739
10740 for gdb_arg1 in 'int' 'long'; do
10741 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10742 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10743 for gdb_arg4 in 'int' 'long' 'void *'; do
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 $gdb_ptrace_headers
10747 int
10748 main ()
10749 {
10750
10751 extern $gdb_cv_func_ptrace_ret
10752 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10753
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"; then :
10759 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10760 break 4;
10761 fi
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 for gdb_arg5 in 'int *' 'int' 'long'; do
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 $gdb_ptrace_headers
10767 int
10768 main ()
10769 {
10770
10771 extern $gdb_cv_func_ptrace_ret
10772 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"; then :
10779
10780 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10781 break 5;
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 done
10785 done
10786 done
10787 done
10788 done
10789 # Provide a safe default value.
10790 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10791
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10796 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10797 ac_save_IFS=$IFS; IFS=','
10798 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10799 IFS=$ac_save_IFS
10800 shift
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define PTRACE_TYPE_ARG1 $1
10804 _ACEOF
10805
10806
10807 cat >>confdefs.h <<_ACEOF
10808 #define PTRACE_TYPE_ARG3 $3
10809 _ACEOF
10810
10811
10812 cat >>confdefs.h <<_ACEOF
10813 #define PTRACE_TYPE_ARG4 $4
10814 _ACEOF
10815
10816 if test -n "$5"; then
10817
10818 cat >>confdefs.h <<_ACEOF
10819 #define PTRACE_TYPE_ARG5 $5
10820 _ACEOF
10821
10822 fi
10823
10824
10825 # Detect support warning flags.
10826
10827 # Check whether --enable-werror was given.
10828 if test "${enable_werror+set}" = set; then :
10829 enableval=$enable_werror; case "${enableval}" in
10830 yes | y) ERROR_ON_WARNING="yes" ;;
10831 no | n) ERROR_ON_WARNING="no" ;;
10832 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10833 esac
10834 fi
10835
10836
10837 # Enable -Werror by default when using gcc. Turn it off for releases.
10838 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10839 ERROR_ON_WARNING=yes
10840 fi
10841
10842 WERROR_CFLAGS=""
10843 if test "${ERROR_ON_WARNING}" = yes ; then
10844 WERROR_CFLAGS="-Werror"
10845 fi
10846
10847 # The options we'll try to enable.
10848 build_warnings="-Wall -Wpointer-arith \
10849 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10850 -Wno-switch -Wno-char-subscripts \
10851 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10852 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10853 -Wno-mismatched-tags \
10854 -Wno-error=deprecated-register \
10855 -Wsuggest-override \
10856 -Wimplicit-fallthrough=3 \
10857 -Wduplicated-cond \
10858 -Wshadow=local \
10859 -Wdeprecated-copy \
10860 -Wdeprecated-copy-dtor \
10861 -Wredundant-move \
10862 -Wmissing-declarations \
10863 -Wmissing-prototypes \
10864 -Wstrict-null-sentinel \
10865 "
10866
10867 case "${host}" in
10868 *-*-mingw32*)
10869 # Enable -Wno-format by default when using gcc on mingw since many
10870 # GCC versions complain about %I64.
10871 build_warnings="$build_warnings -Wno-format" ;;
10872 *-*-solaris*)
10873 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10874 # doesn't understand.
10875 build_warnings="$build_warnings -Wno-unknown-pragmas"
10876 # Solaris 11 <unistd.h> marks vfork deprecated.
10877 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10878 *)
10879 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10880 # but there's a special case for this below.
10881 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10882 esac
10883
10884 # Check whether --enable-build-warnings was given.
10885 if test "${enable_build_warnings+set}" = set; then :
10886 enableval=$enable_build_warnings; case "${enableval}" in
10887 yes) ;;
10888 no) build_warnings="-w";;
10889 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10890 build_warnings="${build_warnings} ${t}";;
10891 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10892 build_warnings="${t} ${build_warnings}";;
10893 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10894 esac
10895 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10896 echo "Setting compiler warning flags = $build_warnings" 6>&1
10897 fi
10898 fi
10899 # Check whether --enable-gdb-build-warnings was given.
10900 if test "${enable_gdb_build_warnings+set}" = set; then :
10901 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10902 yes) ;;
10903 no) build_warnings="-w";;
10904 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10905 build_warnings="${build_warnings} ${t}";;
10906 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10907 build_warnings="${t} ${build_warnings}";;
10908 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10909 esac
10910 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10911 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10912 fi
10913 fi
10914
10915 # The set of warnings supported by a C++ compiler is not the same as
10916 # of the C compiler.
10917 ac_ext=cpp
10918 ac_cpp='$CXXCPP $CPPFLAGS'
10919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10922
10923
10924 WARN_CFLAGS=""
10925 if test "x${build_warnings}" != x -a "x$GCC" = xyes
10926 then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10928 $as_echo_n "checking compiler warning flags... " >&6; }
10929 # Separate out the -Werror flag as some files just cannot be
10930 # compiled with it enabled.
10931 for w in ${build_warnings}; do
10932 # GCC does not complain about -Wno-unknown-warning. Invert
10933 # and test -Wunknown-warning instead.
10934 case $w in
10935 -Wno-*)
10936 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10937 -Wformat-nonliteral)
10938 # gcc requires -Wformat before -Wformat-nonliteral
10939 # will work, so stick them together.
10940 w="-Wformat $w"
10941 wtest="$w"
10942 ;;
10943 *)
10944 wtest=$w ;;
10945 esac
10946
10947 case $w in
10948 -Werr*) WERROR_CFLAGS=-Werror ;;
10949 *)
10950 # Check whether GCC accepts it.
10951 saved_CFLAGS="$CFLAGS"
10952 CFLAGS="$CFLAGS -Werror $wtest"
10953 saved_CXXFLAGS="$CXXFLAGS"
10954 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10955 if test "x$w" = "x-Wunused-variable"; then
10956 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10957 # fixed in GCC 4.9. This test is derived from the gdb
10958 # source code that triggered this bug in GCC.
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 struct scoped_restore_base {};
10962 struct scoped_restore_tmpl : public scoped_restore_base {
10963 ~scoped_restore_tmpl() {}
10964 };
10965 int
10966 main ()
10967 {
10968 const scoped_restore_base &b = scoped_restore_tmpl();
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_cxx_try_compile "$LINENO"; then :
10974 WARN_CFLAGS="${WARN_CFLAGS} $w"
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 else
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980
10981 int
10982 main ()
10983 {
10984
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_cxx_try_compile "$LINENO"; then :
10990 WARN_CFLAGS="${WARN_CFLAGS} $w"
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 fi
10994 CFLAGS="$saved_CFLAGS"
10995 CXXFLAGS="$saved_CXXFLAGS"
10996 esac
10997 done
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10999 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11000 fi
11001
11002
11003
11004 ac_ext=c
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11009
11010
11011
11012 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11013
11014 cat >>confdefs.h <<_ACEOF
11015 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11016 _ACEOF
11017
11018
11019 case ${host} in
11020 *mingw32*)
11021
11022 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11023
11024 ;;
11025 esac
11026
11027 ac_config_files="$ac_config_files Makefile"
11028
11029 cat >confcache <<\_ACEOF
11030 # This file is a shell script that caches the results of configure
11031 # tests run on this system so they can be shared between configure
11032 # scripts and configure runs, see configure's option --config-cache.
11033 # It is not useful on other systems. If it contains results you don't
11034 # want to keep, you may remove or edit it.
11035 #
11036 # config.status only pays attention to the cache file if you give it
11037 # the --recheck option to rerun configure.
11038 #
11039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11041 # following values.
11042
11043 _ACEOF
11044
11045 # The following way of writing the cache mishandles newlines in values,
11046 # but we know of no workaround that is simple, portable, and efficient.
11047 # So, we kill variables containing newlines.
11048 # Ultrix sh set writes to stderr and can't be redirected directly,
11049 # and sets the high bit in the cache file unless we assign to the vars.
11050 (
11051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11052 eval ac_val=\$$ac_var
11053 case $ac_val in #(
11054 *${as_nl}*)
11055 case $ac_var in #(
11056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11058 esac
11059 case $ac_var in #(
11060 _ | IFS | as_nl) ;; #(
11061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11062 *) { eval $ac_var=; unset $ac_var;} ;;
11063 esac ;;
11064 esac
11065 done
11066
11067 (set) 2>&1 |
11068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11069 *${as_nl}ac_space=\ *)
11070 # `set' does not quote correctly, so add quotes: double-quote
11071 # substitution turns \\\\ into \\, and sed turns \\ into \.
11072 sed -n \
11073 "s/'/'\\\\''/g;
11074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11075 ;; #(
11076 *)
11077 # `set' quotes correctly as required by POSIX, so do not add quotes.
11078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11079 ;;
11080 esac |
11081 sort
11082 ) |
11083 sed '
11084 /^ac_cv_env_/b end
11085 t clear
11086 :clear
11087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11088 t end
11089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11090 :end' >>confcache
11091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11092 if test -w "$cache_file"; then
11093 if test "x$cache_file" != "x/dev/null"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11095 $as_echo "$as_me: updating cache $cache_file" >&6;}
11096 if test ! -f "$cache_file" || test -h "$cache_file"; then
11097 cat confcache >"$cache_file"
11098 else
11099 case $cache_file in #(
11100 */* | ?:*)
11101 mv -f confcache "$cache_file"$$ &&
11102 mv -f "$cache_file"$$ "$cache_file" ;; #(
11103 *)
11104 mv -f confcache "$cache_file" ;;
11105 esac
11106 fi
11107 fi
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11111 fi
11112 fi
11113 rm -f confcache
11114
11115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11116 # Let make expand exec_prefix.
11117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11118
11119 DEFS=-DHAVE_CONFIG_H
11120
11121 ac_libobjs=
11122 ac_ltlibobjs=
11123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11124 # 1. Remove the extension, and $U if already installed.
11125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11126 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11128 # will be set to the directory where LIBOBJS objects are built.
11129 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11130 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11131 done
11132 LIBOBJS=$ac_libobjs
11133
11134 LTLIBOBJS=$ac_ltlibobjs
11135
11136
11137 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11138 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11142 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11143 if test -n "$am_sleep_pid"; then
11144 # Hide warnings about reused PIDs.
11145 wait $am_sleep_pid 2>/dev/null
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11148 $as_echo "done" >&6; }
11149 if test -n "$EXEEXT"; then
11150 am__EXEEXT_TRUE=
11151 am__EXEEXT_FALSE='#'
11152 else
11153 am__EXEEXT_TRUE='#'
11154 am__EXEEXT_FALSE=
11155 fi
11156
11157 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11158 as_fn_error $? "conditional \"AMDEP\" was never defined.
11159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11160 fi
11161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11164 fi
11165 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11168 fi
11169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11170 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11172 fi
11173 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11174 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11176 fi
11177
11178 : "${CONFIG_STATUS=./config.status}"
11179 ac_write_fail=0
11180 ac_clean_files_save=$ac_clean_files
11181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11183 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11184 as_write_fail=0
11185 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11186 #! $SHELL
11187 # Generated by $as_me.
11188 # Run this file to recreate the current configuration.
11189 # Compiler output produced by configure, useful for debugging
11190 # configure, is in config.log if it exists.
11191
11192 debug=false
11193 ac_cs_recheck=false
11194 ac_cs_silent=false
11195
11196 SHELL=\${CONFIG_SHELL-$SHELL}
11197 export SHELL
11198 _ASEOF
11199 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11200 ## -------------------- ##
11201 ## M4sh Initialization. ##
11202 ## -------------------- ##
11203
11204 # Be more Bourne compatible
11205 DUALCASE=1; export DUALCASE # for MKS sh
11206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11207 emulate sh
11208 NULLCMD=:
11209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11210 # is contrary to our usage. Disable this feature.
11211 alias -g '${1+"$@"}'='"$@"'
11212 setopt NO_GLOB_SUBST
11213 else
11214 case `(set -o) 2>/dev/null` in #(
11215 *posix*) :
11216 set -o posix ;; #(
11217 *) :
11218 ;;
11219 esac
11220 fi
11221
11222
11223 as_nl='
11224 '
11225 export as_nl
11226 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11227 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11230 # Prefer a ksh shell builtin over an external printf program on Solaris,
11231 # but without wasting forks for bash or zsh.
11232 if test -z "$BASH_VERSION$ZSH_VERSION" \
11233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11234 as_echo='print -r --'
11235 as_echo_n='print -rn --'
11236 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11237 as_echo='printf %s\n'
11238 as_echo_n='printf %s'
11239 else
11240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11242 as_echo_n='/usr/ucb/echo -n'
11243 else
11244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11245 as_echo_n_body='eval
11246 arg=$1;
11247 case $arg in #(
11248 *"$as_nl"*)
11249 expr "X$arg" : "X\\(.*\\)$as_nl";
11250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11251 esac;
11252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11253 '
11254 export as_echo_n_body
11255 as_echo_n='sh -c $as_echo_n_body as_echo'
11256 fi
11257 export as_echo_body
11258 as_echo='sh -c $as_echo_body as_echo'
11259 fi
11260
11261 # The user is always right.
11262 if test "${PATH_SEPARATOR+set}" != set; then
11263 PATH_SEPARATOR=:
11264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11266 PATH_SEPARATOR=';'
11267 }
11268 fi
11269
11270
11271 # IFS
11272 # We need space, tab and new line, in precisely that order. Quoting is
11273 # there to prevent editors from complaining about space-tab.
11274 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11275 # splitting by setting IFS to empty value.)
11276 IFS=" "" $as_nl"
11277
11278 # Find who we are. Look in the path if we contain no directory separator.
11279 as_myself=
11280 case $0 in #((
11281 *[\\/]* ) as_myself=$0 ;;
11282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11288 done
11289 IFS=$as_save_IFS
11290
11291 ;;
11292 esac
11293 # We did not find ourselves, most probably we were run as `sh COMMAND'
11294 # in which case we are not to be found in the path.
11295 if test "x$as_myself" = x; then
11296 as_myself=$0
11297 fi
11298 if test ! -f "$as_myself"; then
11299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11300 exit 1
11301 fi
11302
11303 # Unset variables that we do not need and which cause bugs (e.g. in
11304 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11305 # suppresses any "Segmentation fault" message there. '((' could
11306 # trigger a bug in pdksh 5.2.14.
11307 for as_var in BASH_ENV ENV MAIL MAILPATH
11308 do eval test x\${$as_var+set} = xset \
11309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11310 done
11311 PS1='$ '
11312 PS2='> '
11313 PS4='+ '
11314
11315 # NLS nuisances.
11316 LC_ALL=C
11317 export LC_ALL
11318 LANGUAGE=C
11319 export LANGUAGE
11320
11321 # CDPATH.
11322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11323
11324
11325 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11326 # ----------------------------------------
11327 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11328 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11329 # script with STATUS, using 1 if that was 0.
11330 as_fn_error ()
11331 {
11332 as_status=$1; test $as_status -eq 0 && as_status=1
11333 if test "$4"; then
11334 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11336 fi
11337 $as_echo "$as_me: error: $2" >&2
11338 as_fn_exit $as_status
11339 } # as_fn_error
11340
11341
11342 # as_fn_set_status STATUS
11343 # -----------------------
11344 # Set $? to STATUS, without forking.
11345 as_fn_set_status ()
11346 {
11347 return $1
11348 } # as_fn_set_status
11349
11350 # as_fn_exit STATUS
11351 # -----------------
11352 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11353 as_fn_exit ()
11354 {
11355 set +e
11356 as_fn_set_status $1
11357 exit $1
11358 } # as_fn_exit
11359
11360 # as_fn_unset VAR
11361 # ---------------
11362 # Portably unset VAR.
11363 as_fn_unset ()
11364 {
11365 { eval $1=; unset $1;}
11366 }
11367 as_unset=as_fn_unset
11368 # as_fn_append VAR VALUE
11369 # ----------------------
11370 # Append the text in VALUE to the end of the definition contained in VAR. Take
11371 # advantage of any shell optimizations that allow amortized linear growth over
11372 # repeated appends, instead of the typical quadratic growth present in naive
11373 # implementations.
11374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11375 eval 'as_fn_append ()
11376 {
11377 eval $1+=\$2
11378 }'
11379 else
11380 as_fn_append ()
11381 {
11382 eval $1=\$$1\$2
11383 }
11384 fi # as_fn_append
11385
11386 # as_fn_arith ARG...
11387 # ------------------
11388 # Perform arithmetic evaluation on the ARGs, and store the result in the
11389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11390 # must be portable across $(()) and expr.
11391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11392 eval 'as_fn_arith ()
11393 {
11394 as_val=$(( $* ))
11395 }'
11396 else
11397 as_fn_arith ()
11398 {
11399 as_val=`expr "$@" || test $? -eq 1`
11400 }
11401 fi # as_fn_arith
11402
11403
11404 if expr a : '\(a\)' >/dev/null 2>&1 &&
11405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11406 as_expr=expr
11407 else
11408 as_expr=false
11409 fi
11410
11411 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11412 as_basename=basename
11413 else
11414 as_basename=false
11415 fi
11416
11417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11418 as_dirname=dirname
11419 else
11420 as_dirname=false
11421 fi
11422
11423 as_me=`$as_basename -- "$0" ||
11424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11425 X"$0" : 'X\(//\)$' \| \
11426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11427 $as_echo X/"$0" |
11428 sed '/^.*\/\([^/][^/]*\)\/*$/{
11429 s//\1/
11430 q
11431 }
11432 /^X\/\(\/\/\)$/{
11433 s//\1/
11434 q
11435 }
11436 /^X\/\(\/\).*/{
11437 s//\1/
11438 q
11439 }
11440 s/.*/./; q'`
11441
11442 # Avoid depending upon Character Ranges.
11443 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11444 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11445 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11446 as_cr_digits='0123456789'
11447 as_cr_alnum=$as_cr_Letters$as_cr_digits
11448
11449 ECHO_C= ECHO_N= ECHO_T=
11450 case `echo -n x` in #(((((
11451 -n*)
11452 case `echo 'xy\c'` in
11453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11454 xy) ECHO_C='\c';;
11455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11456 ECHO_T=' ';;
11457 esac;;
11458 *)
11459 ECHO_N='-n';;
11460 esac
11461
11462 rm -f conf$$ conf$$.exe conf$$.file
11463 if test -d conf$$.dir; then
11464 rm -f conf$$.dir/conf$$.file
11465 else
11466 rm -f conf$$.dir
11467 mkdir conf$$.dir 2>/dev/null
11468 fi
11469 if (echo >conf$$.file) 2>/dev/null; then
11470 if ln -s conf$$.file conf$$ 2>/dev/null; then
11471 as_ln_s='ln -s'
11472 # ... but there are two gotchas:
11473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11475 # In both cases, we have to default to `cp -pR'.
11476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11477 as_ln_s='cp -pR'
11478 elif ln conf$$.file conf$$ 2>/dev/null; then
11479 as_ln_s=ln
11480 else
11481 as_ln_s='cp -pR'
11482 fi
11483 else
11484 as_ln_s='cp -pR'
11485 fi
11486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11487 rmdir conf$$.dir 2>/dev/null
11488
11489
11490 # as_fn_mkdir_p
11491 # -------------
11492 # Create "$as_dir" as a directory, including parents if necessary.
11493 as_fn_mkdir_p ()
11494 {
11495
11496 case $as_dir in #(
11497 -*) as_dir=./$as_dir;;
11498 esac
11499 test -d "$as_dir" || eval $as_mkdir_p || {
11500 as_dirs=
11501 while :; do
11502 case $as_dir in #(
11503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11504 *) as_qdir=$as_dir;;
11505 esac
11506 as_dirs="'$as_qdir' $as_dirs"
11507 as_dir=`$as_dirname -- "$as_dir" ||
11508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11509 X"$as_dir" : 'X\(//\)[^/]' \| \
11510 X"$as_dir" : 'X\(//\)$' \| \
11511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11512 $as_echo X"$as_dir" |
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\(\/\/\)[^/].*/{
11518 s//\1/
11519 q
11520 }
11521 /^X\(\/\/\)$/{
11522 s//\1/
11523 q
11524 }
11525 /^X\(\/\).*/{
11526 s//\1/
11527 q
11528 }
11529 s/.*/./; q'`
11530 test -d "$as_dir" && break
11531 done
11532 test -z "$as_dirs" || eval "mkdir $as_dirs"
11533 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11534
11535
11536 } # as_fn_mkdir_p
11537 if mkdir -p . 2>/dev/null; then
11538 as_mkdir_p='mkdir -p "$as_dir"'
11539 else
11540 test -d ./-p && rmdir ./-p
11541 as_mkdir_p=false
11542 fi
11543
11544
11545 # as_fn_executable_p FILE
11546 # -----------------------
11547 # Test if FILE is an executable regular file.
11548 as_fn_executable_p ()
11549 {
11550 test -f "$1" && test -x "$1"
11551 } # as_fn_executable_p
11552 as_test_x='test -x'
11553 as_executable_p=as_fn_executable_p
11554
11555 # Sed expression to map a string onto a valid CPP name.
11556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11557
11558 # Sed expression to map a string onto a valid variable name.
11559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11560
11561
11562 exec 6>&1
11563 ## ----------------------------------- ##
11564 ## Main body of $CONFIG_STATUS script. ##
11565 ## ----------------------------------- ##
11566 _ASEOF
11567 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11568
11569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11570 # Save the log message, to keep $0 and so on meaningful, and to
11571 # report actual input values of CONFIG_FILES etc. instead of their
11572 # values after options handling.
11573 ac_log="
11574 This file was extended by gdbsupport $as_me 1.0, which was
11575 generated by GNU Autoconf 2.69. Invocation command line was
11576
11577 CONFIG_FILES = $CONFIG_FILES
11578 CONFIG_HEADERS = $CONFIG_HEADERS
11579 CONFIG_LINKS = $CONFIG_LINKS
11580 CONFIG_COMMANDS = $CONFIG_COMMANDS
11581 $ $0 $@
11582
11583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11584 "
11585
11586 _ACEOF
11587
11588 case $ac_config_files in *"
11589 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11590 esac
11591
11592 case $ac_config_headers in *"
11593 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11594 esac
11595
11596
11597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11598 # Files that config.status was made for.
11599 config_files="$ac_config_files"
11600 config_headers="$ac_config_headers"
11601 config_commands="$ac_config_commands"
11602
11603 _ACEOF
11604
11605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606 ac_cs_usage="\
11607 \`$as_me' instantiates files and other configuration actions
11608 from templates according to the current configuration. Unless the files
11609 and actions are specified as TAGs, all are instantiated by default.
11610
11611 Usage: $0 [OPTION]... [TAG]...
11612
11613 -h, --help print this help, then exit
11614 -V, --version print version number and configuration settings, then exit
11615 --config print configuration, then exit
11616 -q, --quiet, --silent
11617 do not print progress messages
11618 -d, --debug don't remove temporary files
11619 --recheck update $as_me by reconfiguring in the same conditions
11620 --file=FILE[:TEMPLATE]
11621 instantiate the configuration file FILE
11622 --header=FILE[:TEMPLATE]
11623 instantiate the configuration header FILE
11624
11625 Configuration files:
11626 $config_files
11627
11628 Configuration headers:
11629 $config_headers
11630
11631 Configuration commands:
11632 $config_commands
11633
11634 Report bugs to the package provider."
11635
11636 _ACEOF
11637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11639 ac_cs_version="\\
11640 gdbsupport config.status 1.0
11641 configured by $0, generated by GNU Autoconf 2.69,
11642 with options \\"\$ac_cs_config\\"
11643
11644 Copyright (C) 2012 Free Software Foundation, Inc.
11645 This config.status script is free software; the Free Software Foundation
11646 gives unlimited permission to copy, distribute and modify it."
11647
11648 ac_pwd='$ac_pwd'
11649 srcdir='$srcdir'
11650 INSTALL='$INSTALL'
11651 MKDIR_P='$MKDIR_P'
11652 AWK='$AWK'
11653 test -n "\$AWK" || AWK=awk
11654 _ACEOF
11655
11656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657 # The default lists apply if the user does not specify any file.
11658 ac_need_defaults=:
11659 while test $# != 0
11660 do
11661 case $1 in
11662 --*=?*)
11663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11664 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11665 ac_shift=:
11666 ;;
11667 --*=)
11668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11669 ac_optarg=
11670 ac_shift=:
11671 ;;
11672 *)
11673 ac_option=$1
11674 ac_optarg=$2
11675 ac_shift=shift
11676 ;;
11677 esac
11678
11679 case $ac_option in
11680 # Handling of the options.
11681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11682 ac_cs_recheck=: ;;
11683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11684 $as_echo "$ac_cs_version"; exit ;;
11685 --config | --confi | --conf | --con | --co | --c )
11686 $as_echo "$ac_cs_config"; exit ;;
11687 --debug | --debu | --deb | --de | --d | -d )
11688 debug=: ;;
11689 --file | --fil | --fi | --f )
11690 $ac_shift
11691 case $ac_optarg in
11692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11693 '') as_fn_error $? "missing file argument" ;;
11694 esac
11695 as_fn_append CONFIG_FILES " '$ac_optarg'"
11696 ac_need_defaults=false;;
11697 --header | --heade | --head | --hea )
11698 $ac_shift
11699 case $ac_optarg in
11700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11701 esac
11702 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11703 ac_need_defaults=false;;
11704 --he | --h)
11705 # Conflict between --help and --header
11706 as_fn_error $? "ambiguous option: \`$1'
11707 Try \`$0 --help' for more information.";;
11708 --help | --hel | -h )
11709 $as_echo "$ac_cs_usage"; exit ;;
11710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11712 ac_cs_silent=: ;;
11713
11714 # This is an error.
11715 -*) as_fn_error $? "unrecognized option: \`$1'
11716 Try \`$0 --help' for more information." ;;
11717
11718 *) as_fn_append ac_config_targets " $1"
11719 ac_need_defaults=false ;;
11720
11721 esac
11722 shift
11723 done
11724
11725 ac_configure_extra_args=
11726
11727 if $ac_cs_silent; then
11728 exec 6>/dev/null
11729 ac_configure_extra_args="$ac_configure_extra_args --silent"
11730 fi
11731
11732 _ACEOF
11733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734 if \$ac_cs_recheck; then
11735 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11736 shift
11737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11738 CONFIG_SHELL='$SHELL'
11739 export CONFIG_SHELL
11740 exec "\$@"
11741 fi
11742
11743 _ACEOF
11744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11745 exec 5>>config.log
11746 {
11747 echo
11748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11749 ## Running $as_me. ##
11750 _ASBOX
11751 $as_echo "$ac_log"
11752 } >&5
11753
11754 _ACEOF
11755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11756 #
11757 # INIT-COMMANDS
11758 #
11759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11760
11761 _ACEOF
11762
11763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11764
11765 # Handling of arguments.
11766 for ac_config_target in $ac_config_targets
11767 do
11768 case $ac_config_target in
11769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11772
11773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11774 esac
11775 done
11776
11777
11778 # If the user did not use the arguments to specify the items to instantiate,
11779 # then the envvar interface is used. Set only those that are not.
11780 # We use the long form for the default assignment because of an extremely
11781 # bizarre bug on SunOS 4.1.3.
11782 if $ac_need_defaults; then
11783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11786 fi
11787
11788 # Have a temporary directory for convenience. Make it in the build tree
11789 # simply because there is no reason against having it here, and in addition,
11790 # creating and moving files from /tmp can sometimes cause problems.
11791 # Hook for its removal unless debugging.
11792 # Note that there is a small window in which the directory will not be cleaned:
11793 # after its creation but before its name has been assigned to `$tmp'.
11794 $debug ||
11795 {
11796 tmp= ac_tmp=
11797 trap 'exit_status=$?
11798 : "${ac_tmp:=$tmp}"
11799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11800 ' 0
11801 trap 'as_fn_exit 1' 1 2 13 15
11802 }
11803 # Create a (secure) tmp directory for tmp files.
11804
11805 {
11806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11807 test -d "$tmp"
11808 } ||
11809 {
11810 tmp=./conf$$-$RANDOM
11811 (umask 077 && mkdir "$tmp")
11812 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11813 ac_tmp=$tmp
11814
11815 # Set up the scripts for CONFIG_FILES section.
11816 # No need to generate them if there are no CONFIG_FILES.
11817 # This happens for instance with `./config.status config.h'.
11818 if test -n "$CONFIG_FILES"; then
11819
11820
11821 ac_cr=`echo X | tr X '\015'`
11822 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11823 # But we know of no other shell where ac_cr would be empty at this
11824 # point, so we can use a bashism as a fallback.
11825 if test "x$ac_cr" = x; then
11826 eval ac_cr=\$\'\\r\'
11827 fi
11828 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11830 ac_cs_awk_cr='\\r'
11831 else
11832 ac_cs_awk_cr=$ac_cr
11833 fi
11834
11835 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11836 _ACEOF
11837
11838
11839 {
11840 echo "cat >conf$$subs.awk <<_ACEOF" &&
11841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11842 echo "_ACEOF"
11843 } >conf$$subs.sh ||
11844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11846 ac_delim='%!_!# '
11847 for ac_last_try in false false false false false :; do
11848 . ./conf$$subs.sh ||
11849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11850
11851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11852 if test $ac_delim_n = $ac_delim_num; then
11853 break
11854 elif $ac_last_try; then
11855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11856 else
11857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11858 fi
11859 done
11860 rm -f conf$$subs.sh
11861
11862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11863 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11864 _ACEOF
11865 sed -n '
11866 h
11867 s/^/S["/; s/!.*/"]=/
11868 p
11869 g
11870 s/^[^!]*!//
11871 :repl
11872 t repl
11873 s/'"$ac_delim"'$//
11874 t delim
11875 :nl
11876 h
11877 s/\(.\{148\}\)..*/\1/
11878 t more1
11879 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11880 p
11881 n
11882 b repl
11883 :more1
11884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11885 p
11886 g
11887 s/.\{148\}//
11888 t nl
11889 :delim
11890 h
11891 s/\(.\{148\}\)..*/\1/
11892 t more2
11893 s/["\\]/\\&/g; s/^/"/; s/$/"/
11894 p
11895 b
11896 :more2
11897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11898 p
11899 g
11900 s/.\{148\}//
11901 t delim
11902 ' <conf$$subs.awk | sed '
11903 /^[^""]/{
11904 N
11905 s/\n//
11906 }
11907 ' >>$CONFIG_STATUS || ac_write_fail=1
11908 rm -f conf$$subs.awk
11909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11910 _ACAWK
11911 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11912 for (key in S) S_is_set[key] = 1
11913 FS = "\a"
11914
11915 }
11916 {
11917 line = $ 0
11918 nfields = split(line, field, "@")
11919 substed = 0
11920 len = length(field[1])
11921 for (i = 2; i < nfields; i++) {
11922 key = field[i]
11923 keylen = length(key)
11924 if (S_is_set[key]) {
11925 value = S[key]
11926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11927 len += length(value) + length(field[++i])
11928 substed = 1
11929 } else
11930 len += 1 + keylen
11931 }
11932
11933 print line
11934 }
11935
11936 _ACAWK
11937 _ACEOF
11938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11941 else
11942 cat
11943 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11945 _ACEOF
11946
11947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11949 # trailing colons and then remove the whole line if VPATH becomes empty
11950 # (actually we leave an empty line to preserve line numbers).
11951 if test "x$srcdir" = x.; then
11952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11953 h
11954 s///
11955 s/^/:/
11956 s/[ ]*$/:/
11957 s/:\$(srcdir):/:/g
11958 s/:\${srcdir}:/:/g
11959 s/:@srcdir@:/:/g
11960 s/^:*//
11961 s/:*$//
11962 x
11963 s/\(=[ ]*\).*/\1/
11964 G
11965 s/\n//
11966 s/^[^=]*=[ ]*$//
11967 }'
11968 fi
11969
11970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11971 fi # test -n "$CONFIG_FILES"
11972
11973 # Set up the scripts for CONFIG_HEADERS section.
11974 # No need to generate them if there are no CONFIG_HEADERS.
11975 # This happens for instance with `./config.status Makefile'.
11976 if test -n "$CONFIG_HEADERS"; then
11977 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11978 BEGIN {
11979 _ACEOF
11980
11981 # Transform confdefs.h into an awk script `defines.awk', embedded as
11982 # here-document in config.status, that substitutes the proper values into
11983 # config.h.in to produce config.h.
11984
11985 # Create a delimiter string that does not exist in confdefs.h, to ease
11986 # handling of long lines.
11987 ac_delim='%!_!# '
11988 for ac_last_try in false false :; do
11989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11990 if test -z "$ac_tt"; then
11991 break
11992 elif $ac_last_try; then
11993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11994 else
11995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11996 fi
11997 done
11998
11999 # For the awk script, D is an array of macro values keyed by name,
12000 # likewise P contains macro parameters if any. Preserve backslash
12001 # newline sequences.
12002
12003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12004 sed -n '
12005 s/.\{148\}/&'"$ac_delim"'/g
12006 t rset
12007 :rset
12008 s/^[ ]*#[ ]*define[ ][ ]*/ /
12009 t def
12010 d
12011 :def
12012 s/\\$//
12013 t bsnl
12014 s/["\\]/\\&/g
12015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12016 D["\1"]=" \3"/p
12017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12018 d
12019 :bsnl
12020 s/["\\]/\\&/g
12021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12022 D["\1"]=" \3\\\\\\n"\\/p
12023 t cont
12024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12025 t cont
12026 d
12027 :cont
12028 n
12029 s/.\{148\}/&'"$ac_delim"'/g
12030 t clear
12031 :clear
12032 s/\\$//
12033 t bsnlc
12034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12035 d
12036 :bsnlc
12037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12038 b cont
12039 ' <confdefs.h | sed '
12040 s/'"$ac_delim"'/"\\\
12041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12042
12043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12044 for (key in D) D_is_set[key] = 1
12045 FS = "\a"
12046 }
12047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12048 line = \$ 0
12049 split(line, arg, " ")
12050 if (arg[1] == "#") {
12051 defundef = arg[2]
12052 mac1 = arg[3]
12053 } else {
12054 defundef = substr(arg[1], 2)
12055 mac1 = arg[2]
12056 }
12057 split(mac1, mac2, "(") #)
12058 macro = mac2[1]
12059 prefix = substr(line, 1, index(line, defundef) - 1)
12060 if (D_is_set[macro]) {
12061 # Preserve the white space surrounding the "#".
12062 print prefix "define", macro P[macro] D[macro]
12063 next
12064 } else {
12065 # Replace #undef with comments. This is necessary, for example,
12066 # in the case of _POSIX_SOURCE, which is predefined and required
12067 # on some systems where configure will not decide to define it.
12068 if (defundef == "undef") {
12069 print "/*", prefix defundef, macro, "*/"
12070 next
12071 }
12072 }
12073 }
12074 { print }
12075 _ACAWK
12076 _ACEOF
12077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12079 fi # test -n "$CONFIG_HEADERS"
12080
12081
12082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12083 shift
12084 for ac_tag
12085 do
12086 case $ac_tag in
12087 :[FHLC]) ac_mode=$ac_tag; continue;;
12088 esac
12089 case $ac_mode$ac_tag in
12090 :[FHL]*:*);;
12091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12092 :[FH]-) ac_tag=-:-;;
12093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12094 esac
12095 ac_save_IFS=$IFS
12096 IFS=:
12097 set x $ac_tag
12098 IFS=$ac_save_IFS
12099 shift
12100 ac_file=$1
12101 shift
12102
12103 case $ac_mode in
12104 :L) ac_source=$1;;
12105 :[FH])
12106 ac_file_inputs=
12107 for ac_f
12108 do
12109 case $ac_f in
12110 -) ac_f="$ac_tmp/stdin";;
12111 *) # Look for the file first in the build tree, then in the source tree
12112 # (if the path is not absolute). The absolute path cannot be DOS-style,
12113 # because $ac_f cannot contain `:'.
12114 test -f "$ac_f" ||
12115 case $ac_f in
12116 [\\/$]*) false;;
12117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12118 esac ||
12119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12120 esac
12121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12122 as_fn_append ac_file_inputs " '$ac_f'"
12123 done
12124
12125 # Let's still pretend it is `configure' which instantiates (i.e., don't
12126 # use $as_me), people would be surprised to read:
12127 # /* config.h. Generated by config.status. */
12128 configure_input='Generated from '`
12129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12130 `' by configure.'
12131 if test x"$ac_file" != x-; then
12132 configure_input="$ac_file. $configure_input"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12134 $as_echo "$as_me: creating $ac_file" >&6;}
12135 fi
12136 # Neutralize special characters interpreted by sed in replacement strings.
12137 case $configure_input in #(
12138 *\&* | *\|* | *\\* )
12139 ac_sed_conf_input=`$as_echo "$configure_input" |
12140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12141 *) ac_sed_conf_input=$configure_input;;
12142 esac
12143
12144 case $ac_tag in
12145 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12147 esac
12148 ;;
12149 esac
12150
12151 ac_dir=`$as_dirname -- "$ac_file" ||
12152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$ac_file" : 'X\(//\)[^/]' \| \
12154 X"$ac_file" : 'X\(//\)$' \| \
12155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12156 $as_echo X"$ac_file" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\/\)[^/].*/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\/\)$/{
12166 s//\1/
12167 q
12168 }
12169 /^X\(\/\).*/{
12170 s//\1/
12171 q
12172 }
12173 s/.*/./; q'`
12174 as_dir="$ac_dir"; as_fn_mkdir_p
12175 ac_builddir=.
12176
12177 case "$ac_dir" in
12178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12179 *)
12180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12181 # A ".." for each directory in $ac_dir_suffix.
12182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12183 case $ac_top_builddir_sub in
12184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12186 esac ;;
12187 esac
12188 ac_abs_top_builddir=$ac_pwd
12189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12190 # for backward compatibility:
12191 ac_top_builddir=$ac_top_build_prefix
12192
12193 case $srcdir in
12194 .) # We are building in place.
12195 ac_srcdir=.
12196 ac_top_srcdir=$ac_top_builddir_sub
12197 ac_abs_top_srcdir=$ac_pwd ;;
12198 [\\/]* | ?:[\\/]* ) # Absolute name.
12199 ac_srcdir=$srcdir$ac_dir_suffix;
12200 ac_top_srcdir=$srcdir
12201 ac_abs_top_srcdir=$srcdir ;;
12202 *) # Relative name.
12203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12204 ac_top_srcdir=$ac_top_build_prefix$srcdir
12205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12206 esac
12207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12208
12209
12210 case $ac_mode in
12211 :F)
12212 #
12213 # CONFIG_FILE
12214 #
12215
12216 case $INSTALL in
12217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12219 esac
12220 ac_MKDIR_P=$MKDIR_P
12221 case $MKDIR_P in
12222 [\\/$]* | ?:[\\/]* ) ;;
12223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12224 esac
12225 _ACEOF
12226
12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 # If the template does not know about datarootdir, expand it.
12229 # FIXME: This hack should be removed a few years after 2.60.
12230 ac_datarootdir_hack=; ac_datarootdir_seen=
12231 ac_sed_dataroot='
12232 /datarootdir/ {
12233 p
12234 q
12235 }
12236 /@datadir@/p
12237 /@docdir@/p
12238 /@infodir@/p
12239 /@localedir@/p
12240 /@mandir@/p'
12241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12242 *datarootdir*) ac_datarootdir_seen=yes;;
12243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12246 _ACEOF
12247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12248 ac_datarootdir_hack='
12249 s&@datadir@&$datadir&g
12250 s&@docdir@&$docdir&g
12251 s&@infodir@&$infodir&g
12252 s&@localedir@&$localedir&g
12253 s&@mandir@&$mandir&g
12254 s&\\\${datarootdir}&$datarootdir&g' ;;
12255 esac
12256 _ACEOF
12257
12258 # Neutralize VPATH when `$srcdir' = `.'.
12259 # Shell code in configure.ac might set extrasub.
12260 # FIXME: do we really want to maintain this feature?
12261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12262 ac_sed_extra="$ac_vpsub
12263 $extrasub
12264 _ACEOF
12265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266 :t
12267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12268 s|@configure_input@|$ac_sed_conf_input|;t t
12269 s&@top_builddir@&$ac_top_builddir_sub&;t t
12270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12271 s&@srcdir@&$ac_srcdir&;t t
12272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12273 s&@top_srcdir@&$ac_top_srcdir&;t t
12274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12275 s&@builddir@&$ac_builddir&;t t
12276 s&@abs_builddir@&$ac_abs_builddir&;t t
12277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12278 s&@INSTALL@&$ac_INSTALL&;t t
12279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12280 $ac_datarootdir_hack
12281 "
12282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12284
12285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12290 which seems to be undefined. Please make sure it is defined" >&5
12291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12292 which seems to be undefined. Please make sure it is defined" >&2;}
12293
12294 rm -f "$ac_tmp/stdin"
12295 case $ac_file in
12296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12298 esac \
12299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12300 ;;
12301 :H)
12302 #
12303 # CONFIG_HEADER
12304 #
12305 if test x"$ac_file" != x-; then
12306 {
12307 $as_echo "/* $configure_input */" \
12308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12309 } >"$ac_tmp/config.h" \
12310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12314 else
12315 rm -f "$ac_file"
12316 mv "$ac_tmp/config.h" "$ac_file" \
12317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12318 fi
12319 else
12320 $as_echo "/* $configure_input */" \
12321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12322 || as_fn_error $? "could not create -" "$LINENO" 5
12323 fi
12324 # Compute "$ac_file"'s index in $config_headers.
12325 _am_arg="$ac_file"
12326 _am_stamp_count=1
12327 for _am_header in $config_headers :; do
12328 case $_am_header in
12329 $_am_arg | $_am_arg:* )
12330 break ;;
12331 * )
12332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12333 esac
12334 done
12335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337 X"$_am_arg" : 'X\(//\)[^/]' \| \
12338 X"$_am_arg" : 'X\(//\)$' \| \
12339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12340 $as_echo X"$_am_arg" |
12341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\/\)[^/].*/{
12346 s//\1/
12347 q
12348 }
12349 /^X\(\/\/\)$/{
12350 s//\1/
12351 q
12352 }
12353 /^X\(\/\).*/{
12354 s//\1/
12355 q
12356 }
12357 s/.*/./; q'`/stamp-h$_am_stamp_count
12358 ;;
12359
12360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12361 $as_echo "$as_me: executing $ac_file commands" >&6;}
12362 ;;
12363 esac
12364
12365
12366 case $ac_file$ac_mode in
12367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12368 # Older Autoconf quotes --file arguments for eval, but not when files
12369 # are listed without --file. Let's play safe and only enable the eval
12370 # if we detect the quoting.
12371 case $CONFIG_FILES in
12372 *\'*) eval set x "$CONFIG_FILES" ;;
12373 *) set x $CONFIG_FILES ;;
12374 esac
12375 shift
12376 for mf
12377 do
12378 # Strip MF so we end up with the name of the file.
12379 mf=`echo "$mf" | sed -e 's/:.*$//'`
12380 # Check whether this is an Automake generated Makefile or not.
12381 # We used to match only the files named 'Makefile.in', but
12382 # some people rename them; so instead we look at the file content.
12383 # Grep'ing the first line is not enough: some people post-process
12384 # each Makefile.in and add a new line on top of each file to say so.
12385 # Grep'ing the whole file is not good either: AIX grep has a line
12386 # limit of 2048, but all sed's we know have understand at least 4000.
12387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12388 dirpart=`$as_dirname -- "$mf" ||
12389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12390 X"$mf" : 'X\(//\)[^/]' \| \
12391 X"$mf" : 'X\(//\)$' \| \
12392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12393 $as_echo X"$mf" |
12394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12395 s//\1/
12396 q
12397 }
12398 /^X\(\/\/\)[^/].*/{
12399 s//\1/
12400 q
12401 }
12402 /^X\(\/\/\)$/{
12403 s//\1/
12404 q
12405 }
12406 /^X\(\/\).*/{
12407 s//\1/
12408 q
12409 }
12410 s/.*/./; q'`
12411 else
12412 continue
12413 fi
12414 # Extract the definition of DEPDIR, am__include, and am__quote
12415 # from the Makefile without running 'make'.
12416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12417 test -z "$DEPDIR" && continue
12418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12419 test -z "$am__include" && continue
12420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12421 # Find all dependency output files, they are included files with
12422 # $(DEPDIR) in their names. We invoke sed twice because it is the
12423 # simplest approach to changing $(DEPDIR) to its actual value in the
12424 # expansion.
12425 for file in `sed -n "
12426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12428 # Make sure the directory exists.
12429 test -f "$dirpart/$file" && continue
12430 fdir=`$as_dirname -- "$file" ||
12431 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12432 X"$file" : 'X\(//\)[^/]' \| \
12433 X"$file" : 'X\(//\)$' \| \
12434 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12435 $as_echo X"$file" |
12436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12437 s//\1/
12438 q
12439 }
12440 /^X\(\/\/\)[^/].*/{
12441 s//\1/
12442 q
12443 }
12444 /^X\(\/\/\)$/{
12445 s//\1/
12446 q
12447 }
12448 /^X\(\/\).*/{
12449 s//\1/
12450 q
12451 }
12452 s/.*/./; q'`
12453 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12454 # echo "creating $dirpart/$file"
12455 echo '# dummy' > "$dirpart/$file"
12456 done
12457 done
12458 }
12459 ;;
12460
12461 esac
12462 done # for ac_tag
12463
12464
12465 as_fn_exit 0
12466 _ACEOF
12467 ac_clean_files=$ac_clean_files_save
12468
12469 test $ac_write_fail = 0 ||
12470 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12471
12472
12473 # configure is writing to config.log, and then calls config.status.
12474 # config.status does its own redirection, appending to config.log.
12475 # Unfortunately, on DOS this fails, as config.log is still kept open
12476 # by configure, so config.status won't be able to write to it; its
12477 # output is simply discarded. So we exec the FD to /dev/null,
12478 # effectively closing config.log, so it can be properly (re)opened and
12479 # appended to by config.status. When coming back to configure, we
12480 # need to make the FD available again.
12481 if test "$no_create" != yes; then
12482 ac_cs_success=:
12483 ac_config_status_args=
12484 test "$silent" = yes &&
12485 ac_config_status_args="$ac_config_status_args --quiet"
12486 exec 5>/dev/null
12487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12488 exec 5>>config.log
12489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12490 # would make configure fail if this is the last instruction.
12491 $ac_cs_success || as_fn_exit 1
12492 fi
12493 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12495 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12496 fi
12497
This page took 0.306482 seconds and 4 git commands to generate.