]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/configure
Replace a run-time assertion failure with a warning message when parsing corrupt...
[thirdparty/binutils-gdb.git] / gdbsupport / configure
CommitLineData
01027315
TT
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='gdbsupport'
579PACKAGE_TARNAME='gdbsupport'
580PACKAGE_VERSION='1.0'
581PACKAGE_STRING='gdbsupport 1.0'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="common-defs.h"
586# Factoring default headers for most tests.
587ac_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
05ea2a05 622ac_header_list=
01027315
TT
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
629c2962
SM
627WERROR_CFLAGS
628WARN_CFLAGS
ea3e7446
JB
629HAVE_PIPE_OR_PIPE2_FALSE
630HAVE_PIPE_OR_PIPE2_TRUE
01027315
TT
631SELFTEST_FALSE
632SELFTEST_TRUE
05ea2a05
TT
633LTLIBIPT
634LIBIPT
635HAVE_LIBIPT
01027315
TT
636PTHREAD_CFLAGS
637PTHREAD_LIBS
638PTHREAD_CC
639ax_pthread_config
640SED
641ALLOCA
642CATOBJEXT
643GENCAT
644INSTOBJEXT
645DATADIRNAME
646CATALOGS
647POSUB
648GMSGFMT
649XGETTEXT
650INCINTL
651LIBINTL_DEP
652LIBINTL
653USE_NLS
654CXX_DIALECT
655HAVE_CXX11
c8693053 656LARGEFILE_CPPFLAGS
01027315
TT
657EGREP
658GREP
659CPP
660RANLIB
661am__fastdepCXX_FALSE
662am__fastdepCXX_TRUE
663CXXDEPMODE
664ac_ct_CXX
665CXXFLAGS
666CXX
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684AM_BACKSLASH
685AM_DEFAULT_VERBOSITY
686AM_DEFAULT_V
687AM_V
688am__untar
689am__tar
690AMTAR
691am__leading_dot
692SET_MAKE
693AWK
694mkdir_p
695MKDIR_P
696INSTALL_STRIP_PROGRAM
697STRIP
698install_sh
699MAKEINFO
700AUTOHEADER
701AUTOMAKE
702AUTOCONF
703ACLOCAL
704VERSION
705PACKAGE
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711MAINT
712MAINTAINER_MODE_FALSE
713MAINTAINER_MODE_TRUE
714target_os
715target_vendor
716target_cpu
717target
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767enable_maintainer_mode
768enable_silent_rules
769enable_dependency_tracking
770enable_plugins
771enable_largefile
261b0748 772enable_threading
05ea2a05
TT
773with_intel_pt
774with_gnu_ld
775enable_rpath
776with_libipt_prefix
9f1528a1 777with_libipt_type
01027315 778enable_unit_tests
629c2962
SM
779enable_werror
780enable_build_warnings
781enable_gdb_build_warnings
01027315
TT
782'
783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791CXX
792CXXFLAGS
793CCC
794CPP'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
854 fi
855
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909"enable_$ac_useropt"
910"*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935"enable_$ac_useropt"
936"*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1145
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 ;;
1201
1202 esac
1203done
1204
1205if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1223do
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1252 fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\).*/{
1292 s//\1/
1293 q
1294 }
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1299 fi
1300else
1301 ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE. See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388_ACEOF
1389
1390 cat <<\_ACEOF
1391
1392Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396
1397System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 --target=TARGET configure for building compilers for TARGET [HOST]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1407 esac
1408 cat <<\_ACEOF
1409
1410Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-maintainer-mode
1415 enable make rules and dependencies not useful (and
1416 sometimes confusing) to the casual installer
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --enable-plugins Enable support for plugins
1424 --disable-largefile omit support for large files
261b0748
LM
1425 --enable-threading include support for parallel processing of data
1426 (yes/no)
05ea2a05 1427 --disable-rpath do not hardcode runtime library paths
01027315
TT
1428 --enable-unit-tests Enable the inclusion of unit tests when compiling
1429 GDB
629c2962
SM
1430 --enable-werror treat compile warnings as errors
1431 --enable-build-warnings enable build-time compiler warnings if gcc is used
1432 --enable-gdb-build-warnings
1433 enable GDB specific build-time compiler warnings if
1434 gcc is used
01027315 1435
05ea2a05
TT
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1440 --with-gnu-ld assume the C compiler uses GNU ld default=no
1441 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1442 --without-libipt-prefix don't search for libipt in includedir and libdir
9f1528a1 1443 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
05ea2a05 1444
01027315
TT
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CXX C++ compiler command
1454 CXXFLAGS C++ compiler flags
1455 CPP C preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to the package provider.
1461_ACEOF
1462ac_status=$?
1463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
1488
1489case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502esac
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518fi
1519
1520test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then
1522 cat <<\_ACEOF
1523gdbsupport configure 1.0
1524generated by GNU Autoconf 2.69
1525
1526Copyright (C) 2012 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
1530 exit
1531fi
1532
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
1536
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_cxx_try_compile LINENO
1576# ----------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_cxx_try_compile ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_cxx_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602else
1603 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611} # ac_fn_cxx_try_compile
1612
1613# ac_fn_c_try_cpp LINENO
1614# ----------------------
1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_cpp ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } > conftest.i && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648} # ac_fn_c_try_cpp
1649
1650# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651# -------------------------------------------------------
1652# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653# the include files in INCLUDES and setting the cache variable VAR
1654# accordingly.
1655ac_fn_c_check_header_mongrel ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if eval \${$3+:} false; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667else
1668 # Is the header compilable?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670$as_echo_n "checking $2 usability... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678else
1679 ac_header_compiler=no
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683$as_echo "$ac_header_compiler" >&6; }
1684
1685# Is the header present?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687$as_echo_n "checking $2 presence... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694else
1695 ac_header_preproc=no
1696fi
1697rm -f conftest.err conftest.i conftest.$ac_ext
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699$as_echo "$ac_header_preproc" >&6; }
1700
1701# So? What about this header?
1702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 eval "$3=\$ac_header_compiler"
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735} # ac_fn_c_check_header_mongrel
1736
1737# ac_fn_c_try_run LINENO
1738# ----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740# that executables *can* be run.
1741ac_fn_c_try_run ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777} # ac_fn_c_try_run
1778
1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists and can be compiled using the include files in
1782# INCLUDES, setting the cache variable VAR accordingly.
1783ac_fn_c_check_header_compile ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_try_link LINENO
1811# -----------------------
1812# Try to link conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_link ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext conftest$ac_exeext
1817 if { { ac_try="$ac_link"
1818case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest$ac_exeext && {
1836 test "$cross_compiling" = yes ||
1837 test -x conftest$ac_exeext
1838 }; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845fi
1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1848 # interfere with the next link command; also delete a directory that is
1849 # left behind by Apple's compiler. We do this before executing the actions.
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_link
1855
1856# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1857# -------------------------------------------
1858# Tests whether TYPE exists after having included INCLUDES, setting cache
1859# variable VAR accordingly.
1860ac_fn_c_check_type ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 eval "$3=no"
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h. */
1871$4
1872int
1873main ()
1874{
1875if (sizeof ($2))
1876 return 0;
1877 ;
1878 return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885int
1886main ()
1887{
1888if (sizeof (($2)))
1889 return 0;
1890 ;
1891 return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895
1896else
1897 eval "$3=yes"
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902fi
1903eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908} # ac_fn_c_check_type
1909
1910# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1911# --------------------------------------------
1912# Tries to find the compile-time value of EXPR in a program that includes
1913# INCLUDES, setting VAR accordingly. Returns whether the value could be
1914# computed
1915ac_fn_c_compute_int ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if test "$cross_compiling" = yes; then
1919 # Depending upon the size, compute the lo and hi bounds.
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h. */
1922$4
1923int
1924main ()
1925{
1926static int test_array [1 - 2 * !(($2) >= 0)];
1927test_array [0] = 0;
1928return test_array [0];
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_lo=0 ac_mid=0
1936 while :; do
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$4
1940int
1941main ()
1942{
1943static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1944test_array [0] = 0;
1945return test_array [0];
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=$ac_mid; break
1953else
1954 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1955 if test $ac_lo -le $ac_mid; then
1956 ac_lo= ac_hi=
1957 break
1958 fi
1959 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 done
1963else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970static int test_array [1 - 2 * !(($2) < 0)];
1971test_array [0] = 0;
1972return test_array [0];
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_hi=-1 ac_mid=-1
1980 while :; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$4
1984int
1985main ()
1986{
1987static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1988test_array [0] = 0;
1989return test_array [0];
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_lo=$ac_mid; break
1997else
1998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1999 if test $ac_mid -le $ac_hi; then
2000 ac_lo= ac_hi=
2001 break
2002 fi
2003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 done
2007else
2008 ac_lo= ac_hi=
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013# Binary search between lo and hi bounds.
2014while test "x$ac_lo" != "x$ac_hi"; do
2015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$4
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2023test_array [0] = 0;
2024return test_array [0];
2025
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid
2032else
2033 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036done
2037case $ac_lo in #((
2038?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2039'') ac_retval=1 ;;
2040esac
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h. */
2044$4
2045static long int longval () { return $2; }
2046static unsigned long int ulongval () { return $2; }
2047#include <stdio.h>
2048#include <stdlib.h>
2049int
2050main ()
2051{
2052
2053 FILE *f = fopen ("conftest.val", "w");
2054 if (! f)
2055 return 1;
2056 if (($2) < 0)
2057 {
2058 long int i = longval ();
2059 if (i != ($2))
2060 return 1;
2061 fprintf (f, "%ld", i);
2062 }
2063 else
2064 {
2065 unsigned long int i = ulongval ();
2066 if (i != ($2))
2067 return 1;
2068 fprintf (f, "%lu", i);
2069 }
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_run "$LINENO"; then :
2079 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2080else
2081 ac_retval=1
2082fi
2083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2084 conftest.$ac_objext conftest.beam conftest.$ac_ext
2085rm -f conftest.val
2086
2087 fi
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2090
2091} # ac_fn_c_compute_int
2092
2093# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2094# ---------------------------------------------
2095# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2096# accordingly.
2097ac_fn_c_check_decl ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 as_decl_name=`echo $2|sed 's/ *(.*//'`
2101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2103$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2104if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2106else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113#ifndef $as_decl_name
2114#ifdef __cplusplus
2115 (void) $as_decl_use;
2116#else
2117 (void) $as_decl_name;
2118#endif
2119#endif
2120
2121 ;
2122 return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$3=yes"
2127else
2128 eval "$3=no"
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131fi
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137} # ac_fn_c_check_decl
2138
2139# ac_fn_c_check_func LINENO FUNC VAR
2140# ----------------------------------
2141# Tests whether FUNC exists, setting the cache variable VAR accordingly
2142ac_fn_c_check_func ()
2143{
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146$as_echo_n "checking for $2... " >&6; }
2147if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h. */
2152/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2154#define $2 innocuous_$2
2155
2156/* System header to define __stub macros and hopefully few prototypes,
2157 which can conflict with char $2 (); below.
2158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2159 <limits.h> exists even on freestanding compilers. */
2160
2161#ifdef __STDC__
2162# include <limits.h>
2163#else
2164# include <assert.h>
2165#endif
2166
2167#undef $2
2168
2169/* Override any GCC internal prototype to avoid an error.
2170 Use char because int might match the return type of a GCC
2171 builtin and then its argument prototype would still apply. */
2172#ifdef __cplusplus
2173extern "C"
2174#endif
2175char $2 ();
2176/* The GNU C library defines this for functions which it implements
2177 to always fail with ENOSYS. Some functions are actually named
2178 something starting with __ and the normal name is an alias. */
2179#if defined __stub_$2 || defined __stub___$2
2180choke me
2181#endif
2182
2183int
2184main ()
2185{
2186return $2 ();
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_link "$LINENO"; then :
2192 eval "$3=yes"
2193else
2194 eval "$3=no"
2195fi
2196rm -f core conftest.err conftest.$ac_objext \
2197 conftest$ac_exeext conftest.$ac_ext
2198fi
2199eval ac_res=\$$3
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201$as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204} # ac_fn_c_check_func
2205
05ea2a05
TT
2206# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207# ----------------------------------------------------
2208# Tries to find if the field MEMBER exists in type AGGR, after including
2209# INCLUDES, setting cache variable VAR accordingly.
2210ac_fn_c_check_member ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214$as_echo_n "checking for $2.$3... " >&6; }
2215if eval \${$4+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$5
2221int
2222main ()
2223{
2224static $2 ac_aggr;
2225if (ac_aggr.$3)
2226return 0;
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$4=yes"
2233else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$5
2237int
2238main ()
2239{
2240static $2 ac_aggr;
2241if (sizeof ac_aggr.$3)
2242return 0;
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 eval "$4=yes"
2249else
2250 eval "$4=no"
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256eval ac_res=\$$4
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
2261} # ac_fn_c_check_member
2262
01027315
TT
2263# ac_fn_cxx_try_link LINENO
2264# -------------------------
2265# Try to link conftest.$ac_ext, and return whether this succeeded.
2266ac_fn_cxx_try_link ()
2267{
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext conftest$ac_exeext
2270 if { { ac_try="$ac_link"
2271case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276$as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2283 fi
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_cxx_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest$ac_exeext && {
2289 test "$cross_compiling" = yes ||
2290 test -x conftest$ac_exeext
2291 }; then :
2292 ac_retval=0
2293else
2294 $as_echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 ac_retval=1
2298fi
2299 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2300 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2301 # interfere with the next link command; also delete a directory that is
2302 # left behind by Apple's compiler. We do this before executing the actions.
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2306
2307} # ac_fn_cxx_try_link
2308
2309# ac_fn_cxx_check_func LINENO FUNC VAR
2310# ------------------------------------
2311# Tests whether FUNC exists, setting the cache variable VAR accordingly
2312ac_fn_cxx_check_func ()
2313{
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2316$as_echo_n "checking for $2... " >&6; }
2317if eval \${$3+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2324#define $2 innocuous_$2
2325
2326/* System header to define __stub macros and hopefully few prototypes,
2327 which can conflict with char $2 (); below.
2328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 <limits.h> exists even on freestanding compilers. */
2330
2331#ifdef __STDC__
2332# include <limits.h>
2333#else
2334# include <assert.h>
2335#endif
2336
2337#undef $2
2338
2339/* Override any GCC internal prototype to avoid an error.
2340 Use char because int might match the return type of a GCC
2341 builtin and then its argument prototype would still apply. */
2342#ifdef __cplusplus
2343extern "C"
2344#endif
2345char $2 ();
2346/* The GNU C library defines this for functions which it implements
2347 to always fail with ENOSYS. Some functions are actually named
2348 something starting with __ and the normal name is an alias. */
2349#if defined __stub_$2 || defined __stub___$2
2350choke me
2351#endif
2352
2353int
2354main ()
2355{
2356return $2 ();
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361if ac_fn_cxx_try_link "$LINENO"; then :
2362 eval "$3=yes"
2363else
2364 eval "$3=no"
2365fi
2366rm -f core conftest.err conftest.$ac_objext \
2367 conftest$ac_exeext conftest.$ac_ext
2368fi
2369eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371$as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373
2374} # ac_fn_cxx_check_func
2375cat >config.log <<_ACEOF
2376This file contains any messages produced by compilers while
2377running configure, to aid debugging if configure makes a mistake.
2378
2379It was created by gdbsupport $as_me 1.0, which was
2380generated by GNU Autoconf 2.69. Invocation command line was
2381
2382 $ $0 $@
2383
2384_ACEOF
2385exec 5>>config.log
2386{
2387cat <<_ASUNAME
2388## --------- ##
2389## Platform. ##
2390## --------- ##
2391
2392hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396uname -v = `(uname -v) 2>/dev/null || echo unknown`
2397
2398/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2400
2401/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2408
2409_ASUNAME
2410
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2417 done
2418IFS=$as_save_IFS
2419
2420} >&5
2421
2422cat >&5 <<_ACEOF
2423
2424
2425## ----------- ##
2426## Core tests. ##
2427## ----------- ##
2428
2429_ACEOF
2430
2431
2432# Keep a trace of the command line.
2433# Strip out --no-create and --no-recursion so they do not pile up.
2434# Strip out --silent because we don't want to record it for future runs.
2435# Also quote any args containing shell meta-characters.
2436# Make two passes to allow for proper duplicate-argument suppression.
2437ac_configure_args=
2438ac_configure_args0=
2439ac_configure_args1=
2440ac_must_keep_next=false
2441for ac_pass in 1 2
2442do
2443 for ac_arg
2444 do
2445 case $ac_arg in
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2449 continue ;;
2450 *\'*)
2451 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 esac
2453 case $ac_pass in
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2455 2)
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2459 else
2460 case $ac_arg in
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 esac
2468 ;;
2469 -* ) ac_must_keep_next=true ;;
2470 esac
2471 fi
2472 as_fn_append ac_configure_args " '$ac_arg'"
2473 ;;
2474 esac
2475 done
2476done
2477{ ac_configure_args0=; unset ac_configure_args0;}
2478{ ac_configure_args1=; unset ac_configure_args1;}
2479
2480# When interrupted or exit'd, cleanup temporary files, and complete
2481# config.log. We remove comments because anyway the quotes in there
2482# would cause problems or look ugly.
2483# WARNING: Use '\'' to represent an apostrophe within the trap.
2484# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2487 {
2488 echo
2489
2490 $as_echo "## ---------------- ##
2491## Cache variables. ##
2492## ---------------- ##"
2493 echo
2494 # The following way of writing the cache mishandles newlines in values,
2495(
2496 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in #(
2499 *${as_nl}*)
2500 case $ac_var in #(
2501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2502$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 esac
2504 case $ac_var in #(
2505 _ | IFS | as_nl) ;; #(
2506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2507 *) { eval $ac_var=; unset $ac_var;} ;;
2508 esac ;;
2509 esac
2510 done
2511 (set) 2>&1 |
2512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2513 *${as_nl}ac_space=\ *)
2514 sed -n \
2515 "s/'\''/'\''\\\\'\'''\''/g;
2516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 ;; #(
2518 *)
2519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2520 ;;
2521 esac |
2522 sort
2523)
2524 echo
2525
2526 $as_echo "## ----------------- ##
2527## Output variables. ##
2528## ----------------- ##"
2529 echo
2530 for ac_var in $ac_subst_vars
2531 do
2532 eval ac_val=\$$ac_var
2533 case $ac_val in
2534 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 esac
2536 $as_echo "$ac_var='\''$ac_val'\''"
2537 done | sort
2538 echo
2539
2540 if test -n "$ac_subst_files"; then
2541 $as_echo "## ------------------- ##
2542## File substitutions. ##
2543## ------------------- ##"
2544 echo
2545 for ac_var in $ac_subst_files
2546 do
2547 eval ac_val=\$$ac_var
2548 case $ac_val in
2549 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 esac
2551 $as_echo "$ac_var='\''$ac_val'\''"
2552 done | sort
2553 echo
2554 fi
2555
2556 if test -s confdefs.h; then
2557 $as_echo "## ----------- ##
2558## confdefs.h. ##
2559## ----------- ##"
2560 echo
2561 cat confdefs.h
2562 echo
2563 fi
2564 test "$ac_signal" != 0 &&
2565 $as_echo "$as_me: caught signal $ac_signal"
2566 $as_echo "$as_me: exit $exit_status"
2567 } >&5
2568 rm -f core *.core core.conftest.* &&
2569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 exit $exit_status
2571' 0
2572for ac_signal in 1 2 13 15; do
2573 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2574done
2575ac_signal=0
2576
2577# confdefs.h avoids OS command line length limits that DEFS can exceed.
2578rm -f -r conftest* confdefs.h
2579
2580$as_echo "/* confdefs.h */" > confdefs.h
2581
2582# Predefined preprocessor variables.
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_NAME "$PACKAGE_NAME"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_VERSION "$PACKAGE_VERSION"
2594_ACEOF
2595
2596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_STRING "$PACKAGE_STRING"
2598_ACEOF
2599
2600cat >>confdefs.h <<_ACEOF
2601#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602_ACEOF
2603
2604cat >>confdefs.h <<_ACEOF
2605#define PACKAGE_URL "$PACKAGE_URL"
2606_ACEOF
2607
2608
2609# Let the site file select an alternate cache file if it wants to.
2610# Prefer an explicitly selected file to automatically selected ones.
2611ac_site_file1=NONE
2612ac_site_file2=NONE
2613if test -n "$CONFIG_SITE"; then
2614 # We do not want a PATH search for config.site.
2615 case $CONFIG_SITE in #((
2616 -*) ac_site_file1=./$CONFIG_SITE;;
2617 */*) ac_site_file1=$CONFIG_SITE;;
2618 *) ac_site_file1=./$CONFIG_SITE;;
2619 esac
2620elif test "x$prefix" != xNONE; then
2621 ac_site_file1=$prefix/share/config.site
2622 ac_site_file2=$prefix/etc/config.site
2623else
2624 ac_site_file1=$ac_default_prefix/share/config.site
2625 ac_site_file2=$ac_default_prefix/etc/config.site
2626fi
2627for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2628do
2629 test "x$ac_site_file" = xNONE && continue
2630 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2632$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2633 sed 's/^/| /' "$ac_site_file" >&5
2634 . "$ac_site_file" \
2635 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637as_fn_error $? "failed to load site script $ac_site_file
2638See \`config.log' for more details" "$LINENO" 5; }
2639 fi
2640done
2641
2642if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647$as_echo "$as_me: loading cache $cache_file" >&6;}
2648 case $cache_file in
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2651 esac
2652 fi
2653else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655$as_echo "$as_me: creating cache $cache_file" >&6;}
2656 >$cache_file
2657fi
2658
05ea2a05
TT
2659as_fn_append ac_header_list " stdlib.h"
2660as_fn_append ac_header_list " unistd.h"
2661as_fn_append ac_header_list " sys/param.h"
01027315
TT
2662# Check that the precious variables saved in the cache have kept the same
2663# value.
2664ac_cache_corrupted=false
2665for ac_var in $ac_precious_vars; do
2666 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2667 eval ac_new_set=\$ac_env_${ac_var}_set
2668 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2669 eval ac_new_val=\$ac_env_${ac_var}_value
2670 case $ac_old_set,$ac_new_set in
2671 set,)
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2673$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2674 ac_cache_corrupted=: ;;
2675 ,set)
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2677$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2679 ,);;
2680 *)
2681 if test "x$ac_old_val" != "x$ac_new_val"; then
2682 # differences in whitespace do not lead to failure.
2683 ac_old_val_w=`echo x $ac_old_val`
2684 ac_new_val_w=`echo x $ac_new_val`
2685 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2687$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2688 ac_cache_corrupted=:
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2691$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2692 eval $ac_var=\$ac_old_val
2693 fi
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2695$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2697$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2698 fi;;
2699 esac
2700 # Pass precious variables to config.status.
2701 if test "$ac_new_set" = set; then
2702 case $ac_new_val in
2703 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2704 *) ac_arg=$ac_var=$ac_new_val ;;
2705 esac
2706 case " $ac_configure_args " in
2707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2708 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2709 esac
2710 fi
2711done
2712if $ac_cache_corrupted; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2716$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2717 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2718fi
2719## -------------------- ##
2720## Main body of script. ##
2721## -------------------- ##
2722
2723ac_ext=c
2724ac_cpp='$CPP $CPPFLAGS'
2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729
2730
2731
2732
2733
3684d331 2734ac_config_headers="$ac_config_headers config.h:config.in"
01027315 2735
91e1a0ed
SM
2736
2737# Set build, build_cpu, build_vendor and build_os.
01027315
TT
2738ac_aux_dir=
2739for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 break
2744 elif test -f "$ac_dir/install.sh"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 break
2748 elif test -f "$ac_dir/shtool"; then
2749 ac_aux_dir=$ac_dir
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2751 break
2752 fi
2753done
2754if test -z "$ac_aux_dir"; then
2755 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2756fi
2757
2758# These three variables are undocumented and unsupported,
2759# and are intended to be withdrawn in a future Autoconf release.
2760# They can cause serious problems if a builder's source tree is in a directory
2761# whose full name contains unusual characters.
2762ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2763ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2764ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2765
2766
2767# Make sure we can run config.sub.
2768$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2769 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2770
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2772$as_echo_n "checking build system type... " >&6; }
2773if ${ac_cv_build+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775else
2776 ac_build_alias=$build_alias
2777test "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2779test "x$ac_build_alias" = x &&
2780 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2781ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2782 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2783
2784fi
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2786$as_echo "$ac_cv_build" >&6; }
2787case $ac_cv_build in
2788*-*-*) ;;
2789*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2790esac
2791build=$ac_cv_build
2792ac_save_IFS=$IFS; IFS='-'
2793set x $ac_cv_build
2794shift
2795build_cpu=$1
2796build_vendor=$2
2797shift; shift
2798# Remember, the first character of IFS is used to create $*,
2799# except with old shells:
2800build_os=$*
2801IFS=$ac_save_IFS
2802case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2803
2804
91e1a0ed
SM
2805
2806# Set host, host_cpu, host_vendor, and host_os.
01027315
TT
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808$as_echo_n "checking host system type... " >&6; }
2809if ${ac_cv_host+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811else
2812 if test "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2814else
2815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2817fi
2818
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821$as_echo "$ac_cv_host" >&6; }
2822case $ac_cv_host in
2823*-*-*) ;;
2824*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2825esac
2826host=$ac_cv_host
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_host
2829shift
2830host_cpu=$1
2831host_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835host_os=$*
2836IFS=$ac_save_IFS
2837case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2838
2839
91e1a0ed
SM
2840
2841# Set target, target_cpu, target_vendor, and target_os.
01027315
TT
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2843$as_echo_n "checking target system type... " >&6; }
2844if ${ac_cv_target+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846else
2847 if test "x$target_alias" = x; then
2848 ac_cv_target=$ac_cv_host
2849else
2850 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2851 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2852fi
2853
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2856$as_echo "$ac_cv_target" >&6; }
2857case $ac_cv_target in
2858*-*-*) ;;
2859*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2860esac
2861target=$ac_cv_target
2862ac_save_IFS=$IFS; IFS='-'
2863set x $ac_cv_target
2864shift
2865target_cpu=$1
2866target_vendor=$2
2867shift; shift
2868# Remember, the first character of IFS is used to create $*,
2869# except with old shells:
2870target_os=$*
2871IFS=$ac_save_IFS
2872case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2873
2874
2875# The aliases save the names the user supplied, while $host etc.
2876# will get canonicalized.
2877test -n "$target_alias" &&
2878 test "$program_prefix$program_suffix$program_transform_name" = \
2879 NONENONEs,x,x, &&
2880 program_prefix=${target_alias}-
2881
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2884$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2885 # Check whether --enable-maintainer-mode was given.
2886if test "${enable_maintainer_mode+set}" = set; then :
2887 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2888else
2889 USE_MAINTAINER_MODE=no
2890fi
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2893$as_echo "$USE_MAINTAINER_MODE" >&6; }
2894 if test $USE_MAINTAINER_MODE = yes; then
2895 MAINTAINER_MODE_TRUE=
2896 MAINTAINER_MODE_FALSE='#'
2897else
2898 MAINTAINER_MODE_TRUE='#'
2899 MAINTAINER_MODE_FALSE=
2900fi
2901
2902 MAINT=$MAINTAINER_MODE_TRUE
2903
2904
2905ac_aux_dir=
2906for ac_dir in .. "$srcdir"/..; do
2907 if test -f "$ac_dir/install-sh"; then
2908 ac_aux_dir=$ac_dir
2909 ac_install_sh="$ac_aux_dir/install-sh -c"
2910 break
2911 elif test -f "$ac_dir/install.sh"; then
2912 ac_aux_dir=$ac_dir
2913 ac_install_sh="$ac_aux_dir/install.sh -c"
2914 break
2915 elif test -f "$ac_dir/shtool"; then
2916 ac_aux_dir=$ac_dir
2917 ac_install_sh="$ac_aux_dir/shtool install -c"
2918 break
2919 fi
2920done
2921if test -z "$ac_aux_dir"; then
2922 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2923fi
2924
2925# These three variables are undocumented and unsupported,
2926# and are intended to be withdrawn in a future Autoconf release.
2927# They can cause serious problems if a builder's source tree is in a directory
2928# whose full name contains unusual characters.
2929ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2930ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2931ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2932
2933
2934am__api_version='1.15'
2935
2936# Find a good install program. We prefer a C program (faster),
2937# so one script is as good as another. But avoid the broken or
2938# incompatible versions:
2939# SysV /etc/install, /usr/sbin/install
2940# SunOS /usr/etc/install
2941# IRIX /sbin/install
2942# AIX /bin/install
2943# AmigaOS /C/install, which installs bootblocks on floppy discs
2944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2947# OS/2's system install, which has a completely different semantic
2948# ./install, which can be erroneously created by make from ./install.sh.
2949# Reject install programs that cannot install multiple files.
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2951$as_echo_n "checking for a BSD-compatible install... " >&6; }
2952if test -z "$INSTALL"; then
2953if ${ac_cv_path_install+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 # Account for people who put trailing slashes in PATH elements.
2962case $as_dir/ in #((
2963 ./ | .// | /[cC]/* | \
2964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2965 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2966 /usr/ucb/* ) ;;
2967 *)
2968 # OSF1 and SCO ODT 3.0 have their own names for install.
2969 # Don't use installbsd from OSF since it installs stuff as root
2970 # by default.
2971 for ac_prog in ginstall scoinst install; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2974 if test $ac_prog = install &&
2975 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # AIX install. It has an incompatible calling convention.
2977 :
2978 elif test $ac_prog = install &&
2979 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # program-specific install script used by HP pwplus--don't use.
2981 :
2982 else
2983 rm -rf conftest.one conftest.two conftest.dir
2984 echo one > conftest.one
2985 echo two > conftest.two
2986 mkdir conftest.dir
2987 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2988 test -s conftest.one && test -s conftest.two &&
2989 test -s conftest.dir/conftest.one &&
2990 test -s conftest.dir/conftest.two
2991 then
2992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2993 break 3
2994 fi
2995 fi
2996 fi
2997 done
2998 done
2999 ;;
3000esac
3001
3002 done
3003IFS=$as_save_IFS
3004
3005rm -rf conftest.one conftest.two conftest.dir
3006
3007fi
3008 if test "${ac_cv_path_install+set}" = set; then
3009 INSTALL=$ac_cv_path_install
3010 else
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for INSTALL within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 INSTALL=$ac_install_sh
3016 fi
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3019$as_echo "$INSTALL" >&6; }
3020
3021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022# It thinks the first close brace ends the variable substitution.
3023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024
3025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026
3027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3030$as_echo_n "checking whether build environment is sane... " >&6; }
3031# Reject unsafe characters in $srcdir or the absolute working directory
3032# name. Accept space and tab only in the latter.
3033am_lf='
3034'
3035case `pwd` in
3036 *[\\\"\#\$\&\'\`$am_lf]*)
3037 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3038esac
3039case $srcdir in
3040 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3041 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3042esac
3043
3044# Do 'set' in a subshell so we don't clobber the current shell's
3045# arguments. Must try -L first in case configure is actually a
3046# symlink; some systems play weird games with the mod time of symlinks
3047# (eg FreeBSD returns the mod time of the symlink's containing
3048# directory).
3049if (
3050 am_has_slept=no
3051 for am_try in 1 2; do
3052 echo "timestamp, slept: $am_has_slept" > conftest.file
3053 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3054 if test "$*" = "X"; then
3055 # -L didn't work.
3056 set X `ls -t "$srcdir/configure" conftest.file`
3057 fi
3058 if test "$*" != "X $srcdir/configure conftest.file" \
3059 && test "$*" != "X conftest.file $srcdir/configure"; then
3060
3061 # If neither matched, then we have a broken ls. This can happen
3062 # if, for instance, CONFIG_SHELL is bash and it inherits a
3063 # broken ls alias from the environment. This has actually
3064 # happened. Such a system could not be considered "sane".
3065 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3066 alias in your environment" "$LINENO" 5
3067 fi
3068 if test "$2" = conftest.file || test $am_try -eq 2; then
3069 break
3070 fi
3071 # Just in case.
3072 sleep 1
3073 am_has_slept=yes
3074 done
3075 test "$2" = conftest.file
3076 )
3077then
3078 # Ok.
3079 :
3080else
3081 as_fn_error $? "newly created file is older than distributed files!
3082Check your system clock" "$LINENO" 5
3083fi
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085$as_echo "yes" >&6; }
3086# If we didn't sleep, we still need to ensure time stamps of config.status and
3087# generated files are strictly newer.
3088am_sleep_pid=
3089if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3090 ( sleep 1 ) &
3091 am_sleep_pid=$!
3092fi
3093
3094rm -f conftest.file
3095
3096test "$program_prefix" != NONE &&
3097 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3098# Use a double $ so make ignores it.
3099test "$program_suffix" != NONE &&
3100 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3101# Double any \ or $.
3102# By default was `s,x,x', remove it if useless.
3103ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3104program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105
3106# Expand $ac_aux_dir to an absolute path.
3107am_aux_dir=`cd "$ac_aux_dir" && pwd`
3108
3109if test x"${MISSING+set}" != xset; then
3110 case $am_aux_dir in
3111 *\ * | *\ *)
3112 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113 *)
3114 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3115 esac
3116fi
3117# Use eval to expand $SHELL
3118if eval "$MISSING --is-lightweight"; then
3119 am_missing_run="$MISSING "
3120else
3121 am_missing_run=
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3123$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3124fi
3125
3126if test x"${install_sh+set}" != xset; then
3127 case $am_aux_dir in
3128 *\ * | *\ *)
3129 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130 *)
3131 install_sh="\${SHELL} $am_aux_dir/install-sh"
3132 esac
3133fi
3134
3135# Installed binaries are usually stripped using 'strip' when the user
3136# run "make install-strip". However 'strip' might not be the right
3137# tool to use in cross-compilation environments, therefore Automake
3138# will honor the 'STRIP' environment variable to overrule this program.
3139if test "$cross_compiling" != no; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}strip; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_STRIP+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 if test -n "$STRIP"; then
3149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162done
3163 done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168STRIP=$ac_cv_prog_STRIP
3169if test -n "$STRIP"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171$as_echo "$STRIP" >&6; }
3172else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178fi
3179if test -z "$ac_cv_prog_STRIP"; then
3180 ac_ct_STRIP=$STRIP
3181 # Extract the first word of "strip", so it can be a program name with args.
3182set dummy strip; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187else
3188 if test -n "$ac_ct_STRIP"; then
3189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_STRIP="strip"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202done
3203 done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3209if test -n "$ac_ct_STRIP"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211$as_echo "$ac_ct_STRIP" >&6; }
3212else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217 if test "x$ac_ct_STRIP" = x; then
3218 STRIP=":"
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226 STRIP=$ac_ct_STRIP
3227 fi
3228else
3229 STRIP="$ac_cv_prog_STRIP"
3230fi
3231
3232fi
3233INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237if test -z "$MKDIR_P"; then
3238 if ${ac_cv_path_mkdir+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_prog in mkdir gmkdir; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3249 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250 'mkdir (GNU coreutils) '* | \
3251 'mkdir (coreutils) '* | \
3252 'mkdir (fileutils) '4.1*)
3253 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3254 break 3;;
3255 esac
3256 done
3257 done
3258 done
3259IFS=$as_save_IFS
3260
3261fi
3262
3263 test -d ./--version && rmdir ./--version
3264 if test "${ac_cv_path_mkdir+set}" = set; then
3265 MKDIR_P="$ac_cv_path_mkdir -p"
3266 else
3267 # As a last resort, use the slow shell script. Don't cache a
3268 # value for MKDIR_P within a source directory, because that will
3269 # break other packages using the cache if that directory is
3270 # removed, or if the value is a relative name.
3271 MKDIR_P="$ac_install_sh -d"
3272 fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275$as_echo "$MKDIR_P" >&6; }
3276
3277for ac_prog in gawk mawk nawk awk
3278do
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280set dummy $ac_prog; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if ${ac_cv_prog_AWK+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285else
3286 if test -n "$AWK"; then
3287 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_AWK="$ac_prog"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300done
3301 done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306AWK=$ac_cv_prog_AWK
3307if test -n "$AWK"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3309$as_echo "$AWK" >&6; }
3310else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315
3316 test -n "$AWK" && break
3317done
3318
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3320$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3321set x ${MAKE-make}
3322ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3323if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325else
3326 cat >conftest.make <<\_ACEOF
3327SHELL = /bin/sh
3328all:
3329 @echo '@@@%%%=$(MAKE)=@@@%%%'
3330_ACEOF
3331# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3332case `${MAKE-make} -f conftest.make 2>/dev/null` in
3333 *@@@%%%=?*=@@@%%%*)
3334 eval ac_cv_prog_make_${ac_make}_set=yes;;
3335 *)
3336 eval ac_cv_prog_make_${ac_make}_set=no;;
3337esac
3338rm -f conftest.make
3339fi
3340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342$as_echo "yes" >&6; }
3343 SET_MAKE=
3344else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347 SET_MAKE="MAKE=${MAKE-make}"
3348fi
3349
3350rm -rf .tst 2>/dev/null
3351mkdir .tst 2>/dev/null
3352if test -d .tst; then
3353 am__leading_dot=.
3354else
3355 am__leading_dot=_
3356fi
3357rmdir .tst 2>/dev/null
3358
3359# Check whether --enable-silent-rules was given.
3360if test "${enable_silent_rules+set}" = set; then :
3361 enableval=$enable_silent_rules;
3362fi
3363
3364case $enable_silent_rules in # (((
3365 yes) AM_DEFAULT_VERBOSITY=0;;
3366 no) AM_DEFAULT_VERBOSITY=1;;
3367 *) AM_DEFAULT_VERBOSITY=1;;
3368esac
3369am_make=${MAKE-make}
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3371$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3372if ${am_cv_make_support_nested_variables+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 if $as_echo 'TRUE=$(BAR$(V))
3376BAR0=false
3377BAR1=true
3378V=1
3379am__doit:
3380 @$(TRUE)
3381.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3382 am_cv_make_support_nested_variables=yes
3383else
3384 am_cv_make_support_nested_variables=no
3385fi
3386fi
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3388$as_echo "$am_cv_make_support_nested_variables" >&6; }
3389if test $am_cv_make_support_nested_variables = yes; then
3390 AM_V='$(V)'
3391 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3392else
3393 AM_V=$AM_DEFAULT_VERBOSITY
3394 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3395fi
3396AM_BACKSLASH='\'
3397
3398if test "`cd $srcdir && pwd`" != "`pwd`"; then
3399 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3400 # is not polluted with repeated "-I."
3401 am__isrc=' -I$(srcdir)'
3402 # test to see if srcdir already configured
3403 if test -f $srcdir/config.status; then
3404 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3405 fi
3406fi
3407
3408# test whether we have cygpath
3409if test -z "$CYGPATH_W"; then
3410 if (cygpath --version) >/dev/null 2>/dev/null; then
3411 CYGPATH_W='cygpath -w'
3412 else
3413 CYGPATH_W=echo
3414 fi
3415fi
3416
3417
3418# Define the identity of the package.
3419 PACKAGE='gdbsupport'
3420 VERSION='1.0'
3421
3422
3423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE "$PACKAGE"
3425_ACEOF
3426
3427
3428cat >>confdefs.h <<_ACEOF
3429#define VERSION "$VERSION"
3430_ACEOF
3431
3432# Some tools Automake needs.
3433
3434ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3435
3436
3437AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3438
3439
3440AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3441
3442
3443AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3444
3445
3446MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447
3448# For better backward compatibility. To be removed once Automake 1.9.x
3449# dies out for good. For more background, see:
3450# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452mkdir_p='$(MKDIR_P)'
3453
3454# We need awk for the "check" target (and possibly the TAP driver). The
3455# system "awk" is bad on some platforms.
3456# Always define AMTAR for backward compatibility. Yes, it's still used
3457# in the wild :-( We should find a proper way to deprecate it ...
3458AMTAR='$${TAR-tar}'
3459
3460
3461# We'll loop over all known methods to create a tar archive until one works.
3462_am_tools='gnutar pax cpio none'
3463
3464am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3465
3466
3467
3468
3469
3470
3471# POSIX will say in a future version that running "rm -f" with no argument
3472# is OK; and we want to be able to make that assumption in our Makefile
3473# recipes. So use an aggressive probe to check that the usage we want is
3474# actually supported "in the wild" to an acceptable degree.
3475# See automake bug#10828.
3476# To make any issue more visible, cause the running configure to be aborted
3477# by default if the 'rm' program in use doesn't match our expectations; the
3478# user can still override this though.
3479if rm -f && rm -fr && rm -rf; then : OK; else
3480 cat >&2 <<'END'
3481Oops!
3482
3483Your 'rm' program seems unable to run without file operands specified
3484on the command line, even when the '-f' option is present. This is contrary
3485to the behaviour of most rm programs out there, and not conforming with
3486the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3487
3488Please tell bug-automake@gnu.org about your system, including the value
3489of your $PATH and any error possibly output before this message. This
3490can help us improve future automake versions.
3491
3492END
3493 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3494 echo 'Configuration will proceed anyway, since you have set the' >&2
3495 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3496 echo >&2
3497 else
3498 cat >&2 <<'END'
3499Aborting the configuration process, to ensure you take notice of the issue.
3500
3501You can download and install GNU coreutils to get an 'rm' implementation
3502that behaves properly: <http://www.gnu.org/software/coreutils/>.
3503
3504If you want to complete the configuration process using your problematic
3505'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3506to "yes", and re-run configure.
3507
3508END
3509 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3510 fi
3511fi
3512
3513# Check whether --enable-silent-rules was given.
3514if test "${enable_silent_rules+set}" = set; then :
3515 enableval=$enable_silent_rules;
3516fi
3517
3518case $enable_silent_rules in # (((
3519 yes) AM_DEFAULT_VERBOSITY=0;;
3520 no) AM_DEFAULT_VERBOSITY=1;;
3521 *) AM_DEFAULT_VERBOSITY=0;;
3522esac
3523am_make=${MAKE-make}
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3525$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3526if ${am_cv_make_support_nested_variables+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 if $as_echo 'TRUE=$(BAR$(V))
3530BAR0=false
3531BAR1=true
3532V=1
3533am__doit:
3534 @$(TRUE)
3535.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3536 am_cv_make_support_nested_variables=yes
3537else
3538 am_cv_make_support_nested_variables=no
3539fi
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3542$as_echo "$am_cv_make_support_nested_variables" >&6; }
3543if test $am_cv_make_support_nested_variables = yes; then
3544 AM_V='$(V)'
3545 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3546else
3547 AM_V=$AM_DEFAULT_VERBOSITY
3548 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3549fi
3550AM_BACKSLASH='\'
3551
3552
3553ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; }
3563if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580done
3581 done
3582IFS=$as_save_IFS
3583
3584fi
3585fi
3586CC=$ac_cv_prog_CC
3587if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589$as_echo "$CC" >&6; }
3590else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592$as_echo "no" >&6; }
3593fi
3594
3595
3596fi
3597if test -z "$ac_cv_prog_CC"; then
3598 ac_ct_CC=$CC
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600set dummy gcc; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_ac_ct_CC="gcc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
3621 done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629$as_echo "$ac_ct_CC" >&6; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632$as_echo "no" >&6; }
3633fi
3634
3635 if test "x$ac_ct_CC" = x; then
3636 CC=""
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639yes:)
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642ac_tool_warned=yes ;;
3643esac
3644 CC=$ac_ct_CC
3645 fi
3646else
3647 CC="$ac_cv_prog_CC"
3648fi
3649
3650if test -z "$CC"; then
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3653set dummy ${ac_tool_prefix}cc; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
3656if ${ac_cv_prog_CC+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="${ac_tool_prefix}cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673done
3674 done
3675IFS=$as_save_IFS
3676
3677fi
3678fi
3679CC=$ac_cv_prog_CC
3680if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682$as_echo "$CC" >&6; }
3683else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
3686fi
3687
3688
3689 fi
3690fi
3691if test -z "$CC"; then
3692 # Extract the first word of "cc", so it can be a program name with args.
3693set dummy cc; ac_word=$2
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695$as_echo_n "checking for $ac_word... " >&6; }
3696if ${ac_cv_prog_CC+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698else
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701else
3702 ac_prog_rejected=no
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711 ac_prog_rejected=yes
3712 continue
3713 fi
3714 ac_cv_prog_CC="cc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719 done
3720IFS=$as_save_IFS
3721
3722if test $ac_prog_rejected = yes; then
3723 # We found a bogon in the path, so make sure we never use it.
3724 set dummy $ac_cv_prog_CC
3725 shift
3726 if test $# != 0; then
3727 # We chose a different compiler from the bogus one.
3728 # However, it has the same basename, so the bogon will be chosen
3729 # first if we set CC to just the basename; use the full file name.
3730 shift
3731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3732 fi
3733fi
3734fi
3735fi
3736CC=$ac_cv_prog_CC
3737if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739$as_echo "$CC" >&6; }
3740else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742$as_echo "no" >&6; }
3743fi
3744
3745
3746fi
3747if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754$as_echo_n "checking for $ac_word... " >&6; }
3755if ${ac_cv_prog_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757else
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760else
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772done
3773 done
3774IFS=$as_save_IFS
3775
3776fi
3777fi
3778CC=$ac_cv_prog_CC
3779if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781$as_echo "$CC" >&6; }
3782else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784$as_echo "no" >&6; }
3785fi
3786
3787
3788 test -n "$CC" && break
3789 done
3790fi
3791if test -z "$CC"; then
3792 ac_ct_CC=$CC
3793 for ac_prog in cl.exe
3794do
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796set dummy $ac_prog; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if ${ac_cv_prog_ac_ct_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CC="$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825$as_echo "$ac_ct_CC" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831
3832 test -n "$ac_ct_CC" && break
3833done
3834
3835 if test "x$ac_ct_CC" = x; then
3836 CC=""
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844 CC=$ac_ct_CC
3845 fi
3846fi
3847
3848fi
3849
3850
3851test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853as_fn_error $? "no acceptable C compiler found in \$PATH
3854See \`config.log' for more details" "$LINENO" 5; }
3855
3856# Provide some information about the compiler.
3857$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3858set X $ac_compile
3859ac_compiler=$2
3860for ac_option in --version -v -V -qversion; do
3861 { { ac_try="$ac_compiler $ac_option >&5"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867$as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3869 ac_status=$?
3870 if test -s conftest.err; then
3871 sed '10a\
3872... rest of stderr output deleted ...
3873 10q' conftest.err >conftest.er1
3874 cat conftest.er1 >&5
3875 fi
3876 rm -f conftest.er1 conftest.err
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3879done
3880
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883
3884int
3885main ()
3886{
3887
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892ac_clean_files_save=$ac_clean_files
3893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3894# Try to create an executable without -o first, disregard a.out.
3895# It will help us diagnose broken compilers, and finding out an intuition
3896# of exeext.
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3898$as_echo_n "checking whether the C compiler works... " >&6; }
3899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3900
3901# The possible output files:
3902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3903
3904ac_rmfiles=
3905for ac_file in $ac_files
3906do
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3910 esac
3911done
3912rm -f $ac_rmfiles
3913
3914if { { ac_try="$ac_link_default"
3915case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918esac
3919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920$as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link_default") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; then :
3925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3927# in a Makefile. We should not override ac_cv_exeext if it was cached,
3928# so that the user can short-circuit this test for compilers unknown to
3929# Autoconf.
3930for ac_file in $ac_files ''
3931do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3935 ;;
3936 [ab].out )
3937 # We found the default executable, but exeext='' is most
3938 # certainly right.
3939 break;;
3940 *.* )
3941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3942 then :; else
3943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944 fi
3945 # We set ac_cv_exeext here because the later test for it is not
3946 # safe: cross compilers may not add the suffix if given an `-o'
3947 # argument, so we may need to know it at that point already.
3948 # Even if this section looks crufty: it has the advantage of
3949 # actually working.
3950 break;;
3951 * )
3952 break;;
3953 esac
3954done
3955test "$ac_cv_exeext" = no && ac_cv_exeext=
3956
3957else
3958 ac_file=''
3959fi
3960if test -z "$ac_file"; then :
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963$as_echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968as_fn_error 77 "C compiler cannot create executables
3969See \`config.log' for more details" "$LINENO" 5; }
3970else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972$as_echo "yes" >&6; }
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3975$as_echo_n "checking for C compiler default output file name... " >&6; }
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977$as_echo "$ac_file" >&6; }
3978ac_exeext=$ac_cv_exeext
3979
3980rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3981ac_clean_files=$ac_clean_files_save
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3983$as_echo_n "checking for suffix of executables... " >&6; }
3984if { { ac_try="$ac_link"
3985case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990$as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_link") 2>&5
3992 ac_status=$?
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; then :
3995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3996# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3997# work properly (i.e., refer to `conftest.exe'), while it won't with
3998# `rm'.
3999for ac_file in conftest.exe conftest conftest.*; do
4000 test -f "$ac_file" || continue
4001 case $ac_file in
4002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4004 break;;
4005 * ) break;;
4006 esac
4007done
4008else
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4012See \`config.log' for more details" "$LINENO" 5; }
4013fi
4014rm -f conftest conftest$ac_cv_exeext
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4016$as_echo "$ac_cv_exeext" >&6; }
4017
4018rm -f conftest.$ac_ext
4019EXEEXT=$ac_cv_exeext
4020ac_exeext=$EXEEXT
4021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023#include <stdio.h>
4024int
4025main ()
4026{
4027FILE *f = fopen ("conftest.out", "w");
4028 return ferror (f) || fclose (f) != 0;
4029
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034ac_clean_files="$ac_clean_files conftest.out"
4035# Check that the compiler produces executables we can run. If not, either
4036# the compiler is broken, or we cross compile.
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038$as_echo_n "checking whether we are cross compiling... " >&6; }
4039if test "$cross_compiling" != yes; then
4040 { { ac_try="$ac_link"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046$as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_link") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 if { ac_try='./conftest$ac_cv_exeext'
4052 { { case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057$as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; }; then
4062 cross_compiling=no
4063 else
4064 if test "$cross_compiling" = maybe; then
4065 cross_compiling=yes
4066 else
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069as_fn_error $? "cannot run C compiled programs.
4070If you meant to cross compile, use \`--host'.
4071See \`config.log' for more details" "$LINENO" 5; }
4072 fi
4073 fi
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4076$as_echo "$cross_compiling" >&6; }
4077
4078rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4079ac_clean_files=$ac_clean_files_save
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4081$as_echo_n "checking for suffix of object files... " >&6; }
4082if ${ac_cv_objext+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087
4088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
4096rm -f conftest.o conftest.obj
4097if { { ac_try="$ac_compile"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compile") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 for ac_file in conftest.o conftest.obj conftest.*; do
4109 test -f "$ac_file" || continue;
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4113 break;;
4114 esac
4115done
4116else
4117 $as_echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error $? "cannot compute suffix of object files: cannot compile
4123See \`config.log' for more details" "$LINENO" 5; }
4124fi
4125rm -f conftest.$ac_cv_objext conftest.$ac_ext
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4128$as_echo "$ac_cv_objext" >&6; }
4129OBJEXT=$ac_cv_objext
4130ac_objext=$OBJEXT
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4133if ${ac_cv_c_compiler_gnu+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135else
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h. */
4138
4139int
4140main ()
4141{
4142#ifndef __GNUC__
4143 choke me
4144#endif
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_compiler_gnu=yes
4152else
4153 ac_compiler_gnu=no
4154fi
4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4161if test $ac_compiler_gnu = yes; then
4162 GCC=yes
4163else
4164 GCC=
4165fi
4166ac_test_CFLAGS=${CFLAGS+set}
4167ac_save_CFLAGS=$CFLAGS
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4169$as_echo_n "checking whether $CC accepts -g... " >&6; }
4170if ${ac_cv_prog_cc_g+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 ac_save_c_werror_flag=$ac_c_werror_flag
4174 ac_c_werror_flag=yes
4175 ac_cv_prog_cc_g=no
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h. */
4179
4180int
4181main ()
4182{
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4190else
4191 CFLAGS=""
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h. */
4194
4195int
4196main ()
4197{
4198
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"; then :
4204
4205else
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 CFLAGS="-g"
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h. */
4210
4211int
4212main ()
4213{
4214
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_g=yes
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223fi
4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225fi
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230$as_echo "$ac_cv_prog_cc_g" >&6; }
4231if test "$ac_test_CFLAGS" = set; then
4232 CFLAGS=$ac_save_CFLAGS
4233elif test $ac_cv_prog_cc_g = yes; then
4234 if test "$GCC" = yes; then
4235 CFLAGS="-g -O2"
4236 else
4237 CFLAGS="-g"
4238 fi
4239else
4240 if test "$GCC" = yes; then
4241 CFLAGS="-O2"
4242 else
4243 CFLAGS=
4244 fi
4245fi
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248if ${ac_cv_prog_cc_c89+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250else
4251 ac_cv_prog_cc_c89=no
4252ac_save_CC=$CC
4253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h. */
4255#include <stdarg.h>
4256#include <stdio.h>
4257struct stat;
4258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4259struct buf { int x; };
4260FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261static char *e (p, i)
4262 char **p;
4263 int i;
4264{
4265 return p[i];
4266}
4267static char *f (char * (*g) (char **, int), char **p, ...)
4268{
4269 char *s;
4270 va_list v;
4271 va_start (v,p);
4272 s = g (p, va_arg (v,int));
4273 va_end (v);
4274 return s;
4275}
4276
4277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4278 function prototypes and stuff, but not '\xHH' hex character constants.
4279 These don't provoke an error unfortunately, instead are silently treated
4280 as 'x'. The following induces an error, until -std is added to get
4281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4282 array size at least. It's necessary to write '\x00'==0 to get something
4283 that's true only with -std. */
4284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285
4286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4287 inside strings and character constants. */
4288#define FOO(x) 'x'
4289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290
4291int test (int i, double x);
4292struct s1 {int (*f) (int a);};
4293struct s2 {int (*f) (double a);};
4294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4295int argc;
4296char **argv;
4297int
4298main ()
4299{
4300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307do
4308 CC="$ac_save_CC $ac_arg"
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_cv_prog_cc_c89=$ac_arg
4311fi
4312rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4314done
4315rm -f conftest.$ac_ext
4316CC=$ac_save_CC
4317
4318fi
4319# AC_CACHE_VAL
4320case "x$ac_cv_prog_cc_c89" in
4321 x)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323$as_echo "none needed" >&6; } ;;
4324 xno)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326$as_echo "unsupported" >&6; } ;;
4327 *)
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331esac
4332if test "x$ac_cv_prog_cc_c89" != xno; then :
4333
4334fi
4335
4336ac_ext=c
4337ac_cpp='$CPP $CPPFLAGS'
4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4349if ${am_cv_prog_cc_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h. */
4354
4355int
4356main ()
4357{
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # Following AC_PROG_CC_C_O, we do the test twice because some
4365 # compilers refuse to overwrite an existing .o file with -o,
4366 # though they will create one.
4367 am_cv_prog_cc_c_o=yes
4368 for am_i in 1 2; do
4369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } \
4374 && test -f conftest2.$ac_objext; then
4375 : OK
4376 else
4377 am_cv_prog_cc_c_o=no
4378 break
4379 fi
4380 done
4381 rm -f core conftest*
4382 unset am_i
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385$as_echo "$am_cv_prog_cc_c_o" >&6; }
4386if test "$am_cv_prog_cc_c_o" != yes; then
4387 # Losing compiler, so override with the script.
4388 # FIXME: It is wrong to rewrite CC.
4389 # But if we don't then we get into trouble of one sort or another.
4390 # A longer-term fix would be to have automake use am__CC in this case,
4391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392 CC="$am_aux_dir/compile $CC"
4393fi
4394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400DEPDIR="${am__leading_dot}deps"
4401
4402ac_config_commands="$ac_config_commands depfiles"
4403
4404
4405am_make=${MAKE-make}
4406cat > confinc << 'END'
4407am__doit:
4408 @echo this is the am__doit target
4409.PHONY: am__doit
4410END
4411# If we don't find an include directive, just comment out the code.
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4413$as_echo_n "checking for style of include used by $am_make... " >&6; }
4414am__include="#"
4415am__quote=
4416_am_result=none
4417# First try GNU make style include.
4418echo "include confinc" > confmf
4419# Ignore all kinds of additional output from 'make'.
4420case `$am_make -s -f confmf 2> /dev/null` in #(
4421*the\ am__doit\ target*)
4422 am__include=include
4423 am__quote=
4424 _am_result=GNU
4425 ;;
4426esac
4427# Now try BSD make style include.
4428if test "$am__include" = "#"; then
4429 echo '.include "confinc"' > confmf
4430 case `$am_make -s -f confmf 2> /dev/null` in #(
4431 *the\ am__doit\ target*)
4432 am__include=.include
4433 am__quote="\""
4434 _am_result=BSD
4435 ;;
4436 esac
4437fi
4438
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4441$as_echo "$_am_result" >&6; }
4442rm -f confinc confmf
4443
4444# Check whether --enable-dependency-tracking was given.
4445if test "${enable_dependency_tracking+set}" = set; then :
4446 enableval=$enable_dependency_tracking;
4447fi
4448
4449if test "x$enable_dependency_tracking" != xno; then
4450 am_depcomp="$ac_aux_dir/depcomp"
4451 AMDEPBACKSLASH='\'
4452 am__nodep='_no'
4453fi
4454 if test "x$enable_dependency_tracking" != xno; then
4455 AMDEP_TRUE=
4456 AMDEP_FALSE='#'
4457else
4458 AMDEP_TRUE='#'
4459 AMDEP_FALSE=
4460fi
4461
4462
4463
4464depcc="$CC" am_compiler_list=
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4467$as_echo_n "checking dependency style of $depcc... " >&6; }
4468if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470else
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named 'D' -- because '-MD' means "put the output
4476 # in D".
4477 rm -rf conftest.dir
4478 mkdir conftest.dir
4479 # Copy depcomp to subdir because otherwise we won't find it if we're
4480 # using a relative directory.
4481 cp "$am_depcomp" conftest.dir
4482 cd conftest.dir
4483 # We will build objects and dependencies in a subdirectory because
4484 # it helps to detect inapplicable dependency modes. For instance
4485 # both Tru64's cc and ICC support -MD to output dependencies as a
4486 # side effect of compilation, but ICC will put the dependencies in
4487 # the current directory while Tru64 will put them in the object
4488 # directory.
4489 mkdir sub
4490
4491 am_cv_CC_dependencies_compiler_type=none
4492 if test "$am_compiler_list" = ""; then
4493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4494 fi
4495 am__universal=false
4496 case " $depcc " in #(
4497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498 esac
4499
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4504 #
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4508 : > sub/conftest.c
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512 # Solaris 10 /bin/sh.
4513 echo '/* dummy */' > sub/conftst$i.h
4514 done
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
4517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle '-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs.
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4523 case $depmode in
4524 gcc)
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4527 ;;
4528 nosideeffect)
4529 # After this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested.
4531 if test "x$enable_dependency_tracking" = xyes; then
4532 continue
4533 else
4534 break
4535 fi
4536 ;;
4537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538 # This compiler won't grok '-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4542 am__minus_obj=
4543 ;;
4544 none) break ;;
4545 esac
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4565 break
4566 fi
4567 fi
4568 done
4569
4570 cd ..
4571 rm -rf conftest.dir
4572else
4573 am_cv_CC_dependencies_compiler_type=none
4574fi
4575
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580
4581 if
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4584 am__fastdepCC_TRUE=
4585 am__fastdepCC_FALSE='#'
4586else
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4589fi
4590
4591
4592ac_ext=cpp
4593ac_cpp='$CXXCPP $CPPFLAGS'
4594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597if test -z "$CXX"; then
4598 if test -n "$CCC"; then
4599 CXX=$CCC
4600 else
4601 if test -n "$ac_tool_prefix"; then
4602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4603 do
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if ${ac_cv_prog_CXX+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610else
4611 if test -n "$CXX"; then
4612 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625done
4626 done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631CXX=$ac_cv_prog_CXX
4632if test -n "$CXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4634$as_echo "$CXX" >&6; }
4635else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641 test -n "$CXX" && break
4642 done
4643fi
4644if test -z "$CXX"; then
4645 ac_ct_CXX=$CXX
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647do
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649set dummy $ac_prog; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654else
4655 if test -n "$ac_ct_CXX"; then
4656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_CXX="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670 done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4676if test -n "$ac_ct_CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4678$as_echo "$ac_ct_CXX" >&6; }
4679else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685 test -n "$ac_ct_CXX" && break
4686done
4687
4688 if test "x$ac_ct_CXX" = x; then
4689 CXX="g++"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692yes:)
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695ac_tool_warned=yes ;;
4696esac
4697 CXX=$ac_ct_CXX
4698 fi
4699fi
4700
4701 fi
4702fi
4703# Provide some information about the compiler.
4704$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4705set X $ac_compile
4706ac_compiler=$2
4707for ac_option in --version -v -V -qversion; do
4708 { { ac_try="$ac_compiler $ac_option >&5"
4709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
4713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714$as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4716 ac_status=$?
4717 if test -s conftest.err; then
4718 sed '10a\
4719... rest of stderr output deleted ...
4720 10q' conftest.err >conftest.er1
4721 cat conftest.er1 >&5
4722 fi
4723 rm -f conftest.er1 conftest.err
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726done
4727
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4729$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4730if ${ac_cv_cxx_compiler_gnu+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h. */
4735
4736int
4737main ()
4738{
4739#ifndef __GNUC__
4740 choke me
4741#endif
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747if ac_fn_cxx_try_compile "$LINENO"; then :
4748 ac_compiler_gnu=yes
4749else
4750 ac_compiler_gnu=no
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4754
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4757$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4758if test $ac_compiler_gnu = yes; then
4759 GXX=yes
4760else
4761 GXX=
4762fi
4763ac_test_CXXFLAGS=${CXXFLAGS+set}
4764ac_save_CXXFLAGS=$CXXFLAGS
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4766$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4767if ${ac_cv_prog_cxx_g+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4771 ac_cxx_werror_flag=yes
4772 ac_cv_prog_cxx_g=no
4773 CXXFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785if ac_fn_cxx_try_compile "$LINENO"; then :
4786 ac_cv_prog_cxx_g=yes
4787else
4788 CXXFLAGS=""
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h. */
4791
4792int
4793main ()
4794{
4795
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800if ac_fn_cxx_try_compile "$LINENO"; then :
4801
4802else
4803 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4804 CXXFLAGS="-g"
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807
4808int
4809main ()
4810{
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816if ac_fn_cxx_try_compile "$LINENO"; then :
4817 ac_cv_prog_cxx_g=yes
4818fi
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4827$as_echo "$ac_cv_prog_cxx_g" >&6; }
4828if test "$ac_test_CXXFLAGS" = set; then
4829 CXXFLAGS=$ac_save_CXXFLAGS
4830elif test $ac_cv_prog_cxx_g = yes; then
4831 if test "$GXX" = yes; then
4832 CXXFLAGS="-g -O2"
4833 else
4834 CXXFLAGS="-g"
4835 fi
4836else
4837 if test "$GXX" = yes; then
4838 CXXFLAGS="-O2"
4839 else
4840 CXXFLAGS=
4841 fi
4842fi
4843ac_ext=c
4844ac_cpp='$CPP $CPPFLAGS'
4845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848
4849depcc="$CXX" am_compiler_list=
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852$as_echo_n "checking dependency style of $depcc... " >&6; }
4853if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857 # We make a subdir and do the tests there. Otherwise we can end up
4858 # making bogus files that we don't know about and never remove. For
4859 # instance it was reported that on HP-UX the gcc test will end up
4860 # making a dummy file named 'D' -- because '-MD' means "put the output
4861 # in D".
4862 rm -rf conftest.dir
4863 mkdir conftest.dir
4864 # Copy depcomp to subdir because otherwise we won't find it if we're
4865 # using a relative directory.
4866 cp "$am_depcomp" conftest.dir
4867 cd conftest.dir
4868 # We will build objects and dependencies in a subdirectory because
4869 # it helps to detect inapplicable dependency modes. For instance
4870 # both Tru64's cc and ICC support -MD to output dependencies as a
4871 # side effect of compilation, but ICC will put the dependencies in
4872 # the current directory while Tru64 will put them in the object
4873 # directory.
4874 mkdir sub
4875
4876 am_cv_CXX_dependencies_compiler_type=none
4877 if test "$am_compiler_list" = ""; then
4878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4879 fi
4880 am__universal=false
4881 case " $depcc " in #(
4882 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4883 esac
4884
4885 for depmode in $am_compiler_list; do
4886 # Setup a source with many dependencies, because some compilers
4887 # like to wrap large dependency lists on column 80 (with \), and
4888 # we should not choose a depcomp mode which is confused by this.
4889 #
4890 # We need to recreate these files for each test, as the compiler may
4891 # overwrite some of them when testing with obscure command lines.
4892 # This happens at least with the AIX C compiler.
4893 : > sub/conftest.c
4894 for i in 1 2 3 4 5 6; do
4895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4896 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4897 # Solaris 10 /bin/sh.
4898 echo '/* dummy */' > sub/conftst$i.h
4899 done
4900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901
4902 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4903 # mode. It turns out that the SunPro C++ compiler does not properly
4904 # handle '-M -o', and we need to detect this. Also, some Intel
4905 # versions had trouble with output in subdirs.
4906 am__obj=sub/conftest.${OBJEXT-o}
4907 am__minus_obj="-o $am__obj"
4908 case $depmode in
4909 gcc)
4910 # This depmode causes a compiler race in universal mode.
4911 test "$am__universal" = false || continue
4912 ;;
4913 nosideeffect)
4914 # After this tag, mechanisms are not by side-effect, so they'll
4915 # only be used when explicitly requested.
4916 if test "x$enable_dependency_tracking" = xyes; then
4917 continue
4918 else
4919 break
4920 fi
4921 ;;
4922 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4923 # This compiler won't grok '-c -o', but also, the minuso test has
4924 # not run yet. These depmodes are late enough in the game, and
4925 # so weak that their functioning should not be impacted.
4926 am__obj=conftest.${OBJEXT-o}
4927 am__minus_obj=
4928 ;;
4929 none) break ;;
4930 esac
4931 if depmode=$depmode \
4932 source=sub/conftest.c object=$am__obj \
4933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4934 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4935 >/dev/null 2>conftest.err &&
4936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4938 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4940 # icc doesn't choke on unknown options, it will just issue warnings
4941 # or remarks (even with -Werror). So we grep stderr for any message
4942 # that says an option was ignored or not supported.
4943 # When given -MP, icc 7.0 and 7.1 complain thusly:
4944 # icc: Command line warning: ignoring option '-M'; no argument required
4945 # The diagnosis changed in icc 8.0:
4946 # icc: Command line remark: option '-MP' not supported
4947 if (grep 'ignoring option' conftest.err ||
4948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4949 am_cv_CXX_dependencies_compiler_type=$depmode
4950 break
4951 fi
4952 fi
4953 done
4954
4955 cd ..
4956 rm -rf conftest.dir
4957else
4958 am_cv_CXX_dependencies_compiler_type=none
4959fi
4960
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4963$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4964CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4965
4966 if
4967 test "x$enable_dependency_tracking" != xno \
4968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4969 am__fastdepCXX_TRUE=
4970 am__fastdepCXX_FALSE='#'
4971else
4972 am__fastdepCXX_TRUE='#'
4973 am__fastdepCXX_FALSE=
4974fi
4975
4976
4977if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4979set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_prog_RANLIB+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 if test -n "$RANLIB"; then
4986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000 done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005RANLIB=$ac_cv_prog_RANLIB
5006if test -n "$RANLIB"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5008$as_echo "$RANLIB" >&6; }
5009else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015fi
5016if test -z "$ac_cv_prog_RANLIB"; then
5017 ac_ct_RANLIB=$RANLIB
5018 # Extract the first word of "ranlib", so it can be a program name with args.
5019set dummy ranlib; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 if test -n "$ac_ct_RANLIB"; then
5026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_RANLIB="ranlib"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040 done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5046if test -n "$ac_ct_RANLIB"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5048$as_echo "$ac_ct_RANLIB" >&6; }
5049else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054 if test "x$ac_ct_RANLIB" = x; then
5055 RANLIB=":"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058yes:)
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061ac_tool_warned=yes ;;
5062esac
5063 RANLIB=$ac_ct_RANLIB
5064 fi
5065else
5066 RANLIB="$ac_cv_prog_RANLIB"
5067fi
5068
5069
5070
5071ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5077$as_echo_n "checking how to run the C preprocessor... " >&6; }
5078# On Suns, sometimes $CPP names a directory.
5079if test -n "$CPP" && test -d "$CPP"; then
5080 CPP=
5081fi
5082if test -z "$CPP"; then
5083 if ${ac_cv_prog_CPP+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 # Double quotes because CPP needs to be expanded
5087 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5088 do
5089 ac_preproc_ok=false
5090for ac_c_preproc_warn_flag in '' yes
5091do
5092 # Use a header file that comes with gcc, so configuring glibc
5093 # with a fresh cross-compiler works.
5094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095 # <limits.h> exists even on freestanding compilers.
5096 # On the NeXT, cc -E runs the code through the compiler's parser,
5097 # not just through cpp. "Syntax error" is here to catch this case.
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
5100#ifdef __STDC__
5101# include <limits.h>
5102#else
5103# include <assert.h>
5104#endif
5105 Syntax error
5106_ACEOF
5107if ac_fn_c_try_cpp "$LINENO"; then :
5108
5109else
5110 # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.i conftest.$ac_ext
5114
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h. */
5119#include <ac_nonexistent.h>
5120_ACEOF
5121if ac_fn_c_try_cpp "$LINENO"; then :
5122 # Broken: success on invalid input.
5123continue
5124else
5125 # Passes both tests.
5126ac_preproc_ok=:
5127break
5128fi
5129rm -f conftest.err conftest.i conftest.$ac_ext
5130
5131done
5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133rm -f conftest.i conftest.err conftest.$ac_ext
5134if $ac_preproc_ok; then :
5135 break
5136fi
5137
5138 done
5139 ac_cv_prog_CPP=$CPP
5140
5141fi
5142 CPP=$ac_cv_prog_CPP
5143else
5144 ac_cv_prog_CPP=$CPP
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5147$as_echo "$CPP" >&6; }
5148ac_preproc_ok=false
5149for ac_c_preproc_warn_flag in '' yes
5150do
5151 # Use a header file that comes with gcc, so configuring glibc
5152 # with a fresh cross-compiler works.
5153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5154 # <limits.h> exists even on freestanding compilers.
5155 # On the NeXT, cc -E runs the code through the compiler's parser,
5156 # not just through cpp. "Syntax error" is here to catch this case.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h. */
5159#ifdef __STDC__
5160# include <limits.h>
5161#else
5162# include <assert.h>
5163#endif
5164 Syntax error
5165_ACEOF
5166if ac_fn_c_try_cpp "$LINENO"; then :
5167
5168else
5169 # Broken: fails on valid input.
5170continue
5171fi
5172rm -f conftest.err conftest.i conftest.$ac_ext
5173
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h. */
5178#include <ac_nonexistent.h>
5179_ACEOF
5180if ac_fn_c_try_cpp "$LINENO"; then :
5181 # Broken: success on invalid input.
5182continue
5183else
5184 # Passes both tests.
5185ac_preproc_ok=:
5186break
5187fi
5188rm -f conftest.err conftest.i conftest.$ac_ext
5189
5190done
5191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192rm -f conftest.i conftest.err conftest.$ac_ext
5193if $ac_preproc_ok; then :
5194
5195else
5196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5198as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5199See \`config.log' for more details" "$LINENO" 5; }
5200fi
5201
5202ac_ext=c
5203ac_cpp='$CPP $CPPFLAGS'
5204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5210$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5211if ${ac_cv_path_GREP+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 if test -z "$GREP"; then
5215 ac_path_GREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in grep ggrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5225 as_fn_executable_p "$ac_path_GREP" || continue
5226# Check for GNU ac_path_GREP and select it if it is found.
5227 # Check for GNU $ac_path_GREP
5228case `"$ac_path_GREP" --version 2>&1` in
5229*GNU*)
5230 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5231*)
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'GREP' >> "conftest.nl"
5240 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_GREP="$ac_path_GREP"
5246 ac_path_GREP_max=$ac_count
5247 fi
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252esac
5253
5254 $ac_path_GREP_found && break 3
5255 done
5256 done
5257 done
5258IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_GREP"; then
5260 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 fi
5262else
5263 ac_cv_path_GREP=$GREP
5264fi
5265
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5268$as_echo "$ac_cv_path_GREP" >&6; }
5269 GREP="$ac_cv_path_GREP"
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5273$as_echo_n "checking for egrep... " >&6; }
5274if ${ac_cv_path_EGREP+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5278 then ac_cv_path_EGREP="$GREP -E"
5279 else
5280 if test -z "$EGREP"; then
5281 ac_path_EGREP_found=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in egrep; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5291 as_fn_executable_p "$ac_path_EGREP" || continue
5292# Check for GNU ac_path_EGREP and select it if it is found.
5293 # Check for GNU $ac_path_EGREP
5294case `"$ac_path_EGREP" --version 2>&1` in
5295*GNU*)
5296 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5297*)
5298 ac_count=0
5299 $as_echo_n 0123456789 >"conftest.in"
5300 while :
5301 do
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo 'EGREP' >> "conftest.nl"
5306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308 as_fn_arith $ac_count + 1 && ac_count=$as_val
5309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_EGREP="$ac_path_EGREP"
5312 ac_path_EGREP_max=$ac_count
5313 fi
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5316 done
5317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318esac
5319
5320 $ac_path_EGREP_found && break 3
5321 done
5322 done
5323 done
5324IFS=$as_save_IFS
5325 if test -z "$ac_cv_path_EGREP"; then
5326 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327 fi
5328else
5329 ac_cv_path_EGREP=$EGREP
5330fi
5331
5332 fi
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5335$as_echo "$ac_cv_path_EGREP" >&6; }
5336 EGREP="$ac_cv_path_EGREP"
5337
5338
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5340$as_echo_n "checking for ANSI C header files... " >&6; }
5341if ${ac_cv_header_stdc+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343else
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h. */
5346#include <stdlib.h>
5347#include <stdarg.h>
5348#include <string.h>
5349#include <float.h>
5350
5351int
5352main ()
5353{
5354
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360 ac_cv_header_stdc=yes
5361else
5362 ac_cv_header_stdc=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365
5366if test $ac_cv_header_stdc = yes; then
5367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#include <string.h>
5371
5372_ACEOF
5373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "memchr" >/dev/null 2>&1; then :
5375
5376else
5377 ac_cv_header_stdc=no
5378fi
5379rm -f conftest*
5380
5381fi
5382
5383if test $ac_cv_header_stdc = yes; then
5384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h. */
5387#include <stdlib.h>
5388
5389_ACEOF
5390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "free" >/dev/null 2>&1; then :
5392
5393else
5394 ac_cv_header_stdc=no
5395fi
5396rm -f conftest*
5397
5398fi
5399
5400if test $ac_cv_header_stdc = yes; then
5401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5402 if test "$cross_compiling" = yes; then :
5403 :
5404else
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h. */
5407#include <ctype.h>
5408#include <stdlib.h>
5409#if ((' ' & 0x0FF) == 0x020)
5410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5412#else
5413# define ISLOWER(c) \
5414 (('a' <= (c) && (c) <= 'i') \
5415 || ('j' <= (c) && (c) <= 'r') \
5416 || ('s' <= (c) && (c) <= 'z'))
5417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5418#endif
5419
5420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5421int
5422main ()
5423{
5424 int i;
5425 for (i = 0; i < 256; i++)
5426 if (XOR (islower (i), ISLOWER (i))
5427 || toupper (i) != TOUPPER (i))
5428 return 2;
5429 return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_run "$LINENO"; then :
5433
5434else
5435 ac_cv_header_stdc=no
5436fi
5437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5439fi
5440
5441fi
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5444$as_echo "$ac_cv_header_stdc" >&6; }
5445if test $ac_cv_header_stdc = yes; then
5446
5447$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5448
5449fi
5450
5451# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5452for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5453 inttypes.h stdint.h unistd.h
5454do :
5455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5457"
5458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5459 cat >>confdefs.h <<_ACEOF
5460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461_ACEOF
5462
5463fi
5464
5465done
5466
5467
5468
5469 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5470if test "x$ac_cv_header_minix_config_h" = xyes; then :
5471 MINIX=yes
5472else
5473 MINIX=
5474fi
5475
5476
5477 if test "$MINIX" = yes; then
5478
5479$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5480
5481
5482$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5483
5484
5485$as_echo "#define _MINIX 1" >>confdefs.h
5486
5487 fi
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5491$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5492if ${ac_cv_safe_to_define___extensions__+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h. */
5497
5498# define __EXTENSIONS__ 1
5499 $ac_includes_default
5500int
5501main ()
5502{
5503
5504 ;
5505 return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_safe_to_define___extensions__=yes
5510else
5511 ac_cv_safe_to_define___extensions__=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5516$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5517 test $ac_cv_safe_to_define___extensions__ = yes &&
5518 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5519
5520 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5521
5522 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5523
5524 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5525
5526 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5527
5528
5529
5530# The tests for host and target for $enable_largefile require
5531# canonical names.
5532
5533
5534
5535# As the $enable_largefile decision depends on --enable-plugins we must set it
5536# even in directories otherwise not depending on the $plugins option.
5537
5538
5539 maybe_plugins=no
5540 for ac_header in dlfcn.h
5541do :
5542 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5543"
5544if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5545 cat >>confdefs.h <<_ACEOF
5546#define HAVE_DLFCN_H 1
5547_ACEOF
5548 maybe_plugins=yes
5549fi
5550
5551done
5552
5553 for ac_header in windows.h
5554do :
5555 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5556"
5557if test "x$ac_cv_header_windows_h" = xyes; then :
5558 cat >>confdefs.h <<_ACEOF
5559#define HAVE_WINDOWS_H 1
5560_ACEOF
5561 maybe_plugins=yes
5562fi
5563
5564done
5565
5566
5567 # Check whether --enable-plugins was given.
5568if test "${enable_plugins+set}" = set; then :
5569 enableval=$enable_plugins; case "${enableval}" in
5570 no) plugins=no ;;
5571 *) plugins=yes
5572 if test "$maybe_plugins" != "yes" ; then
5573 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5574 fi ;;
5575 esac
5576else
5577 plugins=$maybe_plugins
5578
5579fi
5580
5581 if test "$plugins" = "yes"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5583$as_echo_n "checking for library containing dlsym... " >&6; }
5584if ${ac_cv_search_dlsym+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586else
5587 ac_func_search_save_LIBS=$LIBS
5588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h. */
5590
5591/* Override any GCC internal prototype to avoid an error.
5592 Use char because int might match the return type of a GCC
5593 builtin and then its argument prototype would still apply. */
5594#ifdef __cplusplus
5595extern "C"
5596#endif
5597char dlsym ();
5598int
5599main ()
5600{
5601return dlsym ();
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606for ac_lib in '' dl; do
5607 if test -z "$ac_lib"; then
5608 ac_res="none required"
5609 else
5610 ac_res=-l$ac_lib
5611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5612 fi
5613 if ac_fn_c_try_link "$LINENO"; then :
5614 ac_cv_search_dlsym=$ac_res
5615fi
5616rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext
5618 if ${ac_cv_search_dlsym+:} false; then :
5619 break
5620fi
5621done
5622if ${ac_cv_search_dlsym+:} false; then :
5623
5624else
5625 ac_cv_search_dlsym=no
5626fi
5627rm conftest.$ac_ext
5628LIBS=$ac_func_search_save_LIBS
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5631$as_echo "$ac_cv_search_dlsym" >&6; }
5632ac_res=$ac_cv_search_dlsym
5633if test "$ac_res" != no; then :
5634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5635
5636fi
5637
5638 fi
5639
5640
5641case "${host}" in
c8693053
RO
5642 sparc-*-solaris*|i?86-*-solaris*)
5643 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5644 # were mutually exclusive until Solaris 11.3. Without procfs support,
5645 # the bfd/ elf module cannot provide certain routines such as
5646 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5647 # explicitly requested large-file support through the
5648 # --enable-largefile switch, disable large-file support in favor of
5649 # procfs support.
5650 #
5651 # Check if <sys/procfs.h> is incompatible with large-file support.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654#define _FILE_OFFSET_BITS 64
5655#define _STRUCTURED_PROC 1
5656#include <sys/procfs.h>
5657int
5658main ()
5659{
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 acx_cv_procfs_lfs=yes
5667else
5668 acx_cv_procfs_lfs=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 #
5672 # Forcefully disable large-file support only if necessary, gdb is in
5673 # tree and enabled.
5674 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5675 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
5676 : ${enable_largefile="no"}
5677 if test "$plugins" = yes; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5679plugin support disabled; require large-file support which is incompatible with GDB." >&5
5680$as_echo "$as_me: WARNING:
5681plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5682 plugins=no
5683 fi
5684 fi
5685 #
5686 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5687 # benefit of g++ 9+ which predefines it on Solaris.
5688 if test "$enable_largefile" = no; then
5689 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
5690
5691 fi
01027315
TT
5692 ;;
5693esac
5694
5695# Check whether --enable-largefile was given.
5696if test "${enable_largefile+set}" = set; then :
5697 enableval=$enable_largefile;
5698fi
5699
5700if test "$enable_largefile" != no; then
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5703$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5704if ${ac_cv_sys_largefile_CC+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 ac_cv_sys_largefile_CC=no
5708 if test "$GCC" != yes; then
5709 ac_save_CC=$CC
5710 while :; do
5711 # IRIX 6.2 and later do not support large files by default,
5712 # so use the C compiler's -n32 option if that helps.
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h. */
5715#include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5723 ? 1 : -1];
5724int
5725main ()
5726{
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732 if ac_fn_c_try_compile "$LINENO"; then :
5733 break
5734fi
5735rm -f core conftest.err conftest.$ac_objext
5736 CC="$CC -n32"
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 ac_cv_sys_largefile_CC=' -n32'; break
5739fi
5740rm -f core conftest.err conftest.$ac_objext
5741 break
5742 done
5743 CC=$ac_save_CC
5744 rm -f conftest.$ac_ext
5745 fi
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5748$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5749 if test "$ac_cv_sys_largefile_CC" != no; then
5750 CC=$CC$ac_cv_sys_largefile_CC
5751 fi
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5754$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5755if ${ac_cv_sys_file_offset_bits+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757else
5758 while :; do
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761#include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5769 ? 1 : -1];
5770int
5771main ()
5772{
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
5778if ac_fn_c_try_compile "$LINENO"; then :
5779 ac_cv_sys_file_offset_bits=no; break
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h. */
5784#define _FILE_OFFSET_BITS 64
5785#include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5793 ? 1 : -1];
5794int
5795main ()
5796{
5797
5798 ;
5799 return 0;
5800}
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then :
5803 ac_cv_sys_file_offset_bits=64; break
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 ac_cv_sys_file_offset_bits=unknown
5807 break
5808done
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5811$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5812case $ac_cv_sys_file_offset_bits in #(
5813 no | unknown) ;;
5814 *)
5815cat >>confdefs.h <<_ACEOF
5816#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5817_ACEOF
5818;;
5819esac
5820rm -rf conftest*
5821 if test $ac_cv_sys_file_offset_bits = unknown; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5823$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5824if ${ac_cv_sys_large_files+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826else
5827 while :; do
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830#include <sys/types.h>
5831 /* Check that off_t can represent 2**63 - 1 correctly.
5832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833 since some C++ compilers masquerading as C compilers
5834 incorrectly reject 9223372036854775807. */
5835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837 && LARGE_OFF_T % 2147483647 == 1)
5838 ? 1 : -1];
5839int
5840main ()
5841{
5842
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847if ac_fn_c_try_compile "$LINENO"; then :
5848 ac_cv_sys_large_files=no; break
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853#define _LARGE_FILES 1
5854#include <sys/types.h>
5855 /* Check that off_t can represent 2**63 - 1 correctly.
5856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5857 since some C++ compilers masquerading as C compilers
5858 incorrectly reject 9223372036854775807. */
5859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5861 && LARGE_OFF_T % 2147483647 == 1)
5862 ? 1 : -1];
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"; then :
5872 ac_cv_sys_large_files=1; break
5873fi
5874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_sys_large_files=unknown
5876 break
5877done
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5880$as_echo "$ac_cv_sys_large_files" >&6; }
5881case $ac_cv_sys_large_files in #(
5882 no | unknown) ;;
5883 *)
5884cat >>confdefs.h <<_ACEOF
5885#define _LARGE_FILES $ac_cv_sys_large_files
5886_ACEOF
5887;;
5888esac
5889rm -rf conftest*
5890 fi
5891
5892
5893fi
5894
5895
01027315
TT
5896
5897# We require a C++11 compiler. Check if one is available, and if
5898# necessary, set CXX_DIALECT to some -std=xxx switch.
5899
5900 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5901 ac_ext=cpp
5902ac_cpp='$CXXCPP $CPPFLAGS'
5903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5906 CXX_DIALECT=""
5907 ac_success=no
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5909$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5910if ${ax_cv_cxx_compile_cxx11+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h. */
5915
5916
5917// If the compiler admits that it is not ready for C++11, why torture it?
5918// Hopefully, this will speed up the test.
5919
5920#ifndef __cplusplus
5921
5922#error "This is not a C++ compiler"
5923
5924#elif __cplusplus < 201103L
5925
5926#error "This is not a C++11 compiler"
5927
5928#else
5929
5930namespace cxx11
5931{
5932
5933 namespace test_static_assert
5934 {
5935
5936 template <typename T>
5937 struct check
5938 {
5939 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5940 };
5941
5942 }
5943
5944 namespace test_final_override
5945 {
5946
5947 struct Base
5948 {
5949 virtual void f() {}
5950 };
5951
5952 struct Derived : public Base
5953 {
5954 virtual void f() override {}
5955 };
5956
5957 }
5958
5959 namespace test_double_right_angle_brackets
5960 {
5961
5962 template < typename T >
5963 struct check {};
5964
5965 typedef check<void> single_type;
5966 typedef check<check<void>> double_type;
5967 typedef check<check<check<void>>> triple_type;
5968 typedef check<check<check<check<void>>>> quadruple_type;
5969
5970 }
5971
5972 namespace test_decltype
5973 {
5974
5975 int
5976 f()
5977 {
5978 int a = 1;
5979 decltype(a) b = 2;
5980 return a + b;
5981 }
5982
5983 }
5984
5985 namespace test_type_deduction
5986 {
5987
5988 template < typename T1, typename T2 >
5989 struct is_same
5990 {
5991 static const bool value = false;
5992 };
5993
5994 template < typename T >
5995 struct is_same<T, T>
5996 {
5997 static const bool value = true;
5998 };
5999
6000 template < typename T1, typename T2 >
6001 auto
6002 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6003 {
6004 return a1 + a2;
6005 }
6006
6007 int
6008 test(const int c, volatile int v)
6009 {
6010 static_assert(is_same<int, decltype(0)>::value == true, "");
6011 static_assert(is_same<int, decltype(c)>::value == false, "");
6012 static_assert(is_same<int, decltype(v)>::value == false, "");
6013 auto ac = c;
6014 auto av = v;
6015 auto sumi = ac + av + 'x';
6016 auto sumf = ac + av + 1.0;
6017 static_assert(is_same<int, decltype(ac)>::value == true, "");
6018 static_assert(is_same<int, decltype(av)>::value == true, "");
6019 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6020 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6021 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6022 return (sumf > 0.0) ? sumi : add(c, v);
6023 }
6024
6025 }
6026
6027 namespace test_noexcept
6028 {
6029
6030 int f() { return 0; }
6031 int g() noexcept { return 0; }
6032
6033 static_assert(noexcept(f()) == false, "");
6034 static_assert(noexcept(g()) == true, "");
6035
6036 }
6037
6038 namespace test_constexpr
6039 {
6040
6041 template < typename CharT >
6042 unsigned long constexpr
6043 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6044 {
6045 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6046 }
6047
6048 template < typename CharT >
6049 unsigned long constexpr
6050 strlen_c(const CharT *const s) noexcept
6051 {
6052 return strlen_c_r(s, 0UL);
6053 }
6054
6055 static_assert(strlen_c("") == 0UL, "");
6056 static_assert(strlen_c("1") == 1UL, "");
6057 static_assert(strlen_c("example") == 7UL, "");
6058 static_assert(strlen_c("another\0example") == 7UL, "");
6059
6060 }
6061
6062 namespace test_rvalue_references
6063 {
6064
6065 template < int N >
6066 struct answer
6067 {
6068 static constexpr int value = N;
6069 };
6070
6071 answer<1> f(int&) { return answer<1>(); }
6072 answer<2> f(const int&) { return answer<2>(); }
6073 answer<3> f(int&&) { return answer<3>(); }
6074
6075 void
6076 test()
6077 {
6078 int i = 0;
6079 const int c = 0;
6080 static_assert(decltype(f(i))::value == 1, "");
6081 static_assert(decltype(f(c))::value == 2, "");
6082 static_assert(decltype(f(0))::value == 3, "");
6083 }
6084
6085 }
6086
6087 namespace test_uniform_initialization
6088 {
6089
6090 struct test
6091 {
6092 static const int zero {};
6093 static const int one {1};
6094 };
6095
6096 static_assert(test::zero == 0, "");
6097 static_assert(test::one == 1, "");
6098
6099 }
6100
6101 namespace test_lambdas
6102 {
6103
6104 void
6105 test1()
6106 {
6107 auto lambda1 = [](){};
6108 auto lambda2 = lambda1;
6109 lambda1();
6110 lambda2();
6111 }
6112
6113 int
6114 test2()
6115 {
6116 auto a = [](int i, int j){ return i + j; }(1, 2);
6117 auto b = []() -> int { return '0'; }();
6118 auto c = [=](){ return a + b; }();
6119 auto d = [&](){ return c; }();
6120 auto e = [a, &b](int x) mutable {
6121 const auto identity = [](int y){ return y; };
6122 for (auto i = 0; i < a; ++i)
6123 a += b--;
6124 return x + identity(a + b);
6125 }(0);
6126 return a + b + c + d + e;
6127 }
6128
6129 int
6130 test3()
6131 {
6132 const auto nullary = [](){ return 0; };
6133 const auto unary = [](int x){ return x; };
6134 using nullary_t = decltype(nullary);
6135 using unary_t = decltype(unary);
6136 const auto higher1st = [](nullary_t f){ return f(); };
6137 const auto higher2nd = [unary](nullary_t f1){
6138 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6139 };
6140 return higher1st(nullary) + higher2nd(nullary)(unary);
6141 }
6142
6143 }
6144
6145 namespace test_variadic_templates
6146 {
6147
6148 template <int...>
6149 struct sum;
6150
6151 template <int N0, int... N1toN>
6152 struct sum<N0, N1toN...>
6153 {
6154 static constexpr auto value = N0 + sum<N1toN...>::value;
6155 };
6156
6157 template <>
6158 struct sum<>
6159 {
6160 static constexpr auto value = 0;
6161 };
6162
6163 static_assert(sum<>::value == 0, "");
6164 static_assert(sum<1>::value == 1, "");
6165 static_assert(sum<23>::value == 23, "");
6166 static_assert(sum<1, 2>::value == 3, "");
6167 static_assert(sum<5, 5, 11>::value == 21, "");
6168 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6169
6170 }
6171
6172 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6173 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6174 // because of this.
6175 namespace test_template_alias_sfinae
6176 {
6177
6178 struct foo {};
6179
6180 template<typename T>
6181 using member = typename T::member_type;
6182
6183 template<typename T>
6184 void func(...) {}
6185
6186 template<typename T>
6187 void func(member<T>*) {}
6188
6189 void test();
6190
6191 void test() { func<foo>(0); }
6192
6193 }
6194
6195} // namespace cxx11
6196
6197#endif // __cplusplus >= 201103L
6198
6199
6200
6201_ACEOF
6202if ac_fn_cxx_try_compile "$LINENO"; then :
6203 ax_cv_cxx_compile_cxx11=yes
6204else
6205 ax_cv_cxx_compile_cxx11=no
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6210$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6211 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6212 ac_success=yes
6213 fi
6214
6215 if test x$ac_success = xno; then
6216 for alternative in ${ax_cxx_compile_alternatives}; do
6217 switch="-std=gnu++${alternative}"
6218 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6220$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6221if eval \${$cachevar+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 ac_save_CXX="$CXX"
6225 CXX="$CXX $switch"
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h. */
6228
6229
6230// If the compiler admits that it is not ready for C++11, why torture it?
6231// Hopefully, this will speed up the test.
6232
6233#ifndef __cplusplus
6234
6235#error "This is not a C++ compiler"
6236
6237#elif __cplusplus < 201103L
6238
6239#error "This is not a C++11 compiler"
6240
6241#else
6242
6243namespace cxx11
6244{
6245
6246 namespace test_static_assert
6247 {
6248
6249 template <typename T>
6250 struct check
6251 {
6252 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6253 };
6254
6255 }
6256
6257 namespace test_final_override
6258 {
6259
6260 struct Base
6261 {
6262 virtual void f() {}
6263 };
6264
6265 struct Derived : public Base
6266 {
6267 virtual void f() override {}
6268 };
6269
6270 }
6271
6272 namespace test_double_right_angle_brackets
6273 {
6274
6275 template < typename T >
6276 struct check {};
6277
6278 typedef check<void> single_type;
6279 typedef check<check<void>> double_type;
6280 typedef check<check<check<void>>> triple_type;
6281 typedef check<check<check<check<void>>>> quadruple_type;
6282
6283 }
6284
6285 namespace test_decltype
6286 {
6287
6288 int
6289 f()
6290 {
6291 int a = 1;
6292 decltype(a) b = 2;
6293 return a + b;
6294 }
6295
6296 }
6297
6298 namespace test_type_deduction
6299 {
6300
6301 template < typename T1, typename T2 >
6302 struct is_same
6303 {
6304 static const bool value = false;
6305 };
6306
6307 template < typename T >
6308 struct is_same<T, T>
6309 {
6310 static const bool value = true;
6311 };
6312
6313 template < typename T1, typename T2 >
6314 auto
6315 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6316 {
6317 return a1 + a2;
6318 }
6319
6320 int
6321 test(const int c, volatile int v)
6322 {
6323 static_assert(is_same<int, decltype(0)>::value == true, "");
6324 static_assert(is_same<int, decltype(c)>::value == false, "");
6325 static_assert(is_same<int, decltype(v)>::value == false, "");
6326 auto ac = c;
6327 auto av = v;
6328 auto sumi = ac + av + 'x';
6329 auto sumf = ac + av + 1.0;
6330 static_assert(is_same<int, decltype(ac)>::value == true, "");
6331 static_assert(is_same<int, decltype(av)>::value == true, "");
6332 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6333 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6334 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6335 return (sumf > 0.0) ? sumi : add(c, v);
6336 }
6337
6338 }
6339
6340 namespace test_noexcept
6341 {
6342
6343 int f() { return 0; }
6344 int g() noexcept { return 0; }
6345
6346 static_assert(noexcept(f()) == false, "");
6347 static_assert(noexcept(g()) == true, "");
6348
6349 }
6350
6351 namespace test_constexpr
6352 {
6353
6354 template < typename CharT >
6355 unsigned long constexpr
6356 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6357 {
6358 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6359 }
6360
6361 template < typename CharT >
6362 unsigned long constexpr
6363 strlen_c(const CharT *const s) noexcept
6364 {
6365 return strlen_c_r(s, 0UL);
6366 }
6367
6368 static_assert(strlen_c("") == 0UL, "");
6369 static_assert(strlen_c("1") == 1UL, "");
6370 static_assert(strlen_c("example") == 7UL, "");
6371 static_assert(strlen_c("another\0example") == 7UL, "");
6372
6373 }
6374
6375 namespace test_rvalue_references
6376 {
6377
6378 template < int N >
6379 struct answer
6380 {
6381 static constexpr int value = N;
6382 };
6383
6384 answer<1> f(int&) { return answer<1>(); }
6385 answer<2> f(const int&) { return answer<2>(); }
6386 answer<3> f(int&&) { return answer<3>(); }
6387
6388 void
6389 test()
6390 {
6391 int i = 0;
6392 const int c = 0;
6393 static_assert(decltype(f(i))::value == 1, "");
6394 static_assert(decltype(f(c))::value == 2, "");
6395 static_assert(decltype(f(0))::value == 3, "");
6396 }
6397
6398 }
6399
6400 namespace test_uniform_initialization
6401 {
6402
6403 struct test
6404 {
6405 static const int zero {};
6406 static const int one {1};
6407 };
6408
6409 static_assert(test::zero == 0, "");
6410 static_assert(test::one == 1, "");
6411
6412 }
6413
6414 namespace test_lambdas
6415 {
6416
6417 void
6418 test1()
6419 {
6420 auto lambda1 = [](){};
6421 auto lambda2 = lambda1;
6422 lambda1();
6423 lambda2();
6424 }
6425
6426 int
6427 test2()
6428 {
6429 auto a = [](int i, int j){ return i + j; }(1, 2);
6430 auto b = []() -> int { return '0'; }();
6431 auto c = [=](){ return a + b; }();
6432 auto d = [&](){ return c; }();
6433 auto e = [a, &b](int x) mutable {
6434 const auto identity = [](int y){ return y; };
6435 for (auto i = 0; i < a; ++i)
6436 a += b--;
6437 return x + identity(a + b);
6438 }(0);
6439 return a + b + c + d + e;
6440 }
6441
6442 int
6443 test3()
6444 {
6445 const auto nullary = [](){ return 0; };
6446 const auto unary = [](int x){ return x; };
6447 using nullary_t = decltype(nullary);
6448 using unary_t = decltype(unary);
6449 const auto higher1st = [](nullary_t f){ return f(); };
6450 const auto higher2nd = [unary](nullary_t f1){
6451 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6452 };
6453 return higher1st(nullary) + higher2nd(nullary)(unary);
6454 }
6455
6456 }
6457
6458 namespace test_variadic_templates
6459 {
6460
6461 template <int...>
6462 struct sum;
6463
6464 template <int N0, int... N1toN>
6465 struct sum<N0, N1toN...>
6466 {
6467 static constexpr auto value = N0 + sum<N1toN...>::value;
6468 };
6469
6470 template <>
6471 struct sum<>
6472 {
6473 static constexpr auto value = 0;
6474 };
6475
6476 static_assert(sum<>::value == 0, "");
6477 static_assert(sum<1>::value == 1, "");
6478 static_assert(sum<23>::value == 23, "");
6479 static_assert(sum<1, 2>::value == 3, "");
6480 static_assert(sum<5, 5, 11>::value == 21, "");
6481 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6482
6483 }
6484
6485 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6486 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6487 // because of this.
6488 namespace test_template_alias_sfinae
6489 {
6490
6491 struct foo {};
6492
6493 template<typename T>
6494 using member = typename T::member_type;
6495
6496 template<typename T>
6497 void func(...) {}
6498
6499 template<typename T>
6500 void func(member<T>*) {}
6501
6502 void test();
6503
6504 void test() { func<foo>(0); }
6505
6506 }
6507
6508} // namespace cxx11
6509
6510#endif // __cplusplus >= 201103L
6511
6512
6513
6514_ACEOF
6515if ac_fn_cxx_try_compile "$LINENO"; then :
6516 eval $cachevar=yes
6517else
6518 eval $cachevar=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 CXX="$ac_save_CXX"
6522fi
6523eval ac_res=\$$cachevar
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6525$as_echo "$ac_res" >&6; }
6526 if eval test x\$$cachevar = xyes; then
6527 CXX_DIALECT="$switch"
77252bf2
TV
6528 CXX="$CXX $switch"
6529 if test -n "$CXXCPP" ; then
6530 CXXCPP="$CXXCPP $switch"
6531 fi
01027315
TT
6532 ac_success=yes
6533 break
6534 fi
6535 done
6536 fi
6537
6538 if test x$ac_success = xno; then
6539 for alternative in ${ax_cxx_compile_alternatives}; do
6540 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6541 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6543$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6544if eval \${$cachevar+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546else
6547 ac_save_CXX="$CXX"
6548 CXX="$CXX $switch"
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h. */
6551
6552
6553// If the compiler admits that it is not ready for C++11, why torture it?
6554// Hopefully, this will speed up the test.
6555
6556#ifndef __cplusplus
6557
6558#error "This is not a C++ compiler"
6559
6560#elif __cplusplus < 201103L
6561
6562#error "This is not a C++11 compiler"
6563
6564#else
6565
6566namespace cxx11
6567{
6568
6569 namespace test_static_assert
6570 {
6571
6572 template <typename T>
6573 struct check
6574 {
6575 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6576 };
6577
6578 }
6579
6580 namespace test_final_override
6581 {
6582
6583 struct Base
6584 {
6585 virtual void f() {}
6586 };
6587
6588 struct Derived : public Base
6589 {
6590 virtual void f() override {}
6591 };
6592
6593 }
6594
6595 namespace test_double_right_angle_brackets
6596 {
6597
6598 template < typename T >
6599 struct check {};
6600
6601 typedef check<void> single_type;
6602 typedef check<check<void>> double_type;
6603 typedef check<check<check<void>>> triple_type;
6604 typedef check<check<check<check<void>>>> quadruple_type;
6605
6606 }
6607
6608 namespace test_decltype
6609 {
6610
6611 int
6612 f()
6613 {
6614 int a = 1;
6615 decltype(a) b = 2;
6616 return a + b;
6617 }
6618
6619 }
6620
6621 namespace test_type_deduction
6622 {
6623
6624 template < typename T1, typename T2 >
6625 struct is_same
6626 {
6627 static const bool value = false;
6628 };
6629
6630 template < typename T >
6631 struct is_same<T, T>
6632 {
6633 static const bool value = true;
6634 };
6635
6636 template < typename T1, typename T2 >
6637 auto
6638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6639 {
6640 return a1 + a2;
6641 }
6642
6643 int
6644 test(const int c, volatile int v)
6645 {
6646 static_assert(is_same<int, decltype(0)>::value == true, "");
6647 static_assert(is_same<int, decltype(c)>::value == false, "");
6648 static_assert(is_same<int, decltype(v)>::value == false, "");
6649 auto ac = c;
6650 auto av = v;
6651 auto sumi = ac + av + 'x';
6652 auto sumf = ac + av + 1.0;
6653 static_assert(is_same<int, decltype(ac)>::value == true, "");
6654 static_assert(is_same<int, decltype(av)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6658 return (sumf > 0.0) ? sumi : add(c, v);
6659 }
6660
6661 }
6662
6663 namespace test_noexcept
6664 {
6665
6666 int f() { return 0; }
6667 int g() noexcept { return 0; }
6668
6669 static_assert(noexcept(f()) == false, "");
6670 static_assert(noexcept(g()) == true, "");
6671
6672 }
6673
6674 namespace test_constexpr
6675 {
6676
6677 template < typename CharT >
6678 unsigned long constexpr
6679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6680 {
6681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6682 }
6683
6684 template < typename CharT >
6685 unsigned long constexpr
6686 strlen_c(const CharT *const s) noexcept
6687 {
6688 return strlen_c_r(s, 0UL);
6689 }
6690
6691 static_assert(strlen_c("") == 0UL, "");
6692 static_assert(strlen_c("1") == 1UL, "");
6693 static_assert(strlen_c("example") == 7UL, "");
6694 static_assert(strlen_c("another\0example") == 7UL, "");
6695
6696 }
6697
6698 namespace test_rvalue_references
6699 {
6700
6701 template < int N >
6702 struct answer
6703 {
6704 static constexpr int value = N;
6705 };
6706
6707 answer<1> f(int&) { return answer<1>(); }
6708 answer<2> f(const int&) { return answer<2>(); }
6709 answer<3> f(int&&) { return answer<3>(); }
6710
6711 void
6712 test()
6713 {
6714 int i = 0;
6715 const int c = 0;
6716 static_assert(decltype(f(i))::value == 1, "");
6717 static_assert(decltype(f(c))::value == 2, "");
6718 static_assert(decltype(f(0))::value == 3, "");
6719 }
6720
6721 }
6722
6723 namespace test_uniform_initialization
6724 {
6725
6726 struct test
6727 {
6728 static const int zero {};
6729 static const int one {1};
6730 };
6731
6732 static_assert(test::zero == 0, "");
6733 static_assert(test::one == 1, "");
6734
6735 }
6736
6737 namespace test_lambdas
6738 {
6739
6740 void
6741 test1()
6742 {
6743 auto lambda1 = [](){};
6744 auto lambda2 = lambda1;
6745 lambda1();
6746 lambda2();
6747 }
6748
6749 int
6750 test2()
6751 {
6752 auto a = [](int i, int j){ return i + j; }(1, 2);
6753 auto b = []() -> int { return '0'; }();
6754 auto c = [=](){ return a + b; }();
6755 auto d = [&](){ return c; }();
6756 auto e = [a, &b](int x) mutable {
6757 const auto identity = [](int y){ return y; };
6758 for (auto i = 0; i < a; ++i)
6759 a += b--;
6760 return x + identity(a + b);
6761 }(0);
6762 return a + b + c + d + e;
6763 }
6764
6765 int
6766 test3()
6767 {
6768 const auto nullary = [](){ return 0; };
6769 const auto unary = [](int x){ return x; };
6770 using nullary_t = decltype(nullary);
6771 using unary_t = decltype(unary);
6772 const auto higher1st = [](nullary_t f){ return f(); };
6773 const auto higher2nd = [unary](nullary_t f1){
6774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6775 };
6776 return higher1st(nullary) + higher2nd(nullary)(unary);
6777 }
6778
6779 }
6780
6781 namespace test_variadic_templates
6782 {
6783
6784 template <int...>
6785 struct sum;
6786
6787 template <int N0, int... N1toN>
6788 struct sum<N0, N1toN...>
6789 {
6790 static constexpr auto value = N0 + sum<N1toN...>::value;
6791 };
6792
6793 template <>
6794 struct sum<>
6795 {
6796 static constexpr auto value = 0;
6797 };
6798
6799 static_assert(sum<>::value == 0, "");
6800 static_assert(sum<1>::value == 1, "");
6801 static_assert(sum<23>::value == 23, "");
6802 static_assert(sum<1, 2>::value == 3, "");
6803 static_assert(sum<5, 5, 11>::value == 21, "");
6804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6805
6806 }
6807
6808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6810 // because of this.
6811 namespace test_template_alias_sfinae
6812 {
6813
6814 struct foo {};
6815
6816 template<typename T>
6817 using member = typename T::member_type;
6818
6819 template<typename T>
6820 void func(...) {}
6821
6822 template<typename T>
6823 void func(member<T>*) {}
6824
6825 void test();
6826
6827 void test() { func<foo>(0); }
6828
6829 }
6830
6831} // namespace cxx11
6832
6833#endif // __cplusplus >= 201103L
6834
6835
6836
6837_ACEOF
6838if ac_fn_cxx_try_compile "$LINENO"; then :
6839 eval $cachevar=yes
6840else
6841 eval $cachevar=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 CXX="$ac_save_CXX"
6845fi
6846eval ac_res=\$$cachevar
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6848$as_echo "$ac_res" >&6; }
6849 if eval test x\$$cachevar = xyes; then
6850 CXX_DIALECT="$switch"
77252bf2
TV
6851 CXX="$CXX $switch"
6852 if test -n "$CXXCPP" ; then
6853 CXXCPP="$CXXCPP $switch"
6854 fi
01027315
TT
6855 ac_success=yes
6856 break
6857 fi
6858 done
6859 if test x$ac_success = xyes; then
6860 break
6861 fi
6862 done
6863 fi
6864 ac_ext=c
6865ac_cpp='$CPP $CPPFLAGS'
6866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869
6870 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6871 if test x$ac_success = xno; then
6872 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6873 fi
6874 fi
6875 if test x$ac_success = xno; then
6876 HAVE_CXX11=0
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6878$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6879 else
6880 HAVE_CXX11=1
6881
6882$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6883
6884 fi
6885
6886
6887
6888
6889# If we haven't got the data from the intl directory,
6890# assume NLS is disabled.
6891USE_NLS=no
6892LIBINTL=
6893LIBINTL_DEP=
6894INCINTL=
6895XGETTEXT=
6896GMSGFMT=
6897POSUB=
6898
6899if test -f ../intl/config.intl; then
6900 . ../intl/config.intl
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6903$as_echo_n "checking whether NLS is requested... " >&6; }
6904if test x"$USE_NLS" != xyes; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6909$as_echo "yes" >&6; }
6910
6911$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6912
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6915$as_echo_n "checking for catalogs to be installed... " >&6; }
6916 # Look for .po and .gmo files in the source directory.
6917 CATALOGS=
6918 XLINGUAS=
6919 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6920 # If there aren't any .gmo files the shell will give us the
6921 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6922 # weeded out.
6923 case "$cat" in *\**)
6924 continue;;
6925 esac
6926 # The quadruple backslash is collapsed to a double backslash
6927 # by the backticks, then collapsed again by the double quotes,
6928 # leaving us with one backslash in the sed expression (right
6929 # before the dot that mustn't act as a wildcard).
6930 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6931 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6932 # The user is allowed to set LINGUAS to a list of languages to
6933 # install catalogs for. If it's empty that means "all of them."
6934 if test "x$LINGUAS" = x; then
6935 CATALOGS="$CATALOGS $cat"
6936 XLINGUAS="$XLINGUAS $lang"
6937 else
6938 case "$LINGUAS" in *$lang*)
6939 CATALOGS="$CATALOGS $cat"
6940 XLINGUAS="$XLINGUAS $lang"
6941 ;;
6942 esac
6943 fi
6944 done
6945 LINGUAS="$XLINGUAS"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6947$as_echo "$LINGUAS" >&6; }
6948
6949
6950 DATADIRNAME=share
6951
6952 INSTOBJEXT=.mo
6953
6954 GENCAT=gencat
6955
6956 CATOBJEXT=.gmo
6957
6958fi
6959
6960
6961 # Check for presence and size of long long.
6962 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6963if test "x$ac_cv_type_long_long" = xyes; then :
6964
6965cat >>confdefs.h <<_ACEOF
6966#define HAVE_LONG_LONG 1
6967_ACEOF
6968
6969# The cast to long int works around a bug in the HP C Compiler
6970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6972# This bug is HP SR number 8606223364.
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6974$as_echo_n "checking size of long long... " >&6; }
6975if ${ac_cv_sizeof_long_long+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977else
6978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6979
6980else
6981 if test "$ac_cv_type_long_long" = yes; then
6982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6984as_fn_error 77 "cannot compute sizeof (long long)
6985See \`config.log' for more details" "$LINENO" 5; }
6986 else
6987 ac_cv_sizeof_long_long=0
6988 fi
6989fi
6990
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6993$as_echo "$ac_cv_sizeof_long_long" >&6; }
6994
6995
6996
6997cat >>confdefs.h <<_ACEOF
6998#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6999_ACEOF
7000
7001
7002fi
7003
7004
7005 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7006ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7007if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7008 ac_have_decl=1
7009else
7010 ac_have_decl=0
7011fi
7012
7013cat >>confdefs.h <<_ACEOF
7014#define HAVE_DECL_BASENAME $ac_have_decl
7015_ACEOF
7016ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7017if test "x$ac_cv_have_decl_ffs" = xyes; then :
7018 ac_have_decl=1
7019else
7020 ac_have_decl=0
7021fi
7022
7023cat >>confdefs.h <<_ACEOF
7024#define HAVE_DECL_FFS $ac_have_decl
7025_ACEOF
7026ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7027if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7028 ac_have_decl=1
7029else
7030 ac_have_decl=0
7031fi
7032
7033cat >>confdefs.h <<_ACEOF
7034#define HAVE_DECL_ASPRINTF $ac_have_decl
7035_ACEOF
7036ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7037if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7038 ac_have_decl=1
7039else
7040 ac_have_decl=0
7041fi
7042
7043cat >>confdefs.h <<_ACEOF
7044#define HAVE_DECL_VASPRINTF $ac_have_decl
7045_ACEOF
7046ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7047if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7048 ac_have_decl=1
7049else
7050 ac_have_decl=0
7051fi
7052
7053cat >>confdefs.h <<_ACEOF
7054#define HAVE_DECL_SNPRINTF $ac_have_decl
7055_ACEOF
7056ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7057if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7058 ac_have_decl=1
7059else
7060 ac_have_decl=0
7061fi
7062
7063cat >>confdefs.h <<_ACEOF
7064#define HAVE_DECL_VSNPRINTF $ac_have_decl
7065_ACEOF
7066
7067 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7068if test "x$ac_cv_have_decl_strtol" = xyes; then :
7069 ac_have_decl=1
7070else
7071 ac_have_decl=0
7072fi
7073
7074cat >>confdefs.h <<_ACEOF
7075#define HAVE_DECL_STRTOL $ac_have_decl
7076_ACEOF
7077ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7078if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7079 ac_have_decl=1
7080else
7081 ac_have_decl=0
7082fi
7083
7084cat >>confdefs.h <<_ACEOF
7085#define HAVE_DECL_STRTOUL $ac_have_decl
7086_ACEOF
7087ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7088if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7089 ac_have_decl=1
7090else
7091 ac_have_decl=0
7092fi
7093
7094cat >>confdefs.h <<_ACEOF
7095#define HAVE_DECL_STRTOLL $ac_have_decl
7096_ACEOF
7097ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7098if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7099 ac_have_decl=1
7100else
7101 ac_have_decl=0
7102fi
7103
7104cat >>confdefs.h <<_ACEOF
7105#define HAVE_DECL_STRTOULL $ac_have_decl
7106_ACEOF
7107
7108 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7109if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7110 ac_have_decl=1
7111else
7112 ac_have_decl=0
7113fi
7114
7115cat >>confdefs.h <<_ACEOF
7116#define HAVE_DECL_STRVERSCMP $ac_have_decl
7117_ACEOF
7118
7119
7120ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7121if test "x$ac_cv_type_size_t" = xyes; then :
7122
7123else
7124
7125cat >>confdefs.h <<_ACEOF
7126#define size_t unsigned int
7127_ACEOF
7128
7129fi
7130
05ea2a05
TT
7131
7132
7133
7134 for ac_header in $ac_header_list
7135do :
7136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7138"
7139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7140 cat >>confdefs.h <<_ACEOF
7141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7142_ACEOF
7143
7144fi
7145
7146done
7147
7148
7149
7150
7151
7152
7153
7154ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7155if test "x$ac_cv_type_pid_t" = xyes; then :
7156
7157else
7158
7159cat >>confdefs.h <<_ACEOF
7160#define pid_t int
7161_ACEOF
7162
7163fi
7164
01027315
TT
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7166$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7167if ${ac_cv_path_SED+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169else
7170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7171 for ac_i in 1 2 3 4 5 6 7; do
7172 ac_script="$ac_script$as_nl$ac_script"
7173 done
7174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7175 { ac_script=; unset ac_script;}
7176 if test -z "$SED"; then
7177 ac_path_SED_found=false
7178 # Loop through the user's path and test for each of PROGNAME-LIST
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_prog in sed gsed; do
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7187 as_fn_executable_p "$ac_path_SED" || continue
7188# Check for GNU ac_path_SED and select it if it is found.
7189 # Check for GNU $ac_path_SED
7190case `"$ac_path_SED" --version 2>&1` in
7191*GNU*)
7192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7193*)
7194 ac_count=0
7195 $as_echo_n 0123456789 >"conftest.in"
7196 while :
7197 do
7198 cat "conftest.in" "conftest.in" >"conftest.tmp"
7199 mv "conftest.tmp" "conftest.in"
7200 cp "conftest.in" "conftest.nl"
7201 $as_echo '' >> "conftest.nl"
7202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7204 as_fn_arith $ac_count + 1 && ac_count=$as_val
7205 if test $ac_count -gt ${ac_path_SED_max-0}; then
7206 # Best one so far, save it but keep looking for a better one
7207 ac_cv_path_SED="$ac_path_SED"
7208 ac_path_SED_max=$ac_count
7209 fi
7210 # 10*(2^10) chars as input seems more than enough
7211 test $ac_count -gt 10 && break
7212 done
7213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7214esac
7215
7216 $ac_path_SED_found && break 3
7217 done
7218 done
7219 done
7220IFS=$as_save_IFS
7221 if test -z "$ac_cv_path_SED"; then
7222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7223 fi
7224else
7225 ac_cv_path_SED=$SED
7226fi
7227
7228fi
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7230$as_echo "$ac_cv_path_SED" >&6; }
7231 SED="$ac_cv_path_SED"
7232 rm -f conftest.sed
7233
7234
05ea2a05
TT
7235 if test "X$prefix" = "XNONE"; then
7236 acl_final_prefix="$ac_default_prefix"
7237 else
7238 acl_final_prefix="$prefix"
7239 fi
7240 if test "X$exec_prefix" = "XNONE"; then
7241 acl_final_exec_prefix='${prefix}'
7242 else
7243 acl_final_exec_prefix="$exec_prefix"
7244 fi
7245 acl_save_prefix="$prefix"
7246 prefix="$acl_final_prefix"
7247 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7248 prefix="$acl_save_prefix"
7249
7250
7251# Check whether --with-gnu-ld was given.
7252if test "${with_gnu_ld+set}" = set; then :
7253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7254else
7255 with_gnu_ld=no
7256fi
7257
7258# Prepare PATH_SEPARATOR.
7259# The user is always right.
7260if test "${PATH_SEPARATOR+set}" != set; then
7261 echo "#! /bin/sh" >conf$$.sh
7262 echo "exit 0" >>conf$$.sh
7263 chmod +x conf$$.sh
7264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7265 PATH_SEPARATOR=';'
7266 else
7267 PATH_SEPARATOR=:
7268 fi
7269 rm -f conf$$.sh
7270fi
7271ac_prog=ld
7272if test "$GCC" = yes; then
7273 # Check if gcc -print-prog-name=ld gives a path.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7275$as_echo_n "checking for ld used by GCC... " >&6; }
7276 case $host in
7277 *-*-mingw*)
7278 # gcc leaves a trailing carriage return which upsets mingw
7279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7280 *)
7281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7282 esac
7283 case $ac_prog in
7284 # Accept absolute paths.
7285 [\\/]* | [A-Za-z]:[\\/]*)
7286 re_direlt='/[^/][^/]*/\.\./'
7287 # Canonicalize the path of ld
7288 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7289 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7290 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7291 done
7292 test -z "$LD" && LD="$ac_prog"
7293 ;;
7294 "")
7295 # If it fails, then pretend we aren't using GCC.
7296 ac_prog=ld
7297 ;;
7298 *)
7299 # If it is relative, then search for the first ld in PATH.
7300 with_gnu_ld=unknown
7301 ;;
7302 esac
7303elif test "$with_gnu_ld" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7305$as_echo_n "checking for GNU ld... " >&6; }
7306else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7308$as_echo_n "checking for non-GNU ld... " >&6; }
7309fi
7310if ${acl_cv_path_LD+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312else
7313 if test -z "$LD"; then
7314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7315 for ac_dir in $PATH; do
7316 test -z "$ac_dir" && ac_dir=.
7317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7318 acl_cv_path_LD="$ac_dir/$ac_prog"
7319 # Check to see if the program is GNU ld. I'd rather use --version,
7320 # but apparently some GNU ld's only accept -v.
7321 # Break only if it was the GNU/non-GNU ld that we prefer.
7322 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7323 test "$with_gnu_ld" != no && break
7324 else
7325 test "$with_gnu_ld" != yes && break
7326 fi
7327 fi
7328 done
7329 IFS="$ac_save_ifs"
7330else
7331 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7332fi
7333fi
7334
7335LD="$acl_cv_path_LD"
7336if test -n "$LD"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7338$as_echo "$LD" >&6; }
7339else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341$as_echo "no" >&6; }
7342fi
7343test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7345$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7346if ${acl_cv_prog_gnu_ld+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348else
7349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7350if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7351 acl_cv_prog_gnu_ld=yes
7352else
7353 acl_cv_prog_gnu_ld=no
7354fi
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7357$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7358with_gnu_ld=$acl_cv_prog_gnu_ld
7359
7360
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7363$as_echo_n "checking for shared library run path origin... " >&6; }
7364if ${acl_cv_rpath+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366else
7367
7368 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7369 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7370 . ./conftest.sh
7371 rm -f ./conftest.sh
7372 acl_cv_rpath=done
7373
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7376$as_echo "$acl_cv_rpath" >&6; }
7377 wl="$acl_cv_wl"
7378 libext="$acl_cv_libext"
7379 shlibext="$acl_cv_shlibext"
7380 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7381 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7382 hardcode_direct="$acl_cv_hardcode_direct"
7383 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7384 # Check whether --enable-rpath was given.
7385if test "${enable_rpath+set}" = set; then :
7386 enableval=$enable_rpath; :
7387else
7388 enable_rpath=yes
7389fi
7390
7391
7392
db6878ac
SM
7393 # Set the 'development' global.
7394 . $srcdir/../bfd/development.sh
7395
01027315
TT
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7397$as_echo_n "checking for ANSI C header files... " >&6; }
7398if ${ac_cv_header_stdc+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400else
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h. */
7403#include <stdlib.h>
7404#include <stdarg.h>
7405#include <string.h>
7406#include <float.h>
7407
7408int
7409main ()
7410{
7411
7412 ;
7413 return 0;
7414}
7415_ACEOF
7416if ac_fn_c_try_compile "$LINENO"; then :
7417 ac_cv_header_stdc=yes
7418else
7419 ac_cv_header_stdc=no
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422
7423if test $ac_cv_header_stdc = yes; then
7424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h. */
7427#include <string.h>
7428
7429_ACEOF
7430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7431 $EGREP "memchr" >/dev/null 2>&1; then :
7432
7433else
7434 ac_cv_header_stdc=no
7435fi
7436rm -f conftest*
7437
7438fi
7439
7440if test $ac_cv_header_stdc = yes; then
7441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h. */
7444#include <stdlib.h>
7445
7446_ACEOF
7447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7448 $EGREP "free" >/dev/null 2>&1; then :
7449
7450else
7451 ac_cv_header_stdc=no
7452fi
7453rm -f conftest*
7454
7455fi
7456
7457if test $ac_cv_header_stdc = yes; then
7458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7459 if test "$cross_compiling" = yes; then :
7460 :
7461else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h. */
7464#include <ctype.h>
7465#include <stdlib.h>
7466#if ((' ' & 0x0FF) == 0x020)
7467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7469#else
7470# define ISLOWER(c) \
7471 (('a' <= (c) && (c) <= 'i') \
7472 || ('j' <= (c) && (c) <= 'r') \
7473 || ('s' <= (c) && (c) <= 'z'))
7474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7475#endif
7476
7477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7478int
7479main ()
7480{
7481 int i;
7482 for (i = 0; i < 256; i++)
7483 if (XOR (islower (i), ISLOWER (i))
7484 || toupper (i) != TOUPPER (i))
7485 return 2;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_run "$LINENO"; then :
7490
7491else
7492 ac_cv_header_stdc=no
7493fi
7494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7495 conftest.$ac_objext conftest.beam conftest.$ac_ext
7496fi
7497
7498fi
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7501$as_echo "$ac_cv_header_stdc" >&6; }
7502if test $ac_cv_header_stdc = yes; then
7503
7504$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7505
7506fi
7507
7508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7509# for constant arguments. Useless!
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7511$as_echo_n "checking for working alloca.h... " >&6; }
7512if ${ac_cv_working_alloca_h+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514else
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h. */
7517#include <alloca.h>
7518int
7519main ()
7520{
7521char *p = (char *) alloca (2 * sizeof (int));
7522 if (p) return 0;
7523 ;
7524 return 0;
7525}
7526_ACEOF
7527if ac_fn_c_try_link "$LINENO"; then :
7528 ac_cv_working_alloca_h=yes
7529else
7530 ac_cv_working_alloca_h=no
7531fi
7532rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7536$as_echo "$ac_cv_working_alloca_h" >&6; }
7537if test $ac_cv_working_alloca_h = yes; then
7538
7539$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7540
7541fi
7542
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7544$as_echo_n "checking for alloca... " >&6; }
7545if ${ac_cv_func_alloca_works+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547else
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549/* end confdefs.h. */
7550#ifdef __GNUC__
7551# define alloca __builtin_alloca
7552#else
7553# ifdef _MSC_VER
7554# include <malloc.h>
7555# define alloca _alloca
7556# else
7557# ifdef HAVE_ALLOCA_H
7558# include <alloca.h>
7559# else
7560# ifdef _AIX
7561 #pragma alloca
7562# else
7563# ifndef alloca /* predefined by HP cc +Olibcalls */
7564void *alloca (size_t);
7565# endif
7566# endif
7567# endif
7568# endif
7569#endif
7570
7571int
7572main ()
7573{
7574char *p = (char *) alloca (1);
7575 if (p) return 0;
7576 ;
7577 return 0;
7578}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"; then :
7581 ac_cv_func_alloca_works=yes
7582else
7583 ac_cv_func_alloca_works=no
7584fi
7585rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7589$as_echo "$ac_cv_func_alloca_works" >&6; }
7590
7591if test $ac_cv_func_alloca_works = yes; then
7592
7593$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7594
7595else
7596 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7597# that cause trouble. Some versions do not even contain alloca or
7598# contain a buggy version. If you still want to use their alloca,
7599# use ar to extract alloca.o from them instead of compiling alloca.c.
7600
7601ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7602
7603$as_echo "#define C_ALLOCA 1" >>confdefs.h
7604
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7607$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7608if ${ac_cv_os_cray+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h. */
7613#if defined CRAY && ! defined CRAY2
7614webecray
7615#else
7616wenotbecray
7617#endif
7618
7619_ACEOF
7620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "webecray" >/dev/null 2>&1; then :
7622 ac_cv_os_cray=yes
7623else
7624 ac_cv_os_cray=no
7625fi
7626rm -f conftest*
7627
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7630$as_echo "$ac_cv_os_cray" >&6; }
7631if test $ac_cv_os_cray = yes; then
7632 for ac_func in _getb67 GETB67 getb67; do
7633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7634ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7635if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7636
7637cat >>confdefs.h <<_ACEOF
7638#define CRAY_STACKSEG_END $ac_func
7639_ACEOF
7640
7641 break
7642fi
7643
7644 done
7645fi
7646
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7648$as_echo_n "checking stack direction for C alloca... " >&6; }
7649if ${ac_cv_c_stack_direction+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651else
7652 if test "$cross_compiling" = yes; then :
7653 ac_cv_c_stack_direction=0
7654else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h. */
7657$ac_includes_default
7658int
7659find_stack_direction (int *addr, int depth)
7660{
7661 int dir, dummy = 0;
7662 if (! addr)
7663 addr = &dummy;
7664 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7665 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7666 return dir + dummy;
7667}
7668
7669int
7670main (int argc, char **argv)
7671{
7672 return find_stack_direction (0, argc + !argv + 20) < 0;
7673}
7674_ACEOF
7675if ac_fn_c_try_run "$LINENO"; then :
7676 ac_cv_c_stack_direction=1
7677else
7678 ac_cv_c_stack_direction=-1
7679fi
7680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7681 conftest.$ac_objext conftest.beam conftest.$ac_ext
7682fi
7683
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7686$as_echo "$ac_cv_c_stack_direction" >&6; }
7687cat >>confdefs.h <<_ACEOF
7688#define STACK_DIRECTION $ac_cv_c_stack_direction
7689_ACEOF
7690
7691
7692fi
7693
7694
7695 WIN32APILIBS=
7696 case ${host} in
7697 *mingw32*)
7698
7699$as_echo "#define USE_WIN32API 1" >>confdefs.h
7700
7701 WIN32APILIBS="-lws2_32"
7702 ;;
7703 esac
7704
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7707$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7708if ${am_cv_langinfo_codeset+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h. */
7713#include <langinfo.h>
7714int
7715main ()
7716{
7717char* cs = nl_langinfo(CODESET);
7718 ;
7719 return 0;
7720}
7721_ACEOF
7722if ac_fn_c_try_link "$LINENO"; then :
7723 am_cv_langinfo_codeset=yes
7724else
7725 am_cv_langinfo_codeset=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7732$as_echo "$am_cv_langinfo_codeset" >&6; }
7733 if test $am_cv_langinfo_codeset = yes; then
7734
7735$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7736
7737 fi
7738
7739
c8693053 7740 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
01027315
TT
7741do :
7742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7745 cat >>confdefs.h <<_ACEOF
7746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7747_ACEOF
7748
7749fi
7750
7751done
7752
7753
05ea2a05
TT
7754
7755for ac_func in getpagesize
01027315 7756do :
05ea2a05
TT
7757 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7758if test "x$ac_cv_func_getpagesize" = xyes; then :
01027315 7759 cat >>confdefs.h <<_ACEOF
05ea2a05 7760#define HAVE_GETPAGESIZE 1
01027315
TT
7761_ACEOF
7762
7763fi
7764done
7765
05ea2a05
TT
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7767$as_echo_n "checking for working mmap... " >&6; }
7768if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7769 $as_echo_n "(cached) " >&6
01027315 7770else
05ea2a05
TT
7771 if test "$cross_compiling" = yes; then :
7772 ac_cv_func_mmap_fixed_mapped=no
7773else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h. */
7776$ac_includes_default
7777/* malloc might have been renamed as rpl_malloc. */
7778#undef malloc
7779
7780/* Thanks to Mike Haertel and Jim Avera for this test.
7781 Here is a matrix of mmap possibilities:
7782 mmap private not fixed
7783 mmap private fixed at somewhere currently unmapped
7784 mmap private fixed at somewhere already mapped
7785 mmap shared not fixed
7786 mmap shared fixed at somewhere currently unmapped
7787 mmap shared fixed at somewhere already mapped
7788 For private mappings, we should verify that changes cannot be read()
7789 back from the file, nor mmap's back from the file at a different
7790 address. (There have been systems where private was not correctly
7791 implemented like the infamous i386 svr4.0, and systems where the
7792 VM page cache was not coherent with the file system buffer cache
7793 like early versions of FreeBSD and possibly contemporary NetBSD.)
7794 For shared mappings, we should conversely verify that changes get
7795 propagated back to all the places they're supposed to be.
7796
7797 Grep wants private fixed already mapped.
7798 The main things grep needs to know about mmap are:
7799 * does it exist and is it safe to write into the mmap'd area
7800 * how to use it (BSD variants) */
7801
7802#include <fcntl.h>
7803#include <sys/mman.h>
7804
7805#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7806char *malloc ();
7807#endif
01027315 7808
05ea2a05
TT
7809/* This mess was copied from the GNU getpagesize.h. */
7810#ifndef HAVE_GETPAGESIZE
7811# ifdef _SC_PAGESIZE
7812# define getpagesize() sysconf(_SC_PAGESIZE)
7813# else /* no _SC_PAGESIZE */
7814# ifdef HAVE_SYS_PARAM_H
7815# include <sys/param.h>
7816# ifdef EXEC_PAGESIZE
7817# define getpagesize() EXEC_PAGESIZE
7818# else /* no EXEC_PAGESIZE */
7819# ifdef NBPG
7820# define getpagesize() NBPG * CLSIZE
7821# ifndef CLSIZE
7822# define CLSIZE 1
7823# endif /* no CLSIZE */
7824# else /* no NBPG */
7825# ifdef NBPC
7826# define getpagesize() NBPC
7827# else /* no NBPC */
7828# ifdef PAGESIZE
7829# define getpagesize() PAGESIZE
7830# endif /* PAGESIZE */
7831# endif /* no NBPC */
7832# endif /* no NBPG */
7833# endif /* no EXEC_PAGESIZE */
7834# else /* no HAVE_SYS_PARAM_H */
7835# define getpagesize() 8192 /* punt totally */
7836# endif /* no HAVE_SYS_PARAM_H */
7837# endif /* no _SC_PAGESIZE */
7838
7839#endif /* no HAVE_GETPAGESIZE */
01027315 7840
05ea2a05
TT
7841int
7842main ()
7843{
7844 char *data, *data2, *data3;
7845 const char *cdata2;
7846 int i, pagesize;
7847 int fd, fd2;
01027315 7848
05ea2a05 7849 pagesize = getpagesize ();
01027315 7850
05ea2a05
TT
7851 /* First, make a file with some known garbage in it. */
7852 data = (char *) malloc (pagesize);
7853 if (!data)
7854 return 1;
7855 for (i = 0; i < pagesize; ++i)
7856 *(data + i) = rand ();
7857 umask (0);
7858 fd = creat ("conftest.mmap", 0600);
7859 if (fd < 0)
7860 return 2;
7861 if (write (fd, data, pagesize) != pagesize)
7862 return 3;
7863 close (fd);
7864
7865 /* Next, check that the tail of a page is zero-filled. File must have
7866 non-zero length, otherwise we risk SIGBUS for entire page. */
7867 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7868 if (fd2 < 0)
7869 return 4;
7870 cdata2 = "";
7871 if (write (fd2, cdata2, 1) != 1)
7872 return 5;
7873 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7874 if (data2 == MAP_FAILED)
7875 return 6;
7876 for (i = 0; i < pagesize; ++i)
7877 if (*(data2 + i))
7878 return 7;
7879 close (fd2);
7880 if (munmap (data2, pagesize))
7881 return 8;
7882
7883 /* Next, try to mmap the file at a fixed address which already has
7884 something else allocated at it. If we can, also make sure that
7885 we see the same garbage. */
7886 fd = open ("conftest.mmap", O_RDWR);
7887 if (fd < 0)
7888 return 9;
7889 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7890 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7891 return 10;
7892 for (i = 0; i < pagesize; ++i)
7893 if (*(data + i) != *(data2 + i))
7894 return 11;
7895
7896 /* Finally, make sure that changes to the mapped area do not
7897 percolate back to the file as seen by read(). (This is a bug on
7898 some variants of i386 svr4.0.) */
7899 for (i = 0; i < pagesize; ++i)
7900 *(data2 + i) = *(data2 + i) + 1;
7901 data3 = (char *) malloc (pagesize);
7902 if (!data3)
7903 return 12;
7904 if (read (fd, data3, pagesize) != pagesize)
7905 return 13;
7906 for (i = 0; i < pagesize; ++i)
7907 if (*(data + i) != *(data3 + i))
7908 return 14;
7909 close (fd);
7910 return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_run "$LINENO"; then :
7914 ac_cv_func_mmap_fixed_mapped=yes
7915else
7916 ac_cv_func_mmap_fixed_mapped=no
7917fi
7918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7919 conftest.$ac_objext conftest.beam conftest.$ac_ext
7920fi
01027315 7921
05ea2a05
TT
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7924$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7925if test $ac_cv_func_mmap_fixed_mapped = yes; then
01027315 7926
05ea2a05 7927$as_echo "#define HAVE_MMAP 1" >>confdefs.h
01027315 7928
05ea2a05
TT
7929fi
7930rm -f conftest.mmap conftest.txt
01027315 7931
05ea2a05
TT
7932 for ac_header in vfork.h
7933do :
7934 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7935if test "x$ac_cv_header_vfork_h" = xyes; then :
7936 cat >>confdefs.h <<_ACEOF
7937#define HAVE_VFORK_H 1
7938_ACEOF
01027315 7939
05ea2a05 7940fi
01027315 7941
05ea2a05
TT
7942done
7943
7944for ac_func in fork vfork
7945do :
7946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7948if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7949 cat >>confdefs.h <<_ACEOF
7950#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7951_ACEOF
01027315 7952
01027315 7953fi
05ea2a05 7954done
01027315 7955
05ea2a05
TT
7956if test "x$ac_cv_func_fork" = xyes; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7958$as_echo_n "checking for working fork... " >&6; }
7959if ${ac_cv_func_fork_works+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961else
7962 if test "$cross_compiling" = yes; then :
7963 ac_cv_func_fork_works=cross
7964else
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h. */
7967$ac_includes_default
01027315
TT
7968int
7969main ()
7970{
05ea2a05
TT
7971
7972 /* By Ruediger Kuhlmann. */
7973 return fork () < 0;
7974
01027315
TT
7975 ;
7976 return 0;
7977}
7978_ACEOF
05ea2a05
TT
7979if ac_fn_c_try_run "$LINENO"; then :
7980 ac_cv_func_fork_works=yes
7981else
7982 ac_cv_func_fork_works=no
01027315 7983fi
05ea2a05
TT
7984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7985 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
7986fi
7987
05ea2a05
TT
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7990$as_echo "$ac_cv_func_fork_works" >&6; }
01027315 7991
05ea2a05
TT
7992else
7993 ac_cv_func_fork_works=$ac_cv_func_fork
7994fi
7995if test "x$ac_cv_func_fork_works" = xcross; then
7996 case $host in
7997 *-*-amigaos* | *-*-msdosdjgpp*)
7998 # Override, as these systems have only a dummy fork() stub
7999 ac_cv_func_fork_works=no
8000 ;;
8001 *)
8002 ac_cv_func_fork_works=yes
8003 ;;
8004 esac
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8006$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8007fi
8008ac_cv_func_vfork_works=$ac_cv_func_vfork
8009if test "x$ac_cv_func_vfork" = xyes; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8011$as_echo_n "checking for working vfork... " >&6; }
8012if ${ac_cv_func_vfork_works+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014else
8015 if test "$cross_compiling" = yes; then :
8016 ac_cv_func_vfork_works=cross
8017else
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h. */
8020/* Thanks to Paul Eggert for this test. */
8021$ac_includes_default
8022#include <sys/wait.h>
8023#ifdef HAVE_VFORK_H
8024# include <vfork.h>
8025#endif
8026/* On some sparc systems, changes by the child to local and incoming
8027 argument registers are propagated back to the parent. The compiler
8028 is told about this with #include <vfork.h>, but some compilers
8029 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8030 static variable whose address is put into a register that is
8031 clobbered by the vfork. */
8032static void
8033#ifdef __cplusplus
8034sparc_address_test (int arg)
8035# else
8036sparc_address_test (arg) int arg;
8037#endif
8038{
8039 static pid_t child;
8040 if (!child) {
8041 child = vfork ();
8042 if (child < 0) {
8043 perror ("vfork");
8044 _exit(2);
8045 }
8046 if (!child) {
8047 arg = getpid();
8048 write(-1, "", 0);
8049 _exit (arg);
8050 }
8051 }
8052}
01027315 8053
05ea2a05
TT
8054int
8055main ()
8056{
8057 pid_t parent = getpid ();
8058 pid_t child;
8059
8060 sparc_address_test (0);
8061
8062 child = vfork ();
8063
8064 if (child == 0) {
8065 /* Here is another test for sparc vfork register problems. This
8066 test uses lots of local variables, at least as many local
8067 variables as main has allocated so far including compiler
8068 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8069 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8070 reuse the register of parent for one of the local variables,
8071 since it will think that parent can't possibly be used any more
8072 in this routine. Assigning to the local variable will thus
8073 munge parent in the parent process. */
8074 pid_t
8075 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8076 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8077 /* Convince the compiler that p..p7 are live; otherwise, it might
8078 use the same hardware register for all 8 local variables. */
8079 if (p != p1 || p != p2 || p != p3 || p != p4
8080 || p != p5 || p != p6 || p != p7)
8081 _exit(1);
8082
8083 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8084 from child file descriptors. If the child closes a descriptor
8085 before it execs or exits, this munges the parent's descriptor
8086 as well. Test for this by closing stdout in the child. */
8087 _exit(close(fileno(stdout)) != 0);
8088 } else {
8089 int status;
8090 struct stat st;
8091
8092 while (wait(&status) != child)
8093 ;
8094 return (
8095 /* Was there some problem with vforking? */
8096 child < 0
8097
8098 /* Did the child fail? (This shouldn't happen.) */
8099 || status
8100
8101 /* Did the vfork/compiler bug occur? */
8102 || parent != getpid()
8103
8104 /* Did the file descriptor bug occur? */
8105 || fstat(fileno(stdout), &st) != 0
8106 );
8107 }
8108}
8109_ACEOF
8110if ac_fn_c_try_run "$LINENO"; then :
8111 ac_cv_func_vfork_works=yes
8112else
8113 ac_cv_func_vfork_works=no
8114fi
8115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8116 conftest.$ac_objext conftest.beam conftest.$ac_ext
8117fi
01027315 8118
05ea2a05
TT
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8121$as_echo "$ac_cv_func_vfork_works" >&6; }
01027315 8122
05ea2a05
TT
8123fi;
8124if test "x$ac_cv_func_fork_works" = xcross; then
8125 ac_cv_func_vfork_works=$ac_cv_func_vfork
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8127$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8128fi
01027315 8129
05ea2a05 8130if test "x$ac_cv_func_vfork_works" = xyes; then
01027315 8131
05ea2a05 8132$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01027315 8133
05ea2a05 8134else
01027315 8135
05ea2a05 8136$as_echo "#define vfork fork" >>confdefs.h
01027315 8137
05ea2a05
TT
8138fi
8139if test "x$ac_cv_func_fork_works" = xyes; then
01027315 8140
05ea2a05 8141$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01027315 8142
05ea2a05 8143fi
01027315 8144
8ae8e197 8145 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
05ea2a05 8146 ptrace64 sbrk setns sigaltstack sigprocmask \
f4931779 8147 setpgid setpgrp getrusage getauxval sigtimedwait
05ea2a05
TT
8148do :
8149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8150ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8151if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8152 cat >>confdefs.h <<_ACEOF
8153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
01027315 8154_ACEOF
05ea2a05 8155
01027315 8156fi
05ea2a05 8157done
01027315 8158
01027315 8159
0b03c6f0
TT
8160 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
8161 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
8162 # only in linux/personality.h.
8163 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8164"
8165if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8166 ac_have_decl=1
8167else
8168 ac_have_decl=0
8169fi
8170
8171cat >>confdefs.h <<_ACEOF
8172#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8173_ACEOF
8174
8175
05ea2a05
TT
8176 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8177if test "x$ac_cv_have_decl_strstr" = xyes; then :
8178 ac_have_decl=1
01027315 8179else
05ea2a05 8180 ac_have_decl=0
01027315
TT
8181fi
8182
05ea2a05
TT
8183cat >>confdefs.h <<_ACEOF
8184#define HAVE_DECL_STRSTR $ac_have_decl
8185_ACEOF
01027315 8186
05ea2a05
TT
8187
8188 # ----------------------- #
8189 # Checks for structures. #
8190 # ----------------------- #
8191
8192 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8193if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8194
8195cat >>confdefs.h <<_ACEOF
8196#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8197_ACEOF
8198
8199
8200fi
8201ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8202if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8203
8204cat >>confdefs.h <<_ACEOF
8205#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8206_ACEOF
8207
8208
8209fi
8210
8211
e911c666
JB
8212 # On FreeBSD we need libutil for the kinfo_get* functions. On
8213 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8214 # Figure out which one to use.
05ea2a05
TT
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8216$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8217if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315
TT
8218 $as_echo_n "(cached) " >&6
8219else
05ea2a05
TT
8220 ac_func_search_save_LIBS=$LIBS
8221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 8222/* end confdefs.h. */
01027315 8223
05ea2a05
TT
8224/* Override any GCC internal prototype to avoid an error.
8225 Use char because int might match the return type of a GCC
8226 builtin and then its argument prototype would still apply. */
8227#ifdef __cplusplus
8228extern "C"
8229#endif
8230char kinfo_getfile ();
8231int
8232main ()
8233{
8234return kinfo_getfile ();
8235 ;
8236 return 0;
8237}
01027315 8238_ACEOF
05ea2a05
TT
8239for ac_lib in '' util util-freebsd; do
8240 if test -z "$ac_lib"; then
8241 ac_res="none required"
8242 else
8243 ac_res=-l$ac_lib
8244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8245 fi
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 ac_cv_search_kinfo_getfile=$ac_res
01027315 8248fi
05ea2a05
TT
8249rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext
8251 if ${ac_cv_search_kinfo_getfile+:} false; then :
8252 break
8253fi
8254done
8255if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315 8256
05ea2a05
TT
8257else
8258 ac_cv_search_kinfo_getfile=no
8259fi
8260rm conftest.$ac_ext
8261LIBS=$ac_func_search_save_LIBS
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8264$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8265ac_res=$ac_cv_search_kinfo_getfile
8266if test "$ac_res" != no; then :
8267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8268
e911c666
JB
8269fi
8270
8271
8272 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
8273 for ac_func in kinfo_getfile
8274do :
8275 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
8276if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
8277 cat >>confdefs.h <<_ACEOF
8278#define HAVE_KINFO_GETFILE 1
8279_ACEOF
01027315
TT
8280
8281fi
e911c666 8282done
01027315 8283
01027315 8284
261b0748
LM
8285 # ----------------------- #
8286 # Check for threading. #
8287 # ----------------------- #
8288
8289 # Check whether --enable-threading was given.
8290if test "${enable_threading+set}" = set; then :
8291 enableval=$enable_threading; case "$enableval" in
8292 yes) want_threading=yes ;;
8293 no) want_threading=no ;;
8294 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
8295 esac
8296else
8297 want_threading=yes
8298fi
8299
8300
05ea2a05
TT
8301 # Check for std::thread. This does not work on some platforms, like
8302 # mingw and DJGPP.
8303 ac_ext=cpp
8304ac_cpp='$CXXCPP $CPPFLAGS'
8305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
01027315 8308
01027315 8309
01027315 8310
01027315 8311
05ea2a05
TT
8312
8313ac_ext=c
8314ac_cpp='$CPP $CPPFLAGS'
8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317ac_compiler_gnu=$ac_cv_c_compiler_gnu
8318
8319ax_pthread_ok=no
8320
8321# We used to check for pthread.h first, but this fails if pthread.h
8322# requires special compiler flags (e.g. on Tru64 or Sequent).
8323# It gets checked for in the link test anyway.
8324
8325# First of all, check if the user has set any of the PTHREAD_LIBS,
8326# etcetera environment variables, and if threads linking works using
8327# them:
8328if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8329 ax_pthread_save_CC="$CC"
8330 ax_pthread_save_CFLAGS="$CFLAGS"
8331 ax_pthread_save_LIBS="$LIBS"
8332 if test "x$PTHREAD_CC" != "x"; then :
8333 CC="$PTHREAD_CC"
8334fi
8335 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8336 LIBS="$PTHREAD_LIBS $LIBS"
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8338$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340/* end confdefs.h. */
8341
8342/* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8345#ifdef __cplusplus
8346extern "C"
8347#endif
8348char pthread_join ();
8349int
8350main ()
8351{
8352return pthread_join ();
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_link "$LINENO"; then :
8358 ax_pthread_ok=yes
8359fi
8360rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8363$as_echo "$ax_pthread_ok" >&6; }
8364 if test "x$ax_pthread_ok" = "xno"; then
8365 PTHREAD_LIBS=""
8366 PTHREAD_CFLAGS=""
8367 fi
8368 CC="$ax_pthread_save_CC"
8369 CFLAGS="$ax_pthread_save_CFLAGS"
8370 LIBS="$ax_pthread_save_LIBS"
8371fi
8372
8373# We must check for the threads library under a number of different
8374# names; the ordering is very important because some systems
8375# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8376# libraries is broken (non-POSIX).
8377
8378# Create a list of thread flags to try. Items starting with a "-" are
8379# C compiler flags, and other items are library names, except for "none"
8380# which indicates that we try without any flags at all, and "pthread-config"
8381# which is a program returning the flags for the Pth emulation library.
8382
8383ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8384
8385# The ordering *is* (sometimes) important. Some notes on the
8386# individual items follow:
8387
8388# pthreads: AIX (must check this before -lpthread)
8389# none: in case threads are in libc; should be tried before -Kthread and
8390# other compiler flags to prevent continual compiler warnings
8391# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8392# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8393# (Note: HP C rejects this with "bad form for `-t' option")
8394# -pthreads: Solaris/gcc (Note: HP C also rejects)
8395# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8396# doesn't hurt to check since this sometimes defines pthreads and
8397# -D_REENTRANT too), HP C (must be checked before -lpthread, which
8398# is present but should not be used directly; and before -mthreads,
8399# because the compiler interprets this as "-mt" + "-hreads")
8400# -mthreads: Mingw32/gcc, Lynx/gcc
8401# pthread: Linux, etcetera
8402# --thread-safe: KAI C++
8403# pthread-config: use pthread-config program (for GNU Pth library)
8404
8405case $host_os in
8406
8407 freebsd*)
8408
8409 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8410 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8411
8412 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8413 ;;
8414
8415 hpux*)
8416
8417 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8418 # multi-threading and also sets -lpthread."
8419
8420 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8421 ;;
8422
8423 openedition*)
8424
8425 # IBM z/OS requires a feature-test macro to be defined in order to
8426 # enable POSIX threads at all, so give the user a hint if this is
8427 # not set. (We don't define these ourselves, as they can affect
8428 # other portions of the system API in unpredictable ways.)
8429
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h. */
8432
8433# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8434 AX_PTHREAD_ZOS_MISSING
8435# endif
8436
8437_ACEOF
8438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8439 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8441$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8442fi
8443rm -f conftest*
8444
8445 ;;
8446
8447 solaris*)
8448
8449 # On Solaris (at least, for some versions), libc contains stubbed
8450 # (non-functional) versions of the pthreads routines, so link-based
8451 # tests will erroneously succeed. (N.B.: The stubs are missing
8452 # pthread_cleanup_push, or rather a function called by this macro,
8453 # so we could check for that, but who knows whether they'll stub
8454 # that too in a future libc.) So we'll check first for the
8455 # standard Solaris way of linking pthreads (-mt -lpthread).
8456
8457 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8458 ;;
8459esac
8460
8461# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8462
8463if test "x$GCC" = "xyes"; then :
8464 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8465fi
8466
8467# The presence of a feature test macro requesting re-entrant function
8468# definitions is, on some systems, a strong hint that pthreads support is
8469# correctly enabled
8470
8471case $host_os in
8472 darwin* | hpux* | linux* | osf* | solaris*)
8473 ax_pthread_check_macro="_REENTRANT"
8474 ;;
8475
8476 aix*)
8477 ax_pthread_check_macro="_THREAD_SAFE"
8478 ;;
8479
8480 *)
8481 ax_pthread_check_macro="--"
8482 ;;
8483esac
8484if test "x$ax_pthread_check_macro" = "x--"; then :
8485 ax_pthread_check_cond=0
8486else
8487 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8488fi
8489
8490# Are we compiling with Clang?
8491
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8493$as_echo_n "checking whether $CC is Clang... " >&6; }
8494if ${ax_cv_PTHREAD_CLANG+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496else
8497 ax_cv_PTHREAD_CLANG=no
8498 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8499 if test "x$GCC" = "xyes"; then
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h. */
8502/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8503# if defined(__clang__) && defined(__llvm__)
8504 AX_PTHREAD_CC_IS_CLANG
8505# endif
8506
8507_ACEOF
8508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8510 ax_cv_PTHREAD_CLANG=yes
8511fi
8512rm -f conftest*
8513
8514 fi
8515
8516fi
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8518$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8519ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8520
8521ax_pthread_clang_warning=no
8522
8523# Clang needs special handling, because older versions handle the -pthread
8524# option in a rather... idiosyncratic way
8525
8526if test "x$ax_pthread_clang" = "xyes"; then
8527
8528 # Clang takes -pthread; it has never supported any other flag
8529
8530 # (Note 1: This will need to be revisited if a system that Clang
8531 # supports has POSIX threads in a separate library. This tends not
8532 # to be the way of modern systems, but it's conceivable.)
8533
8534 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8535 # to get POSIX threads support; the API is always present and
8536 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8537 # -pthread does define _REENTRANT, and while the Darwin headers
8538 # ignore this macro, third-party headers might not.)
01027315
TT
8539
8540 PTHREAD_CFLAGS="-pthread"
8541 PTHREAD_LIBS=
8542
8543 ax_pthread_ok=yes
8544
8545 # However, older versions of Clang make a point of warning the user
8546 # that, in an invocation where only linking and no compilation is
8547 # taking place, the -pthread option has no effect ("argument unused
8548 # during compilation"). They expect -pthread to be passed in only
8549 # when source code is being compiled.
8550 #
8551 # Problem is, this is at odds with the way Automake and most other
8552 # C build frameworks function, which is that the same flags used in
8553 # compilation (CFLAGS) are also used in linking. Many systems
8554 # supported by AX_PTHREAD require exactly this for POSIX threads
8555 # support, and in fact it is often not straightforward to specify a
8556 # flag that is used only in the compilation phase and not in
8557 # linking. Such a scenario is extremely rare in practice.
8558 #
8559 # Even though use of the -pthread flag in linking would only print
8560 # a warning, this can be a nuisance for well-run software projects
8561 # that build with -Werror. So if the active version of Clang has
8562 # this misfeature, we search for an option to squash it.
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8565$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8566if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568else
8569 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8570 # Create an alternate version of $ac_link that compiles and
8571 # links in two steps (.c -> .o, .o -> exe) instead of one
8572 # (.c -> exe), because the warning occurs only in the second
8573 # step
8574 ax_pthread_save_ac_link="$ac_link"
8575 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8576 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8577 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8578 ax_pthread_save_CFLAGS="$CFLAGS"
8579 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8580 if test "x$ax_pthread_try" = "xunknown"; then :
8581 break
8582fi
8583 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8584 ac_link="$ax_pthread_save_ac_link"
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h. */
8587int main(void){return 0;}
8588_ACEOF
8589if ac_fn_c_try_link "$LINENO"; then :
8590 ac_link="$ax_pthread_2step_ac_link"
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592/* end confdefs.h. */
8593int main(void){return 0;}
8594_ACEOF
8595if ac_fn_c_try_link "$LINENO"; then :
8596 break
8597fi
8598rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600
8601fi
8602rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 done
8605 ac_link="$ax_pthread_save_ac_link"
8606 CFLAGS="$ax_pthread_save_CFLAGS"
8607 if test "x$ax_pthread_try" = "x"; then :
8608 ax_pthread_try=no
8609fi
8610 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8611
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8614$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8615
8616 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8617 no | unknown) ;;
8618 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8619 esac
8620
8621fi # $ax_pthread_clang = yes
8622
8623if test "x$ax_pthread_ok" = "xno"; then
8624for ax_pthread_try_flag in $ax_pthread_flags; do
8625
8626 case $ax_pthread_try_flag in
8627 none)
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8629$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8630 ;;
8631
8632 -mt,pthread)
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8634$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8635 PTHREAD_CFLAGS="-mt"
8636 PTHREAD_LIBS="-lpthread"
8637 ;;
8638
8639 -*)
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8641$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8642 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8643 ;;
8644
8645 pthread-config)
8646 # Extract the first word of "pthread-config", so it can be a program name with args.
8647set dummy pthread-config; ac_word=$2
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649$as_echo_n "checking for $ac_word... " >&6; }
8650if ${ac_cv_prog_ax_pthread_config+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652else
8653 if test -n "$ax_pthread_config"; then
8654 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8655else
8656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657for as_dir in $PATH
8658do
8659 IFS=$as_save_IFS
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663 ac_cv_prog_ax_pthread_config="yes"
8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 break 2
8666 fi
05ea2a05
TT
8667done
8668 done
8669IFS=$as_save_IFS
8670
8671 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8672fi
8673fi
8674ax_pthread_config=$ac_cv_prog_ax_pthread_config
8675if test -n "$ax_pthread_config"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8677$as_echo "$ax_pthread_config" >&6; }
8678else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
8681fi
8682
8683
8684 if test "x$ax_pthread_config" = "xno"; then :
8685 continue
8686fi
8687 PTHREAD_CFLAGS="`pthread-config --cflags`"
8688 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8689 ;;
8690
8691 *)
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8693$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8694 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8695 ;;
8696 esac
8697
8698 ax_pthread_save_CFLAGS="$CFLAGS"
8699 ax_pthread_save_LIBS="$LIBS"
8700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8701 LIBS="$PTHREAD_LIBS $LIBS"
8702
8703 # Check for various functions. We must include pthread.h,
8704 # since some functions may be macros. (On the Sequent, we
8705 # need a special flag -Kthread to make this header compile.)
8706 # We check for pthread_join because it is in -lpthread on IRIX
8707 # while pthread_create is in libc. We check for pthread_attr_init
8708 # due to DEC craziness with -lpthreads. We check for
8709 # pthread_cleanup_push because it is one of the few pthread
8710 # functions on Solaris that doesn't have a non-functional libc stub.
8711 # We try pthread_create on general principles.
8712
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h. */
8715#include <pthread.h>
8716# if $ax_pthread_check_cond
8717# error "$ax_pthread_check_macro must be defined"
8718# endif
8719 static void routine(void *a) { a = 0; }
8720 static void *start_routine(void *a) { return a; }
8721int
8722main ()
8723{
8724pthread_t th; pthread_attr_t attr;
8725 pthread_create(&th, 0, start_routine, 0);
8726 pthread_join(th, 0);
8727 pthread_attr_init(&attr);
8728 pthread_cleanup_push(routine, 0);
8729 pthread_cleanup_pop(0) /* ; */
8730 ;
8731 return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"; then :
8735 ax_pthread_ok=yes
8736fi
8737rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739
8740 CFLAGS="$ax_pthread_save_CFLAGS"
8741 LIBS="$ax_pthread_save_LIBS"
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8744$as_echo "$ax_pthread_ok" >&6; }
8745 if test "x$ax_pthread_ok" = "xyes"; then :
8746 break
8747fi
8748
8749 PTHREAD_LIBS=""
8750 PTHREAD_CFLAGS=""
8751done
8752fi
8753
8754# Various other checks:
8755if test "x$ax_pthread_ok" = "xyes"; then
8756 ax_pthread_save_CFLAGS="$CFLAGS"
8757 ax_pthread_save_LIBS="$LIBS"
8758 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8759 LIBS="$PTHREAD_LIBS $LIBS"
8760
8761 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8763$as_echo_n "checking for joinable pthread attribute... " >&6; }
8764if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766else
8767 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8768 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h. */
8771#include <pthread.h>
8772int
8773main ()
8774{
8775int attr = $ax_pthread_attr; return attr /* ; */
8776 ;
8777 return 0;
8778}
8779_ACEOF
8780if ac_fn_c_try_link "$LINENO"; then :
8781 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8782fi
8783rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 done
8786
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8789$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8790 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8791 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8792 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8793
8794cat >>confdefs.h <<_ACEOF
8795#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8796_ACEOF
8797
8798 ax_pthread_joinable_attr_defined=yes
8799
8800fi
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8803$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8804if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806else
8807 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8808 case $host_os in
8809 solaris*)
8810 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8811 ;;
8812 esac
8813
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8816$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8817 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8818 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8819 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8820 ax_pthread_special_flags_added=yes
8821fi
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8824$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8825if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827else
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h. */
8830#include <pthread.h>
8831int
8832main ()
8833{
8834int i = PTHREAD_PRIO_INHERIT;
8835 ;
8836 return 0;
8837}
8838_ACEOF
8839if ac_fn_c_try_link "$LINENO"; then :
8840 ax_cv_PTHREAD_PRIO_INHERIT=yes
8841else
8842 ax_cv_PTHREAD_PRIO_INHERIT=no
8843fi
8844rm -f core conftest.err conftest.$ac_objext \
8845 conftest$ac_exeext conftest.$ac_ext
8846
8847fi
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8849$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8850 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8851 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8852
8853$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8854
8855 ax_pthread_prio_inherit_defined=yes
8856
8857fi
8858
8859 CFLAGS="$ax_pthread_save_CFLAGS"
8860 LIBS="$ax_pthread_save_LIBS"
8861
8862 # More AIX lossage: compile with *_r variant
8863 if test "x$GCC" != "xyes"; then
8864 case $host_os in
8865 aix*)
8866 case "x/$CC" in #(
8867 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8868 #handle absolute path differently from PATH based program lookup
8869 case "x$CC" in #(
8870 x/*) :
8871 if as_fn_executable_p ${CC}_r; then :
8872 PTHREAD_CC="${CC}_r"
8873fi ;; #(
8874 *) :
8875 for ac_prog in ${CC}_r
8876do
8877 # Extract the first word of "$ac_prog", so it can be a program name with args.
8878set dummy $ac_prog; ac_word=$2
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883else
8884 if test -n "$PTHREAD_CC"; then
8885 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_prog_PTHREAD_CC="$ac_prog"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898done
8899 done
8900IFS=$as_save_IFS
8901
8902fi
8903fi
8904PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8905if test -n "$PTHREAD_CC"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8907$as_echo "$PTHREAD_CC" >&6; }
8908else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912
8913
8914 test -n "$PTHREAD_CC" && break
8915done
8916test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8917 ;;
8918esac ;; #(
8919 *) :
8920 ;;
8921esac
8922 ;;
8923 esac
8924 fi
8925fi
8926
8927test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8928
8929
8930
8931
8932
8933# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8934if test "x$ax_pthread_ok" = "xyes"; then
8935 threads=yes
8936 :
8937else
8938 ax_pthread_ok=no
8939 threads=no
8940fi
8941ac_ext=cpp
8942ac_cpp='$CXXCPP $CPPFLAGS'
8943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8946
8947
c560a5fb
TT
8948 save_LIBS="$LIBS"
8949 LIBS="$PTHREAD_LIBS $LIBS"
8950 save_CXXFLAGS="$CXXFLAGS"
8951 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
05ea2a05
TT
8953$as_echo_n "checking for std::thread... " >&6; }
8954if ${gdb_cv_cxx_std_thread+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956else
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h. */
8959#include <thread>
c560a5fb 8960 void callback() { }
05ea2a05
TT
8961int
8962main ()
8963{
8964std::thread t(callback);
8965 ;
8966 return 0;
8967}
8968_ACEOF
8969if ac_fn_cxx_try_compile "$LINENO"; then :
8970 gdb_cv_cxx_std_thread=yes
8971else
8972 gdb_cv_cxx_std_thread=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8977$as_echo "$gdb_cv_cxx_std_thread" >&6; }
8978
c560a5fb 8979 if test "$threads" = "yes"; then
05ea2a05
TT
8980 # This check must be here, while LIBS includes any necessary
8981 # threading library.
8982 for ac_func in pthread_sigmask pthread_setname_np
8983do :
8984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8985ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8986if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8987 cat >>confdefs.h <<_ACEOF
8988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8989_ACEOF
8990
8991fi
8992done
8993
05ea2a05 8994 fi
c560a5fb
TT
8995 LIBS="$save_LIBS"
8996 CXXFLAGS="$save_CXXFLAGS"
261b0748
LM
8997
8998 if test "$want_threading" = "yes"; then
8999 if test "$gdb_cv_cxx_std_thread" = "yes"; then
05ea2a05
TT
9000
9001$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9002
261b0748 9003 fi
05ea2a05
TT
9004 fi
9005 ac_ext=c
9006ac_cpp='$CPP $CPPFLAGS'
9007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010
9011
3684d331 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
05ea2a05
TT
9013$as_echo_n "checking for sigsetjmp... " >&6; }
9014if ${gdb_cv_func_sigsetjmp+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016else
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
b9442ec1 9019#include <setjmp.h>
05ea2a05
TT
9020int
9021main ()
9022{
b9442ec1
SM
9023sigjmp_buf env;
9024 while (! sigsetjmp (env, 1))
9025 siglongjmp (env, 1);
9026
05ea2a05
TT
9027 ;
9028 return 0;
9029}
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"; then :
9032 gdb_cv_func_sigsetjmp=yes
9033else
9034 gdb_cv_func_sigsetjmp=no
b9442ec1 9035
05ea2a05
TT
9036fi
9037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9442ec1 9038
05ea2a05
TT
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9041$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
3684d331 9042 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
05ea2a05
TT
9043
9044$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9045
3684d331 9046 fi
05ea2a05
TT
9047
9048
9049# Check whether --with-intel_pt was given.
9050if test "${with_intel_pt+set}" = set; then :
9051 withval=$with_intel_pt;
9052else
9053 with_intel_pt=auto
9054fi
9055
3684d331 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
05ea2a05 9057$as_echo_n "checking whether to use intel pt... " >&6; }
3684d331 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
05ea2a05
TT
9059$as_echo "$with_intel_pt" >&6; }
9060
3684d331
PA
9061 if test "${with_intel_pt}" = no; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
05ea2a05 9063$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
3684d331
PA
9064 HAVE_LIBIPT=no
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
9067/* end confdefs.h. */
9068
3684d331
PA
9069 #include <linux/perf_event.h>
9070 #ifndef PERF_ATTR_SIZE_VER5
9071 # error
9072 #endif
05ea2a05
TT
9073
9074_ACEOF
9075if ac_fn_c_try_cpp "$LINENO"; then :
9076 perf_event=yes
9077else
9078 perf_event=no
9079fi
9080rm -f conftest.err conftest.i conftest.$ac_ext
3684d331
PA
9081 if test "$perf_event" != yes; then
9082 if test "$with_intel_pt" = yes; then
9083 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
05ea2a05 9086$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
3684d331 9087 fi
05ea2a05 9088 fi
05ea2a05
TT
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 use_additional=yes
9099
9100 acl_save_prefix="$prefix"
9101 prefix="$acl_final_prefix"
9102 acl_save_exec_prefix="$exec_prefix"
9103 exec_prefix="$acl_final_exec_prefix"
9104
9105 eval additional_includedir=\"$includedir\"
9106 eval additional_libdir=\"$libdir\"
9107
9108 exec_prefix="$acl_save_exec_prefix"
9109 prefix="$acl_save_prefix"
9110
9111
9112# Check whether --with-libipt-prefix was given.
9113if test "${with_libipt_prefix+set}" = set; then :
9114 withval=$with_libipt_prefix;
9115 if test "X$withval" = "Xno"; then
9116 use_additional=no
9117 else
9118 if test "X$withval" = "X"; then
9119
9120 acl_save_prefix="$prefix"
9121 prefix="$acl_final_prefix"
9122 acl_save_exec_prefix="$exec_prefix"
9123 exec_prefix="$acl_final_exec_prefix"
9124
9125 eval additional_includedir=\"$includedir\"
9126 eval additional_libdir=\"$libdir\"
9127
9128 exec_prefix="$acl_save_exec_prefix"
9129 prefix="$acl_save_prefix"
9130
9131 else
9132 additional_includedir="$withval/include"
9133 additional_libdir="$withval/lib"
9134 fi
9135 fi
9136
9137fi
9138
9f1528a1
AB
9139
9140# Check whether --with-libipt-type was given.
9141if test "${with_libipt_type+set}" = set; then :
9142 withval=$with_libipt_type; with_libipt_type=$withval
9143else
9144 with_libipt_type=auto
9145fi
9146
9147 lib_type=`eval echo \$with_libipt_type`
9148
05ea2a05
TT
9149 LIBIPT=
9150 LTLIBIPT=
9151 INCIPT=
9152 rpathdirs=
9153 ltrpathdirs=
9154 names_already_handled=
9155 names_next_round='ipt '
9156 while test -n "$names_next_round"; do
9157 names_this_round="$names_next_round"
9158 names_next_round=
9159 for name in $names_this_round; do
9160 already_handled=
9161 for n in $names_already_handled; do
9162 if test "$n" = "$name"; then
9163 already_handled=yes
9164 break
9165 fi
9166 done
9167 if test -z "$already_handled"; then
9168 names_already_handled="$names_already_handled $name"
9169 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9170 eval value=\"\$HAVE_LIB$uppername\"
9171 if test -n "$value"; then
9172 if test "$value" = yes; then
9173 eval value=\"\$LIB$uppername\"
9174 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9175 eval value=\"\$LTLIB$uppername\"
9176 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9177 else
9178 :
9179 fi
9180 else
9181 found_dir=
9182 found_la=
9183 found_so=
9184 found_a=
9185 if test $use_additional = yes; then
9f1528a1 9186 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9187 found_dir="$additional_libdir"
9188 found_so="$additional_libdir/lib$name.$shlibext"
9189 if test -f "$additional_libdir/lib$name.la"; then
9190 found_la="$additional_libdir/lib$name.la"
9191 fi
9f1528a1 9192 elif test x$lib_type != xshared; then
05ea2a05
TT
9193 if test -f "$additional_libdir/lib$name.$libext"; then
9194 found_dir="$additional_libdir"
9195 found_a="$additional_libdir/lib$name.$libext"
9196 if test -f "$additional_libdir/lib$name.la"; then
9197 found_la="$additional_libdir/lib$name.la"
9198 fi
9199 fi
9200 fi
9201 fi
9202 if test "X$found_dir" = "X"; then
9203 for x in $LDFLAGS $LTLIBIPT; do
9204
9205 acl_save_prefix="$prefix"
9206 prefix="$acl_final_prefix"
9207 acl_save_exec_prefix="$exec_prefix"
9208 exec_prefix="$acl_final_exec_prefix"
9209 eval x=\"$x\"
9210 exec_prefix="$acl_save_exec_prefix"
9211 prefix="$acl_save_prefix"
9212
9213 case "$x" in
9214 -L*)
9215 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 9216 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9217 found_dir="$dir"
9218 found_so="$dir/lib$name.$shlibext"
9219 if test -f "$dir/lib$name.la"; then
9220 found_la="$dir/lib$name.la"
9221 fi
9f1528a1 9222 elif test x$lib_type != xshared; then
05ea2a05
TT
9223 if test -f "$dir/lib$name.$libext"; then
9224 found_dir="$dir"
9225 found_a="$dir/lib$name.$libext"
9226 if test -f "$dir/lib$name.la"; then
9227 found_la="$dir/lib$name.la"
9228 fi
9229 fi
9230 fi
9231 ;;
9232 esac
9233 if test "X$found_dir" != "X"; then
9234 break
9235 fi
9236 done
9237 fi
9238 if test "X$found_dir" != "X"; then
9239 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9240 if test "X$found_so" != "X"; then
9241 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9242 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9243 else
9244 haveit=
9245 for x in $ltrpathdirs; do
9246 if test "X$x" = "X$found_dir"; then
9247 haveit=yes
9248 break
9249 fi
9250 done
9251 if test -z "$haveit"; then
9252 ltrpathdirs="$ltrpathdirs $found_dir"
9253 fi
9254 if test "$hardcode_direct" = yes; then
9255 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9256 else
9257 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9258 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9259 haveit=
9260 for x in $rpathdirs; do
9261 if test "X$x" = "X$found_dir"; then
9262 haveit=yes
9263 break
9264 fi
9265 done
9266 if test -z "$haveit"; then
9267 rpathdirs="$rpathdirs $found_dir"
9268 fi
9269 else
9270 haveit=
9271 for x in $LDFLAGS $LIBIPT; do
9272
9273 acl_save_prefix="$prefix"
9274 prefix="$acl_final_prefix"
9275 acl_save_exec_prefix="$exec_prefix"
9276 exec_prefix="$acl_final_exec_prefix"
9277 eval x=\"$x\"
9278 exec_prefix="$acl_save_exec_prefix"
9279 prefix="$acl_save_prefix"
9280
9281 if test "X$x" = "X-L$found_dir"; then
9282 haveit=yes
9283 break
9284 fi
9285 done
9286 if test -z "$haveit"; then
9287 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9288 fi
9289 if test "$hardcode_minus_L" != no; then
9290 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9291 else
9292 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9293 fi
9294 fi
9295 fi
9296 fi
9297 else
9298 if test "X$found_a" != "X"; then
9299 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9300 else
9301 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9302 fi
9303 fi
9304 additional_includedir=
9305 case "$found_dir" in
9306 */lib | */lib/)
9307 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9308 additional_includedir="$basedir/include"
9309 ;;
9310 esac
9311 if test "X$additional_includedir" != "X"; then
9312 if test "X$additional_includedir" != "X/usr/include"; then
9313 haveit=
9314 if test "X$additional_includedir" = "X/usr/local/include"; then
9315 if test -n "$GCC"; then
9316 case $host_os in
9317 linux*) haveit=yes;;
9318 esac
9319 fi
9320 fi
9321 if test -z "$haveit"; then
9322 for x in $CPPFLAGS $INCIPT; do
9323
9324 acl_save_prefix="$prefix"
9325 prefix="$acl_final_prefix"
9326 acl_save_exec_prefix="$exec_prefix"
9327 exec_prefix="$acl_final_exec_prefix"
9328 eval x=\"$x\"
9329 exec_prefix="$acl_save_exec_prefix"
9330 prefix="$acl_save_prefix"
9331
9332 if test "X$x" = "X-I$additional_includedir"; then
9333 haveit=yes
9334 break
9335 fi
9336 done
9337 if test -z "$haveit"; then
9338 if test -d "$additional_includedir"; then
9339 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9340 fi
9341 fi
9342 fi
9343 fi
9344 fi
9345 if test -n "$found_la"; then
9346 save_libdir="$libdir"
9347 case "$found_la" in
9348 */* | *\\*) . "$found_la" ;;
9349 *) . "./$found_la" ;;
9350 esac
9351 libdir="$save_libdir"
9352 for dep in $dependency_libs; do
9353 case "$dep" in
9354 -L*)
9355 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9356 if test "X$additional_libdir" != "X/usr/lib"; then
9357 haveit=
9358 if test "X$additional_libdir" = "X/usr/local/lib"; then
9359 if test -n "$GCC"; then
9360 case $host_os in
9361 linux*) haveit=yes;;
9362 esac
9363 fi
9364 fi
9365 if test -z "$haveit"; then
9366 haveit=
9367 for x in $LDFLAGS $LIBIPT; do
9368
9369 acl_save_prefix="$prefix"
9370 prefix="$acl_final_prefix"
9371 acl_save_exec_prefix="$exec_prefix"
9372 exec_prefix="$acl_final_exec_prefix"
9373 eval x=\"$x\"
9374 exec_prefix="$acl_save_exec_prefix"
9375 prefix="$acl_save_prefix"
9376
9377 if test "X$x" = "X-L$additional_libdir"; then
9378 haveit=yes
9379 break
9380 fi
9381 done
9382 if test -z "$haveit"; then
9383 if test -d "$additional_libdir"; then
9384 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9385 fi
9386 fi
9387 haveit=
9388 for x in $LDFLAGS $LTLIBIPT; do
9389
9390 acl_save_prefix="$prefix"
9391 prefix="$acl_final_prefix"
9392 acl_save_exec_prefix="$exec_prefix"
9393 exec_prefix="$acl_final_exec_prefix"
9394 eval x=\"$x\"
9395 exec_prefix="$acl_save_exec_prefix"
9396 prefix="$acl_save_prefix"
9397
9398 if test "X$x" = "X-L$additional_libdir"; then
9399 haveit=yes
9400 break
9401 fi
9402 done
9403 if test -z "$haveit"; then
9404 if test -d "$additional_libdir"; then
9405 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
9406 fi
9407 fi
9408 fi
9409 fi
9410 ;;
9411 -R*)
9412 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9413 if test "$enable_rpath" != no; then
9414 haveit=
9415 for x in $rpathdirs; do
9416 if test "X$x" = "X$dir"; then
9417 haveit=yes
9418 break
9419 fi
9420 done
9421 if test -z "$haveit"; then
9422 rpathdirs="$rpathdirs $dir"
9423 fi
9424 haveit=
9425 for x in $ltrpathdirs; do
9426 if test "X$x" = "X$dir"; then
9427 haveit=yes
9428 break
9429 fi
9430 done
9431 if test -z "$haveit"; then
9432 ltrpathdirs="$ltrpathdirs $dir"
9433 fi
9434 fi
9435 ;;
9436 -l*)
9437 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9438 ;;
9439 *.la)
9440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9441 ;;
9442 *)
9443 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
9444 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
9445 ;;
9446 esac
9447 done
9448 fi
9449 else
9f1528a1
AB
9450 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
9451 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9452 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
9453 else
9454 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
9455 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
9456 fi
05ea2a05
TT
9457 fi
9458 fi
9459 fi
9460 done
9461 done
9462 if test "X$rpathdirs" != "X"; then
9463 if test -n "$hardcode_libdir_separator"; then
9464 alldirs=
9465 for found_dir in $rpathdirs; do
9466 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9467 done
9468 acl_save_libdir="$libdir"
9469 libdir="$alldirs"
9470 eval flag=\"$hardcode_libdir_flag_spec\"
9471 libdir="$acl_save_libdir"
9472 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
9473 else
9474 for found_dir in $rpathdirs; do
9475 acl_save_libdir="$libdir"
9476 libdir="$found_dir"
9477 eval flag=\"$hardcode_libdir_flag_spec\"
9478 libdir="$acl_save_libdir"
9479 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
9480 done
9481 fi
9482 fi
9483 if test "X$ltrpathdirs" != "X"; then
9484 for found_dir in $ltrpathdirs; do
9485 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
9486 done
9487 fi
01027315 9488
01027315 9489
05ea2a05 9490 ac_save_CPPFLAGS="$CPPFLAGS"
01027315 9491
05ea2a05
TT
9492 for element in $INCIPT; do
9493 haveit=
9494 for x in $CPPFLAGS; do
01027315 9495
05ea2a05
TT
9496 acl_save_prefix="$prefix"
9497 prefix="$acl_final_prefix"
9498 acl_save_exec_prefix="$exec_prefix"
9499 exec_prefix="$acl_final_exec_prefix"
9500 eval x=\"$x\"
9501 exec_prefix="$acl_save_exec_prefix"
9502 prefix="$acl_save_prefix"
01027315 9503
05ea2a05
TT
9504 if test "X$x" = "X$element"; then
9505 haveit=yes
9506 break
9507 fi
9508 done
9509 if test -z "$haveit"; then
9510 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9511 fi
9512 done
01027315 9513
01027315 9514
05ea2a05
TT
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
9516$as_echo_n "checking for libipt... " >&6; }
9517if ${ac_cv_libipt+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519else
9520
9521 ac_save_LIBS="$LIBS"
9522 LIBS="$LIBS $LIBIPT"
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 9524/* end confdefs.h. */
05ea2a05 9525#include "intel-pt.h"
01027315
TT
9526int
9527main ()
9528{
05ea2a05 9529pt_insn_alloc_decoder (0);
01027315
TT
9530 ;
9531 return 0;
9532}
9533_ACEOF
9534if ac_fn_c_try_link "$LINENO"; then :
05ea2a05
TT
9535 ac_cv_libipt=yes
9536else
9537 ac_cv_libipt=no
01027315
TT
9538fi
9539rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
05ea2a05 9541 LIBS="$ac_save_LIBS"
01027315 9542
01027315 9543fi
05ea2a05
TT
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
9545$as_echo "$ac_cv_libipt" >&6; }
9546 if test "$ac_cv_libipt" = yes; then
9547 HAVE_LIBIPT=yes
01027315 9548
05ea2a05
TT
9549$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
9550
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
9552$as_echo_n "checking how to link with libipt... " >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
9554$as_echo "$LIBIPT" >&6; }
9555 else
9556 HAVE_LIBIPT=no
9557 CPPFLAGS="$ac_save_CPPFLAGS"
9558 LIBIPT=
9559 LTLIBIPT=
9560 fi
9561
9562
9563
9564
9565
9566
3684d331
PA
9567 if test "$HAVE_LIBIPT" != yes; then
9568 if test "$with_intel_pt" = yes; then
9569 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
05ea2a05 9572$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
3684d331
PA
9573 fi
9574 else
9575 save_LIBS=$LIBS
9576 LIBS="$LIBS $LIBIPT"
9577 for ac_func in pt_insn_event
05ea2a05
TT
9578do :
9579 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
9580if test "x$ac_cv_func_pt_insn_event" = xyes; then :
9581 cat >>confdefs.h <<_ACEOF
9582#define HAVE_PT_INSN_EVENT 1
9583_ACEOF
9584
9585fi
01027315 9586done
05ea2a05 9587
3684d331 9588 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
05ea2a05
TT
9589"
9590if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
9591
9592cat >>confdefs.h <<_ACEOF
9593#define HAVE_STRUCT_PT_INSN_ENABLED 1
9594_ACEOF
9595
9596
01027315 9597fi
05ea2a05
TT
9598ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
9599"
9600if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
01027315 9601
05ea2a05
TT
9602cat >>confdefs.h <<_ACEOF
9603#define HAVE_STRUCT_PT_INSN_RESYNCED 1
9604_ACEOF
01027315 9605
05ea2a05
TT
9606
9607fi
9608
3684d331
PA
9609 LIBS=$save_LIBS
9610 fi
05ea2a05 9611 fi
05ea2a05 9612
5dfe4bfc
TT
9613 # Check if the compiler and runtime support printing long longs.
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
9616$as_echo_n "checking for long long support in printf... " >&6; }
9617if ${gdb_cv_printf_has_long_long+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619else
9620 if test "$cross_compiling" = yes; then :
9621 gdb_cv_printf_has_long_long=no
9622else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h. */
9625$ac_includes_default
9626int
9627main ()
9628{
9629char buf[32];
9630 long long l = 0;
9631 l = (l << 16) + 0x0123;
9632 l = (l << 16) + 0x4567;
9633 l = (l << 16) + 0x89ab;
9634 l = (l << 16) + 0xcdef;
9635 sprintf (buf, "0x%016llx", l);
9636 return (strcmp ("0x0123456789abcdef", buf));
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641if ac_fn_c_try_run "$LINENO"; then :
9642 gdb_cv_printf_has_long_long=yes
9643else
9644 gdb_cv_printf_has_long_long=no
9645fi
9646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9647 conftest.$ac_objext conftest.beam conftest.$ac_ext
9648fi
9649
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
9652$as_echo "$gdb_cv_printf_has_long_long" >&6; }
9653 if test "$gdb_cv_printf_has_long_long" = yes; then
9654
9655$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
9656
9657 fi
9658
c8693053
RO
9659
9660$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
9661
9662 for ac_header in sys/procfs.h
9663do :
9664 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
9665if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
9666 cat >>confdefs.h <<_ACEOF
9667#define HAVE_SYS_PROCFS_H 1
9668_ACEOF
9669
9670fi
9671
9672done
9673
3684d331 9674 if test "$ac_cv_header_sys_procfs_h" = yes; then
c8693053
RO
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
05ea2a05
TT
9677$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9678 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
01027315
TT
9679 $as_echo_n "(cached) " >&6
9680else
05ea2a05 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 9682/* end confdefs.h. */
05ea2a05
TT
9683
9684#define _SYSCALL32
05ea2a05 9685#include <sys/procfs.h>
01027315
TT
9686int
9687main ()
9688{
05ea2a05 9689gregset_t avar
01027315
TT
9690 ;
9691 return 0;
9692}
9693_ACEOF
05ea2a05
TT
9694if ac_fn_c_try_compile "$LINENO"; then :
9695 bfd_cv_have_sys_procfs_type_gregset_t=yes
9696else
9697 bfd_cv_have_sys_procfs_type_gregset_t=no
01027315
TT
9698
9699fi
05ea2a05
TT
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701fi
01027315 9702
05ea2a05 9703 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
01027315 9704
05ea2a05 9705$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
01027315 9706
05ea2a05
TT
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9709$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
01027315 9710
c8693053
RO
9711
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
9713$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9714 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
01027315
TT
9715 $as_echo_n "(cached) " >&6
9716else
05ea2a05
TT
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h. */
9719
9720#define _SYSCALL32
05ea2a05
TT
9721#include <sys/procfs.h>
9722int
9723main ()
9724{
9725fpregset_t avar
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730if ac_fn_c_try_compile "$LINENO"; then :
9731 bfd_cv_have_sys_procfs_type_fpregset_t=yes
9732else
9733 bfd_cv_have_sys_procfs_type_fpregset_t=no
01027315
TT
9734
9735fi
05ea2a05 9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
9737fi
9738
05ea2a05
TT
9739 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9740
9741$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9742
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9745$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9746
c8693053
RO
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
05ea2a05
TT
9749$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9750 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
01027315
TT
9751 $as_echo_n "(cached) " >&6
9752else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h. */
05ea2a05
TT
9755
9756#define _SYSCALL32
05ea2a05 9757#include <sys/procfs.h>
01027315
TT
9758int
9759main ()
9760{
05ea2a05 9761prgregset_t avar
01027315
TT
9762 ;
9763 return 0;
9764}
9765_ACEOF
05ea2a05
TT
9766if ac_fn_c_try_compile "$LINENO"; then :
9767 bfd_cv_have_sys_procfs_type_prgregset_t=yes
01027315 9768else
05ea2a05 9769 bfd_cv_have_sys_procfs_type_prgregset_t=no
01027315
TT
9770
9771fi
05ea2a05
TT
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
01027315 9774
05ea2a05 9775 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
01027315 9776
05ea2a05 9777$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
01027315 9778
05ea2a05
TT
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9781$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
01027315 9782
c8693053
RO
9783
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
05ea2a05
TT
9785$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9786 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
01027315
TT
9787 $as_echo_n "(cached) " >&6
9788else
05ea2a05
TT
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h. */
01027315 9791
05ea2a05 9792#define _SYSCALL32
05ea2a05
TT
9793#include <sys/procfs.h>
9794int
9795main ()
9796{
9797prfpregset_t avar
9798 ;
9799 return 0;
9800}
9801_ACEOF
9802if ac_fn_c_try_compile "$LINENO"; then :
9803 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
01027315 9804else
05ea2a05 9805 bfd_cv_have_sys_procfs_type_prfpregset_t=no
01027315 9806
05ea2a05
TT
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
9809fi
9810
05ea2a05 9811 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
01027315 9812
05ea2a05 9813$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
01027315 9814
05ea2a05
TT
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9817$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
01027315 9818
c8693053
RO
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
05ea2a05
TT
9821$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9822 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824else
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h. */
01027315 9827
05ea2a05 9828#define _SYSCALL32
05ea2a05
TT
9829#include <sys/procfs.h>
9830int
9831main ()
9832{
9833prgregset32_t avar
9834 ;
9835 return 0;
9836}
9837_ACEOF
9838if ac_fn_c_try_compile "$LINENO"; then :
9839 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
01027315 9840else
05ea2a05
TT
9841 bfd_cv_have_sys_procfs_type_prgregset32_t=no
9842
9843fi
9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315 9845fi
01027315 9846
05ea2a05 9847 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
01027315 9848
05ea2a05
TT
9849$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9850
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9853$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9854
c8693053
RO
9855
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
05ea2a05
TT
9857$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9858 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
01027315
TT
9859 $as_echo_n "(cached) " >&6
9860else
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h. */
05ea2a05
TT
9863
9864#define _SYSCALL32
05ea2a05 9865#include <sys/procfs.h>
01027315
TT
9866int
9867main ()
9868{
05ea2a05 9869lwpid_t avar
01027315
TT
9870 ;
9871 return 0;
9872}
9873_ACEOF
05ea2a05
TT
9874if ac_fn_c_try_compile "$LINENO"; then :
9875 bfd_cv_have_sys_procfs_type_lwpid_t=yes
01027315 9876else
05ea2a05
TT
9877 bfd_cv_have_sys_procfs_type_lwpid_t=no
9878
01027315
TT
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881fi
01027315 9882
05ea2a05 9883 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
01027315 9884
05ea2a05 9885$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
01027315 9886
05ea2a05
TT
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9889$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
01027315 9890
c8693053
RO
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
05ea2a05
TT
9893$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9894 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
01027315 9899
05ea2a05 9900#define _SYSCALL32
05ea2a05
TT
9901#include <sys/procfs.h>
9902int
9903main ()
9904{
9905psaddr_t avar
9906 ;
9907 return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_compile "$LINENO"; then :
9911 bfd_cv_have_sys_procfs_type_psaddr_t=yes
9912else
9913 bfd_cv_have_sys_procfs_type_psaddr_t=no
01027315 9914
05ea2a05
TT
9915fi
9916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917fi
01027315 9918
05ea2a05 9919 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
01027315 9920
05ea2a05
TT
9921$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9925$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9926
c8693053
RO
9927
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
9929$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9930 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
01027315
TT
9931 $as_echo_n "(cached) " >&6
9932else
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934/* end confdefs.h. */
9935
05ea2a05 9936#define _SYSCALL32
05ea2a05 9937#include <sys/procfs.h>
01027315
TT
9938int
9939main ()
9940{
05ea2a05 9941elf_fpregset_t avar
01027315
TT
9942 ;
9943 return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_compile "$LINENO"; then :
05ea2a05 9947 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
01027315 9948else
05ea2a05
TT
9949 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
9950
01027315
TT
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
01027315 9954
05ea2a05
TT
9955 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9956
9957$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9961$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
01027315 9962
3684d331 9963 fi
01027315
TT
9964
9965
9966# Check whether we will enable the inclusion of unit tests when
9967# compiling GDB.
9968#
9969# The default value of this option changes depending whether we're on
9970# development mode (in which case it's "true") or not (in which case
db6878ac
SM
9971# it's "false"). The $development variable is set by the GDB_AC_COMMON
9972# macro, which must therefore be used before GDB_AC_SELFTEST.
4d696a5c
SM
9973
9974if test "x$development" != xtrue && test "x$development" != xfalse; then :
9975 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
9976fi
9977
01027315
TT
9978# Check whether --enable-unit-tests was given.
9979if test "${enable_unit_tests+set}" = set; then :
9980 enableval=$enable_unit_tests; case "${enableval}" in
9981 yes) enable_unittests=true ;;
9982 no) enable_unittests=false ;;
9983 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
9984esac
9985else
9986 enable_unittests=$development
9987fi
9988
9989
9990if $enable_unittests; then
9991
9992$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
9993
9994
9995fi
9996
9997 if $enable_unittests; then
9998 SELFTEST_TRUE=
9999 SELFTEST_FALSE='#'
10000else
10001 SELFTEST_TRUE='#'
10002 SELFTEST_FALSE=
10003fi
10004
10005
ea3e7446
JB
10006 if test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ; then
10007 HAVE_PIPE_OR_PIPE2_TRUE=
10008 HAVE_PIPE_OR_PIPE2_FALSE='#'
10009else
10010 HAVE_PIPE_OR_PIPE2_TRUE='#'
10011 HAVE_PIPE_OR_PIPE2_FALSE=
10012fi
10013
10014
05ea2a05
TT
10015# Check the return and argument types of ptrace.
10016
10017
10018for ac_header in sys/ptrace.h ptrace.h
10019do :
10020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10023 cat >>confdefs.h <<_ACEOF
10024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10025_ACEOF
10026
10027fi
10028
10029done
10030
10031
10032gdb_ptrace_headers='
10033#include <sys/types.h>
10034#if HAVE_SYS_PTRACE_H
10035# include <sys/ptrace.h>
10036#endif
10037#if HAVE_UNISTD_H
10038# include <unistd.h>
10039#endif
10040'
05ea2a05
TT
10041
10042# Check return type. Varargs (used on GNU/Linux) conflict with the
10043# empty argument list, so check for that explicitly.
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10045$as_echo_n "checking return type of ptrace... " >&6; }
10046if ${gdb_cv_func_ptrace_ret+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048else
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h. */
5164c117 10051 $gdb_ptrace_headers
05ea2a05
TT
10052int
10053main ()
10054{
10055extern long ptrace (enum __ptrace_request, ...);
5164c117 10056
05ea2a05
TT
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061if ac_fn_c_try_compile "$LINENO"; then :
10062 gdb_cv_func_ptrace_ret='long'
10063else
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h. */
10066$gdb_ptrace_headers
10067int
10068main ()
10069{
10070extern int ptrace ();
5164c117 10071
05ea2a05
TT
10072 ;
10073 return 0;
10074}
10075_ACEOF
10076if ac_fn_c_try_compile "$LINENO"; then :
10077 gdb_cv_func_ptrace_ret='int'
10078else
10079 gdb_cv_func_ptrace_ret='long'
b6fb30ed 10080
05ea2a05
TT
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b6fb30ed 10083
05ea2a05
TT
10084fi
10085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b6fb30ed 10086
05ea2a05
TT
10087fi
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10089$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10090
b6fb30ed 10091
05ea2a05
TT
10092cat >>confdefs.h <<_ACEOF
10093#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10094_ACEOF
10095
b6fb30ed 10096
05ea2a05
TT
10097# Check argument types.
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10099$as_echo_n "checking types of arguments for ptrace... " >&6; }
10100if ${gdb_cv_func_ptrace_args+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102else
05ea2a05
TT
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h. */
10105$gdb_ptrace_headers
10106int
10107main ()
10108{
10109extern long ptrace (enum __ptrace_request, ...);
5164c117 10110
05ea2a05
TT
10111 ;
10112 return 0;
10113}
10114_ACEOF
10115if ac_fn_c_try_compile "$LINENO"; then :
10116 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10117else
b6fb30ed
SM
10118 for gdb_arg1 in 'int' 'long'; do
10119 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10120 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10121 for gdb_arg4 in 'int' 'long' 'void *'; do
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
10123/* end confdefs.h. */
10124$gdb_ptrace_headers
10125int
10126main ()
10127{
b6fb30ed 10128extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
5164c117 10129
05ea2a05
TT
10130 ;
10131 return 0;
10132}
10133_ACEOF
10134if ac_fn_c_try_compile "$LINENO"; then :
10135 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
b6fb30ed
SM
10136 break 4;
10137
05ea2a05
TT
10138fi
10139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b6fb30ed
SM
10140
10141 for gdb_arg5 in 'int *' 'int' 'long'; do
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
10143/* end confdefs.h. */
10144$gdb_ptrace_headers
10145int
10146main ()
10147{
b6fb30ed 10148extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
5164c117 10149
05ea2a05
TT
10150 ;
10151 return 0;
10152}
10153_ACEOF
10154if ac_fn_c_try_compile "$LINENO"; then :
b6fb30ed
SM
10155 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10156 break 5;
05ea2a05 10157
05ea2a05
TT
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b6fb30ed
SM
10160 done
10161 done
10162 done
10163 done
10164 done
10165 # Provide a safe default value.
10166 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
05ea2a05
TT
10167
10168fi
10169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b6fb30ed 10170
05ea2a05
TT
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10173$as_echo "$gdb_cv_func_ptrace_args" >&6; }
b6fb30ed 10174
05ea2a05
TT
10175ac_save_IFS=$IFS; IFS=','
10176set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10177IFS=$ac_save_IFS
10178shift
10179
10180cat >>confdefs.h <<_ACEOF
10181#define PTRACE_TYPE_ARG1 $1
10182_ACEOF
10183
10184
10185cat >>confdefs.h <<_ACEOF
10186#define PTRACE_TYPE_ARG3 $3
10187_ACEOF
10188
10189
10190cat >>confdefs.h <<_ACEOF
10191#define PTRACE_TYPE_ARG4 $4
10192_ACEOF
10193
10194if test -n "$5"; then
10195
10196cat >>confdefs.h <<_ACEOF
10197#define PTRACE_TYPE_ARG5 $5
10198_ACEOF
10199
10200fi
10201
10202
629c2962
SM
10203# Detect support warning flags.
10204
4b74833d
AB
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
10207$as_echo_n "checking the compiler type... " >&6; }
10208if ${gdb_cv_compiler_type+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210else
10211 gdb_cv_compiler_type=unknown
10212 if test "$gdb_cv_compiler_type" = unknown; then
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h. */
10215
10216int
10217main ()
10218{
10219
10220 #if !defined __GNUC__ || defined __clang__
10221 #error not gcc
10222 #endif
10223
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_compile "$LINENO"; then :
10229 gdb_cv_compiler_type=gcc
10230fi
10231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 fi
10233
10234 if test "$gdb_cv_compiler_type" = unknown; then
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h. */
10237
10238int
10239main ()
10240{
10241
10242 #ifndef __clang__
10243 #error not clang
10244 #endif
10245
10246 ;
10247 return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"; then :
10251 gdb_cv_compiler_type=clang
10252fi
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 fi
10255
10256fi
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
10258$as_echo "$gdb_cv_compiler_type" >&6; }
10259
10260 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
10261
10262
629c2962
SM
10263# Check whether --enable-werror was given.
10264if test "${enable_werror+set}" = set; then :
10265 enableval=$enable_werror; case "${enableval}" in
10266 yes | y) ERROR_ON_WARNING="yes" ;;
10267 no | n) ERROR_ON_WARNING="no" ;;
10268 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10269 esac
10270fi
10271
10272
10273# Enable -Werror by default when using gcc. Turn it off for releases.
10274if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10275 ERROR_ON_WARNING=yes
10276fi
10277
10278WERROR_CFLAGS=""
10279if test "${ERROR_ON_WARNING}" = yes ; then
10280 WERROR_CFLAGS="-Werror"
10281fi
10282
10283# The options we'll try to enable.
10284build_warnings="-Wall -Wpointer-arith \
10285-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10286-Wno-switch -Wno-char-subscripts \
10287-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10288-Wno-sign-compare -Wno-error=maybe-uninitialized \
10289-Wno-mismatched-tags \
10290-Wno-error=deprecated-register \
10291-Wsuggest-override \
10292-Wimplicit-fallthrough=3 \
10293-Wduplicated-cond \
10294-Wshadow=local \
10295-Wdeprecated-copy \
10296-Wdeprecated-copy-dtor \
10297-Wredundant-move \
8ddd8e0e 10298-Wmissing-declarations \
898e7f60
SM
10299-Wstrict-null-sentinel \
10300"
629c2962 10301
4b74833d
AB
10302# The -Wmissing-prototypes flag will be accepted by GCC, but results
10303# in a warning being printed about the flag not being valid for C++,
10304# this is something to do with using ccache, and argument ordering.
10305if test "$GDB_COMPILER_TYPE" != gcc; then
10306 build_warnings="$build_warnings -Wmissing-prototypes"
10307fi
10308
629c2962
SM
10309case "${host}" in
10310 *-*-mingw32*)
10311 # Enable -Wno-format by default when using gcc on mingw since many
10312 # GCC versions complain about %I64.
10313 build_warnings="$build_warnings -Wno-format" ;;
10314 *-*-solaris*)
10315 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10316 # doesn't understand.
10317 build_warnings="$build_warnings -Wno-unknown-pragmas"
10318 # Solaris 11 <unistd.h> marks vfork deprecated.
10319 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10320 *)
10321 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10322 # but there's a special case for this below.
10323 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10324esac
10325
10326# Check whether --enable-build-warnings was given.
10327if test "${enable_build_warnings+set}" = set; then :
10328 enableval=$enable_build_warnings; case "${enableval}" in
10329 yes) ;;
10330 no) build_warnings="-w";;
10331 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10332 build_warnings="${build_warnings} ${t}";;
10333 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10334 build_warnings="${t} ${build_warnings}";;
10335 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10336esac
10337if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10338 echo "Setting compiler warning flags = $build_warnings" 6>&1
10339fi
10340fi
10341# Check whether --enable-gdb-build-warnings was given.
10342if test "${enable_gdb_build_warnings+set}" = set; then :
10343 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10344 yes) ;;
10345 no) build_warnings="-w";;
10346 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10347 build_warnings="${build_warnings} ${t}";;
10348 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10349 build_warnings="${t} ${build_warnings}";;
10350 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10351esac
10352if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10353 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10354fi
10355fi
10356
10357# The set of warnings supported by a C++ compiler is not the same as
10358# of the C compiler.
10359ac_ext=cpp
10360ac_cpp='$CXXCPP $CPPFLAGS'
10361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10364
10365
10366WARN_CFLAGS=""
10367if test "x${build_warnings}" != x -a "x$GCC" = xyes
10368then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10370$as_echo_n "checking compiler warning flags... " >&6; }
10371 # Separate out the -Werror flag as some files just cannot be
10372 # compiled with it enabled.
10373 for w in ${build_warnings}; do
10374 # GCC does not complain about -Wno-unknown-warning. Invert
10375 # and test -Wunknown-warning instead.
10376 case $w in
10377 -Wno-*)
10378 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10379 -Wformat-nonliteral)
10380 # gcc requires -Wformat before -Wformat-nonliteral
10381 # will work, so stick them together.
10382 w="-Wformat $w"
10383 wtest="$w"
10384 ;;
10385 *)
10386 wtest=$w ;;
10387 esac
10388
10389 case $w in
10390 -Werr*) WERROR_CFLAGS=-Werror ;;
10391 *)
10392 # Check whether GCC accepts it.
10393 saved_CFLAGS="$CFLAGS"
10394 CFLAGS="$CFLAGS -Werror $wtest"
10395 saved_CXXFLAGS="$CXXFLAGS"
10396 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10397 if test "x$w" = "x-Wunused-variable"; then
10398 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10399 # fixed in GCC 4.9. This test is derived from the gdb
10400 # source code that triggered this bug in GCC.
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h. */
10403struct scoped_restore_base {};
864ca435
SM
10404 struct scoped_restore_tmpl : public scoped_restore_base {
10405 ~scoped_restore_tmpl() {}
10406 };
629c2962
SM
10407int
10408main ()
10409{
10410const scoped_restore_base &b = scoped_restore_tmpl();
864ca435 10411
629c2962
SM
10412 ;
10413 return 0;
10414}
10415_ACEOF
10416if ac_fn_cxx_try_compile "$LINENO"; then :
10417 WARN_CFLAGS="${WARN_CFLAGS} $w"
10418fi
10419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h. */
10423
10424int
10425main ()
10426{
10427
10428 ;
10429 return 0;
10430}
10431_ACEOF
10432if ac_fn_cxx_try_compile "$LINENO"; then :
10433 WARN_CFLAGS="${WARN_CFLAGS} $w"
10434fi
10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 fi
10437 CFLAGS="$saved_CFLAGS"
10438 CXXFLAGS="$saved_CXXFLAGS"
10439 esac
10440 done
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10442$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10443fi
10444
10445
10446
10447ac_ext=c
10448ac_cpp='$CPP $CPPFLAGS'
10449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10451ac_compiler_gnu=$ac_cv_c_compiler_gnu
10452
10453
10454
01027315
TT
10455case ${host} in
10456 *mingw32*)
10457
10458$as_echo "#define USE_WIN32API 1" >>confdefs.h
10459
10460 ;;
10461esac
10462
10463ac_config_files="$ac_config_files Makefile"
10464
10465cat >confcache <<\_ACEOF
10466# This file is a shell script that caches the results of configure
10467# tests run on this system so they can be shared between configure
10468# scripts and configure runs, see configure's option --config-cache.
10469# It is not useful on other systems. If it contains results you don't
10470# want to keep, you may remove or edit it.
10471#
10472# config.status only pays attention to the cache file if you give it
10473# the --recheck option to rerun configure.
10474#
10475# `ac_cv_env_foo' variables (set or unset) will be overridden when
10476# loading this file, other *unset* `ac_cv_foo' will be assigned the
10477# following values.
10478
10479_ACEOF
10480
10481# The following way of writing the cache mishandles newlines in values,
10482# but we know of no workaround that is simple, portable, and efficient.
10483# So, we kill variables containing newlines.
10484# Ultrix sh set writes to stderr and can't be redirected directly,
10485# and sets the high bit in the cache file unless we assign to the vars.
10486(
10487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10488 eval ac_val=\$$ac_var
10489 case $ac_val in #(
10490 *${as_nl}*)
10491 case $ac_var in #(
10492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10494 esac
10495 case $ac_var in #(
10496 _ | IFS | as_nl) ;; #(
10497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10498 *) { eval $ac_var=; unset $ac_var;} ;;
10499 esac ;;
10500 esac
10501 done
10502
10503 (set) 2>&1 |
10504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10505 *${as_nl}ac_space=\ *)
10506 # `set' does not quote correctly, so add quotes: double-quote
10507 # substitution turns \\\\ into \\, and sed turns \\ into \.
10508 sed -n \
10509 "s/'/'\\\\''/g;
10510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10511 ;; #(
10512 *)
10513 # `set' quotes correctly as required by POSIX, so do not add quotes.
10514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10515 ;;
10516 esac |
10517 sort
10518) |
10519 sed '
10520 /^ac_cv_env_/b end
10521 t clear
10522 :clear
10523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10524 t end
10525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10526 :end' >>confcache
10527if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10528 if test -w "$cache_file"; then
10529 if test "x$cache_file" != "x/dev/null"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10531$as_echo "$as_me: updating cache $cache_file" >&6;}
10532 if test ! -f "$cache_file" || test -h "$cache_file"; then
10533 cat confcache >"$cache_file"
10534 else
10535 case $cache_file in #(
10536 */* | ?:*)
10537 mv -f confcache "$cache_file"$$ &&
10538 mv -f "$cache_file"$$ "$cache_file" ;; #(
10539 *)
10540 mv -f confcache "$cache_file" ;;
10541 esac
10542 fi
10543 fi
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10546$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10547 fi
10548fi
10549rm -f confcache
10550
10551test "x$prefix" = xNONE && prefix=$ac_default_prefix
10552# Let make expand exec_prefix.
10553test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10554
10555DEFS=-DHAVE_CONFIG_H
10556
10557ac_libobjs=
10558ac_ltlibobjs=
e41fda1d 10559U=
01027315
TT
10560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10561 # 1. Remove the extension, and $U if already installed.
10562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10565 # will be set to the directory where LIBOBJS objects are built.
10566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10568done
10569LIBOBJS=$ac_libobjs
10570
10571LTLIBOBJS=$ac_ltlibobjs
10572
10573
10574if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10575 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10576Usually this means the macro was only invoked conditionally." "$LINENO" 5
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10579$as_echo_n "checking that generated files are newer than configure... " >&6; }
10580 if test -n "$am_sleep_pid"; then
10581 # Hide warnings about reused PIDs.
10582 wait $am_sleep_pid 2>/dev/null
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10585$as_echo "done" >&6; }
10586 if test -n "$EXEEXT"; then
10587 am__EXEEXT_TRUE=
10588 am__EXEEXT_FALSE='#'
10589else
10590 am__EXEEXT_TRUE='#'
10591 am__EXEEXT_FALSE=
10592fi
10593
10594if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10595 as_fn_error $? "conditional \"AMDEP\" was never defined.
10596Usually this means the macro was only invoked conditionally." "$LINENO" 5
10597fi
10598if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10599 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10600Usually this means the macro was only invoked conditionally." "$LINENO" 5
10601fi
10602if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10603 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10604Usually this means the macro was only invoked conditionally." "$LINENO" 5
10605fi
01027315
TT
10606if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10607 as_fn_error $? "conditional \"SELFTEST\" was never defined.
10608Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea3e7446
JB
10609fi
10610if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
10611 as_fn_error $? "conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
10612Usually this means the macro was only invoked conditionally." "$LINENO" 5
01027315
TT
10613fi
10614
10615: "${CONFIG_STATUS=./config.status}"
10616ac_write_fail=0
10617ac_clean_files_save=$ac_clean_files
10618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10620$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10621as_write_fail=0
10622cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10623#! $SHELL
10624# Generated by $as_me.
10625# Run this file to recreate the current configuration.
10626# Compiler output produced by configure, useful for debugging
10627# configure, is in config.log if it exists.
10628
10629debug=false
10630ac_cs_recheck=false
10631ac_cs_silent=false
10632
10633SHELL=\${CONFIG_SHELL-$SHELL}
10634export SHELL
10635_ASEOF
10636cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10637## -------------------- ##
10638## M4sh Initialization. ##
10639## -------------------- ##
10640
10641# Be more Bourne compatible
10642DUALCASE=1; export DUALCASE # for MKS sh
10643if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10644 emulate sh
10645 NULLCMD=:
10646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10647 # is contrary to our usage. Disable this feature.
10648 alias -g '${1+"$@"}'='"$@"'
10649 setopt NO_GLOB_SUBST
10650else
10651 case `(set -o) 2>/dev/null` in #(
10652 *posix*) :
10653 set -o posix ;; #(
10654 *) :
10655 ;;
10656esac
10657fi
10658
10659
10660as_nl='
10661'
10662export as_nl
10663# Printing a long string crashes Solaris 7 /usr/bin/printf.
10664as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10667# Prefer a ksh shell builtin over an external printf program on Solaris,
10668# but without wasting forks for bash or zsh.
10669if test -z "$BASH_VERSION$ZSH_VERSION" \
10670 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10671 as_echo='print -r --'
10672 as_echo_n='print -rn --'
10673elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10674 as_echo='printf %s\n'
10675 as_echo_n='printf %s'
10676else
10677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10679 as_echo_n='/usr/ucb/echo -n'
10680 else
10681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10682 as_echo_n_body='eval
10683 arg=$1;
10684 case $arg in #(
10685 *"$as_nl"*)
10686 expr "X$arg" : "X\\(.*\\)$as_nl";
10687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10688 esac;
10689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10690 '
10691 export as_echo_n_body
10692 as_echo_n='sh -c $as_echo_n_body as_echo'
10693 fi
10694 export as_echo_body
10695 as_echo='sh -c $as_echo_body as_echo'
10696fi
10697
10698# The user is always right.
10699if test "${PATH_SEPARATOR+set}" != set; then
10700 PATH_SEPARATOR=:
10701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10703 PATH_SEPARATOR=';'
10704 }
10705fi
10706
10707
10708# IFS
10709# We need space, tab and new line, in precisely that order. Quoting is
10710# there to prevent editors from complaining about space-tab.
10711# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10712# splitting by setting IFS to empty value.)
10713IFS=" "" $as_nl"
10714
10715# Find who we are. Look in the path if we contain no directory separator.
10716as_myself=
10717case $0 in #((
10718 *[\\/]* ) as_myself=$0 ;;
10719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10725 done
10726IFS=$as_save_IFS
10727
10728 ;;
10729esac
10730# We did not find ourselves, most probably we were run as `sh COMMAND'
10731# in which case we are not to be found in the path.
10732if test "x$as_myself" = x; then
10733 as_myself=$0
10734fi
10735if test ! -f "$as_myself"; then
10736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10737 exit 1
10738fi
10739
10740# Unset variables that we do not need and which cause bugs (e.g. in
10741# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10742# suppresses any "Segmentation fault" message there. '((' could
10743# trigger a bug in pdksh 5.2.14.
10744for as_var in BASH_ENV ENV MAIL MAILPATH
10745do eval test x\${$as_var+set} = xset \
10746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10747done
10748PS1='$ '
10749PS2='> '
10750PS4='+ '
10751
10752# NLS nuisances.
10753LC_ALL=C
10754export LC_ALL
10755LANGUAGE=C
10756export LANGUAGE
10757
10758# CDPATH.
10759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10760
10761
10762# as_fn_error STATUS ERROR [LINENO LOG_FD]
10763# ----------------------------------------
10764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10766# script with STATUS, using 1 if that was 0.
10767as_fn_error ()
10768{
10769 as_status=$1; test $as_status -eq 0 && as_status=1
10770 if test "$4"; then
10771 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10773 fi
10774 $as_echo "$as_me: error: $2" >&2
10775 as_fn_exit $as_status
10776} # as_fn_error
10777
10778
10779# as_fn_set_status STATUS
10780# -----------------------
10781# Set $? to STATUS, without forking.
10782as_fn_set_status ()
10783{
10784 return $1
10785} # as_fn_set_status
10786
10787# as_fn_exit STATUS
10788# -----------------
10789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10790as_fn_exit ()
10791{
10792 set +e
10793 as_fn_set_status $1
10794 exit $1
10795} # as_fn_exit
10796
10797# as_fn_unset VAR
10798# ---------------
10799# Portably unset VAR.
10800as_fn_unset ()
10801{
10802 { eval $1=; unset $1;}
10803}
10804as_unset=as_fn_unset
10805# as_fn_append VAR VALUE
10806# ----------------------
10807# Append the text in VALUE to the end of the definition contained in VAR. Take
10808# advantage of any shell optimizations that allow amortized linear growth over
10809# repeated appends, instead of the typical quadratic growth present in naive
10810# implementations.
10811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10812 eval 'as_fn_append ()
10813 {
10814 eval $1+=\$2
10815 }'
10816else
10817 as_fn_append ()
10818 {
10819 eval $1=\$$1\$2
10820 }
10821fi # as_fn_append
10822
10823# as_fn_arith ARG...
10824# ------------------
10825# Perform arithmetic evaluation on the ARGs, and store the result in the
10826# global $as_val. Take advantage of shells that can avoid forks. The arguments
10827# must be portable across $(()) and expr.
10828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10829 eval 'as_fn_arith ()
10830 {
10831 as_val=$(( $* ))
10832 }'
10833else
10834 as_fn_arith ()
10835 {
10836 as_val=`expr "$@" || test $? -eq 1`
10837 }
10838fi # as_fn_arith
10839
10840
10841if expr a : '\(a\)' >/dev/null 2>&1 &&
10842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10843 as_expr=expr
10844else
10845 as_expr=false
10846fi
10847
10848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10849 as_basename=basename
10850else
10851 as_basename=false
10852fi
10853
10854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10855 as_dirname=dirname
10856else
10857 as_dirname=false
10858fi
10859
10860as_me=`$as_basename -- "$0" ||
10861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10862 X"$0" : 'X\(//\)$' \| \
10863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10864$as_echo X/"$0" |
10865 sed '/^.*\/\([^/][^/]*\)\/*$/{
10866 s//\1/
10867 q
10868 }
10869 /^X\/\(\/\/\)$/{
10870 s//\1/
10871 q
10872 }
10873 /^X\/\(\/\).*/{
10874 s//\1/
10875 q
10876 }
10877 s/.*/./; q'`
10878
10879# Avoid depending upon Character Ranges.
10880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10883as_cr_digits='0123456789'
10884as_cr_alnum=$as_cr_Letters$as_cr_digits
10885
10886ECHO_C= ECHO_N= ECHO_T=
10887case `echo -n x` in #(((((
10888-n*)
10889 case `echo 'xy\c'` in
10890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10891 xy) ECHO_C='\c';;
10892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10893 ECHO_T=' ';;
10894 esac;;
10895*)
10896 ECHO_N='-n';;
10897esac
10898
10899rm -f conf$$ conf$$.exe conf$$.file
10900if test -d conf$$.dir; then
10901 rm -f conf$$.dir/conf$$.file
10902else
10903 rm -f conf$$.dir
10904 mkdir conf$$.dir 2>/dev/null
10905fi
10906if (echo >conf$$.file) 2>/dev/null; then
10907 if ln -s conf$$.file conf$$ 2>/dev/null; then
10908 as_ln_s='ln -s'
10909 # ... but there are two gotchas:
10910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10912 # In both cases, we have to default to `cp -pR'.
10913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10914 as_ln_s='cp -pR'
10915 elif ln conf$$.file conf$$ 2>/dev/null; then
10916 as_ln_s=ln
10917 else
10918 as_ln_s='cp -pR'
10919 fi
10920else
10921 as_ln_s='cp -pR'
10922fi
10923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10924rmdir conf$$.dir 2>/dev/null
10925
10926
10927# as_fn_mkdir_p
10928# -------------
10929# Create "$as_dir" as a directory, including parents if necessary.
10930as_fn_mkdir_p ()
10931{
10932
10933 case $as_dir in #(
10934 -*) as_dir=./$as_dir;;
10935 esac
10936 test -d "$as_dir" || eval $as_mkdir_p || {
10937 as_dirs=
10938 while :; do
10939 case $as_dir in #(
10940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10941 *) as_qdir=$as_dir;;
10942 esac
10943 as_dirs="'$as_qdir' $as_dirs"
10944 as_dir=`$as_dirname -- "$as_dir" ||
10945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10946 X"$as_dir" : 'X\(//\)[^/]' \| \
10947 X"$as_dir" : 'X\(//\)$' \| \
10948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10949$as_echo X"$as_dir" |
10950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10951 s//\1/
10952 q
10953 }
10954 /^X\(\/\/\)[^/].*/{
10955 s//\1/
10956 q
10957 }
10958 /^X\(\/\/\)$/{
10959 s//\1/
10960 q
10961 }
10962 /^X\(\/\).*/{
10963 s//\1/
10964 q
10965 }
10966 s/.*/./; q'`
10967 test -d "$as_dir" && break
10968 done
10969 test -z "$as_dirs" || eval "mkdir $as_dirs"
10970 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10971
10972
10973} # as_fn_mkdir_p
10974if mkdir -p . 2>/dev/null; then
10975 as_mkdir_p='mkdir -p "$as_dir"'
10976else
10977 test -d ./-p && rmdir ./-p
10978 as_mkdir_p=false
10979fi
10980
10981
10982# as_fn_executable_p FILE
10983# -----------------------
10984# Test if FILE is an executable regular file.
10985as_fn_executable_p ()
10986{
10987 test -f "$1" && test -x "$1"
10988} # as_fn_executable_p
10989as_test_x='test -x'
10990as_executable_p=as_fn_executable_p
10991
10992# Sed expression to map a string onto a valid CPP name.
10993as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10994
10995# Sed expression to map a string onto a valid variable name.
10996as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10997
10998
10999exec 6>&1
11000## ----------------------------------- ##
11001## Main body of $CONFIG_STATUS script. ##
11002## ----------------------------------- ##
11003_ASEOF
11004test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11005
11006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11007# Save the log message, to keep $0 and so on meaningful, and to
11008# report actual input values of CONFIG_FILES etc. instead of their
11009# values after options handling.
11010ac_log="
11011This file was extended by gdbsupport $as_me 1.0, which was
11012generated by GNU Autoconf 2.69. Invocation command line was
11013
11014 CONFIG_FILES = $CONFIG_FILES
11015 CONFIG_HEADERS = $CONFIG_HEADERS
11016 CONFIG_LINKS = $CONFIG_LINKS
11017 CONFIG_COMMANDS = $CONFIG_COMMANDS
11018 $ $0 $@
11019
11020on `(hostname || uname -n) 2>/dev/null | sed 1q`
11021"
11022
11023_ACEOF
11024
11025case $ac_config_files in *"
11026"*) set x $ac_config_files; shift; ac_config_files=$*;;
11027esac
11028
11029case $ac_config_headers in *"
11030"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11031esac
11032
11033
11034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11035# Files that config.status was made for.
11036config_files="$ac_config_files"
11037config_headers="$ac_config_headers"
11038config_commands="$ac_config_commands"
11039
11040_ACEOF
11041
11042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11043ac_cs_usage="\
11044\`$as_me' instantiates files and other configuration actions
11045from templates according to the current configuration. Unless the files
11046and actions are specified as TAGs, all are instantiated by default.
11047
11048Usage: $0 [OPTION]... [TAG]...
11049
11050 -h, --help print this help, then exit
11051 -V, --version print version number and configuration settings, then exit
11052 --config print configuration, then exit
11053 -q, --quiet, --silent
11054 do not print progress messages
11055 -d, --debug don't remove temporary files
11056 --recheck update $as_me by reconfiguring in the same conditions
11057 --file=FILE[:TEMPLATE]
11058 instantiate the configuration file FILE
11059 --header=FILE[:TEMPLATE]
11060 instantiate the configuration header FILE
11061
11062Configuration files:
11063$config_files
11064
11065Configuration headers:
11066$config_headers
11067
11068Configuration commands:
11069$config_commands
11070
11071Report bugs to the package provider."
11072
11073_ACEOF
11074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11075ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11076ac_cs_version="\\
11077gdbsupport config.status 1.0
11078configured by $0, generated by GNU Autoconf 2.69,
11079 with options \\"\$ac_cs_config\\"
11080
11081Copyright (C) 2012 Free Software Foundation, Inc.
11082This config.status script is free software; the Free Software Foundation
11083gives unlimited permission to copy, distribute and modify it."
11084
11085ac_pwd='$ac_pwd'
11086srcdir='$srcdir'
11087INSTALL='$INSTALL'
11088MKDIR_P='$MKDIR_P'
11089AWK='$AWK'
11090test -n "\$AWK" || AWK=awk
11091_ACEOF
11092
11093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11094# The default lists apply if the user does not specify any file.
11095ac_need_defaults=:
11096while test $# != 0
11097do
11098 case $1 in
11099 --*=?*)
11100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11102 ac_shift=:
11103 ;;
11104 --*=)
11105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11106 ac_optarg=
11107 ac_shift=:
11108 ;;
11109 *)
11110 ac_option=$1
11111 ac_optarg=$2
11112 ac_shift=shift
11113 ;;
11114 esac
11115
11116 case $ac_option in
11117 # Handling of the options.
11118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11119 ac_cs_recheck=: ;;
11120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11121 $as_echo "$ac_cs_version"; exit ;;
11122 --config | --confi | --conf | --con | --co | --c )
11123 $as_echo "$ac_cs_config"; exit ;;
11124 --debug | --debu | --deb | --de | --d | -d )
11125 debug=: ;;
11126 --file | --fil | --fi | --f )
11127 $ac_shift
11128 case $ac_optarg in
11129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11130 '') as_fn_error $? "missing file argument" ;;
11131 esac
11132 as_fn_append CONFIG_FILES " '$ac_optarg'"
11133 ac_need_defaults=false;;
11134 --header | --heade | --head | --hea )
11135 $ac_shift
11136 case $ac_optarg in
11137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11138 esac
11139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11140 ac_need_defaults=false;;
11141 --he | --h)
11142 # Conflict between --help and --header
11143 as_fn_error $? "ambiguous option: \`$1'
11144Try \`$0 --help' for more information.";;
11145 --help | --hel | -h )
11146 $as_echo "$ac_cs_usage"; exit ;;
11147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11149 ac_cs_silent=: ;;
11150
11151 # This is an error.
11152 -*) as_fn_error $? "unrecognized option: \`$1'
11153Try \`$0 --help' for more information." ;;
11154
11155 *) as_fn_append ac_config_targets " $1"
11156 ac_need_defaults=false ;;
11157
11158 esac
11159 shift
11160done
11161
11162ac_configure_extra_args=
11163
11164if $ac_cs_silent; then
11165 exec 6>/dev/null
11166 ac_configure_extra_args="$ac_configure_extra_args --silent"
11167fi
11168
11169_ACEOF
11170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11171if \$ac_cs_recheck; then
11172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11173 shift
11174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11175 CONFIG_SHELL='$SHELL'
11176 export CONFIG_SHELL
11177 exec "\$@"
11178fi
11179
11180_ACEOF
11181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11182exec 5>>config.log
11183{
11184 echo
11185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11186## Running $as_me. ##
11187_ASBOX
11188 $as_echo "$ac_log"
11189} >&5
11190
11191_ACEOF
11192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11193#
11194# INIT-COMMANDS
11195#
11196AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11197
11198_ACEOF
11199
11200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11201
11202# Handling of arguments.
11203for ac_config_target in $ac_config_targets
11204do
11205 case $ac_config_target in
3684d331 11206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
01027315
TT
11207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11209
11210 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11211 esac
11212done
11213
11214
11215# If the user did not use the arguments to specify the items to instantiate,
11216# then the envvar interface is used. Set only those that are not.
11217# We use the long form for the default assignment because of an extremely
11218# bizarre bug on SunOS 4.1.3.
11219if $ac_need_defaults; then
11220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11223fi
11224
11225# Have a temporary directory for convenience. Make it in the build tree
11226# simply because there is no reason against having it here, and in addition,
11227# creating and moving files from /tmp can sometimes cause problems.
11228# Hook for its removal unless debugging.
11229# Note that there is a small window in which the directory will not be cleaned:
11230# after its creation but before its name has been assigned to `$tmp'.
11231$debug ||
11232{
11233 tmp= ac_tmp=
11234 trap 'exit_status=$?
11235 : "${ac_tmp:=$tmp}"
11236 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11237' 0
11238 trap 'as_fn_exit 1' 1 2 13 15
11239}
11240# Create a (secure) tmp directory for tmp files.
11241
11242{
11243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11244 test -d "$tmp"
11245} ||
11246{
11247 tmp=./conf$$-$RANDOM
11248 (umask 077 && mkdir "$tmp")
11249} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11250ac_tmp=$tmp
11251
11252# Set up the scripts for CONFIG_FILES section.
11253# No need to generate them if there are no CONFIG_FILES.
11254# This happens for instance with `./config.status config.h'.
11255if test -n "$CONFIG_FILES"; then
11256
11257
11258ac_cr=`echo X | tr X '\015'`
11259# On cygwin, bash can eat \r inside `` if the user requested igncr.
11260# But we know of no other shell where ac_cr would be empty at this
11261# point, so we can use a bashism as a fallback.
11262if test "x$ac_cr" = x; then
11263 eval ac_cr=\$\'\\r\'
11264fi
11265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11267 ac_cs_awk_cr='\\r'
11268else
11269 ac_cs_awk_cr=$ac_cr
11270fi
11271
11272echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11273_ACEOF
11274
11275
11276{
11277 echo "cat >conf$$subs.awk <<_ACEOF" &&
11278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11279 echo "_ACEOF"
11280} >conf$$subs.sh ||
11281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11282ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11283ac_delim='%!_!# '
11284for ac_last_try in false false false false false :; do
11285 . ./conf$$subs.sh ||
11286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11287
11288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11289 if test $ac_delim_n = $ac_delim_num; then
11290 break
11291 elif $ac_last_try; then
11292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11293 else
11294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11295 fi
11296done
11297rm -f conf$$subs.sh
11298
11299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11300cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11301_ACEOF
11302sed -n '
11303h
11304s/^/S["/; s/!.*/"]=/
11305p
11306g
11307s/^[^!]*!//
11308:repl
11309t repl
11310s/'"$ac_delim"'$//
11311t delim
11312:nl
11313h
11314s/\(.\{148\}\)..*/\1/
11315t more1
11316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11317p
11318n
11319b repl
11320:more1
11321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11322p
11323g
11324s/.\{148\}//
11325t nl
11326:delim
11327h
11328s/\(.\{148\}\)..*/\1/
11329t more2
11330s/["\\]/\\&/g; s/^/"/; s/$/"/
11331p
11332b
11333:more2
11334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11335p
11336g
11337s/.\{148\}//
11338t delim
11339' <conf$$subs.awk | sed '
11340/^[^""]/{
11341 N
11342 s/\n//
11343}
11344' >>$CONFIG_STATUS || ac_write_fail=1
11345rm -f conf$$subs.awk
11346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11347_ACAWK
11348cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11349 for (key in S) S_is_set[key] = 1
11350 FS = "\a"
11351
11352}
11353{
11354 line = $ 0
11355 nfields = split(line, field, "@")
11356 substed = 0
11357 len = length(field[1])
11358 for (i = 2; i < nfields; i++) {
11359 key = field[i]
11360 keylen = length(key)
11361 if (S_is_set[key]) {
11362 value = S[key]
11363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11364 len += length(value) + length(field[++i])
11365 substed = 1
11366 } else
11367 len += 1 + keylen
11368 }
11369
11370 print line
11371}
11372
11373_ACAWK
11374_ACEOF
11375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11378else
11379 cat
11380fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11381 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11382_ACEOF
11383
11384# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11385# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11386# trailing colons and then remove the whole line if VPATH becomes empty
11387# (actually we leave an empty line to preserve line numbers).
11388if test "x$srcdir" = x.; then
11389 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11390h
11391s///
11392s/^/:/
11393s/[ ]*$/:/
11394s/:\$(srcdir):/:/g
11395s/:\${srcdir}:/:/g
11396s/:@srcdir@:/:/g
11397s/^:*//
11398s/:*$//
11399x
11400s/\(=[ ]*\).*/\1/
11401G
11402s/\n//
11403s/^[^=]*=[ ]*$//
11404}'
11405fi
11406
11407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11408fi # test -n "$CONFIG_FILES"
11409
11410# Set up the scripts for CONFIG_HEADERS section.
11411# No need to generate them if there are no CONFIG_HEADERS.
11412# This happens for instance with `./config.status Makefile'.
11413if test -n "$CONFIG_HEADERS"; then
11414cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11415BEGIN {
11416_ACEOF
11417
11418# Transform confdefs.h into an awk script `defines.awk', embedded as
11419# here-document in config.status, that substitutes the proper values into
11420# config.h.in to produce config.h.
11421
11422# Create a delimiter string that does not exist in confdefs.h, to ease
11423# handling of long lines.
11424ac_delim='%!_!# '
11425for ac_last_try in false false :; do
11426 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11427 if test -z "$ac_tt"; then
11428 break
11429 elif $ac_last_try; then
11430 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11431 else
11432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11433 fi
11434done
11435
11436# For the awk script, D is an array of macro values keyed by name,
11437# likewise P contains macro parameters if any. Preserve backslash
11438# newline sequences.
11439
11440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11441sed -n '
11442s/.\{148\}/&'"$ac_delim"'/g
11443t rset
11444:rset
11445s/^[ ]*#[ ]*define[ ][ ]*/ /
11446t def
11447d
11448:def
11449s/\\$//
11450t bsnl
11451s/["\\]/\\&/g
11452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11453D["\1"]=" \3"/p
11454s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11455d
11456:bsnl
11457s/["\\]/\\&/g
11458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11459D["\1"]=" \3\\\\\\n"\\/p
11460t cont
11461s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11462t cont
11463d
11464:cont
11465n
11466s/.\{148\}/&'"$ac_delim"'/g
11467t clear
11468:clear
11469s/\\$//
11470t bsnlc
11471s/["\\]/\\&/g; s/^/"/; s/$/"/p
11472d
11473:bsnlc
11474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11475b cont
11476' <confdefs.h | sed '
11477s/'"$ac_delim"'/"\\\
11478"/g' >>$CONFIG_STATUS || ac_write_fail=1
11479
11480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11481 for (key in D) D_is_set[key] = 1
11482 FS = "\a"
11483}
11484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11485 line = \$ 0
11486 split(line, arg, " ")
11487 if (arg[1] == "#") {
11488 defundef = arg[2]
11489 mac1 = arg[3]
11490 } else {
11491 defundef = substr(arg[1], 2)
11492 mac1 = arg[2]
11493 }
11494 split(mac1, mac2, "(") #)
11495 macro = mac2[1]
11496 prefix = substr(line, 1, index(line, defundef) - 1)
11497 if (D_is_set[macro]) {
11498 # Preserve the white space surrounding the "#".
11499 print prefix "define", macro P[macro] D[macro]
11500 next
11501 } else {
11502 # Replace #undef with comments. This is necessary, for example,
11503 # in the case of _POSIX_SOURCE, which is predefined and required
11504 # on some systems where configure will not decide to define it.
11505 if (defundef == "undef") {
11506 print "/*", prefix defundef, macro, "*/"
11507 next
11508 }
11509 }
11510}
11511{ print }
11512_ACAWK
11513_ACEOF
11514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11515 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11516fi # test -n "$CONFIG_HEADERS"
11517
11518
11519eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11520shift
11521for ac_tag
11522do
11523 case $ac_tag in
11524 :[FHLC]) ac_mode=$ac_tag; continue;;
11525 esac
11526 case $ac_mode$ac_tag in
11527 :[FHL]*:*);;
11528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11529 :[FH]-) ac_tag=-:-;;
11530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11531 esac
11532 ac_save_IFS=$IFS
11533 IFS=:
11534 set x $ac_tag
11535 IFS=$ac_save_IFS
11536 shift
11537 ac_file=$1
11538 shift
11539
11540 case $ac_mode in
11541 :L) ac_source=$1;;
11542 :[FH])
11543 ac_file_inputs=
11544 for ac_f
11545 do
11546 case $ac_f in
11547 -) ac_f="$ac_tmp/stdin";;
11548 *) # Look for the file first in the build tree, then in the source tree
11549 # (if the path is not absolute). The absolute path cannot be DOS-style,
11550 # because $ac_f cannot contain `:'.
11551 test -f "$ac_f" ||
11552 case $ac_f in
11553 [\\/$]*) false;;
11554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11555 esac ||
11556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11557 esac
11558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11559 as_fn_append ac_file_inputs " '$ac_f'"
11560 done
11561
11562 # Let's still pretend it is `configure' which instantiates (i.e., don't
11563 # use $as_me), people would be surprised to read:
11564 # /* config.h. Generated by config.status. */
11565 configure_input='Generated from '`
11566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11567 `' by configure.'
11568 if test x"$ac_file" != x-; then
11569 configure_input="$ac_file. $configure_input"
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11571$as_echo "$as_me: creating $ac_file" >&6;}
11572 fi
11573 # Neutralize special characters interpreted by sed in replacement strings.
11574 case $configure_input in #(
11575 *\&* | *\|* | *\\* )
11576 ac_sed_conf_input=`$as_echo "$configure_input" |
11577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11578 *) ac_sed_conf_input=$configure_input;;
11579 esac
11580
11581 case $ac_tag in
11582 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11584 esac
11585 ;;
11586 esac
11587
11588 ac_dir=`$as_dirname -- "$ac_file" ||
11589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11590 X"$ac_file" : 'X\(//\)[^/]' \| \
11591 X"$ac_file" : 'X\(//\)$' \| \
11592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11593$as_echo X"$ac_file" |
11594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11595 s//\1/
11596 q
11597 }
11598 /^X\(\/\/\)[^/].*/{
11599 s//\1/
11600 q
11601 }
11602 /^X\(\/\/\)$/{
11603 s//\1/
11604 q
11605 }
11606 /^X\(\/\).*/{
11607 s//\1/
11608 q
11609 }
11610 s/.*/./; q'`
11611 as_dir="$ac_dir"; as_fn_mkdir_p
11612 ac_builddir=.
11613
11614case "$ac_dir" in
11615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11616*)
11617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11618 # A ".." for each directory in $ac_dir_suffix.
11619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11620 case $ac_top_builddir_sub in
11621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11623 esac ;;
11624esac
11625ac_abs_top_builddir=$ac_pwd
11626ac_abs_builddir=$ac_pwd$ac_dir_suffix
11627# for backward compatibility:
11628ac_top_builddir=$ac_top_build_prefix
11629
11630case $srcdir in
11631 .) # We are building in place.
11632 ac_srcdir=.
11633 ac_top_srcdir=$ac_top_builddir_sub
11634 ac_abs_top_srcdir=$ac_pwd ;;
11635 [\\/]* | ?:[\\/]* ) # Absolute name.
11636 ac_srcdir=$srcdir$ac_dir_suffix;
11637 ac_top_srcdir=$srcdir
11638 ac_abs_top_srcdir=$srcdir ;;
11639 *) # Relative name.
11640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11641 ac_top_srcdir=$ac_top_build_prefix$srcdir
11642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11643esac
11644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11645
11646
11647 case $ac_mode in
11648 :F)
11649 #
11650 # CONFIG_FILE
11651 #
11652
11653 case $INSTALL in
11654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11656 esac
11657 ac_MKDIR_P=$MKDIR_P
11658 case $MKDIR_P in
11659 [\\/$]* | ?:[\\/]* ) ;;
11660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11661 esac
11662_ACEOF
11663
11664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11665# If the template does not know about datarootdir, expand it.
11666# FIXME: This hack should be removed a few years after 2.60.
11667ac_datarootdir_hack=; ac_datarootdir_seen=
11668ac_sed_dataroot='
11669/datarootdir/ {
11670 p
11671 q
11672}
11673/@datadir@/p
11674/@docdir@/p
11675/@infodir@/p
11676/@localedir@/p
11677/@mandir@/p'
11678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11679*datarootdir*) ac_datarootdir_seen=yes;;
11680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11683_ACEOF
11684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11685 ac_datarootdir_hack='
11686 s&@datadir@&$datadir&g
11687 s&@docdir@&$docdir&g
11688 s&@infodir@&$infodir&g
11689 s&@localedir@&$localedir&g
11690 s&@mandir@&$mandir&g
11691 s&\\\${datarootdir}&$datarootdir&g' ;;
11692esac
11693_ACEOF
11694
11695# Neutralize VPATH when `$srcdir' = `.'.
11696# Shell code in configure.ac might set extrasub.
11697# FIXME: do we really want to maintain this feature?
11698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11699ac_sed_extra="$ac_vpsub
11700$extrasub
11701_ACEOF
11702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11703:t
11704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11705s|@configure_input@|$ac_sed_conf_input|;t t
11706s&@top_builddir@&$ac_top_builddir_sub&;t t
11707s&@top_build_prefix@&$ac_top_build_prefix&;t t
11708s&@srcdir@&$ac_srcdir&;t t
11709s&@abs_srcdir@&$ac_abs_srcdir&;t t
11710s&@top_srcdir@&$ac_top_srcdir&;t t
11711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11712s&@builddir@&$ac_builddir&;t t
11713s&@abs_builddir@&$ac_abs_builddir&;t t
11714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11715s&@INSTALL@&$ac_INSTALL&;t t
11716s&@MKDIR_P@&$ac_MKDIR_P&;t t
11717$ac_datarootdir_hack
11718"
11719eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11720 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11721
11722test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11725 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11727which seems to be undefined. Please make sure it is defined" >&5
11728$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11729which seems to be undefined. Please make sure it is defined" >&2;}
11730
11731 rm -f "$ac_tmp/stdin"
11732 case $ac_file in
11733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11735 esac \
11736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11737 ;;
11738 :H)
11739 #
11740 # CONFIG_HEADER
11741 #
11742 if test x"$ac_file" != x-; then
11743 {
11744 $as_echo "/* $configure_input */" \
11745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11746 } >"$ac_tmp/config.h" \
11747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11748 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11750$as_echo "$as_me: $ac_file is unchanged" >&6;}
11751 else
11752 rm -f "$ac_file"
11753 mv "$ac_tmp/config.h" "$ac_file" \
11754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11755 fi
11756 else
11757 $as_echo "/* $configure_input */" \
11758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11759 || as_fn_error $? "could not create -" "$LINENO" 5
11760 fi
11761# Compute "$ac_file"'s index in $config_headers.
11762_am_arg="$ac_file"
11763_am_stamp_count=1
11764for _am_header in $config_headers :; do
11765 case $_am_header in
11766 $_am_arg | $_am_arg:* )
11767 break ;;
11768 * )
11769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11770 esac
11771done
11772echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11773$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11774 X"$_am_arg" : 'X\(//\)[^/]' \| \
11775 X"$_am_arg" : 'X\(//\)$' \| \
11776 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11777$as_echo X"$_am_arg" |
11778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11779 s//\1/
11780 q
11781 }
11782 /^X\(\/\/\)[^/].*/{
11783 s//\1/
11784 q
11785 }
11786 /^X\(\/\/\)$/{
11787 s//\1/
11788 q
11789 }
11790 /^X\(\/\).*/{
11791 s//\1/
11792 q
11793 }
11794 s/.*/./; q'`/stamp-h$_am_stamp_count
11795 ;;
11796
11797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11798$as_echo "$as_me: executing $ac_file commands" >&6;}
11799 ;;
11800 esac
11801
11802
11803 case $ac_file$ac_mode in
11804 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11805 # Older Autoconf quotes --file arguments for eval, but not when files
11806 # are listed without --file. Let's play safe and only enable the eval
11807 # if we detect the quoting.
11808 case $CONFIG_FILES in
11809 *\'*) eval set x "$CONFIG_FILES" ;;
11810 *) set x $CONFIG_FILES ;;
11811 esac
11812 shift
11813 for mf
11814 do
11815 # Strip MF so we end up with the name of the file.
11816 mf=`echo "$mf" | sed -e 's/:.*$//'`
11817 # Check whether this is an Automake generated Makefile or not.
11818 # We used to match only the files named 'Makefile.in', but
11819 # some people rename them; so instead we look at the file content.
11820 # Grep'ing the first line is not enough: some people post-process
11821 # each Makefile.in and add a new line on top of each file to say so.
11822 # Grep'ing the whole file is not good either: AIX grep has a line
11823 # limit of 2048, but all sed's we know have understand at least 4000.
11824 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11825 dirpart=`$as_dirname -- "$mf" ||
11826$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11827 X"$mf" : 'X\(//\)[^/]' \| \
11828 X"$mf" : 'X\(//\)$' \| \
11829 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11830$as_echo X"$mf" |
11831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\(\/\/\)[^/].*/{
11836 s//\1/
11837 q
11838 }
11839 /^X\(\/\/\)$/{
11840 s//\1/
11841 q
11842 }
11843 /^X\(\/\).*/{
11844 s//\1/
11845 q
11846 }
11847 s/.*/./; q'`
11848 else
11849 continue
11850 fi
11851 # Extract the definition of DEPDIR, am__include, and am__quote
11852 # from the Makefile without running 'make'.
11853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11854 test -z "$DEPDIR" && continue
11855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11856 test -z "$am__include" && continue
11857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11858 # Find all dependency output files, they are included files with
11859 # $(DEPDIR) in their names. We invoke sed twice because it is the
11860 # simplest approach to changing $(DEPDIR) to its actual value in the
11861 # expansion.
11862 for file in `sed -n "
11863 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11865 # Make sure the directory exists.
11866 test -f "$dirpart/$file" && continue
11867 fdir=`$as_dirname -- "$file" ||
11868$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11869 X"$file" : 'X\(//\)[^/]' \| \
11870 X"$file" : 'X\(//\)$' \| \
11871 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11872$as_echo X"$file" |
11873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11874 s//\1/
11875 q
11876 }
11877 /^X\(\/\/\)[^/].*/{
11878 s//\1/
11879 q
11880 }
11881 /^X\(\/\/\)$/{
11882 s//\1/
11883 q
11884 }
11885 /^X\(\/\).*/{
11886 s//\1/
11887 q
11888 }
11889 s/.*/./; q'`
11890 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11891 # echo "creating $dirpart/$file"
11892 echo '# dummy' > "$dirpart/$file"
11893 done
11894 done
11895}
11896 ;;
11897
11898 esac
11899done # for ac_tag
11900
11901
11902as_fn_exit 0
11903_ACEOF
11904ac_clean_files=$ac_clean_files_save
11905
11906test $ac_write_fail = 0 ||
11907 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11908
11909
11910# configure is writing to config.log, and then calls config.status.
11911# config.status does its own redirection, appending to config.log.
11912# Unfortunately, on DOS this fails, as config.log is still kept open
11913# by configure, so config.status won't be able to write to it; its
11914# output is simply discarded. So we exec the FD to /dev/null,
11915# effectively closing config.log, so it can be properly (re)opened and
11916# appended to by config.status. When coming back to configure, we
11917# need to make the FD available again.
11918if test "$no_create" != yes; then
11919 ac_cs_success=:
11920 ac_config_status_args=
11921 test "$silent" = yes &&
11922 ac_config_status_args="$ac_config_status_args --quiet"
11923 exec 5>/dev/null
11924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11925 exec 5>>config.log
11926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11927 # would make configure fail if this is the last instruction.
11928 $ac_cs_success || as_fn_exit 1
11929fi
11930if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11932$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11933fi
11934