]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/configure
x86: Change PLT32 reloc against section to PC32
[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
01027315
TT
629SELFTEST_FALSE
630SELFTEST_TRUE
05ea2a05
TT
631LTLIBIPT
632LIBIPT
633HAVE_LIBIPT
01027315
TT
634PTHREAD_CFLAGS
635PTHREAD_LIBS
636PTHREAD_CC
637ax_pthread_config
638SED
639ALLOCA
640CATOBJEXT
641GENCAT
642INSTOBJEXT
643DATADIRNAME
644CATALOGS
645POSUB
646GMSGFMT
647XGETTEXT
648INCINTL
649LIBINTL_DEP
650LIBINTL
651USE_NLS
652CXX_DIALECT
653HAVE_CXX11
654EGREP
655GREP
656CPP
657RANLIB
658am__fastdepCXX_FALSE
659am__fastdepCXX_TRUE
660CXXDEPMODE
661ac_ct_CXX
662CXXFLAGS
663CXX
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667am__nodep
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708MAINT
709MAINTAINER_MODE_FALSE
710MAINTAINER_MODE_TRUE
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_maintainer_mode
765enable_silent_rules
766enable_dependency_tracking
767enable_plugins
768enable_largefile
05ea2a05
TT
769with_intel_pt
770with_gnu_ld
771enable_rpath
772with_libipt_prefix
9f1528a1 773with_libipt_type
01027315 774enable_unit_tests
629c2962
SM
775enable_werror
776enable_build_warnings
777enable_gdb_build_warnings
01027315
TT
778'
779 ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787CXX
788CXXFLAGS
789CCC
790CPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1403 esac
1404 cat <<\_ACEOF
1405
1406Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-maintainer-mode
1411 enable make rules and dependencies not useful (and
1412 sometimes confusing) to the casual installer
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-plugins Enable support for plugins
1420 --disable-largefile omit support for large files
05ea2a05 1421 --disable-rpath do not hardcode runtime library paths
01027315
TT
1422 --enable-unit-tests Enable the inclusion of unit tests when compiling
1423 GDB
629c2962
SM
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings if gcc is used
1426 --enable-gdb-build-warnings
1427 enable GDB specific build-time compiler warnings if
1428 gcc is used
01027315 1429
05ea2a05
TT
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1434 --with-gnu-ld assume the C compiler uses GNU ld default=no
1435 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1436 --without-libipt-prefix don't search for libipt in includedir and libdir
9f1528a1 1437 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
05ea2a05 1438
01027315
TT
1439Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CXX C++ compiler command
1448 CXXFLAGS C++ compiler flags
1449 CPP C preprocessor
1450
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
1454Report bugs to the package provider.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516 cat <<\_ACEOF
1517gdbsupport configure 1.0
1518generated by GNU Autoconf 2.69
1519
1520Copyright (C) 2012 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524 exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_cxx_try_compile LINENO
1570# ----------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_cxx_try_compile ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_cxx_try_compile
1606
1607# ac_fn_c_try_cpp LINENO
1608# ----------------------
1609# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_cpp ()
1611{
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 }; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_cpp
1643
1644# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647# the include files in INCLUDES and setting the cache variable VAR
1648# accordingly.
1649ac_fn_c_check_header_mongrel ()
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661else
1662 # Is the header compilable?
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664$as_echo_n "checking $2 usability... " >&6; }
1665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h. */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1672else
1673 ac_header_compiler=no
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677$as_echo "$ac_header_compiler" >&6; }
1678
1679# Is the header present?
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681$as_echo_n "checking $2 presence... " >&6; }
1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684#include <$2>
1685_ACEOF
1686if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1688else
1689 ac_header_preproc=no
1690fi
1691rm -f conftest.err conftest.i conftest.$ac_ext
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693$as_echo "$ac_header_preproc" >&6; }
1694
1695# So? What about this header?
1696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697 yes:no: )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 no:yes:* )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715esac
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720else
1721 eval "$3=\$ac_header_compiler"
1722fi
1723eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_header_mongrel
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status
1766fi
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists and can be compiled using the include files in
1776# INCLUDES, setting the cache variable VAR accordingly.
1777ac_fn_c_check_header_compile ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792else
1793 eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_header_compile
1803
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest$ac_exeext
1832 }; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_link
1849
1850# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1851# -------------------------------------------
1852# Tests whether TYPE exists after having included INCLUDES, setting cache
1853# variable VAR accordingly.
1854ac_fn_c_check_type ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 eval "$3=no"
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866int
1867main ()
1868{
1869if (sizeof ($2))
1870 return 0;
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879int
1880main ()
1881{
1882if (sizeof (($2)))
1883 return 0;
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889
1890else
1891 eval "$3=yes"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_type
1903
1904# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905# --------------------------------------------
1906# Tries to find the compile-time value of EXPR in a program that includes
1907# INCLUDES, setting VAR accordingly. Returns whether the value could be
1908# computed
1909ac_fn_c_compute_int ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if test "$cross_compiling" = yes; then
1913 # Depending upon the size, compute the lo and hi bounds.
1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917int
1918main ()
1919{
1920static int test_array [1 - 2 * !(($2) >= 0)];
1921test_array [0] = 0;
1922return test_array [0];
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_lo=0 ac_mid=0
1930 while :; do
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933$4
1934int
1935main ()
1936{
1937static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938test_array [0] = 0;
1939return test_array [0];
1940
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_hi=$ac_mid; break
1947else
1948 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1949 if test $ac_lo -le $ac_mid; then
1950 ac_lo= ac_hi=
1951 break
1952 fi
1953 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 done
1957else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$4
1961int
1962main ()
1963{
1964static int test_array [1 - 2 * !(($2) < 0)];
1965test_array [0] = 0;
1966return test_array [0];
1967
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_hi=-1 ac_mid=-1
1974 while :; do
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978int
1979main ()
1980{
1981static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1982test_array [0] = 0;
1983return test_array [0];
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_lo=$ac_mid; break
1991else
1992 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1993 if test $ac_mid -le $ac_hi; then
1994 ac_lo= ac_hi=
1995 break
1996 fi
1997 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 done
2001else
2002 ac_lo= ac_hi=
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007# Binary search between lo and hi bounds.
2008while test "x$ac_lo" != "x$ac_hi"; do
2009 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017test_array [0] = 0;
2018return test_array [0];
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=$ac_mid
2026else
2027 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030done
2031case $ac_lo in #((
2032?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2033'') ac_retval=1 ;;
2034esac
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h. */
2038$4
2039static long int longval () { return $2; }
2040static unsigned long int ulongval () { return $2; }
2041#include <stdio.h>
2042#include <stdlib.h>
2043int
2044main ()
2045{
2046
2047 FILE *f = fopen ("conftest.val", "w");
2048 if (! f)
2049 return 1;
2050 if (($2) < 0)
2051 {
2052 long int i = longval ();
2053 if (i != ($2))
2054 return 1;
2055 fprintf (f, "%ld", i);
2056 }
2057 else
2058 {
2059 unsigned long int i = ulongval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%lu", i);
2063 }
2064 /* Do not output a trailing newline, as this causes \r\n confusion
2065 on some platforms. */
2066 return ferror (f) || fclose (f) != 0;
2067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_run "$LINENO"; then :
2073 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2074else
2075 ac_retval=1
2076fi
2077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2078 conftest.$ac_objext conftest.beam conftest.$ac_ext
2079rm -f conftest.val
2080
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085} # ac_fn_c_compute_int
2086
2087# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2088# ---------------------------------------------
2089# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2090# accordingly.
2091ac_fn_c_check_decl ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 as_decl_name=`echo $2|sed 's/ *(.*//'`
2095 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2097$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2098if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104int
2105main ()
2106{
2107#ifndef $as_decl_name
2108#ifdef __cplusplus
2109 (void) $as_decl_use;
2110#else
2111 (void) $as_decl_name;
2112#endif
2113#endif
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 eval "$3=yes"
2121else
2122 eval "$3=no"
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131} # ac_fn_c_check_decl
2132
2133# ac_fn_c_check_func LINENO FUNC VAR
2134# ----------------------------------
2135# Tests whether FUNC exists, setting the cache variable VAR accordingly
2136ac_fn_c_check_func ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140$as_echo_n "checking for $2... " >&6; }
2141if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2148#define $2 innocuous_$2
2149
2150/* System header to define __stub macros and hopefully few prototypes,
2151 which can conflict with char $2 (); below.
2152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2153 <limits.h> exists even on freestanding compilers. */
2154
2155#ifdef __STDC__
2156# include <limits.h>
2157#else
2158# include <assert.h>
2159#endif
2160
2161#undef $2
2162
2163/* Override any GCC internal prototype to avoid an error.
2164 Use char because int might match the return type of a GCC
2165 builtin and then its argument prototype would still apply. */
2166#ifdef __cplusplus
2167extern "C"
2168#endif
2169char $2 ();
2170/* The GNU C library defines this for functions which it implements
2171 to always fail with ENOSYS. Some functions are actually named
2172 something starting with __ and the normal name is an alias. */
2173#if defined __stub_$2 || defined __stub___$2
2174choke me
2175#endif
2176
2177int
2178main ()
2179{
2180return $2 ();
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_link "$LINENO"; then :
2186 eval "$3=yes"
2187else
2188 eval "$3=no"
2189fi
2190rm -f core conftest.err conftest.$ac_objext \
2191 conftest$ac_exeext conftest.$ac_ext
2192fi
2193eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198} # ac_fn_c_check_func
2199
05ea2a05
TT
2200# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2201# ----------------------------------------------------
2202# Tries to find if the field MEMBER exists in type AGGR, after including
2203# INCLUDES, setting cache variable VAR accordingly.
2204ac_fn_c_check_member ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2208$as_echo_n "checking for $2.$3... " >&6; }
2209if eval \${$4+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$5
2215int
2216main ()
2217{
2218static $2 ac_aggr;
2219if (ac_aggr.$3)
2220return 0;
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$4=yes"
2227else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h. */
2230$5
2231int
2232main ()
2233{
2234static $2 ac_aggr;
2235if (sizeof ac_aggr.$3)
2236return 0;
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"; then :
2242 eval "$4=yes"
2243else
2244 eval "$4=no"
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250eval ac_res=\$$4
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255} # ac_fn_c_check_member
2256
01027315
TT
2257# ac_fn_cxx_try_link LINENO
2258# -------------------------
2259# Try to link conftest.$ac_ext, and return whether this succeeded.
2260ac_fn_cxx_try_link ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext conftest$ac_exeext
2264 if { { ac_try="$ac_link"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 test -x conftest$ac_exeext
2285 }; then :
2286 ac_retval=0
2287else
2288 $as_echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=1
2292fi
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status $ac_retval
2300
2301} # ac_fn_cxx_try_link
2302
2303# ac_fn_cxx_check_func LINENO FUNC VAR
2304# ------------------------------------
2305# Tests whether FUNC exists, setting the cache variable VAR accordingly
2306ac_fn_cxx_check_func ()
2307{
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310$as_echo_n "checking for $2... " >&6; }
2311if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h. */
2316/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2318#define $2 innocuous_$2
2319
2320/* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char $2 (); below.
2322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 <limits.h> exists even on freestanding compilers. */
2324
2325#ifdef __STDC__
2326# include <limits.h>
2327#else
2328# include <assert.h>
2329#endif
2330
2331#undef $2
2332
2333/* Override any GCC internal prototype to avoid an error.
2334 Use char because int might match the return type of a GCC
2335 builtin and then its argument prototype would still apply. */
2336#ifdef __cplusplus
2337extern "C"
2338#endif
2339char $2 ();
2340/* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343#if defined __stub_$2 || defined __stub___$2
2344choke me
2345#endif
2346
2347int
2348main ()
2349{
2350return $2 ();
2351 ;
2352 return 0;
2353}
2354_ACEOF
2355if ac_fn_cxx_try_link "$LINENO"; then :
2356 eval "$3=yes"
2357else
2358 eval "$3=no"
2359fi
2360rm -f core conftest.err conftest.$ac_objext \
2361 conftest$ac_exeext conftest.$ac_ext
2362fi
2363eval ac_res=\$$3
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365$as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368} # ac_fn_cxx_check_func
2369cat >config.log <<_ACEOF
2370This file contains any messages produced by compilers while
2371running configure, to aid debugging if configure makes a mistake.
2372
2373It was created by gdbsupport $as_me 1.0, which was
2374generated by GNU Autoconf 2.69. Invocation command line was
2375
2376 $ $0 $@
2377
2378_ACEOF
2379exec 5>>config.log
2380{
2381cat <<_ASUNAME
2382## --------- ##
2383## Platform. ##
2384## --------- ##
2385
2386hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2387uname -m = `(uname -m) 2>/dev/null || echo unknown`
2388uname -r = `(uname -r) 2>/dev/null || echo unknown`
2389uname -s = `(uname -s) 2>/dev/null || echo unknown`
2390uname -v = `(uname -v) 2>/dev/null || echo unknown`
2391
2392/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2393/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2394
2395/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2396/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2397/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2398/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2399/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2400/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2401/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2402
2403_ASUNAME
2404
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 $as_echo "PATH: $as_dir"
2411 done
2412IFS=$as_save_IFS
2413
2414} >&5
2415
2416cat >&5 <<_ACEOF
2417
2418
2419## ----------- ##
2420## Core tests. ##
2421## ----------- ##
2422
2423_ACEOF
2424
2425
2426# Keep a trace of the command line.
2427# Strip out --no-create and --no-recursion so they do not pile up.
2428# Strip out --silent because we don't want to record it for future runs.
2429# Also quote any args containing shell meta-characters.
2430# Make two passes to allow for proper duplicate-argument suppression.
2431ac_configure_args=
2432ac_configure_args0=
2433ac_configure_args1=
2434ac_must_keep_next=false
2435for ac_pass in 1 2
2436do
2437 for ac_arg
2438 do
2439 case $ac_arg in
2440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442 | -silent | --silent | --silen | --sile | --sil)
2443 continue ;;
2444 *\'*)
2445 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446 esac
2447 case $ac_pass in
2448 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2449 2)
2450 as_fn_append ac_configure_args1 " '$ac_arg'"
2451 if test $ac_must_keep_next = true; then
2452 ac_must_keep_next=false # Got value, back to normal.
2453 else
2454 case $ac_arg in
2455 *=* | --config-cache | -C | -disable-* | --disable-* \
2456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458 | -with-* | --with-* | -without-* | --without-* | --x)
2459 case "$ac_configure_args0 " in
2460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 esac
2462 ;;
2463 -* ) ac_must_keep_next=true ;;
2464 esac
2465 fi
2466 as_fn_append ac_configure_args " '$ac_arg'"
2467 ;;
2468 esac
2469 done
2470done
2471{ ac_configure_args0=; unset ac_configure_args0;}
2472{ ac_configure_args1=; unset ac_configure_args1;}
2473
2474# When interrupted or exit'd, cleanup temporary files, and complete
2475# config.log. We remove comments because anyway the quotes in there
2476# would cause problems or look ugly.
2477# WARNING: Use '\'' to represent an apostrophe within the trap.
2478# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479trap 'exit_status=$?
2480 # Save into config.log some information that might help in debugging.
2481 {
2482 echo
2483
2484 $as_echo "## ---------------- ##
2485## Cache variables. ##
2486## ---------------- ##"
2487 echo
2488 # The following way of writing the cache mishandles newlines in values,
2489(
2490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491 eval ac_val=\$$ac_var
2492 case $ac_val in #(
2493 *${as_nl}*)
2494 case $ac_var in #(
2495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 esac
2498 case $ac_var in #(
2499 _ | IFS | as_nl) ;; #(
2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501 *) { eval $ac_var=; unset $ac_var;} ;;
2502 esac ;;
2503 esac
2504 done
2505 (set) 2>&1 |
2506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507 *${as_nl}ac_space=\ *)
2508 sed -n \
2509 "s/'\''/'\''\\\\'\'''\''/g;
2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 ;; #(
2512 *)
2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514 ;;
2515 esac |
2516 sort
2517)
2518 echo
2519
2520 $as_echo "## ----------------- ##
2521## Output variables. ##
2522## ----------------- ##"
2523 echo
2524 for ac_var in $ac_subst_vars
2525 do
2526 eval ac_val=\$$ac_var
2527 case $ac_val in
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 esac
2530 $as_echo "$ac_var='\''$ac_val'\''"
2531 done | sort
2532 echo
2533
2534 if test -n "$ac_subst_files"; then
2535 $as_echo "## ------------------- ##
2536## File substitutions. ##
2537## ------------------- ##"
2538 echo
2539 for ac_var in $ac_subst_files
2540 do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in
2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 esac
2545 $as_echo "$ac_var='\''$ac_val'\''"
2546 done | sort
2547 echo
2548 fi
2549
2550 if test -s confdefs.h; then
2551 $as_echo "## ----------- ##
2552## confdefs.h. ##
2553## ----------- ##"
2554 echo
2555 cat confdefs.h
2556 echo
2557 fi
2558 test "$ac_signal" != 0 &&
2559 $as_echo "$as_me: caught signal $ac_signal"
2560 $as_echo "$as_me: exit $exit_status"
2561 } >&5
2562 rm -f core *.core core.conftest.* &&
2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 exit $exit_status
2565' 0
2566for ac_signal in 1 2 13 15; do
2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568done
2569ac_signal=0
2570
2571# confdefs.h avoids OS command line length limits that DEFS can exceed.
2572rm -f -r conftest* confdefs.h
2573
2574$as_echo "/* confdefs.h */" > confdefs.h
2575
2576# Predefined preprocessor variables.
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_NAME "$PACKAGE_NAME"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_VERSION "$PACKAGE_VERSION"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_STRING "$PACKAGE_STRING"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_URL "$PACKAGE_URL"
2600_ACEOF
2601
2602
2603# Let the site file select an alternate cache file if it wants to.
2604# Prefer an explicitly selected file to automatically selected ones.
2605ac_site_file1=NONE
2606ac_site_file2=NONE
2607if test -n "$CONFIG_SITE"; then
2608 # We do not want a PATH search for config.site.
2609 case $CONFIG_SITE in #((
2610 -*) ac_site_file1=./$CONFIG_SITE;;
2611 */*) ac_site_file1=$CONFIG_SITE;;
2612 *) ac_site_file1=./$CONFIG_SITE;;
2613 esac
2614elif test "x$prefix" != xNONE; then
2615 ac_site_file1=$prefix/share/config.site
2616 ac_site_file2=$prefix/etc/config.site
2617else
2618 ac_site_file1=$ac_default_prefix/share/config.site
2619 ac_site_file2=$ac_default_prefix/etc/config.site
2620fi
2621for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622do
2623 test "x$ac_site_file" = xNONE && continue
2624 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627 sed 's/^/| /' "$ac_site_file" >&5
2628 . "$ac_site_file" \
2629 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631as_fn_error $? "failed to load site script $ac_site_file
2632See \`config.log' for more details" "$LINENO" 5; }
2633 fi
2634done
2635
2636if test -r "$cache_file"; then
2637 # Some versions of bash will fail to source /dev/null (special files
2638 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2639 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641$as_echo "$as_me: loading cache $cache_file" >&6;}
2642 case $cache_file in
2643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644 *) . "./$cache_file";;
2645 esac
2646 fi
2647else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649$as_echo "$as_me: creating cache $cache_file" >&6;}
2650 >$cache_file
2651fi
2652
05ea2a05
TT
2653as_fn_append ac_header_list " stdlib.h"
2654as_fn_append ac_header_list " unistd.h"
2655as_fn_append ac_header_list " sys/param.h"
01027315
TT
2656# Check that the precious variables saved in the cache have kept the same
2657# value.
2658ac_cache_corrupted=false
2659for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2665 set,)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2669 ,set)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,);;
2674 *)
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 fi;;
2693 esac
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2696 case $ac_new_val in
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2699 esac
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703 esac
2704 fi
2705done
2706if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712fi
2713## -------------------- ##
2714## Main body of script. ##
2715## -------------------- ##
2716
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725
2726
2727
3684d331 2728ac_config_headers="$ac_config_headers config.h:config.in"
01027315
TT
2729
2730ac_aux_dir=
2731for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2732 if test -f "$ac_dir/install-sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 break
2736 elif test -f "$ac_dir/install.sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 break
2740 elif test -f "$ac_dir/shtool"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/shtool install -c"
2743 break
2744 fi
2745done
2746if test -z "$ac_aux_dir"; then
2747 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2748fi
2749
2750# These three variables are undocumented and unsupported,
2751# and are intended to be withdrawn in a future Autoconf release.
2752# They can cause serious problems if a builder's source tree is in a directory
2753# whose full name contains unusual characters.
2754ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2755ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2756ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757
2758
2759# Make sure we can run config.sub.
2760$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2762
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764$as_echo_n "checking build system type... " >&6; }
2765if ${ac_cv_build+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767else
2768 ac_build_alias=$build_alias
2769test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771test "x$ac_build_alias" = x &&
2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2775
2776fi
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778$as_echo "$ac_cv_build" >&6; }
2779case $ac_cv_build in
2780*-*-*) ;;
2781*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2782esac
2783build=$ac_cv_build
2784ac_save_IFS=$IFS; IFS='-'
2785set x $ac_cv_build
2786shift
2787build_cpu=$1
2788build_vendor=$2
2789shift; shift
2790# Remember, the first character of IFS is used to create $*,
2791# except with old shells:
2792build_os=$*
2793IFS=$ac_save_IFS
2794case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2795
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798$as_echo_n "checking host system type... " >&6; }
2799if ${ac_cv_host+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801else
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2804else
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807fi
2808
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811$as_echo "$ac_cv_host" >&6; }
2812case $ac_cv_host in
2813*-*-*) ;;
2814*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2815esac
2816host=$ac_cv_host
2817ac_save_IFS=$IFS; IFS='-'
2818set x $ac_cv_host
2819shift
2820host_cpu=$1
2821host_vendor=$2
2822shift; shift
2823# Remember, the first character of IFS is used to create $*,
2824# except with old shells:
2825host_os=$*
2826IFS=$ac_save_IFS
2827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2828
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2831$as_echo_n "checking target system type... " >&6; }
2832if ${ac_cv_target+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 if test "x$target_alias" = x; then
2836 ac_cv_target=$ac_cv_host
2837else
2838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2840fi
2841
2842fi
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844$as_echo "$ac_cv_target" >&6; }
2845case $ac_cv_target in
2846*-*-*) ;;
2847*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2848esac
2849target=$ac_cv_target
2850ac_save_IFS=$IFS; IFS='-'
2851set x $ac_cv_target
2852shift
2853target_cpu=$1
2854target_vendor=$2
2855shift; shift
2856# Remember, the first character of IFS is used to create $*,
2857# except with old shells:
2858target_os=$*
2859IFS=$ac_save_IFS
2860case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2861
2862
2863# The aliases save the names the user supplied, while $host etc.
2864# will get canonicalized.
2865test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2867 NONENONEs,x,x, &&
2868 program_prefix=${target_alias}-
2869
2870
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2872$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2873 # Check whether --enable-maintainer-mode was given.
2874if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2876else
2877 USE_MAINTAINER_MODE=no
2878fi
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2881$as_echo "$USE_MAINTAINER_MODE" >&6; }
2882 if test $USE_MAINTAINER_MODE = yes; then
2883 MAINTAINER_MODE_TRUE=
2884 MAINTAINER_MODE_FALSE='#'
2885else
2886 MAINTAINER_MODE_TRUE='#'
2887 MAINTAINER_MODE_FALSE=
2888fi
2889
2890 MAINT=$MAINTAINER_MODE_TRUE
2891
2892
2893ac_aux_dir=
2894for ac_dir in .. "$srcdir"/..; do
2895 if test -f "$ac_dir/install-sh"; then
2896 ac_aux_dir=$ac_dir
2897 ac_install_sh="$ac_aux_dir/install-sh -c"
2898 break
2899 elif test -f "$ac_dir/install.sh"; then
2900 ac_aux_dir=$ac_dir
2901 ac_install_sh="$ac_aux_dir/install.sh -c"
2902 break
2903 elif test -f "$ac_dir/shtool"; then
2904 ac_aux_dir=$ac_dir
2905 ac_install_sh="$ac_aux_dir/shtool install -c"
2906 break
2907 fi
2908done
2909if test -z "$ac_aux_dir"; then
2910 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2911fi
2912
2913# These three variables are undocumented and unsupported,
2914# and are intended to be withdrawn in a future Autoconf release.
2915# They can cause serious problems if a builder's source tree is in a directory
2916# whose full name contains unusual characters.
2917ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2918ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2919ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2920
2921
2922am__api_version='1.15'
2923
2924# Find a good install program. We prefer a C program (faster),
2925# so one script is as good as another. But avoid the broken or
2926# incompatible versions:
2927# SysV /etc/install, /usr/sbin/install
2928# SunOS /usr/etc/install
2929# IRIX /sbin/install
2930# AIX /bin/install
2931# AmigaOS /C/install, which installs bootblocks on floppy discs
2932# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935# OS/2's system install, which has a completely different semantic
2936# ./install, which can be erroneously created by make from ./install.sh.
2937# Reject install programs that cannot install multiple files.
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2939$as_echo_n "checking for a BSD-compatible install... " >&6; }
2940if test -z "$INSTALL"; then
2941if ${ac_cv_path_install+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 # Account for people who put trailing slashes in PATH elements.
2950case $as_dir/ in #((
2951 ./ | .// | /[cC]/* | \
2952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2954 /usr/ucb/* ) ;;
2955 *)
2956 # OSF1 and SCO ODT 3.0 have their own names for install.
2957 # Don't use installbsd from OSF since it installs stuff as root
2958 # by default.
2959 for ac_prog in ginstall scoinst install; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2962 if test $ac_prog = install &&
2963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2965 :
2966 elif test $ac_prog = install &&
2967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2969 :
2970 else
2971 rm -rf conftest.one conftest.two conftest.dir
2972 echo one > conftest.one
2973 echo two > conftest.two
2974 mkdir conftest.dir
2975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2976 test -s conftest.one && test -s conftest.two &&
2977 test -s conftest.dir/conftest.one &&
2978 test -s conftest.dir/conftest.two
2979 then
2980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2981 break 3
2982 fi
2983 fi
2984 fi
2985 done
2986 done
2987 ;;
2988esac
2989
2990 done
2991IFS=$as_save_IFS
2992
2993rm -rf conftest.one conftest.two conftest.dir
2994
2995fi
2996 if test "${ac_cv_path_install+set}" = set; then
2997 INSTALL=$ac_cv_path_install
2998 else
2999 # As a last resort, use the slow shell script. Don't cache a
3000 # value for INSTALL within a source directory, because that will
3001 # break other packages using the cache if that directory is
3002 # removed, or if the value is a relative name.
3003 INSTALL=$ac_install_sh
3004 fi
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3007$as_echo "$INSTALL" >&6; }
3008
3009# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3010# It thinks the first close brace ends the variable substitution.
3011test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3012
3013test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3014
3015test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3016
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3018$as_echo_n "checking whether build environment is sane... " >&6; }
3019# Reject unsafe characters in $srcdir or the absolute working directory
3020# name. Accept space and tab only in the latter.
3021am_lf='
3022'
3023case `pwd` in
3024 *[\\\"\#\$\&\'\`$am_lf]*)
3025 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3026esac
3027case $srcdir in
3028 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3029 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3030esac
3031
3032# Do 'set' in a subshell so we don't clobber the current shell's
3033# arguments. Must try -L first in case configure is actually a
3034# symlink; some systems play weird games with the mod time of symlinks
3035# (eg FreeBSD returns the mod time of the symlink's containing
3036# directory).
3037if (
3038 am_has_slept=no
3039 for am_try in 1 2; do
3040 echo "timestamp, slept: $am_has_slept" > conftest.file
3041 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3042 if test "$*" = "X"; then
3043 # -L didn't work.
3044 set X `ls -t "$srcdir/configure" conftest.file`
3045 fi
3046 if test "$*" != "X $srcdir/configure conftest.file" \
3047 && test "$*" != "X conftest.file $srcdir/configure"; then
3048
3049 # If neither matched, then we have a broken ls. This can happen
3050 # if, for instance, CONFIG_SHELL is bash and it inherits a
3051 # broken ls alias from the environment. This has actually
3052 # happened. Such a system could not be considered "sane".
3053 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3054 alias in your environment" "$LINENO" 5
3055 fi
3056 if test "$2" = conftest.file || test $am_try -eq 2; then
3057 break
3058 fi
3059 # Just in case.
3060 sleep 1
3061 am_has_slept=yes
3062 done
3063 test "$2" = conftest.file
3064 )
3065then
3066 # Ok.
3067 :
3068else
3069 as_fn_error $? "newly created file is older than distributed files!
3070Check your system clock" "$LINENO" 5
3071fi
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073$as_echo "yes" >&6; }
3074# If we didn't sleep, we still need to ensure time stamps of config.status and
3075# generated files are strictly newer.
3076am_sleep_pid=
3077if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3078 ( sleep 1 ) &
3079 am_sleep_pid=$!
3080fi
3081
3082rm -f conftest.file
3083
3084test "$program_prefix" != NONE &&
3085 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3086# Use a double $ so make ignores it.
3087test "$program_suffix" != NONE &&
3088 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3089# Double any \ or $.
3090# By default was `s,x,x', remove it if useless.
3091ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3092program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3093
3094# Expand $ac_aux_dir to an absolute path.
3095am_aux_dir=`cd "$ac_aux_dir" && pwd`
3096
3097if test x"${MISSING+set}" != xset; then
3098 case $am_aux_dir in
3099 *\ * | *\ *)
3100 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3101 *)
3102 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3103 esac
3104fi
3105# Use eval to expand $SHELL
3106if eval "$MISSING --is-lightweight"; then
3107 am_missing_run="$MISSING "
3108else
3109 am_missing_run=
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3111$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3112fi
3113
3114if test x"${install_sh+set}" != xset; then
3115 case $am_aux_dir in
3116 *\ * | *\ *)
3117 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3118 *)
3119 install_sh="\${SHELL} $am_aux_dir/install-sh"
3120 esac
3121fi
3122
3123# Installed binaries are usually stripped using 'strip' when the user
3124# run "make install-strip". However 'strip' might not be the right
3125# tool to use in cross-compilation environments, therefore Automake
3126# will honor the 'STRIP' environment variable to overrule this program.
3127if test "$cross_compiling" != no; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}strip; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_STRIP+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135else
3136 if test -n "$STRIP"; then
3137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150done
3151 done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156STRIP=$ac_cv_prog_STRIP
3157if test -n "$STRIP"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3159$as_echo "$STRIP" >&6; }
3160else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166fi
3167if test -z "$ac_cv_prog_STRIP"; then
3168 ac_ct_STRIP=$STRIP
3169 # Extract the first word of "strip", so it can be a program name with args.
3170set dummy strip; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175else
3176 if test -n "$ac_ct_STRIP"; then
3177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_STRIP="strip"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3197if test -n "$ac_ct_STRIP"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3199$as_echo "$ac_ct_STRIP" >&6; }
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205 if test "x$ac_ct_STRIP" = x; then
3206 STRIP=":"
3207 else
3208 case $cross_compiling:$ac_tool_warned in
3209yes:)
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212ac_tool_warned=yes ;;
3213esac
3214 STRIP=$ac_ct_STRIP
3215 fi
3216else
3217 STRIP="$ac_cv_prog_STRIP"
3218fi
3219
3220fi
3221INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3222
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3224$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3225if test -z "$MKDIR_P"; then
3226 if ${ac_cv_path_mkdir+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_prog in mkdir gmkdir; do
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3238 'mkdir (GNU coreutils) '* | \
3239 'mkdir (coreutils) '* | \
3240 'mkdir (fileutils) '4.1*)
3241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3242 break 3;;
3243 esac
3244 done
3245 done
3246 done
3247IFS=$as_save_IFS
3248
3249fi
3250
3251 test -d ./--version && rmdir ./--version
3252 if test "${ac_cv_path_mkdir+set}" = set; then
3253 MKDIR_P="$ac_cv_path_mkdir -p"
3254 else
3255 # As a last resort, use the slow shell script. Don't cache a
3256 # value for MKDIR_P within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the value is a relative name.
3259 MKDIR_P="$ac_install_sh -d"
3260 fi
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3263$as_echo "$MKDIR_P" >&6; }
3264
3265for ac_prog in gawk mawk nawk awk
3266do
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268set dummy $ac_prog; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if ${ac_cv_prog_AWK+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273else
3274 if test -n "$AWK"; then
3275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_AWK="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289 done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294AWK=$ac_cv_prog_AWK
3295if test -n "$AWK"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3297$as_echo "$AWK" >&6; }
3298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303
3304 test -n "$AWK" && break
3305done
3306
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3308$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3309set x ${MAKE-make}
3310ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3311if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 cat >conftest.make <<\_ACEOF
3315SHELL = /bin/sh
3316all:
3317 @echo '@@@%%%=$(MAKE)=@@@%%%'
3318_ACEOF
3319# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3320case `${MAKE-make} -f conftest.make 2>/dev/null` in
3321 *@@@%%%=?*=@@@%%%*)
3322 eval ac_cv_prog_make_${ac_make}_set=yes;;
3323 *)
3324 eval ac_cv_prog_make_${ac_make}_set=no;;
3325esac
3326rm -f conftest.make
3327fi
3328if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330$as_echo "yes" >&6; }
3331 SET_MAKE=
3332else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335 SET_MAKE="MAKE=${MAKE-make}"
3336fi
3337
3338rm -rf .tst 2>/dev/null
3339mkdir .tst 2>/dev/null
3340if test -d .tst; then
3341 am__leading_dot=.
3342else
3343 am__leading_dot=_
3344fi
3345rmdir .tst 2>/dev/null
3346
3347# Check whether --enable-silent-rules was given.
3348if test "${enable_silent_rules+set}" = set; then :
3349 enableval=$enable_silent_rules;
3350fi
3351
3352case $enable_silent_rules in # (((
3353 yes) AM_DEFAULT_VERBOSITY=0;;
3354 no) AM_DEFAULT_VERBOSITY=1;;
3355 *) AM_DEFAULT_VERBOSITY=1;;
3356esac
3357am_make=${MAKE-make}
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3359$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3360if ${am_cv_make_support_nested_variables+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362else
3363 if $as_echo 'TRUE=$(BAR$(V))
3364BAR0=false
3365BAR1=true
3366V=1
3367am__doit:
3368 @$(TRUE)
3369.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3370 am_cv_make_support_nested_variables=yes
3371else
3372 am_cv_make_support_nested_variables=no
3373fi
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376$as_echo "$am_cv_make_support_nested_variables" >&6; }
3377if test $am_cv_make_support_nested_variables = yes; then
3378 AM_V='$(V)'
3379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3380else
3381 AM_V=$AM_DEFAULT_VERBOSITY
3382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3383fi
3384AM_BACKSLASH='\'
3385
3386if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388 # is not polluted with repeated "-I."
3389 am__isrc=' -I$(srcdir)'
3390 # test to see if srcdir already configured
3391 if test -f $srcdir/config.status; then
3392 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393 fi
3394fi
3395
3396# test whether we have cygpath
3397if test -z "$CYGPATH_W"; then
3398 if (cygpath --version) >/dev/null 2>/dev/null; then
3399 CYGPATH_W='cygpath -w'
3400 else
3401 CYGPATH_W=echo
3402 fi
3403fi
3404
3405
3406# Define the identity of the package.
3407 PACKAGE='gdbsupport'
3408 VERSION='1.0'
3409
3410
3411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE "$PACKAGE"
3413_ACEOF
3414
3415
3416cat >>confdefs.h <<_ACEOF
3417#define VERSION "$VERSION"
3418_ACEOF
3419
3420# Some tools Automake needs.
3421
3422ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3423
3424
3425AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3426
3427
3428AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3429
3430
3431AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3432
3433
3434MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3435
3436# For better backward compatibility. To be removed once Automake 1.9.x
3437# dies out for good. For more background, see:
3438# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3439# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3440mkdir_p='$(MKDIR_P)'
3441
3442# We need awk for the "check" target (and possibly the TAP driver). The
3443# system "awk" is bad on some platforms.
3444# Always define AMTAR for backward compatibility. Yes, it's still used
3445# in the wild :-( We should find a proper way to deprecate it ...
3446AMTAR='$${TAR-tar}'
3447
3448
3449# We'll loop over all known methods to create a tar archive until one works.
3450_am_tools='gnutar pax cpio none'
3451
3452am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3453
3454
3455
3456
3457
3458
3459# POSIX will say in a future version that running "rm -f" with no argument
3460# is OK; and we want to be able to make that assumption in our Makefile
3461# recipes. So use an aggressive probe to check that the usage we want is
3462# actually supported "in the wild" to an acceptable degree.
3463# See automake bug#10828.
3464# To make any issue more visible, cause the running configure to be aborted
3465# by default if the 'rm' program in use doesn't match our expectations; the
3466# user can still override this though.
3467if rm -f && rm -fr && rm -rf; then : OK; else
3468 cat >&2 <<'END'
3469Oops!
3470
3471Your 'rm' program seems unable to run without file operands specified
3472on the command line, even when the '-f' option is present. This is contrary
3473to the behaviour of most rm programs out there, and not conforming with
3474the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3475
3476Please tell bug-automake@gnu.org about your system, including the value
3477of your $PATH and any error possibly output before this message. This
3478can help us improve future automake versions.
3479
3480END
3481 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3482 echo 'Configuration will proceed anyway, since you have set the' >&2
3483 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3484 echo >&2
3485 else
3486 cat >&2 <<'END'
3487Aborting the configuration process, to ensure you take notice of the issue.
3488
3489You can download and install GNU coreutils to get an 'rm' implementation
3490that behaves properly: <http://www.gnu.org/software/coreutils/>.
3491
3492If you want to complete the configuration process using your problematic
3493'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3494to "yes", and re-run configure.
3495
3496END
3497 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3498 fi
3499fi
3500
3501# Check whether --enable-silent-rules was given.
3502if test "${enable_silent_rules+set}" = set; then :
3503 enableval=$enable_silent_rules;
3504fi
3505
3506case $enable_silent_rules in # (((
3507 yes) AM_DEFAULT_VERBOSITY=0;;
3508 no) AM_DEFAULT_VERBOSITY=1;;
3509 *) AM_DEFAULT_VERBOSITY=0;;
3510esac
3511am_make=${MAKE-make}
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3513$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3514if ${am_cv_make_support_nested_variables+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516else
3517 if $as_echo 'TRUE=$(BAR$(V))
3518BAR0=false
3519BAR1=true
3520V=1
3521am__doit:
3522 @$(TRUE)
3523.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3524 am_cv_make_support_nested_variables=yes
3525else
3526 am_cv_make_support_nested_variables=no
3527fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3530$as_echo "$am_cv_make_support_nested_variables" >&6; }
3531if test $am_cv_make_support_nested_variables = yes; then
3532 AM_V='$(V)'
3533 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3534else
3535 AM_V=$AM_DEFAULT_VERBOSITY
3536 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3537fi
3538AM_BACKSLASH='\'
3539
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3548set dummy ${ac_tool_prefix}gcc; ac_word=$2
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550$as_echo_n "checking for $ac_word... " >&6; }
3551if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556else
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568done
3569 done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574CC=$ac_cv_prog_CC
3575if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577$as_echo "$CC" >&6; }
3578else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580$as_echo "no" >&6; }
3581fi
3582
3583
3584fi
3585if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588set dummy gcc; ac_word=$2
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590$as_echo_n "checking for $ac_word... " >&6; }
3591if ${ac_cv_prog_ac_ct_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593else
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_ac_ct_CC="gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608done
3609 done
3610IFS=$as_save_IFS
3611
3612fi
3613fi
3614ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615if test -n "$ac_ct_CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617$as_echo "$ac_ct_CC" >&6; }
3618else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
3621fi
3622
3623 if test "x$ac_ct_CC" = x; then
3624 CC=""
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627yes:)
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630ac_tool_warned=yes ;;
3631esac
3632 CC=$ac_ct_CC
3633 fi
3634else
3635 CC="$ac_cv_prog_CC"
3636fi
3637
3638if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3641set dummy ${ac_tool_prefix}cc; ac_word=$2
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643$as_echo_n "checking for $ac_word... " >&6; }
3644if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646else
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_CC="${ac_tool_prefix}cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661done
3662 done
3663IFS=$as_save_IFS
3664
3665fi
3666fi
3667CC=$ac_cv_prog_CC
3668if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670$as_echo "$CC" >&6; }
3671else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673$as_echo "no" >&6; }
3674fi
3675
3676
3677 fi
3678fi
3679if test -z "$CC"; then
3680 # Extract the first word of "cc", so it can be a program name with args.
3681set dummy cc; ac_word=$2
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683$as_echo_n "checking for $ac_word... " >&6; }
3684if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689else
3690 ac_prog_rejected=no
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699 ac_prog_rejected=yes
3700 continue
3701 fi
3702 ac_cv_prog_CC="cc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706done
3707 done
3708IFS=$as_save_IFS
3709
3710if test $ac_prog_rejected = yes; then
3711 # We found a bogon in the path, so make sure we never use it.
3712 set dummy $ac_cv_prog_CC
3713 shift
3714 if test $# != 0; then
3715 # We chose a different compiler from the bogus one.
3716 # However, it has the same basename, so the bogon will be chosen
3717 # first if we set CC to just the basename; use the full file name.
3718 shift
3719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3720 fi
3721fi
3722fi
3723fi
3724CC=$ac_cv_prog_CC
3725if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727$as_echo "$CC" >&6; }
3728else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
3731fi
3732
3733
3734fi
3735if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742$as_echo_n "checking for $ac_word... " >&6; }
3743if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761 done
3762IFS=$as_save_IFS
3763
3764fi
3765fi
3766CC=$ac_cv_prog_CC
3767if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769$as_echo "$CC" >&6; }
3770else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772$as_echo "no" >&6; }
3773fi
3774
3775
3776 test -n "$CC" && break
3777 done
3778fi
3779if test -z "$CC"; then
3780 ac_ct_CC=$CC
3781 for ac_prog in cl.exe
3782do
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784set dummy $ac_prog; ac_word=$2
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
3787if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804done
3805 done
3806IFS=$as_save_IFS
3807
3808fi
3809fi
3810ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813$as_echo "$ac_ct_CC" >&6; }
3814else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819
3820 test -n "$ac_ct_CC" && break
3821done
3822
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827yes:)
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830ac_tool_warned=yes ;;
3831esac
3832 CC=$ac_ct_CC
3833 fi
3834fi
3835
3836fi
3837
3838
3839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841as_fn_error $? "no acceptable C compiler found in \$PATH
3842See \`config.log' for more details" "$LINENO" 5; }
3843
3844# Provide some information about the compiler.
3845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3846set X $ac_compile
3847ac_compiler=$2
3848for ac_option in --version -v -V -qversion; do
3849 { { ac_try="$ac_compiler $ac_option >&5"
3850case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855$as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3857 ac_status=$?
3858 if test -s conftest.err; then
3859 sed '10a\
3860... rest of stderr output deleted ...
3861 10q' conftest.err >conftest.er1
3862 cat conftest.er1 >&5
3863 fi
3864 rm -f conftest.er1 conftest.err
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867done
3868
3869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h. */
3871
3872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880ac_clean_files_save=$ac_clean_files
3881ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3882# Try to create an executable without -o first, disregard a.out.
3883# It will help us diagnose broken compilers, and finding out an intuition
3884# of exeext.
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3886$as_echo_n "checking whether the C compiler works... " >&6; }
3887ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3888
3889# The possible output files:
3890ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3891
3892ac_rmfiles=
3893for ac_file in $ac_files
3894do
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3898 esac
3899done
3900rm -f $ac_rmfiles
3901
3902if { { ac_try="$ac_link_default"
3903case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908$as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link_default") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3915# in a Makefile. We should not override ac_cv_exeext if it was cached,
3916# so that the user can short-circuit this test for compilers unknown to
3917# Autoconf.
3918for ac_file in $ac_files ''
3919do
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3923 ;;
3924 [ab].out )
3925 # We found the default executable, but exeext='' is most
3926 # certainly right.
3927 break;;
3928 *.* )
3929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3930 then :; else
3931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932 fi
3933 # We set ac_cv_exeext here because the later test for it is not
3934 # safe: cross compilers may not add the suffix if given an `-o'
3935 # argument, so we may need to know it at that point already.
3936 # Even if this section looks crufty: it has the advantage of
3937 # actually working.
3938 break;;
3939 * )
3940 break;;
3941 esac
3942done
3943test "$ac_cv_exeext" = no && ac_cv_exeext=
3944
3945else
3946 ac_file=''
3947fi
3948if test -z "$ac_file"; then :
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950$as_echo "no" >&6; }
3951$as_echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error 77 "C compiler cannot create executables
3957See \`config.log' for more details" "$LINENO" 5; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960$as_echo "yes" >&6; }
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3963$as_echo_n "checking for C compiler default output file name... " >&6; }
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3965$as_echo "$ac_file" >&6; }
3966ac_exeext=$ac_cv_exeext
3967
3968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3969ac_clean_files=$ac_clean_files_save
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3971$as_echo_n "checking for suffix of executables... " >&6; }
3972if { { ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978$as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }; then :
3983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3984# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3985# work properly (i.e., refer to `conftest.exe'), while it won't with
3986# `rm'.
3987for ac_file in conftest.exe conftest conftest.*; do
3988 test -f "$ac_file" || continue
3989 case $ac_file in
3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 break;;
3993 * ) break;;
3994 esac
3995done
3996else
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4000See \`config.log' for more details" "$LINENO" 5; }
4001fi
4002rm -f conftest conftest$ac_cv_exeext
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4004$as_echo "$ac_cv_exeext" >&6; }
4005
4006rm -f conftest.$ac_ext
4007EXEEXT=$ac_cv_exeext
4008ac_exeext=$EXEEXT
4009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h. */
4011#include <stdio.h>
4012int
4013main ()
4014{
4015FILE *f = fopen ("conftest.out", "w");
4016 return ferror (f) || fclose (f) != 0;
4017
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022ac_clean_files="$ac_clean_files conftest.out"
4023# Check that the compiler produces executables we can run. If not, either
4024# the compiler is broken, or we cross compile.
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4026$as_echo_n "checking whether we are cross compiling... " >&6; }
4027if test "$cross_compiling" != yes; then
4028 { { ac_try="$ac_link"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034$as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 if { ac_try='./conftest$ac_cv_exeext'
4040 { { case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043esac
4044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045$as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; }; then
4050 cross_compiling=no
4051 else
4052 if test "$cross_compiling" = maybe; then
4053 cross_compiling=yes
4054 else
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057as_fn_error $? "cannot run C compiled programs.
4058If you meant to cross compile, use \`--host'.
4059See \`config.log' for more details" "$LINENO" 5; }
4060 fi
4061 fi
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4064$as_echo "$cross_compiling" >&6; }
4065
4066rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4067ac_clean_files=$ac_clean_files_save
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069$as_echo_n "checking for suffix of object files... " >&6; }
4070if ${ac_cv_objext+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h. */
4075
4076int
4077main ()
4078{
4079
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084rm -f conftest.o conftest.obj
4085if { { ac_try="$ac_compile"
4086case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091$as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4098 case $ac_file in
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4101 break;;
4102 esac
4103done
4104else
4105 $as_echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error $? "cannot compute suffix of object files: cannot compile
4111See \`config.log' for more details" "$LINENO" 5; }
4112fi
4113rm -f conftest.$ac_cv_objext conftest.$ac_ext
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116$as_echo "$ac_cv_objext" >&6; }
4117OBJEXT=$ac_cv_objext
4118ac_objext=$OBJEXT
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121if ${ac_cv_c_compiler_gnu+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130#ifndef __GNUC__
4131 choke me
4132#endif
4133
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_compiler_gnu=yes
4140else
4141 ac_compiler_gnu=no
4142fi
4143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144ac_cv_c_compiler_gnu=$ac_compiler_gnu
4145
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151else
4152 GCC=
4153fi
4154ac_test_CFLAGS=${CFLAGS+set}
4155ac_save_CFLAGS=$CFLAGS
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157$as_echo_n "checking whether $CC accepts -g... " >&6; }
4158if ${ac_cv_prog_cc_g+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160else
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4163 ac_cv_prog_cc_g=no
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h. */
4167
4168int
4169main ()
4170{
4171
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_g=yes
4178else
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182
4183int
4184main ()
4185{
4186
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"; then :
4192
4193else
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h. */
4198
4199int
4200main ()
4201{
4202
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_g=yes
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218$as_echo "$ac_cv_prog_cc_g" >&6; }
4219if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4226 fi
4227else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4232 fi
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236if ${ac_cv_prog_cc_c89+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238else
4239 ac_cv_prog_cc_c89=no
4240ac_save_CC=$CC
4241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243#include <stdarg.h>
4244#include <stdio.h>
4245struct stat;
4246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247struct buf { int x; };
4248FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249static char *e (p, i)
4250 char **p;
4251 int i;
4252{
4253 return p[i];
4254}
4255static char *f (char * (*g) (char **, int), char **p, ...)
4256{
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4263}
4264
4265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273
4274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276#define FOO(x) 'x'
4277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278
4279int test (int i, double x);
4280struct s1 {int (*f) (int a);};
4281struct s2 {int (*f) (double a);};
4282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283int argc;
4284char **argv;
4285int
4286main ()
4287{
4288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 ;
4290 return 0;
4291}
4292_ACEOF
4293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295do
4296 CC="$ac_save_CC $ac_arg"
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
4299fi
4300rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
4302done
4303rm -f conftest.$ac_ext
4304CC=$ac_save_CC
4305
4306fi
4307# AC_CACHE_VAL
4308case "x$ac_cv_prog_cc_c89" in
4309 x)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311$as_echo "none needed" >&6; } ;;
4312 xno)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314$as_echo "unsupported" >&6; } ;;
4315 *)
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319esac
4320if test "x$ac_cv_prog_cc_c89" != xno; then :
4321
4322fi
4323
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330ac_ext=c
4331ac_cpp='$CPP $CPPFLAGS'
4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4336$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4337if ${am_cv_prog_cc_c_o+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351 # Make sure it works both with $CC and with simple cc.
4352 # Following AC_PROG_CC_C_O, we do the test twice because some
4353 # compilers refuse to overwrite an existing .o file with -o,
4354 # though they will create one.
4355 am_cv_prog_cc_c_o=yes
4356 for am_i in 1 2; do
4357 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4358 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } \
4362 && test -f conftest2.$ac_objext; then
4363 : OK
4364 else
4365 am_cv_prog_cc_c_o=no
4366 break
4367 fi
4368 done
4369 rm -f core conftest*
4370 unset am_i
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4373$as_echo "$am_cv_prog_cc_c_o" >&6; }
4374if test "$am_cv_prog_cc_c_o" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC="$am_aux_dir/compile $CC"
4381fi
4382ac_ext=c
4383ac_cpp='$CPP $CPPFLAGS'
4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388DEPDIR="${am__leading_dot}deps"
4389
4390ac_config_commands="$ac_config_commands depfiles"
4391
4392
4393am_make=${MAKE-make}
4394cat > confinc << 'END'
4395am__doit:
4396 @echo this is the am__doit target
4397.PHONY: am__doit
4398END
4399# If we don't find an include directive, just comment out the code.
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401$as_echo_n "checking for style of include used by $am_make... " >&6; }
4402am__include="#"
4403am__quote=
4404_am_result=none
4405# First try GNU make style include.
4406echo "include confinc" > confmf
4407# Ignore all kinds of additional output from 'make'.
4408case `$am_make -s -f confmf 2> /dev/null` in #(
4409*the\ am__doit\ target*)
4410 am__include=include
4411 am__quote=
4412 _am_result=GNU
4413 ;;
4414esac
4415# Now try BSD make style include.
4416if test "$am__include" = "#"; then
4417 echo '.include "confinc"' > confmf
4418 case `$am_make -s -f confmf 2> /dev/null` in #(
4419 *the\ am__doit\ target*)
4420 am__include=.include
4421 am__quote="\""
4422 _am_result=BSD
4423 ;;
4424 esac
4425fi
4426
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429$as_echo "$_am_result" >&6; }
4430rm -f confinc confmf
4431
4432# Check whether --enable-dependency-tracking was given.
4433if test "${enable_dependency_tracking+set}" = set; then :
4434 enableval=$enable_dependency_tracking;
4435fi
4436
4437if test "x$enable_dependency_tracking" != xno; then
4438 am_depcomp="$ac_aux_dir/depcomp"
4439 AMDEPBACKSLASH='\'
4440 am__nodep='_no'
4441fi
4442 if test "x$enable_dependency_tracking" != xno; then
4443 AMDEP_TRUE=
4444 AMDEP_FALSE='#'
4445else
4446 AMDEP_TRUE='#'
4447 AMDEP_FALSE=
4448fi
4449
4450
4451
4452depcc="$CC" am_compiler_list=
4453
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4455$as_echo_n "checking dependency style of $depcc... " >&6; }
4456if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458else
4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named 'D' -- because '-MD' means "put the output
4464 # in D".
4465 rm -rf conftest.dir
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4478
4479 am_cv_CC_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 fi
4483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4487
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4492 #
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500 # Solaris 10 /bin/sh.
4501 echo '/* dummy */' > sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
4505 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle '-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs.
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4511 case $depmode in
4512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4515 ;;
4516 nosideeffect)
4517 # After this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested.
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4523 fi
4524 ;;
4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526 # This compiler won't grok '-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4531 ;;
4532 none) break ;;
4533 esac
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CC_dependencies_compiler_type=$depmode
4553 break
4554 fi
4555 fi
4556 done
4557
4558 cd ..
4559 rm -rf conftest.dir
4560else
4561 am_cv_CC_dependencies_compiler_type=none
4562fi
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4567CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568
4569 if
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCC_TRUE=
4573 am__fastdepCC_FALSE='#'
4574else
4575 am__fastdepCC_TRUE='#'
4576 am__fastdepCC_FALSE=
4577fi
4578
4579
4580ac_ext=cpp
4581ac_cpp='$CXXCPP $CPPFLAGS'
4582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4585if test -z "$CXX"; then
4586 if test -n "$CCC"; then
4587 CXX=$CCC
4588 else
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
4596if ${ac_cv_prog_CXX+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$CXX"; then
4600 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614 done
4615IFS=$as_save_IFS
4616
4617fi
4618fi
4619CXX=$ac_cv_prog_CXX
4620if test -n "$CXX"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4622$as_echo "$CXX" >&6; }
4623else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626fi
4627
4628
4629 test -n "$CXX" && break
4630 done
4631fi
4632if test -z "$CXX"; then
4633 ac_ct_CXX=$CXX
4634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4635do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637set dummy $ac_prog; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4664if test -n "$ac_ct_CXX"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4666$as_echo "$ac_ct_CXX" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673 test -n "$ac_ct_CXX" && break
4674done
4675
4676 if test "x$ac_ct_CXX" = x; then
4677 CXX="g++"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680yes:)
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685 CXX=$ac_ct_CXX
4686 fi
4687fi
4688
4689 fi
4690fi
4691# Provide some information about the compiler.
4692$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4693set X $ac_compile
4694ac_compiler=$2
4695for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700esac
4701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702$as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704 ac_status=$?
4705 if test -s conftest.err; then
4706 sed '10a\
4707... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 fi
4711 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714done
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4717$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4718if ${ac_cv_cxx_compiler_gnu+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727#ifndef __GNUC__
4728 choke me
4729#endif
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735if ac_fn_cxx_try_compile "$LINENO"; then :
4736 ac_compiler_gnu=yes
4737else
4738 ac_compiler_gnu=no
4739fi
4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4742
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4745$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4746if test $ac_compiler_gnu = yes; then
4747 GXX=yes
4748else
4749 GXX=
4750fi
4751ac_test_CXXFLAGS=${CXXFLAGS+set}
4752ac_save_CXXFLAGS=$CXXFLAGS
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4754$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4755if ${ac_cv_prog_cxx_g+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4759 ac_cxx_werror_flag=yes
4760 ac_cv_prog_cxx_g=no
4761 CXXFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h. */
4764
4765int
4766main ()
4767{
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773if ac_fn_cxx_try_compile "$LINENO"; then :
4774 ac_cv_prog_cxx_g=yes
4775else
4776 CXXFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_cxx_try_compile "$LINENO"; then :
4789
4790else
4791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 CXXFLAGS="-g"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h. */
4795
4796int
4797main ()
4798{
4799
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804if ac_fn_cxx_try_compile "$LINENO"; then :
4805 ac_cv_prog_cxx_g=yes
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4815$as_echo "$ac_cv_prog_cxx_g" >&6; }
4816if test "$ac_test_CXXFLAGS" = set; then
4817 CXXFLAGS=$ac_save_CXXFLAGS
4818elif test $ac_cv_prog_cxx_g = yes; then
4819 if test "$GXX" = yes; then
4820 CXXFLAGS="-g -O2"
4821 else
4822 CXXFLAGS="-g"
4823 fi
4824else
4825 if test "$GXX" = yes; then
4826 CXXFLAGS="-O2"
4827 else
4828 CXXFLAGS=
4829 fi
4830fi
4831ac_ext=c
4832ac_cpp='$CPP $CPPFLAGS'
4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837depcc="$CXX" am_compiler_list=
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840$as_echo_n "checking dependency style of $depcc... " >&6; }
4841if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843else
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4849 # in D".
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_CXX_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
4869 case " $depcc " in #(
4870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4871 esac
4872
4873 for depmode in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4877 #
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4881 : > sub/conftest.c
4882 for i in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4885 # Solaris 10 /bin/sh.
4886 echo '/* dummy */' > sub/conftst$i.h
4887 done
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle '-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs.
4894 am__obj=sub/conftest.${OBJEXT-o}
4895 am__minus_obj="-o $am__obj"
4896 case $depmode in
4897 gcc)
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false || continue
4900 ;;
4901 nosideeffect)
4902 # After this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested.
4904 if test "x$enable_dependency_tracking" = xyes; then
4905 continue
4906 else
4907 break
4908 fi
4909 ;;
4910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4911 # This compiler won't grok '-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj=conftest.${OBJEXT-o}
4915 am__minus_obj=
4916 ;;
4917 none) break ;;
4918 esac
4919 if depmode=$depmode \
4920 source=sub/conftest.c object=$am__obj \
4921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4923 >/dev/null 2>conftest.err &&
4924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4937 am_cv_CXX_dependencies_compiler_type=$depmode
4938 break
4939 fi
4940 fi
4941 done
4942
4943 cd ..
4944 rm -rf conftest.dir
4945else
4946 am_cv_CXX_dependencies_compiler_type=none
4947fi
4948
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4951$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4952CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4953
4954 if
4955 test "x$enable_dependency_tracking" != xno \
4956 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4957 am__fastdepCXX_TRUE=
4958 am__fastdepCXX_FALSE='#'
4959else
4960 am__fastdepCXX_TRUE='#'
4961 am__fastdepCXX_FALSE=
4962fi
4963
4964
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if ${ac_cv_prog_RANLIB+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972else
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988 done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993RANLIB=$ac_cv_prog_RANLIB
4994if test -n "$RANLIB"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4996$as_echo "$RANLIB" >&6; }
4997else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003fi
5004if test -z "$ac_cv_prog_RANLIB"; then
5005 ac_ct_RANLIB=$RANLIB
5006 # Extract the first word of "ranlib", so it can be a program name with args.
5007set dummy ranlib; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 if test -n "$ac_ct_RANLIB"; then
5014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_RANLIB="ranlib"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027done
5028 done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5034if test -n "$ac_ct_RANLIB"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5036$as_echo "$ac_ct_RANLIB" >&6; }
5037else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042 if test "x$ac_ct_RANLIB" = x; then
5043 RANLIB=":"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051 RANLIB=$ac_ct_RANLIB
5052 fi
5053else
5054 RANLIB="$ac_cv_prog_RANLIB"
5055fi
5056
5057
5058
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5065$as_echo_n "checking how to run the C preprocessor... " >&6; }
5066# On Suns, sometimes $CPP names a directory.
5067if test -n "$CPP" && test -d "$CPP"; then
5068 CPP=
5069fi
5070if test -z "$CPP"; then
5071 if ${ac_cv_prog_CPP+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 # Double quotes because CPP needs to be expanded
5075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5076 do
5077 ac_preproc_ok=false
5078for ac_c_preproc_warn_flag in '' yes
5079do
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088#ifdef __STDC__
5089# include <limits.h>
5090#else
5091# include <assert.h>
5092#endif
5093 Syntax error
5094_ACEOF
5095if ac_fn_c_try_cpp "$LINENO"; then :
5096
5097else
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.i conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#include <ac_nonexistent.h>
5108_ACEOF
5109if ac_fn_c_try_cpp "$LINENO"; then :
5110 # Broken: success on invalid input.
5111continue
5112else
5113 # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.i conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.i conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then :
5123 break
5124fi
5125
5126 done
5127 ac_cv_prog_CPP=$CPP
5128
5129fi
5130 CPP=$ac_cv_prog_CPP
5131else
5132 ac_cv_prog_CPP=$CPP
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5135$as_echo "$CPP" >&6; }
5136ac_preproc_ok=false
5137for ac_c_preproc_warn_flag in '' yes
5138do
5139 # Use a header file that comes with gcc, so configuring glibc
5140 # with a fresh cross-compiler works.
5141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142 # <limits.h> exists even on freestanding compilers.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h. */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152 Syntax error
5153_ACEOF
5154if ac_fn_c_try_cpp "$LINENO"; then :
5155
5156else
5157 # Broken: fails on valid input.
5158continue
5159fi
5160rm -f conftest.err conftest.i conftest.$ac_ext
5161
5162 # OK, works on sane cases. Now check whether nonexistent headers
5163 # can be detected and how.
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h. */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if ac_fn_c_try_cpp "$LINENO"; then :
5169 # Broken: success on invalid input.
5170continue
5171else
5172 # Passes both tests.
5173ac_preproc_ok=:
5174break
5175fi
5176rm -f conftest.err conftest.i conftest.$ac_ext
5177
5178done
5179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180rm -f conftest.i conftest.err conftest.$ac_ext
5181if $ac_preproc_ok; then :
5182
5183else
5184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5187See \`config.log' for more details" "$LINENO" 5; }
5188fi
5189
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5198$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5199if ${ac_cv_path_GREP+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201else
5202 if test -z "$GREP"; then
5203 ac_path_GREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in grep ggrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_GREP" || continue
5214# Check for GNU ac_path_GREP and select it if it is found.
5215 # Check for GNU $ac_path_GREP
5216case `"$ac_path_GREP" --version 2>&1` in
5217*GNU*)
5218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5219*)
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5223 do
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'GREP' >> "conftest.nl"
5228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_GREP="$ac_path_GREP"
5234 ac_path_GREP_max=$ac_count
5235 fi
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240esac
5241
5242 $ac_path_GREP_found && break 3
5243 done
5244 done
5245 done
5246IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_GREP"; then
5248 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5249 fi
5250else
5251 ac_cv_path_GREP=$GREP
5252fi
5253
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5256$as_echo "$ac_cv_path_GREP" >&6; }
5257 GREP="$ac_cv_path_GREP"
5258
5259
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5261$as_echo_n "checking for egrep... " >&6; }
5262if ${ac_cv_path_EGREP+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264else
5265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5266 then ac_cv_path_EGREP="$GREP -E"
5267 else
5268 if test -z "$EGREP"; then
5269 ac_path_EGREP_found=false
5270 # Loop through the user's path and test for each of PROGNAME-LIST
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_prog in egrep; do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5279 as_fn_executable_p "$ac_path_EGREP" || continue
5280# Check for GNU ac_path_EGREP and select it if it is found.
5281 # Check for GNU $ac_path_EGREP
5282case `"$ac_path_EGREP" --version 2>&1` in
5283*GNU*)
5284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5285*)
5286 ac_count=0
5287 $as_echo_n 0123456789 >"conftest.in"
5288 while :
5289 do
5290 cat "conftest.in" "conftest.in" >"conftest.tmp"
5291 mv "conftest.tmp" "conftest.in"
5292 cp "conftest.in" "conftest.nl"
5293 $as_echo 'EGREP' >> "conftest.nl"
5294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5296 as_fn_arith $ac_count + 1 && ac_count=$as_val
5297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5298 # Best one so far, save it but keep looking for a better one
5299 ac_cv_path_EGREP="$ac_path_EGREP"
5300 ac_path_EGREP_max=$ac_count
5301 fi
5302 # 10*(2^10) chars as input seems more than enough
5303 test $ac_count -gt 10 && break
5304 done
5305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5306esac
5307
5308 $ac_path_EGREP_found && break 3
5309 done
5310 done
5311 done
5312IFS=$as_save_IFS
5313 if test -z "$ac_cv_path_EGREP"; then
5314 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 fi
5316else
5317 ac_cv_path_EGREP=$EGREP
5318fi
5319
5320 fi
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5323$as_echo "$ac_cv_path_EGREP" >&6; }
5324 EGREP="$ac_cv_path_EGREP"
5325
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5328$as_echo_n "checking for ANSI C header files... " >&6; }
5329if ${ac_cv_header_stdc+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <stdlib.h>
5335#include <stdarg.h>
5336#include <string.h>
5337#include <float.h>
5338
5339int
5340main ()
5341{
5342
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347if ac_fn_c_try_compile "$LINENO"; then :
5348 ac_cv_header_stdc=yes
5349else
5350 ac_cv_header_stdc=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353
5354if test $ac_cv_header_stdc = yes; then
5355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#include <string.h>
5359
5360_ACEOF
5361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev/null 2>&1; then :
5363
5364else
5365 ac_cv_header_stdc=no
5366fi
5367rm -f conftest*
5368
5369fi
5370
5371if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#include <stdlib.h>
5376
5377_ACEOF
5378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then :
5380
5381else
5382 ac_cv_header_stdc=no
5383fi
5384rm -f conftest*
5385
5386fi
5387
5388if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then :
5391 :
5392else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <ctype.h>
5396#include <stdlib.h>
5397#if ((' ' & 0x0FF) == 0x020)
5398# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400#else
5401# define ISLOWER(c) \
5402 (('a' <= (c) && (c) <= 'i') \
5403 || ('j' <= (c) && (c) <= 'r') \
5404 || ('s' <= (c) && (c) <= 'z'))
5405# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406#endif
5407
5408#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409int
5410main ()
5411{
5412 int i;
5413 for (i = 0; i < 256; i++)
5414 if (XOR (islower (i), ISLOWER (i))
5415 || toupper (i) != TOUPPER (i))
5416 return 2;
5417 return 0;
5418}
5419_ACEOF
5420if ac_fn_c_try_run "$LINENO"; then :
5421
5422else
5423 ac_cv_header_stdc=no
5424fi
5425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5426 conftest.$ac_objext conftest.beam conftest.$ac_ext
5427fi
5428
5429fi
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5432$as_echo "$ac_cv_header_stdc" >&6; }
5433if test $ac_cv_header_stdc = yes; then
5434
5435$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5436
5437fi
5438
5439# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5440for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5441 inttypes.h stdint.h unistd.h
5442do :
5443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5445"
5446if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5447 cat >>confdefs.h <<_ACEOF
5448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5449_ACEOF
5450
5451fi
5452
5453done
5454
5455
5456
5457 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5458if test "x$ac_cv_header_minix_config_h" = xyes; then :
5459 MINIX=yes
5460else
5461 MINIX=
5462fi
5463
5464
5465 if test "$MINIX" = yes; then
5466
5467$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5468
5469
5470$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5471
5472
5473$as_echo "#define _MINIX 1" >>confdefs.h
5474
5475 fi
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5479$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5480if ${ac_cv_safe_to_define___extensions__+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485
5486# define __EXTENSIONS__ 1
5487 $ac_includes_default
5488int
5489main ()
5490{
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_safe_to_define___extensions__=yes
5498else
5499 ac_cv_safe_to_define___extensions__=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5504$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5505 test $ac_cv_safe_to_define___extensions__ = yes &&
5506 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5507
5508 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5509
5510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5511
5512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5513
5514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5515
5516
5517
5518# The tests for host and target for $enable_largefile require
5519# canonical names.
5520
5521
5522
5523# As the $enable_largefile decision depends on --enable-plugins we must set it
5524# even in directories otherwise not depending on the $plugins option.
5525
5526
5527 maybe_plugins=no
5528 for ac_header in dlfcn.h
5529do :
5530 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5531"
5532if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5533 cat >>confdefs.h <<_ACEOF
5534#define HAVE_DLFCN_H 1
5535_ACEOF
5536 maybe_plugins=yes
5537fi
5538
5539done
5540
5541 for ac_header in windows.h
5542do :
5543 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5544"
5545if test "x$ac_cv_header_windows_h" = xyes; then :
5546 cat >>confdefs.h <<_ACEOF
5547#define HAVE_WINDOWS_H 1
5548_ACEOF
5549 maybe_plugins=yes
5550fi
5551
5552done
5553
5554
5555 # Check whether --enable-plugins was given.
5556if test "${enable_plugins+set}" = set; then :
5557 enableval=$enable_plugins; case "${enableval}" in
5558 no) plugins=no ;;
5559 *) plugins=yes
5560 if test "$maybe_plugins" != "yes" ; then
5561 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5562 fi ;;
5563 esac
5564else
5565 plugins=$maybe_plugins
5566
5567fi
5568
5569 if test "$plugins" = "yes"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5571$as_echo_n "checking for library containing dlsym... " >&6; }
5572if ${ac_cv_search_dlsym+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 ac_func_search_save_LIBS=$LIBS
5576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h. */
5578
5579/* Override any GCC internal prototype to avoid an error.
5580 Use char because int might match the return type of a GCC
5581 builtin and then its argument prototype would still apply. */
5582#ifdef __cplusplus
5583extern "C"
5584#endif
5585char dlsym ();
5586int
5587main ()
5588{
5589return dlsym ();
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594for ac_lib in '' dl; do
5595 if test -z "$ac_lib"; then
5596 ac_res="none required"
5597 else
5598 ac_res=-l$ac_lib
5599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5600 fi
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 ac_cv_search_dlsym=$ac_res
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext
5606 if ${ac_cv_search_dlsym+:} false; then :
5607 break
5608fi
5609done
5610if ${ac_cv_search_dlsym+:} false; then :
5611
5612else
5613 ac_cv_search_dlsym=no
5614fi
5615rm conftest.$ac_ext
5616LIBS=$ac_func_search_save_LIBS
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5619$as_echo "$ac_cv_search_dlsym" >&6; }
5620ac_res=$ac_cv_search_dlsym
5621if test "$ac_res" != no; then :
5622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5623
5624fi
5625
5626 fi
5627
5628
5629case "${host}" in
5630 sparc-*-solaris*|i[3-7]86-*-solaris*)
5631 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5632 # are mutually exclusive; and without procfs support, the bfd/ elf module
5633 # cannot provide certain routines such as elfcore_write_prpsinfo
5634 # or elfcore_write_prstatus. So unless the user explicitly requested
5635 # large-file support through the --enable-largefile switch, disable
5636 # large-file support in favor of procfs support.
5637 test "${target}" = "${host}" -a "x$plugins" = xno \
5638 && : ${enable_largefile="no"}
5639 ;;
5640esac
5641
5642# Check whether --enable-largefile was given.
5643if test "${enable_largefile+set}" = set; then :
5644 enableval=$enable_largefile;
5645fi
5646
5647if test "$enable_largefile" != no; then
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5650$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5651if ${ac_cv_sys_largefile_CC+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 ac_cv_sys_largefile_CC=no
5655 if test "$GCC" != yes; then
5656 ac_save_CC=$CC
5657 while :; do
5658 # IRIX 6.2 and later do not support large files by default,
5659 # so use the C compiler's -n32 option if that helps.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h. */
5662#include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671int
5672main ()
5673{
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 break
5681fi
5682rm -f core conftest.err conftest.$ac_objext
5683 CC="$CC -n32"
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_largefile_CC=' -n32'; break
5686fi
5687rm -f core conftest.err conftest.$ac_objext
5688 break
5689 done
5690 CC=$ac_save_CC
5691 rm -f conftest.$ac_ext
5692 fi
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5695$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5696 if test "$ac_cv_sys_largefile_CC" != no; then
5697 CC=$CC$ac_cv_sys_largefile_CC
5698 fi
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5701$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5702if ${ac_cv_sys_file_offset_bits+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704else
5705 while :; do
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h. */
5708#include <sys/types.h>
5709 /* Check that off_t can represent 2**63 - 1 correctly.
5710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5711 since some C++ compilers masquerading as C compilers
5712 incorrectly reject 9223372036854775807. */
5713#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5715 && LARGE_OFF_T % 2147483647 == 1)
5716 ? 1 : -1];
5717int
5718main ()
5719{
5720
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"; then :
5726 ac_cv_sys_file_offset_bits=no; break
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h. */
5731#define _FILE_OFFSET_BITS 64
5732#include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5740 ? 1 : -1];
5741int
5742main ()
5743{
5744
5745 ;
5746 return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_sys_file_offset_bits=64; break
5751fi
5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 ac_cv_sys_file_offset_bits=unknown
5754 break
5755done
5756fi
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5758$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5759case $ac_cv_sys_file_offset_bits in #(
5760 no | unknown) ;;
5761 *)
5762cat >>confdefs.h <<_ACEOF
5763#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5764_ACEOF
5765;;
5766esac
5767rm -rf conftest*
5768 if test $ac_cv_sys_file_offset_bits = unknown; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5770$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5771if ${ac_cv_sys_large_files+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 while :; do
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h. */
5777#include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5786int
5787main ()
5788{
5789
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794if ac_fn_c_try_compile "$LINENO"; then :
5795 ac_cv_sys_large_files=no; break
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800#define _LARGE_FILES 1
5801#include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5810int
5811main ()
5812{
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_compile "$LINENO"; then :
5819 ac_cv_sys_large_files=1; break
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_sys_large_files=unknown
5823 break
5824done
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5827$as_echo "$ac_cv_sys_large_files" >&6; }
5828case $ac_cv_sys_large_files in #(
5829 no | unknown) ;;
5830 *)
5831cat >>confdefs.h <<_ACEOF
5832#define _LARGE_FILES $ac_cv_sys_large_files
5833_ACEOF
5834;;
5835esac
5836rm -rf conftest*
5837 fi
5838
5839
5840fi
5841
5842
5843ac_ext=c
5844ac_cpp='$CPP $CPPFLAGS'
5845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5850set dummy ${ac_tool_prefix}gcc; ac_word=$2
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852$as_echo_n "checking for $ac_word... " >&6; }
5853if ${ac_cv_prog_CC+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855else
5856 if test -n "$CC"; then
5857 ac_cv_prog_CC="$CC" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870done
5871 done
5872IFS=$as_save_IFS
5873
5874fi
5875fi
5876CC=$ac_cv_prog_CC
5877if test -n "$CC"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5879$as_echo "$CC" >&6; }
5880else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882$as_echo "no" >&6; }
5883fi
5884
5885
5886fi
5887if test -z "$ac_cv_prog_CC"; then
5888 ac_ct_CC=$CC
5889 # Extract the first word of "gcc", so it can be a program name with args.
5890set dummy gcc; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if ${ac_cv_prog_ac_ct_CC+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895else
5896 if test -n "$ac_ct_CC"; then
5897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_CC="gcc"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910done
5911 done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916ac_ct_CC=$ac_cv_prog_ac_ct_CC
5917if test -n "$ac_ct_CC"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5919$as_echo "$ac_ct_CC" >&6; }
5920else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925 if test "x$ac_ct_CC" = x; then
5926 CC=""
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932ac_tool_warned=yes ;;
5933esac
5934 CC=$ac_ct_CC
5935 fi
5936else
5937 CC="$ac_cv_prog_CC"
5938fi
5939
5940if test -z "$CC"; then
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5943set dummy ${ac_tool_prefix}cc; ac_word=$2
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if ${ac_cv_prog_CC+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$CC"; then
5950 ac_cv_prog_CC="$CC" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_CC="${ac_tool_prefix}cc"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964 done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969CC=$ac_cv_prog_CC
5970if test -n "$CC"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5972$as_echo "$CC" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978
5979 fi
5980fi
5981if test -z "$CC"; then
5982 # Extract the first word of "cc", so it can be a program name with args.
5983set dummy cc; ac_word=$2
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985$as_echo_n "checking for $ac_word... " >&6; }
5986if ${ac_cv_prog_CC+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988else
5989 if test -n "$CC"; then
5990 ac_cv_prog_CC="$CC" # Let the user override the test.
5991else
5992 ac_prog_rejected=no
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6001 ac_prog_rejected=yes
6002 continue
6003 fi
6004 ac_cv_prog_CC="cc"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009 done
6010IFS=$as_save_IFS
6011
6012if test $ac_prog_rejected = yes; then
6013 # We found a bogon in the path, so make sure we never use it.
6014 set dummy $ac_cv_prog_CC
6015 shift
6016 if test $# != 0; then
6017 # We chose a different compiler from the bogus one.
6018 # However, it has the same basename, so the bogon will be chosen
6019 # first if we set CC to just the basename; use the full file name.
6020 shift
6021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6022 fi
6023fi
6024fi
6025fi
6026CC=$ac_cv_prog_CC
6027if test -n "$CC"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6029$as_echo "$CC" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$CC"; then
6038 if test -n "$ac_tool_prefix"; then
6039 for ac_prog in cl.exe
6040 do
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_CC+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047else
6048 if test -n "$CC"; then
6049 ac_cv_prog_CC="$CC" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062done
6063 done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068CC=$ac_cv_prog_CC
6069if test -n "$CC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6071$as_echo "$CC" >&6; }
6072else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078 test -n "$CC" && break
6079 done
6080fi
6081if test -z "$CC"; then
6082 ac_ct_CC=$CC
6083 for ac_prog in cl.exe
6084do
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
6086set dummy $ac_prog; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if ${ac_cv_prog_ac_ct_CC+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092 if test -n "$ac_ct_CC"; then
6093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_CC="$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106done
6107 done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112ac_ct_CC=$ac_cv_prog_ac_ct_CC
6113if test -n "$ac_ct_CC"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6115$as_echo "$ac_ct_CC" >&6; }
6116else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122 test -n "$ac_ct_CC" && break
6123done
6124
6125 if test "x$ac_ct_CC" = x; then
6126 CC=""
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129yes:)
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132ac_tool_warned=yes ;;
6133esac
6134 CC=$ac_ct_CC
6135 fi
6136fi
6137
6138fi
6139
6140
6141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6143as_fn_error $? "no acceptable C compiler found in \$PATH
6144See \`config.log' for more details" "$LINENO" 5; }
6145
6146# Provide some information about the compiler.
6147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6148set X $ac_compile
6149ac_compiler=$2
6150for ac_option in --version -v -V -qversion; do
6151 { { ac_try="$ac_compiler $ac_option >&5"
6152case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155esac
6156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6157$as_echo "$ac_try_echo"; } >&5
6158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6159 ac_status=$?
6160 if test -s conftest.err; then
6161 sed '10a\
6162... rest of stderr output deleted ...
6163 10q' conftest.err >conftest.er1
6164 cat conftest.er1 >&5
6165 fi
6166 rm -f conftest.er1 conftest.err
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }
6169done
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6172$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6173if ${ac_cv_c_compiler_gnu+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178
6179int
6180main ()
6181{
6182#ifndef __GNUC__
6183 choke me
6184#endif
6185
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_compiler_gnu=yes
6192else
6193 ac_compiler_gnu=no
6194fi
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196ac_cv_c_compiler_gnu=$ac_compiler_gnu
6197
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6200$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6201if test $ac_compiler_gnu = yes; then
6202 GCC=yes
6203else
6204 GCC=
6205fi
6206ac_test_CFLAGS=${CFLAGS+set}
6207ac_save_CFLAGS=$CFLAGS
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6209$as_echo_n "checking whether $CC accepts -g... " >&6; }
6210if ${ac_cv_prog_cc_g+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212else
6213 ac_save_c_werror_flag=$ac_c_werror_flag
6214 ac_c_werror_flag=yes
6215 ac_cv_prog_cc_g=no
6216 CFLAGS="-g"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218/* end confdefs.h. */
6219
6220int
6221main ()
6222{
6223
6224 ;
6225 return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229 ac_cv_prog_cc_g=yes
6230else
6231 CFLAGS=""
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h. */
6234
6235int
6236main ()
6237{
6238
6239 ;
6240 return 0;
6241}
6242_ACEOF
6243if ac_fn_c_try_compile "$LINENO"; then :
6244
6245else
6246 ac_c_werror_flag=$ac_save_c_werror_flag
6247 CFLAGS="-g"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250
6251int
6252main ()
6253{
6254
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_prog_cc_g=yes
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_c_werror_flag=$ac_save_c_werror_flag
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6270$as_echo "$ac_cv_prog_cc_g" >&6; }
6271if test "$ac_test_CFLAGS" = set; then
6272 CFLAGS=$ac_save_CFLAGS
6273elif test $ac_cv_prog_cc_g = yes; then
6274 if test "$GCC" = yes; then
6275 CFLAGS="-g -O2"
6276 else
6277 CFLAGS="-g"
6278 fi
6279else
6280 if test "$GCC" = yes; then
6281 CFLAGS="-O2"
6282 else
6283 CFLAGS=
6284 fi
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6287$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6288if ${ac_cv_prog_cc_c89+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290else
6291 ac_cv_prog_cc_c89=no
6292ac_save_CC=$CC
6293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h. */
6295#include <stdarg.h>
6296#include <stdio.h>
6297struct stat;
6298/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6299struct buf { int x; };
6300FILE * (*rcsopen) (struct buf *, struct stat *, int);
6301static char *e (p, i)
6302 char **p;
6303 int i;
6304{
6305 return p[i];
6306}
6307static char *f (char * (*g) (char **, int), char **p, ...)
6308{
6309 char *s;
6310 va_list v;
6311 va_start (v,p);
6312 s = g (p, va_arg (v,int));
6313 va_end (v);
6314 return s;
6315}
6316
6317/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6318 function prototypes and stuff, but not '\xHH' hex character constants.
6319 These don't provoke an error unfortunately, instead are silently treated
6320 as 'x'. The following induces an error, until -std is added to get
6321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6322 array size at least. It's necessary to write '\x00'==0 to get something
6323 that's true only with -std. */
6324int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6325
6326/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6327 inside strings and character constants. */
6328#define FOO(x) 'x'
6329int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6330
6331int test (int i, double x);
6332struct s1 {int (*f) (int a);};
6333struct s2 {int (*f) (double a);};
6334int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6335int argc;
6336char **argv;
6337int
6338main ()
6339{
6340return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6347do
6348 CC="$ac_save_CC $ac_arg"
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 ac_cv_prog_cc_c89=$ac_arg
6351fi
6352rm -f core conftest.err conftest.$ac_objext
6353 test "x$ac_cv_prog_cc_c89" != "xno" && break
6354done
6355rm -f conftest.$ac_ext
6356CC=$ac_save_CC
6357
6358fi
6359# AC_CACHE_VAL
6360case "x$ac_cv_prog_cc_c89" in
6361 x)
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6363$as_echo "none needed" >&6; } ;;
6364 xno)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6366$as_echo "unsupported" >&6; } ;;
6367 *)
6368 CC="$CC $ac_cv_prog_cc_c89"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6370$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6371esac
6372if test "x$ac_cv_prog_cc_c89" != xno; then :
6373
6374fi
6375
6376ac_ext=c
6377ac_cpp='$CPP $CPPFLAGS'
6378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382ac_ext=c
6383ac_cpp='$CPP $CPPFLAGS'
6384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6388$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6389if ${am_cv_prog_cc_c_o+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h. */
6394
6395int
6396main ()
6397{
6398
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403 # Make sure it works both with $CC and with simple cc.
6404 # Following AC_PROG_CC_C_O, we do the test twice because some
6405 # compilers refuse to overwrite an existing .o file with -o,
6406 # though they will create one.
6407 am_cv_prog_cc_c_o=yes
6408 for am_i in 1 2; do
6409 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6410 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } \
6414 && test -f conftest2.$ac_objext; then
6415 : OK
6416 else
6417 am_cv_prog_cc_c_o=no
6418 break
6419 fi
6420 done
6421 rm -f core conftest*
6422 unset am_i
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6425$as_echo "$am_cv_prog_cc_c_o" >&6; }
6426if test "$am_cv_prog_cc_c_o" != yes; then
6427 # Losing compiler, so override with the script.
6428 # FIXME: It is wrong to rewrite CC.
6429 # But if we don't then we get into trouble of one sort or another.
6430 # A longer-term fix would be to have automake use am__CC in this case,
6431 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6432 CC="$am_aux_dir/compile $CC"
6433fi
6434ac_ext=c
6435ac_cpp='$CPP $CPPFLAGS'
6436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440
6441depcc="$CC" am_compiler_list=
6442
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6444$as_echo_n "checking dependency style of $depcc... " >&6; }
6445if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6449 # We make a subdir and do the tests there. Otherwise we can end up
6450 # making bogus files that we don't know about and never remove. For
6451 # instance it was reported that on HP-UX the gcc test will end up
6452 # making a dummy file named 'D' -- because '-MD' means "put the output
6453 # in D".
6454 rm -rf conftest.dir
6455 mkdir conftest.dir
6456 # Copy depcomp to subdir because otherwise we won't find it if we're
6457 # using a relative directory.
6458 cp "$am_depcomp" conftest.dir
6459 cd conftest.dir
6460 # We will build objects and dependencies in a subdirectory because
6461 # it helps to detect inapplicable dependency modes. For instance
6462 # both Tru64's cc and ICC support -MD to output dependencies as a
6463 # side effect of compilation, but ICC will put the dependencies in
6464 # the current directory while Tru64 will put them in the object
6465 # directory.
6466 mkdir sub
6467
6468 am_cv_CC_dependencies_compiler_type=none
6469 if test "$am_compiler_list" = ""; then
6470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6471 fi
6472 am__universal=false
6473 case " $depcc " in #(
6474 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6475 esac
6476
6477 for depmode in $am_compiler_list; do
6478 # Setup a source with many dependencies, because some compilers
6479 # like to wrap large dependency lists on column 80 (with \), and
6480 # we should not choose a depcomp mode which is confused by this.
6481 #
6482 # We need to recreate these files for each test, as the compiler may
6483 # overwrite some of them when testing with obscure command lines.
6484 # This happens at least with the AIX C compiler.
6485 : > sub/conftest.c
6486 for i in 1 2 3 4 5 6; do
6487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6488 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6489 # Solaris 10 /bin/sh.
6490 echo '/* dummy */' > sub/conftst$i.h
6491 done
6492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6493
6494 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle '-M -o', and we need to detect this. Also, some Intel
6497 # versions had trouble with output in subdirs.
6498 am__obj=sub/conftest.${OBJEXT-o}
6499 am__minus_obj="-o $am__obj"
6500 case $depmode in
6501 gcc)
6502 # This depmode causes a compiler race in universal mode.
6503 test "$am__universal" = false || continue
6504 ;;
6505 nosideeffect)
6506 # After this tag, mechanisms are not by side-effect, so they'll
6507 # only be used when explicitly requested.
6508 if test "x$enable_dependency_tracking" = xyes; then
6509 continue
6510 else
6511 break
6512 fi
6513 ;;
6514 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6515 # This compiler won't grok '-c -o', but also, the minuso test has
6516 # not run yet. These depmodes are late enough in the game, and
6517 # so weak that their functioning should not be impacted.
6518 am__obj=conftest.${OBJEXT-o}
6519 am__minus_obj=
6520 ;;
6521 none) break ;;
6522 esac
6523 if depmode=$depmode \
6524 source=sub/conftest.c object=$am__obj \
6525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6526 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6527 >/dev/null 2>conftest.err &&
6528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6530 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6532 # icc doesn't choke on unknown options, it will just issue warnings
6533 # or remarks (even with -Werror). So we grep stderr for any message
6534 # that says an option was ignored or not supported.
6535 # When given -MP, icc 7.0 and 7.1 complain thusly:
6536 # icc: Command line warning: ignoring option '-M'; no argument required
6537 # The diagnosis changed in icc 8.0:
6538 # icc: Command line remark: option '-MP' not supported
6539 if (grep 'ignoring option' conftest.err ||
6540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6541 am_cv_CC_dependencies_compiler_type=$depmode
6542 break
6543 fi
6544 fi
6545 done
6546
6547 cd ..
6548 rm -rf conftest.dir
6549else
6550 am_cv_CC_dependencies_compiler_type=none
6551fi
6552
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6555$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6556CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6557
6558 if
6559 test "x$enable_dependency_tracking" != xno \
6560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6561 am__fastdepCC_TRUE=
6562 am__fastdepCC_FALSE='#'
6563else
6564 am__fastdepCC_TRUE='#'
6565 am__fastdepCC_FALSE=
6566fi
6567
6568
6569am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6570
6571
6572# We require a C++11 compiler. Check if one is available, and if
6573# necessary, set CXX_DIALECT to some -std=xxx switch.
6574
6575 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6576 ac_ext=cpp
6577ac_cpp='$CXXCPP $CPPFLAGS'
6578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6581 CXX_DIALECT=""
6582 ac_success=no
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6584$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6585if ${ax_cv_cxx_compile_cxx11+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h. */
6590
6591
6592// If the compiler admits that it is not ready for C++11, why torture it?
6593// Hopefully, this will speed up the test.
6594
6595#ifndef __cplusplus
6596
6597#error "This is not a C++ compiler"
6598
6599#elif __cplusplus < 201103L
6600
6601#error "This is not a C++11 compiler"
6602
6603#else
6604
6605namespace cxx11
6606{
6607
6608 namespace test_static_assert
6609 {
6610
6611 template <typename T>
6612 struct check
6613 {
6614 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6615 };
6616
6617 }
6618
6619 namespace test_final_override
6620 {
6621
6622 struct Base
6623 {
6624 virtual void f() {}
6625 };
6626
6627 struct Derived : public Base
6628 {
6629 virtual void f() override {}
6630 };
6631
6632 }
6633
6634 namespace test_double_right_angle_brackets
6635 {
6636
6637 template < typename T >
6638 struct check {};
6639
6640 typedef check<void> single_type;
6641 typedef check<check<void>> double_type;
6642 typedef check<check<check<void>>> triple_type;
6643 typedef check<check<check<check<void>>>> quadruple_type;
6644
6645 }
6646
6647 namespace test_decltype
6648 {
6649
6650 int
6651 f()
6652 {
6653 int a = 1;
6654 decltype(a) b = 2;
6655 return a + b;
6656 }
6657
6658 }
6659
6660 namespace test_type_deduction
6661 {
6662
6663 template < typename T1, typename T2 >
6664 struct is_same
6665 {
6666 static const bool value = false;
6667 };
6668
6669 template < typename T >
6670 struct is_same<T, T>
6671 {
6672 static const bool value = true;
6673 };
6674
6675 template < typename T1, typename T2 >
6676 auto
6677 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6678 {
6679 return a1 + a2;
6680 }
6681
6682 int
6683 test(const int c, volatile int v)
6684 {
6685 static_assert(is_same<int, decltype(0)>::value == true, "");
6686 static_assert(is_same<int, decltype(c)>::value == false, "");
6687 static_assert(is_same<int, decltype(v)>::value == false, "");
6688 auto ac = c;
6689 auto av = v;
6690 auto sumi = ac + av + 'x';
6691 auto sumf = ac + av + 1.0;
6692 static_assert(is_same<int, decltype(ac)>::value == true, "");
6693 static_assert(is_same<int, decltype(av)>::value == true, "");
6694 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6695 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6696 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6697 return (sumf > 0.0) ? sumi : add(c, v);
6698 }
6699
6700 }
6701
6702 namespace test_noexcept
6703 {
6704
6705 int f() { return 0; }
6706 int g() noexcept { return 0; }
6707
6708 static_assert(noexcept(f()) == false, "");
6709 static_assert(noexcept(g()) == true, "");
6710
6711 }
6712
6713 namespace test_constexpr
6714 {
6715
6716 template < typename CharT >
6717 unsigned long constexpr
6718 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6719 {
6720 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6721 }
6722
6723 template < typename CharT >
6724 unsigned long constexpr
6725 strlen_c(const CharT *const s) noexcept
6726 {
6727 return strlen_c_r(s, 0UL);
6728 }
6729
6730 static_assert(strlen_c("") == 0UL, "");
6731 static_assert(strlen_c("1") == 1UL, "");
6732 static_assert(strlen_c("example") == 7UL, "");
6733 static_assert(strlen_c("another\0example") == 7UL, "");
6734
6735 }
6736
6737 namespace test_rvalue_references
6738 {
6739
6740 template < int N >
6741 struct answer
6742 {
6743 static constexpr int value = N;
6744 };
6745
6746 answer<1> f(int&) { return answer<1>(); }
6747 answer<2> f(const int&) { return answer<2>(); }
6748 answer<3> f(int&&) { return answer<3>(); }
6749
6750 void
6751 test()
6752 {
6753 int i = 0;
6754 const int c = 0;
6755 static_assert(decltype(f(i))::value == 1, "");
6756 static_assert(decltype(f(c))::value == 2, "");
6757 static_assert(decltype(f(0))::value == 3, "");
6758 }
6759
6760 }
6761
6762 namespace test_uniform_initialization
6763 {
6764
6765 struct test
6766 {
6767 static const int zero {};
6768 static const int one {1};
6769 };
6770
6771 static_assert(test::zero == 0, "");
6772 static_assert(test::one == 1, "");
6773
6774 }
6775
6776 namespace test_lambdas
6777 {
6778
6779 void
6780 test1()
6781 {
6782 auto lambda1 = [](){};
6783 auto lambda2 = lambda1;
6784 lambda1();
6785 lambda2();
6786 }
6787
6788 int
6789 test2()
6790 {
6791 auto a = [](int i, int j){ return i + j; }(1, 2);
6792 auto b = []() -> int { return '0'; }();
6793 auto c = [=](){ return a + b; }();
6794 auto d = [&](){ return c; }();
6795 auto e = [a, &b](int x) mutable {
6796 const auto identity = [](int y){ return y; };
6797 for (auto i = 0; i < a; ++i)
6798 a += b--;
6799 return x + identity(a + b);
6800 }(0);
6801 return a + b + c + d + e;
6802 }
6803
6804 int
6805 test3()
6806 {
6807 const auto nullary = [](){ return 0; };
6808 const auto unary = [](int x){ return x; };
6809 using nullary_t = decltype(nullary);
6810 using unary_t = decltype(unary);
6811 const auto higher1st = [](nullary_t f){ return f(); };
6812 const auto higher2nd = [unary](nullary_t f1){
6813 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6814 };
6815 return higher1st(nullary) + higher2nd(nullary)(unary);
6816 }
6817
6818 }
6819
6820 namespace test_variadic_templates
6821 {
6822
6823 template <int...>
6824 struct sum;
6825
6826 template <int N0, int... N1toN>
6827 struct sum<N0, N1toN...>
6828 {
6829 static constexpr auto value = N0 + sum<N1toN...>::value;
6830 };
6831
6832 template <>
6833 struct sum<>
6834 {
6835 static constexpr auto value = 0;
6836 };
6837
6838 static_assert(sum<>::value == 0, "");
6839 static_assert(sum<1>::value == 1, "");
6840 static_assert(sum<23>::value == 23, "");
6841 static_assert(sum<1, 2>::value == 3, "");
6842 static_assert(sum<5, 5, 11>::value == 21, "");
6843 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6844
6845 }
6846
6847 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6848 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6849 // because of this.
6850 namespace test_template_alias_sfinae
6851 {
6852
6853 struct foo {};
6854
6855 template<typename T>
6856 using member = typename T::member_type;
6857
6858 template<typename T>
6859 void func(...) {}
6860
6861 template<typename T>
6862 void func(member<T>*) {}
6863
6864 void test();
6865
6866 void test() { func<foo>(0); }
6867
6868 }
6869
6870} // namespace cxx11
6871
6872#endif // __cplusplus >= 201103L
6873
6874
6875
6876_ACEOF
6877if ac_fn_cxx_try_compile "$LINENO"; then :
6878 ax_cv_cxx_compile_cxx11=yes
6879else
6880 ax_cv_cxx_compile_cxx11=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6885$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6886 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6887 ac_success=yes
6888 fi
6889
6890 if test x$ac_success = xno; then
6891 for alternative in ${ax_cxx_compile_alternatives}; do
6892 switch="-std=gnu++${alternative}"
6893 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6895$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6896if eval \${$cachevar+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898else
6899 ac_save_CXX="$CXX"
6900 CXX="$CXX $switch"
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h. */
6903
6904
6905// If the compiler admits that it is not ready for C++11, why torture it?
6906// Hopefully, this will speed up the test.
6907
6908#ifndef __cplusplus
6909
6910#error "This is not a C++ compiler"
6911
6912#elif __cplusplus < 201103L
6913
6914#error "This is not a C++11 compiler"
6915
6916#else
6917
6918namespace cxx11
6919{
6920
6921 namespace test_static_assert
6922 {
6923
6924 template <typename T>
6925 struct check
6926 {
6927 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6928 };
6929
6930 }
6931
6932 namespace test_final_override
6933 {
6934
6935 struct Base
6936 {
6937 virtual void f() {}
6938 };
6939
6940 struct Derived : public Base
6941 {
6942 virtual void f() override {}
6943 };
6944
6945 }
6946
6947 namespace test_double_right_angle_brackets
6948 {
6949
6950 template < typename T >
6951 struct check {};
6952
6953 typedef check<void> single_type;
6954 typedef check<check<void>> double_type;
6955 typedef check<check<check<void>>> triple_type;
6956 typedef check<check<check<check<void>>>> quadruple_type;
6957
6958 }
6959
6960 namespace test_decltype
6961 {
6962
6963 int
6964 f()
6965 {
6966 int a = 1;
6967 decltype(a) b = 2;
6968 return a + b;
6969 }
6970
6971 }
6972
6973 namespace test_type_deduction
6974 {
6975
6976 template < typename T1, typename T2 >
6977 struct is_same
6978 {
6979 static const bool value = false;
6980 };
6981
6982 template < typename T >
6983 struct is_same<T, T>
6984 {
6985 static const bool value = true;
6986 };
6987
6988 template < typename T1, typename T2 >
6989 auto
6990 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6991 {
6992 return a1 + a2;
6993 }
6994
6995 int
6996 test(const int c, volatile int v)
6997 {
6998 static_assert(is_same<int, decltype(0)>::value == true, "");
6999 static_assert(is_same<int, decltype(c)>::value == false, "");
7000 static_assert(is_same<int, decltype(v)>::value == false, "");
7001 auto ac = c;
7002 auto av = v;
7003 auto sumi = ac + av + 'x';
7004 auto sumf = ac + av + 1.0;
7005 static_assert(is_same<int, decltype(ac)>::value == true, "");
7006 static_assert(is_same<int, decltype(av)>::value == true, "");
7007 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7008 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7009 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7010 return (sumf > 0.0) ? sumi : add(c, v);
7011 }
7012
7013 }
7014
7015 namespace test_noexcept
7016 {
7017
7018 int f() { return 0; }
7019 int g() noexcept { return 0; }
7020
7021 static_assert(noexcept(f()) == false, "");
7022 static_assert(noexcept(g()) == true, "");
7023
7024 }
7025
7026 namespace test_constexpr
7027 {
7028
7029 template < typename CharT >
7030 unsigned long constexpr
7031 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7032 {
7033 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7034 }
7035
7036 template < typename CharT >
7037 unsigned long constexpr
7038 strlen_c(const CharT *const s) noexcept
7039 {
7040 return strlen_c_r(s, 0UL);
7041 }
7042
7043 static_assert(strlen_c("") == 0UL, "");
7044 static_assert(strlen_c("1") == 1UL, "");
7045 static_assert(strlen_c("example") == 7UL, "");
7046 static_assert(strlen_c("another\0example") == 7UL, "");
7047
7048 }
7049
7050 namespace test_rvalue_references
7051 {
7052
7053 template < int N >
7054 struct answer
7055 {
7056 static constexpr int value = N;
7057 };
7058
7059 answer<1> f(int&) { return answer<1>(); }
7060 answer<2> f(const int&) { return answer<2>(); }
7061 answer<3> f(int&&) { return answer<3>(); }
7062
7063 void
7064 test()
7065 {
7066 int i = 0;
7067 const int c = 0;
7068 static_assert(decltype(f(i))::value == 1, "");
7069 static_assert(decltype(f(c))::value == 2, "");
7070 static_assert(decltype(f(0))::value == 3, "");
7071 }
7072
7073 }
7074
7075 namespace test_uniform_initialization
7076 {
7077
7078 struct test
7079 {
7080 static const int zero {};
7081 static const int one {1};
7082 };
7083
7084 static_assert(test::zero == 0, "");
7085 static_assert(test::one == 1, "");
7086
7087 }
7088
7089 namespace test_lambdas
7090 {
7091
7092 void
7093 test1()
7094 {
7095 auto lambda1 = [](){};
7096 auto lambda2 = lambda1;
7097 lambda1();
7098 lambda2();
7099 }
7100
7101 int
7102 test2()
7103 {
7104 auto a = [](int i, int j){ return i + j; }(1, 2);
7105 auto b = []() -> int { return '0'; }();
7106 auto c = [=](){ return a + b; }();
7107 auto d = [&](){ return c; }();
7108 auto e = [a, &b](int x) mutable {
7109 const auto identity = [](int y){ return y; };
7110 for (auto i = 0; i < a; ++i)
7111 a += b--;
7112 return x + identity(a + b);
7113 }(0);
7114 return a + b + c + d + e;
7115 }
7116
7117 int
7118 test3()
7119 {
7120 const auto nullary = [](){ return 0; };
7121 const auto unary = [](int x){ return x; };
7122 using nullary_t = decltype(nullary);
7123 using unary_t = decltype(unary);
7124 const auto higher1st = [](nullary_t f){ return f(); };
7125 const auto higher2nd = [unary](nullary_t f1){
7126 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7127 };
7128 return higher1st(nullary) + higher2nd(nullary)(unary);
7129 }
7130
7131 }
7132
7133 namespace test_variadic_templates
7134 {
7135
7136 template <int...>
7137 struct sum;
7138
7139 template <int N0, int... N1toN>
7140 struct sum<N0, N1toN...>
7141 {
7142 static constexpr auto value = N0 + sum<N1toN...>::value;
7143 };
7144
7145 template <>
7146 struct sum<>
7147 {
7148 static constexpr auto value = 0;
7149 };
7150
7151 static_assert(sum<>::value == 0, "");
7152 static_assert(sum<1>::value == 1, "");
7153 static_assert(sum<23>::value == 23, "");
7154 static_assert(sum<1, 2>::value == 3, "");
7155 static_assert(sum<5, 5, 11>::value == 21, "");
7156 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7157
7158 }
7159
7160 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7161 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7162 // because of this.
7163 namespace test_template_alias_sfinae
7164 {
7165
7166 struct foo {};
7167
7168 template<typename T>
7169 using member = typename T::member_type;
7170
7171 template<typename T>
7172 void func(...) {}
7173
7174 template<typename T>
7175 void func(member<T>*) {}
7176
7177 void test();
7178
7179 void test() { func<foo>(0); }
7180
7181 }
7182
7183} // namespace cxx11
7184
7185#endif // __cplusplus >= 201103L
7186
7187
7188
7189_ACEOF
7190if ac_fn_cxx_try_compile "$LINENO"; then :
7191 eval $cachevar=yes
7192else
7193 eval $cachevar=no
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 CXX="$ac_save_CXX"
7197fi
7198eval ac_res=\$$cachevar
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200$as_echo "$ac_res" >&6; }
7201 if eval test x\$$cachevar = xyes; then
7202 CXX_DIALECT="$switch"
7203 ac_success=yes
7204 break
7205 fi
7206 done
7207 fi
7208
7209 if test x$ac_success = xno; then
7210 for alternative in ${ax_cxx_compile_alternatives}; do
7211 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7212 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7214$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7215if eval \${$cachevar+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217else
7218 ac_save_CXX="$CXX"
7219 CXX="$CXX $switch"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h. */
7222
7223
7224// If the compiler admits that it is not ready for C++11, why torture it?
7225// Hopefully, this will speed up the test.
7226
7227#ifndef __cplusplus
7228
7229#error "This is not a C++ compiler"
7230
7231#elif __cplusplus < 201103L
7232
7233#error "This is not a C++11 compiler"
7234
7235#else
7236
7237namespace cxx11
7238{
7239
7240 namespace test_static_assert
7241 {
7242
7243 template <typename T>
7244 struct check
7245 {
7246 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7247 };
7248
7249 }
7250
7251 namespace test_final_override
7252 {
7253
7254 struct Base
7255 {
7256 virtual void f() {}
7257 };
7258
7259 struct Derived : public Base
7260 {
7261 virtual void f() override {}
7262 };
7263
7264 }
7265
7266 namespace test_double_right_angle_brackets
7267 {
7268
7269 template < typename T >
7270 struct check {};
7271
7272 typedef check<void> single_type;
7273 typedef check<check<void>> double_type;
7274 typedef check<check<check<void>>> triple_type;
7275 typedef check<check<check<check<void>>>> quadruple_type;
7276
7277 }
7278
7279 namespace test_decltype
7280 {
7281
7282 int
7283 f()
7284 {
7285 int a = 1;
7286 decltype(a) b = 2;
7287 return a + b;
7288 }
7289
7290 }
7291
7292 namespace test_type_deduction
7293 {
7294
7295 template < typename T1, typename T2 >
7296 struct is_same
7297 {
7298 static const bool value = false;
7299 };
7300
7301 template < typename T >
7302 struct is_same<T, T>
7303 {
7304 static const bool value = true;
7305 };
7306
7307 template < typename T1, typename T2 >
7308 auto
7309 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7310 {
7311 return a1 + a2;
7312 }
7313
7314 int
7315 test(const int c, volatile int v)
7316 {
7317 static_assert(is_same<int, decltype(0)>::value == true, "");
7318 static_assert(is_same<int, decltype(c)>::value == false, "");
7319 static_assert(is_same<int, decltype(v)>::value == false, "");
7320 auto ac = c;
7321 auto av = v;
7322 auto sumi = ac + av + 'x';
7323 auto sumf = ac + av + 1.0;
7324 static_assert(is_same<int, decltype(ac)>::value == true, "");
7325 static_assert(is_same<int, decltype(av)>::value == true, "");
7326 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7327 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7328 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7329 return (sumf > 0.0) ? sumi : add(c, v);
7330 }
7331
7332 }
7333
7334 namespace test_noexcept
7335 {
7336
7337 int f() { return 0; }
7338 int g() noexcept { return 0; }
7339
7340 static_assert(noexcept(f()) == false, "");
7341 static_assert(noexcept(g()) == true, "");
7342
7343 }
7344
7345 namespace test_constexpr
7346 {
7347
7348 template < typename CharT >
7349 unsigned long constexpr
7350 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7351 {
7352 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7353 }
7354
7355 template < typename CharT >
7356 unsigned long constexpr
7357 strlen_c(const CharT *const s) noexcept
7358 {
7359 return strlen_c_r(s, 0UL);
7360 }
7361
7362 static_assert(strlen_c("") == 0UL, "");
7363 static_assert(strlen_c("1") == 1UL, "");
7364 static_assert(strlen_c("example") == 7UL, "");
7365 static_assert(strlen_c("another\0example") == 7UL, "");
7366
7367 }
7368
7369 namespace test_rvalue_references
7370 {
7371
7372 template < int N >
7373 struct answer
7374 {
7375 static constexpr int value = N;
7376 };
7377
7378 answer<1> f(int&) { return answer<1>(); }
7379 answer<2> f(const int&) { return answer<2>(); }
7380 answer<3> f(int&&) { return answer<3>(); }
7381
7382 void
7383 test()
7384 {
7385 int i = 0;
7386 const int c = 0;
7387 static_assert(decltype(f(i))::value == 1, "");
7388 static_assert(decltype(f(c))::value == 2, "");
7389 static_assert(decltype(f(0))::value == 3, "");
7390 }
7391
7392 }
7393
7394 namespace test_uniform_initialization
7395 {
7396
7397 struct test
7398 {
7399 static const int zero {};
7400 static const int one {1};
7401 };
7402
7403 static_assert(test::zero == 0, "");
7404 static_assert(test::one == 1, "");
7405
7406 }
7407
7408 namespace test_lambdas
7409 {
7410
7411 void
7412 test1()
7413 {
7414 auto lambda1 = [](){};
7415 auto lambda2 = lambda1;
7416 lambda1();
7417 lambda2();
7418 }
7419
7420 int
7421 test2()
7422 {
7423 auto a = [](int i, int j){ return i + j; }(1, 2);
7424 auto b = []() -> int { return '0'; }();
7425 auto c = [=](){ return a + b; }();
7426 auto d = [&](){ return c; }();
7427 auto e = [a, &b](int x) mutable {
7428 const auto identity = [](int y){ return y; };
7429 for (auto i = 0; i < a; ++i)
7430 a += b--;
7431 return x + identity(a + b);
7432 }(0);
7433 return a + b + c + d + e;
7434 }
7435
7436 int
7437 test3()
7438 {
7439 const auto nullary = [](){ return 0; };
7440 const auto unary = [](int x){ return x; };
7441 using nullary_t = decltype(nullary);
7442 using unary_t = decltype(unary);
7443 const auto higher1st = [](nullary_t f){ return f(); };
7444 const auto higher2nd = [unary](nullary_t f1){
7445 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7446 };
7447 return higher1st(nullary) + higher2nd(nullary)(unary);
7448 }
7449
7450 }
7451
7452 namespace test_variadic_templates
7453 {
7454
7455 template <int...>
7456 struct sum;
7457
7458 template <int N0, int... N1toN>
7459 struct sum<N0, N1toN...>
7460 {
7461 static constexpr auto value = N0 + sum<N1toN...>::value;
7462 };
7463
7464 template <>
7465 struct sum<>
7466 {
7467 static constexpr auto value = 0;
7468 };
7469
7470 static_assert(sum<>::value == 0, "");
7471 static_assert(sum<1>::value == 1, "");
7472 static_assert(sum<23>::value == 23, "");
7473 static_assert(sum<1, 2>::value == 3, "");
7474 static_assert(sum<5, 5, 11>::value == 21, "");
7475 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7476
7477 }
7478
7479 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7480 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7481 // because of this.
7482 namespace test_template_alias_sfinae
7483 {
7484
7485 struct foo {};
7486
7487 template<typename T>
7488 using member = typename T::member_type;
7489
7490 template<typename T>
7491 void func(...) {}
7492
7493 template<typename T>
7494 void func(member<T>*) {}
7495
7496 void test();
7497
7498 void test() { func<foo>(0); }
7499
7500 }
7501
7502} // namespace cxx11
7503
7504#endif // __cplusplus >= 201103L
7505
7506
7507
7508_ACEOF
7509if ac_fn_cxx_try_compile "$LINENO"; then :
7510 eval $cachevar=yes
7511else
7512 eval $cachevar=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 CXX="$ac_save_CXX"
7516fi
7517eval ac_res=\$$cachevar
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7519$as_echo "$ac_res" >&6; }
7520 if eval test x\$$cachevar = xyes; then
7521 CXX_DIALECT="$switch"
7522 ac_success=yes
7523 break
7524 fi
7525 done
7526 if test x$ac_success = xyes; then
7527 break
7528 fi
7529 done
7530 fi
7531 ac_ext=c
7532ac_cpp='$CPP $CPPFLAGS'
7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
7537 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7538 if test x$ac_success = xno; then
7539 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7540 fi
7541 fi
7542 if test x$ac_success = xno; then
7543 HAVE_CXX11=0
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7545$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7546 else
7547 HAVE_CXX11=1
7548
7549$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7550
7551 fi
7552
7553
7554
7555
7556# If we haven't got the data from the intl directory,
7557# assume NLS is disabled.
7558USE_NLS=no
7559LIBINTL=
7560LIBINTL_DEP=
7561INCINTL=
7562XGETTEXT=
7563GMSGFMT=
7564POSUB=
7565
7566if test -f ../intl/config.intl; then
7567 . ../intl/config.intl
7568fi
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7570$as_echo_n "checking whether NLS is requested... " >&6; }
7571if test x"$USE_NLS" != xyes; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573$as_echo "no" >&6; }
7574else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576$as_echo "yes" >&6; }
7577
7578$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7582$as_echo_n "checking for catalogs to be installed... " >&6; }
7583 # Look for .po and .gmo files in the source directory.
7584 CATALOGS=
7585 XLINGUAS=
7586 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7587 # If there aren't any .gmo files the shell will give us the
7588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7589 # weeded out.
7590 case "$cat" in *\**)
7591 continue;;
7592 esac
7593 # The quadruple backslash is collapsed to a double backslash
7594 # by the backticks, then collapsed again by the double quotes,
7595 # leaving us with one backslash in the sed expression (right
7596 # before the dot that mustn't act as a wildcard).
7597 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7598 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7599 # The user is allowed to set LINGUAS to a list of languages to
7600 # install catalogs for. If it's empty that means "all of them."
7601 if test "x$LINGUAS" = x; then
7602 CATALOGS="$CATALOGS $cat"
7603 XLINGUAS="$XLINGUAS $lang"
7604 else
7605 case "$LINGUAS" in *$lang*)
7606 CATALOGS="$CATALOGS $cat"
7607 XLINGUAS="$XLINGUAS $lang"
7608 ;;
7609 esac
7610 fi
7611 done
7612 LINGUAS="$XLINGUAS"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7614$as_echo "$LINGUAS" >&6; }
7615
7616
7617 DATADIRNAME=share
7618
7619 INSTOBJEXT=.mo
7620
7621 GENCAT=gencat
7622
7623 CATOBJEXT=.gmo
7624
7625fi
7626
7627
7628 # Check for presence and size of long long.
7629 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7630if test "x$ac_cv_type_long_long" = xyes; then :
7631
7632cat >>confdefs.h <<_ACEOF
7633#define HAVE_LONG_LONG 1
7634_ACEOF
7635
7636# The cast to long int works around a bug in the HP C Compiler
7637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7639# This bug is HP SR number 8606223364.
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7641$as_echo_n "checking size of long long... " >&6; }
7642if ${ac_cv_sizeof_long_long+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644else
7645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7646
7647else
7648 if test "$ac_cv_type_long_long" = yes; then
7649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651as_fn_error 77 "cannot compute sizeof (long long)
7652See \`config.log' for more details" "$LINENO" 5; }
7653 else
7654 ac_cv_sizeof_long_long=0
7655 fi
7656fi
7657
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7660$as_echo "$ac_cv_sizeof_long_long" >&6; }
7661
7662
7663
7664cat >>confdefs.h <<_ACEOF
7665#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7666_ACEOF
7667
7668
7669fi
7670
7671
7672 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7673ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7674if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7675 ac_have_decl=1
7676else
7677 ac_have_decl=0
7678fi
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HAVE_DECL_BASENAME $ac_have_decl
7682_ACEOF
7683ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7684if test "x$ac_cv_have_decl_ffs" = xyes; then :
7685 ac_have_decl=1
7686else
7687 ac_have_decl=0
7688fi
7689
7690cat >>confdefs.h <<_ACEOF
7691#define HAVE_DECL_FFS $ac_have_decl
7692_ACEOF
7693ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7694if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7695 ac_have_decl=1
7696else
7697 ac_have_decl=0
7698fi
7699
7700cat >>confdefs.h <<_ACEOF
7701#define HAVE_DECL_ASPRINTF $ac_have_decl
7702_ACEOF
7703ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7704if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7705 ac_have_decl=1
7706else
7707 ac_have_decl=0
7708fi
7709
7710cat >>confdefs.h <<_ACEOF
7711#define HAVE_DECL_VASPRINTF $ac_have_decl
7712_ACEOF
7713ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7714if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7715 ac_have_decl=1
7716else
7717 ac_have_decl=0
7718fi
7719
7720cat >>confdefs.h <<_ACEOF
7721#define HAVE_DECL_SNPRINTF $ac_have_decl
7722_ACEOF
7723ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7724if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7725 ac_have_decl=1
7726else
7727 ac_have_decl=0
7728fi
7729
7730cat >>confdefs.h <<_ACEOF
7731#define HAVE_DECL_VSNPRINTF $ac_have_decl
7732_ACEOF
7733
7734 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7735if test "x$ac_cv_have_decl_strtol" = xyes; then :
7736 ac_have_decl=1
7737else
7738 ac_have_decl=0
7739fi
7740
7741cat >>confdefs.h <<_ACEOF
7742#define HAVE_DECL_STRTOL $ac_have_decl
7743_ACEOF
7744ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7745if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7746 ac_have_decl=1
7747else
7748 ac_have_decl=0
7749fi
7750
7751cat >>confdefs.h <<_ACEOF
7752#define HAVE_DECL_STRTOUL $ac_have_decl
7753_ACEOF
7754ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7755if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7756 ac_have_decl=1
7757else
7758 ac_have_decl=0
7759fi
7760
7761cat >>confdefs.h <<_ACEOF
7762#define HAVE_DECL_STRTOLL $ac_have_decl
7763_ACEOF
7764ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7765if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7766 ac_have_decl=1
7767else
7768 ac_have_decl=0
7769fi
7770
7771cat >>confdefs.h <<_ACEOF
7772#define HAVE_DECL_STRTOULL $ac_have_decl
7773_ACEOF
7774
7775 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7776if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7777 ac_have_decl=1
7778else
7779 ac_have_decl=0
7780fi
7781
7782cat >>confdefs.h <<_ACEOF
7783#define HAVE_DECL_STRVERSCMP $ac_have_decl
7784_ACEOF
7785
7786
7787ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7788if test "x$ac_cv_type_size_t" = xyes; then :
7789
7790else
7791
7792cat >>confdefs.h <<_ACEOF
7793#define size_t unsigned int
7794_ACEOF
7795
7796fi
7797
05ea2a05
TT
7798
7799
7800
7801 for ac_header in $ac_header_list
7802do :
7803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7805"
7806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7807 cat >>confdefs.h <<_ACEOF
7808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809_ACEOF
7810
7811fi
7812
7813done
7814
7815
7816
7817
7818
7819
7820
7821ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7822if test "x$ac_cv_type_pid_t" = xyes; then :
7823
7824else
7825
7826cat >>confdefs.h <<_ACEOF
7827#define pid_t int
7828_ACEOF
7829
7830fi
7831
01027315
TT
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7833$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7834if ${ac_cv_path_SED+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836else
7837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7838 for ac_i in 1 2 3 4 5 6 7; do
7839 ac_script="$ac_script$as_nl$ac_script"
7840 done
7841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7842 { ac_script=; unset ac_script;}
7843 if test -z "$SED"; then
7844 ac_path_SED_found=false
7845 # Loop through the user's path and test for each of PROGNAME-LIST
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_prog in sed gsed; do
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7854 as_fn_executable_p "$ac_path_SED" || continue
7855# Check for GNU ac_path_SED and select it if it is found.
7856 # Check for GNU $ac_path_SED
7857case `"$ac_path_SED" --version 2>&1` in
7858*GNU*)
7859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7860*)
7861 ac_count=0
7862 $as_echo_n 0123456789 >"conftest.in"
7863 while :
7864 do
7865 cat "conftest.in" "conftest.in" >"conftest.tmp"
7866 mv "conftest.tmp" "conftest.in"
7867 cp "conftest.in" "conftest.nl"
7868 $as_echo '' >> "conftest.nl"
7869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7871 as_fn_arith $ac_count + 1 && ac_count=$as_val
7872 if test $ac_count -gt ${ac_path_SED_max-0}; then
7873 # Best one so far, save it but keep looking for a better one
7874 ac_cv_path_SED="$ac_path_SED"
7875 ac_path_SED_max=$ac_count
7876 fi
7877 # 10*(2^10) chars as input seems more than enough
7878 test $ac_count -gt 10 && break
7879 done
7880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7881esac
7882
7883 $ac_path_SED_found && break 3
7884 done
7885 done
7886 done
7887IFS=$as_save_IFS
7888 if test -z "$ac_cv_path_SED"; then
7889 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7890 fi
7891else
7892 ac_cv_path_SED=$SED
7893fi
7894
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7897$as_echo "$ac_cv_path_SED" >&6; }
7898 SED="$ac_cv_path_SED"
7899 rm -f conftest.sed
7900
7901
05ea2a05
TT
7902 if test "X$prefix" = "XNONE"; then
7903 acl_final_prefix="$ac_default_prefix"
7904 else
7905 acl_final_prefix="$prefix"
7906 fi
7907 if test "X$exec_prefix" = "XNONE"; then
7908 acl_final_exec_prefix='${prefix}'
7909 else
7910 acl_final_exec_prefix="$exec_prefix"
7911 fi
7912 acl_save_prefix="$prefix"
7913 prefix="$acl_final_prefix"
7914 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7915 prefix="$acl_save_prefix"
7916
7917
7918# Check whether --with-gnu-ld was given.
7919if test "${with_gnu_ld+set}" = set; then :
7920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7921else
7922 with_gnu_ld=no
7923fi
7924
7925# Prepare PATH_SEPARATOR.
7926# The user is always right.
7927if test "${PATH_SEPARATOR+set}" != set; then
7928 echo "#! /bin/sh" >conf$$.sh
7929 echo "exit 0" >>conf$$.sh
7930 chmod +x conf$$.sh
7931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7932 PATH_SEPARATOR=';'
7933 else
7934 PATH_SEPARATOR=:
7935 fi
7936 rm -f conf$$.sh
7937fi
7938ac_prog=ld
7939if test "$GCC" = yes; then
7940 # Check if gcc -print-prog-name=ld gives a path.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7942$as_echo_n "checking for ld used by GCC... " >&6; }
7943 case $host in
7944 *-*-mingw*)
7945 # gcc leaves a trailing carriage return which upsets mingw
7946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7947 *)
7948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7949 esac
7950 case $ac_prog in
7951 # Accept absolute paths.
7952 [\\/]* | [A-Za-z]:[\\/]*)
7953 re_direlt='/[^/][^/]*/\.\./'
7954 # Canonicalize the path of ld
7955 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7956 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7957 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7958 done
7959 test -z "$LD" && LD="$ac_prog"
7960 ;;
7961 "")
7962 # If it fails, then pretend we aren't using GCC.
7963 ac_prog=ld
7964 ;;
7965 *)
7966 # If it is relative, then search for the first ld in PATH.
7967 with_gnu_ld=unknown
7968 ;;
7969 esac
7970elif test "$with_gnu_ld" = yes; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7972$as_echo_n "checking for GNU ld... " >&6; }
7973else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7975$as_echo_n "checking for non-GNU ld... " >&6; }
7976fi
7977if ${acl_cv_path_LD+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 if test -z "$LD"; then
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7982 for ac_dir in $PATH; do
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7985 acl_cv_path_LD="$ac_dir/$ac_prog"
7986 # Check to see if the program is GNU ld. I'd rather use --version,
7987 # but apparently some GNU ld's only accept -v.
7988 # Break only if it was the GNU/non-GNU ld that we prefer.
7989 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7990 test "$with_gnu_ld" != no && break
7991 else
7992 test "$with_gnu_ld" != yes && break
7993 fi
7994 fi
7995 done
7996 IFS="$ac_save_ifs"
7997else
7998 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7999fi
8000fi
8001
8002LD="$acl_cv_path_LD"
8003if test -n "$LD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8005$as_echo "$LD" >&6; }
8006else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8012$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8013if ${acl_cv_prog_gnu_ld+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015else
8016 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8017if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8018 acl_cv_prog_gnu_ld=yes
8019else
8020 acl_cv_prog_gnu_ld=no
8021fi
8022fi
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8024$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8025with_gnu_ld=$acl_cv_prog_gnu_ld
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8030$as_echo_n "checking for shared library run path origin... " >&6; }
8031if ${acl_cv_rpath+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033else
8034
8035 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8036 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8037 . ./conftest.sh
8038 rm -f ./conftest.sh
8039 acl_cv_rpath=done
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8043$as_echo "$acl_cv_rpath" >&6; }
8044 wl="$acl_cv_wl"
8045 libext="$acl_cv_libext"
8046 shlibext="$acl_cv_shlibext"
8047 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8048 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8049 hardcode_direct="$acl_cv_hardcode_direct"
8050 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8051 # Check whether --enable-rpath was given.
8052if test "${enable_rpath+set}" = set; then :
8053 enableval=$enable_rpath; :
8054else
8055 enable_rpath=yes
8056fi
8057
8058
8059
db6878ac
SM
8060 # Set the 'development' global.
8061 . $srcdir/../bfd/development.sh
8062
01027315
TT
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8064$as_echo_n "checking for ANSI C header files... " >&6; }
8065if ${ac_cv_header_stdc+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067else
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069/* end confdefs.h. */
8070#include <stdlib.h>
8071#include <stdarg.h>
8072#include <string.h>
8073#include <float.h>
8074
8075int
8076main ()
8077{
8078
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"; then :
8084 ac_cv_header_stdc=yes
8085else
8086 ac_cv_header_stdc=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h. */
8094#include <string.h>
8095
8096_ACEOF
8097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then :
8099
8100else
8101 ac_cv_header_stdc=no
8102fi
8103rm -f conftest*
8104
8105fi
8106
8107if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h. */
8111#include <stdlib.h>
8112
8113_ACEOF
8114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "free" >/dev/null 2>&1; then :
8116
8117else
8118 ac_cv_header_stdc=no
8119fi
8120rm -f conftest*
8121
8122fi
8123
8124if test $ac_cv_header_stdc = yes; then
8125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8126 if test "$cross_compiling" = yes; then :
8127 :
8128else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h. */
8131#include <ctype.h>
8132#include <stdlib.h>
8133#if ((' ' & 0x0FF) == 0x020)
8134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136#else
8137# define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142#endif
8143
8144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145int
8146main ()
8147{
8148 int i;
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8152 return 2;
8153 return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_run "$LINENO"; then :
8157
8158else
8159 ac_cv_header_stdc=no
8160fi
8161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8162 conftest.$ac_objext conftest.beam conftest.$ac_ext
8163fi
8164
8165fi
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8168$as_echo "$ac_cv_header_stdc" >&6; }
8169if test $ac_cv_header_stdc = yes; then
8170
8171$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8172
8173fi
8174
8175 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8176# for constant arguments. Useless!
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8178$as_echo_n "checking for working alloca.h... " >&6; }
8179if ${ac_cv_working_alloca_h+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h. */
8184#include <alloca.h>
8185int
8186main ()
8187{
8188char *p = (char *) alloca (2 * sizeof (int));
8189 if (p) return 0;
8190 ;
8191 return 0;
8192}
8193_ACEOF
8194if ac_fn_c_try_link "$LINENO"; then :
8195 ac_cv_working_alloca_h=yes
8196else
8197 ac_cv_working_alloca_h=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8203$as_echo "$ac_cv_working_alloca_h" >&6; }
8204if test $ac_cv_working_alloca_h = yes; then
8205
8206$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8207
8208fi
8209
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8211$as_echo_n "checking for alloca... " >&6; }
8212if ${ac_cv_func_alloca_works+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h. */
8217#ifdef __GNUC__
8218# define alloca __builtin_alloca
8219#else
8220# ifdef _MSC_VER
8221# include <malloc.h>
8222# define alloca _alloca
8223# else
8224# ifdef HAVE_ALLOCA_H
8225# include <alloca.h>
8226# else
8227# ifdef _AIX
8228 #pragma alloca
8229# else
8230# ifndef alloca /* predefined by HP cc +Olibcalls */
8231void *alloca (size_t);
8232# endif
8233# endif
8234# endif
8235# endif
8236#endif
8237
8238int
8239main ()
8240{
8241char *p = (char *) alloca (1);
8242 if (p) return 0;
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_link "$LINENO"; then :
8248 ac_cv_func_alloca_works=yes
8249else
8250 ac_cv_func_alloca_works=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254fi
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8256$as_echo "$ac_cv_func_alloca_works" >&6; }
8257
8258if test $ac_cv_func_alloca_works = yes; then
8259
8260$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8261
8262else
8263 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8264# that cause trouble. Some versions do not even contain alloca or
8265# contain a buggy version. If you still want to use their alloca,
8266# use ar to extract alloca.o from them instead of compiling alloca.c.
8267
8268ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8269
8270$as_echo "#define C_ALLOCA 1" >>confdefs.h
8271
8272
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8274$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8275if ${ac_cv_os_cray+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h. */
8280#if defined CRAY && ! defined CRAY2
8281webecray
8282#else
8283wenotbecray
8284#endif
8285
8286_ACEOF
8287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "webecray" >/dev/null 2>&1; then :
8289 ac_cv_os_cray=yes
8290else
8291 ac_cv_os_cray=no
8292fi
8293rm -f conftest*
8294
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8297$as_echo "$ac_cv_os_cray" >&6; }
8298if test $ac_cv_os_cray = yes; then
8299 for ac_func in _getb67 GETB67 getb67; do
8300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8303
8304cat >>confdefs.h <<_ACEOF
8305#define CRAY_STACKSEG_END $ac_func
8306_ACEOF
8307
8308 break
8309fi
8310
8311 done
8312fi
8313
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8315$as_echo_n "checking stack direction for C alloca... " >&6; }
8316if ${ac_cv_c_stack_direction+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318else
8319 if test "$cross_compiling" = yes; then :
8320 ac_cv_c_stack_direction=0
8321else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h. */
8324$ac_includes_default
8325int
8326find_stack_direction (int *addr, int depth)
8327{
8328 int dir, dummy = 0;
8329 if (! addr)
8330 addr = &dummy;
8331 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8332 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8333 return dir + dummy;
8334}
8335
8336int
8337main (int argc, char **argv)
8338{
8339 return find_stack_direction (0, argc + !argv + 20) < 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"; then :
8343 ac_cv_c_stack_direction=1
8344else
8345 ac_cv_c_stack_direction=-1
8346fi
8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 conftest.$ac_objext conftest.beam conftest.$ac_ext
8349fi
8350
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8353$as_echo "$ac_cv_c_stack_direction" >&6; }
8354cat >>confdefs.h <<_ACEOF
8355#define STACK_DIRECTION $ac_cv_c_stack_direction
8356_ACEOF
8357
8358
8359fi
8360
8361
8362 WIN32APILIBS=
8363 case ${host} in
8364 *mingw32*)
8365
8366$as_echo "#define USE_WIN32API 1" >>confdefs.h
8367
8368 WIN32APILIBS="-lws2_32"
8369 ;;
8370 esac
8371
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8374$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8375if ${am_cv_langinfo_codeset+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h. */
8380#include <langinfo.h>
8381int
8382main ()
8383{
8384char* cs = nl_langinfo(CODESET);
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389if ac_fn_c_try_link "$LINENO"; then :
8390 am_cv_langinfo_codeset=yes
8391else
8392 am_cv_langinfo_codeset=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8399$as_echo "$am_cv_langinfo_codeset" >&6; }
8400 if test $am_cv_langinfo_codeset = yes; then
8401
8402$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8403
8404 fi
8405
8406
8ae8e197 8407 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h sys/procfs.h proc_service.h poll.h sys/poll.h sys/select.h
01027315
TT
8408do :
8409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8412 cat >>confdefs.h <<_ACEOF
8413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8414_ACEOF
8415
8416fi
8417
8418done
8419
8420
05ea2a05
TT
8421
8422for ac_func in getpagesize
01027315 8423do :
05ea2a05
TT
8424 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8425if test "x$ac_cv_func_getpagesize" = xyes; then :
01027315 8426 cat >>confdefs.h <<_ACEOF
05ea2a05 8427#define HAVE_GETPAGESIZE 1
01027315
TT
8428_ACEOF
8429
8430fi
8431done
8432
05ea2a05
TT
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8434$as_echo_n "checking for working mmap... " >&6; }
8435if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8436 $as_echo_n "(cached) " >&6
01027315 8437else
05ea2a05
TT
8438 if test "$cross_compiling" = yes; then :
8439 ac_cv_func_mmap_fixed_mapped=no
8440else
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h. */
8443$ac_includes_default
8444/* malloc might have been renamed as rpl_malloc. */
8445#undef malloc
8446
8447/* Thanks to Mike Haertel and Jim Avera for this test.
8448 Here is a matrix of mmap possibilities:
8449 mmap private not fixed
8450 mmap private fixed at somewhere currently unmapped
8451 mmap private fixed at somewhere already mapped
8452 mmap shared not fixed
8453 mmap shared fixed at somewhere currently unmapped
8454 mmap shared fixed at somewhere already mapped
8455 For private mappings, we should verify that changes cannot be read()
8456 back from the file, nor mmap's back from the file at a different
8457 address. (There have been systems where private was not correctly
8458 implemented like the infamous i386 svr4.0, and systems where the
8459 VM page cache was not coherent with the file system buffer cache
8460 like early versions of FreeBSD and possibly contemporary NetBSD.)
8461 For shared mappings, we should conversely verify that changes get
8462 propagated back to all the places they're supposed to be.
8463
8464 Grep wants private fixed already mapped.
8465 The main things grep needs to know about mmap are:
8466 * does it exist and is it safe to write into the mmap'd area
8467 * how to use it (BSD variants) */
8468
8469#include <fcntl.h>
8470#include <sys/mman.h>
8471
8472#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8473char *malloc ();
8474#endif
01027315 8475
05ea2a05
TT
8476/* This mess was copied from the GNU getpagesize.h. */
8477#ifndef HAVE_GETPAGESIZE
8478# ifdef _SC_PAGESIZE
8479# define getpagesize() sysconf(_SC_PAGESIZE)
8480# else /* no _SC_PAGESIZE */
8481# ifdef HAVE_SYS_PARAM_H
8482# include <sys/param.h>
8483# ifdef EXEC_PAGESIZE
8484# define getpagesize() EXEC_PAGESIZE
8485# else /* no EXEC_PAGESIZE */
8486# ifdef NBPG
8487# define getpagesize() NBPG * CLSIZE
8488# ifndef CLSIZE
8489# define CLSIZE 1
8490# endif /* no CLSIZE */
8491# else /* no NBPG */
8492# ifdef NBPC
8493# define getpagesize() NBPC
8494# else /* no NBPC */
8495# ifdef PAGESIZE
8496# define getpagesize() PAGESIZE
8497# endif /* PAGESIZE */
8498# endif /* no NBPC */
8499# endif /* no NBPG */
8500# endif /* no EXEC_PAGESIZE */
8501# else /* no HAVE_SYS_PARAM_H */
8502# define getpagesize() 8192 /* punt totally */
8503# endif /* no HAVE_SYS_PARAM_H */
8504# endif /* no _SC_PAGESIZE */
8505
8506#endif /* no HAVE_GETPAGESIZE */
01027315 8507
05ea2a05
TT
8508int
8509main ()
8510{
8511 char *data, *data2, *data3;
8512 const char *cdata2;
8513 int i, pagesize;
8514 int fd, fd2;
01027315 8515
05ea2a05 8516 pagesize = getpagesize ();
01027315 8517
05ea2a05
TT
8518 /* First, make a file with some known garbage in it. */
8519 data = (char *) malloc (pagesize);
8520 if (!data)
8521 return 1;
8522 for (i = 0; i < pagesize; ++i)
8523 *(data + i) = rand ();
8524 umask (0);
8525 fd = creat ("conftest.mmap", 0600);
8526 if (fd < 0)
8527 return 2;
8528 if (write (fd, data, pagesize) != pagesize)
8529 return 3;
8530 close (fd);
8531
8532 /* Next, check that the tail of a page is zero-filled. File must have
8533 non-zero length, otherwise we risk SIGBUS for entire page. */
8534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8535 if (fd2 < 0)
8536 return 4;
8537 cdata2 = "";
8538 if (write (fd2, cdata2, 1) != 1)
8539 return 5;
8540 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8541 if (data2 == MAP_FAILED)
8542 return 6;
8543 for (i = 0; i < pagesize; ++i)
8544 if (*(data2 + i))
8545 return 7;
8546 close (fd2);
8547 if (munmap (data2, pagesize))
8548 return 8;
8549
8550 /* Next, try to mmap the file at a fixed address which already has
8551 something else allocated at it. If we can, also make sure that
8552 we see the same garbage. */
8553 fd = open ("conftest.mmap", O_RDWR);
8554 if (fd < 0)
8555 return 9;
8556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8558 return 10;
8559 for (i = 0; i < pagesize; ++i)
8560 if (*(data + i) != *(data2 + i))
8561 return 11;
8562
8563 /* Finally, make sure that changes to the mapped area do not
8564 percolate back to the file as seen by read(). (This is a bug on
8565 some variants of i386 svr4.0.) */
8566 for (i = 0; i < pagesize; ++i)
8567 *(data2 + i) = *(data2 + i) + 1;
8568 data3 = (char *) malloc (pagesize);
8569 if (!data3)
8570 return 12;
8571 if (read (fd, data3, pagesize) != pagesize)
8572 return 13;
8573 for (i = 0; i < pagesize; ++i)
8574 if (*(data + i) != *(data3 + i))
8575 return 14;
8576 close (fd);
8577 return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_run "$LINENO"; then :
8581 ac_cv_func_mmap_fixed_mapped=yes
8582else
8583 ac_cv_func_mmap_fixed_mapped=no
8584fi
8585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586 conftest.$ac_objext conftest.beam conftest.$ac_ext
8587fi
01027315 8588
05ea2a05
TT
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8591$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8592if test $ac_cv_func_mmap_fixed_mapped = yes; then
01027315 8593
05ea2a05 8594$as_echo "#define HAVE_MMAP 1" >>confdefs.h
01027315 8595
05ea2a05
TT
8596fi
8597rm -f conftest.mmap conftest.txt
01027315 8598
05ea2a05
TT
8599 for ac_header in vfork.h
8600do :
8601 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8602if test "x$ac_cv_header_vfork_h" = xyes; then :
8603 cat >>confdefs.h <<_ACEOF
8604#define HAVE_VFORK_H 1
8605_ACEOF
01027315 8606
05ea2a05 8607fi
01027315 8608
05ea2a05
TT
8609done
8610
8611for ac_func in fork vfork
8612do :
8613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8616 cat >>confdefs.h <<_ACEOF
8617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8618_ACEOF
01027315 8619
01027315 8620fi
05ea2a05 8621done
01027315 8622
05ea2a05
TT
8623if test "x$ac_cv_func_fork" = xyes; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8625$as_echo_n "checking for working fork... " >&6; }
8626if ${ac_cv_func_fork_works+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628else
8629 if test "$cross_compiling" = yes; then :
8630 ac_cv_func_fork_works=cross
8631else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h. */
8634$ac_includes_default
01027315
TT
8635int
8636main ()
8637{
05ea2a05
TT
8638
8639 /* By Ruediger Kuhlmann. */
8640 return fork () < 0;
8641
01027315
TT
8642 ;
8643 return 0;
8644}
8645_ACEOF
05ea2a05
TT
8646if ac_fn_c_try_run "$LINENO"; then :
8647 ac_cv_func_fork_works=yes
8648else
8649 ac_cv_func_fork_works=no
01027315 8650fi
05ea2a05
TT
8651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8653fi
8654
05ea2a05
TT
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8657$as_echo "$ac_cv_func_fork_works" >&6; }
01027315 8658
05ea2a05
TT
8659else
8660 ac_cv_func_fork_works=$ac_cv_func_fork
8661fi
8662if test "x$ac_cv_func_fork_works" = xcross; then
8663 case $host in
8664 *-*-amigaos* | *-*-msdosdjgpp*)
8665 # Override, as these systems have only a dummy fork() stub
8666 ac_cv_func_fork_works=no
8667 ;;
8668 *)
8669 ac_cv_func_fork_works=yes
8670 ;;
8671 esac
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8673$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8674fi
8675ac_cv_func_vfork_works=$ac_cv_func_vfork
8676if test "x$ac_cv_func_vfork" = xyes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8678$as_echo_n "checking for working vfork... " >&6; }
8679if ${ac_cv_func_vfork_works+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681else
8682 if test "$cross_compiling" = yes; then :
8683 ac_cv_func_vfork_works=cross
8684else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h. */
8687/* Thanks to Paul Eggert for this test. */
8688$ac_includes_default
8689#include <sys/wait.h>
8690#ifdef HAVE_VFORK_H
8691# include <vfork.h>
8692#endif
8693/* On some sparc systems, changes by the child to local and incoming
8694 argument registers are propagated back to the parent. The compiler
8695 is told about this with #include <vfork.h>, but some compilers
8696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8697 static variable whose address is put into a register that is
8698 clobbered by the vfork. */
8699static void
8700#ifdef __cplusplus
8701sparc_address_test (int arg)
8702# else
8703sparc_address_test (arg) int arg;
8704#endif
8705{
8706 static pid_t child;
8707 if (!child) {
8708 child = vfork ();
8709 if (child < 0) {
8710 perror ("vfork");
8711 _exit(2);
8712 }
8713 if (!child) {
8714 arg = getpid();
8715 write(-1, "", 0);
8716 _exit (arg);
8717 }
8718 }
8719}
01027315 8720
05ea2a05
TT
8721int
8722main ()
8723{
8724 pid_t parent = getpid ();
8725 pid_t child;
8726
8727 sparc_address_test (0);
8728
8729 child = vfork ();
8730
8731 if (child == 0) {
8732 /* Here is another test for sparc vfork register problems. This
8733 test uses lots of local variables, at least as many local
8734 variables as main has allocated so far including compiler
8735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8737 reuse the register of parent for one of the local variables,
8738 since it will think that parent can't possibly be used any more
8739 in this routine. Assigning to the local variable will thus
8740 munge parent in the parent process. */
8741 pid_t
8742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8744 /* Convince the compiler that p..p7 are live; otherwise, it might
8745 use the same hardware register for all 8 local variables. */
8746 if (p != p1 || p != p2 || p != p3 || p != p4
8747 || p != p5 || p != p6 || p != p7)
8748 _exit(1);
8749
8750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8751 from child file descriptors. If the child closes a descriptor
8752 before it execs or exits, this munges the parent's descriptor
8753 as well. Test for this by closing stdout in the child. */
8754 _exit(close(fileno(stdout)) != 0);
8755 } else {
8756 int status;
8757 struct stat st;
8758
8759 while (wait(&status) != child)
8760 ;
8761 return (
8762 /* Was there some problem with vforking? */
8763 child < 0
8764
8765 /* Did the child fail? (This shouldn't happen.) */
8766 || status
8767
8768 /* Did the vfork/compiler bug occur? */
8769 || parent != getpid()
8770
8771 /* Did the file descriptor bug occur? */
8772 || fstat(fileno(stdout), &st) != 0
8773 );
8774 }
8775}
8776_ACEOF
8777if ac_fn_c_try_run "$LINENO"; then :
8778 ac_cv_func_vfork_works=yes
8779else
8780 ac_cv_func_vfork_works=no
8781fi
8782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8783 conftest.$ac_objext conftest.beam conftest.$ac_ext
8784fi
01027315 8785
05ea2a05
TT
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8788$as_echo "$ac_cv_func_vfork_works" >&6; }
01027315 8789
05ea2a05
TT
8790fi;
8791if test "x$ac_cv_func_fork_works" = xcross; then
8792 ac_cv_func_vfork_works=$ac_cv_func_vfork
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8794$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8795fi
01027315 8796
05ea2a05 8797if test "x$ac_cv_func_vfork_works" = xyes; then
01027315 8798
05ea2a05 8799$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01027315 8800
05ea2a05 8801else
01027315 8802
05ea2a05 8803$as_echo "#define vfork fork" >>confdefs.h
01027315 8804
05ea2a05
TT
8805fi
8806if test "x$ac_cv_func_fork_works" = xyes; then
01027315 8807
05ea2a05 8808$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01027315 8809
05ea2a05 8810fi
01027315 8811
8ae8e197 8812 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
05ea2a05
TT
8813 ptrace64 sbrk setns sigaltstack sigprocmask \
8814 setpgid setpgrp getrusage getauxval
8815do :
8816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8818if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8819 cat >>confdefs.h <<_ACEOF
8820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
01027315 8821_ACEOF
05ea2a05 8822
01027315 8823fi
05ea2a05 8824done
01027315 8825
01027315 8826
05ea2a05
TT
8827 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8828"
8829if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8830 ac_have_decl=1
8831else
8832 ac_have_decl=0
8833fi
01027315 8834
05ea2a05
TT
8835cat >>confdefs.h <<_ACEOF
8836#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8837_ACEOF
01027315 8838
01027315 8839
05ea2a05
TT
8840 if test "$cross_compiling" = yes; then :
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h. */
8843#include <sys/personality.h>
8844int
8845main ()
8846{
01027315 8847
05ea2a05
TT
8848 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8849 # define ADDR_NO_RANDOMIZE 0x0040000
8850 # endif
8851 /* Test the flag could be set and stays set. */
8852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8854 return 1
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859if ac_fn_c_try_link "$LINENO"; then :
8860 have_personality=true
8861else
8862 have_personality=false
8863fi
8864rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h. */
8869#include <sys/personality.h>
8870int
8871main ()
8872{
8873
8874 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8875 # define ADDR_NO_RANDOMIZE 0x0040000
8876 # endif
8877 /* Test the flag could be set and stays set. */
8878 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8879 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8880 return 1
8881 ;
8882 return 0;
8883}
8884_ACEOF
8885if ac_fn_c_try_run "$LINENO"; then :
8886 have_personality=true
8887else
8888 have_personality=false
8889fi
8890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8892fi
8893
05ea2a05
TT
8894 if $have_personality
8895 then
01027315 8896
05ea2a05 8897$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
01027315 8898
05ea2a05 8899 fi
01027315 8900
05ea2a05
TT
8901 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8902if test "x$ac_cv_have_decl_strstr" = xyes; then :
8903 ac_have_decl=1
01027315 8904else
05ea2a05 8905 ac_have_decl=0
01027315
TT
8906fi
8907
05ea2a05
TT
8908cat >>confdefs.h <<_ACEOF
8909#define HAVE_DECL_STRSTR $ac_have_decl
8910_ACEOF
01027315 8911
05ea2a05
TT
8912
8913 # ----------------------- #
8914 # Checks for structures. #
8915 # ----------------------- #
8916
8917 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8918if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8919
8920cat >>confdefs.h <<_ACEOF
8921#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8922_ACEOF
8923
8924
8925fi
8926ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8927if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8928
8929cat >>confdefs.h <<_ACEOF
8930#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8931_ACEOF
8932
8933
8934fi
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8938$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8939if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315
TT
8940 $as_echo_n "(cached) " >&6
8941else
05ea2a05
TT
8942 ac_func_search_save_LIBS=$LIBS
8943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 8944/* end confdefs.h. */
01027315 8945
05ea2a05
TT
8946/* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949#ifdef __cplusplus
8950extern "C"
8951#endif
8952char kinfo_getfile ();
8953int
8954main ()
8955{
8956return kinfo_getfile ();
8957 ;
8958 return 0;
8959}
01027315 8960_ACEOF
05ea2a05
TT
8961for ac_lib in '' util util-freebsd; do
8962 if test -z "$ac_lib"; then
8963 ac_res="none required"
8964 else
8965 ac_res=-l$ac_lib
8966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8967 fi
8968 if ac_fn_c_try_link "$LINENO"; then :
8969 ac_cv_search_kinfo_getfile=$ac_res
01027315 8970fi
05ea2a05
TT
8971rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext
8973 if ${ac_cv_search_kinfo_getfile+:} false; then :
8974 break
8975fi
8976done
8977if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315 8978
05ea2a05
TT
8979else
8980 ac_cv_search_kinfo_getfile=no
8981fi
8982rm conftest.$ac_ext
8983LIBS=$ac_func_search_save_LIBS
8984fi
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8986$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8987ac_res=$ac_cv_search_kinfo_getfile
8988if test "$ac_res" != no; then :
8989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8990
8991$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
01027315
TT
8992
8993fi
01027315 8994
01027315 8995
05ea2a05
TT
8996 # Check for std::thread. This does not work on some platforms, like
8997 # mingw and DJGPP.
8998 ac_ext=cpp
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
01027315 9003
01027315 9004
01027315 9005
01027315 9006
05ea2a05
TT
9007
9008ac_ext=c
9009ac_cpp='$CPP $CPPFLAGS'
9010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014ax_pthread_ok=no
9015
9016# We used to check for pthread.h first, but this fails if pthread.h
9017# requires special compiler flags (e.g. on Tru64 or Sequent).
9018# It gets checked for in the link test anyway.
9019
9020# First of all, check if the user has set any of the PTHREAD_LIBS,
9021# etcetera environment variables, and if threads linking works using
9022# them:
9023if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9024 ax_pthread_save_CC="$CC"
9025 ax_pthread_save_CFLAGS="$CFLAGS"
9026 ax_pthread_save_LIBS="$LIBS"
9027 if test "x$PTHREAD_CC" != "x"; then :
9028 CC="$PTHREAD_CC"
9029fi
9030 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9031 LIBS="$PTHREAD_LIBS $LIBS"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9033$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035/* end confdefs.h. */
9036
9037/* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9040#ifdef __cplusplus
9041extern "C"
9042#endif
9043char pthread_join ();
9044int
9045main ()
9046{
9047return pthread_join ();
9048 ;
9049 return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"; then :
9053 ax_pthread_ok=yes
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9058$as_echo "$ax_pthread_ok" >&6; }
9059 if test "x$ax_pthread_ok" = "xno"; then
9060 PTHREAD_LIBS=""
9061 PTHREAD_CFLAGS=""
9062 fi
9063 CC="$ax_pthread_save_CC"
9064 CFLAGS="$ax_pthread_save_CFLAGS"
9065 LIBS="$ax_pthread_save_LIBS"
9066fi
9067
9068# We must check for the threads library under a number of different
9069# names; the ordering is very important because some systems
9070# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9071# libraries is broken (non-POSIX).
9072
9073# Create a list of thread flags to try. Items starting with a "-" are
9074# C compiler flags, and other items are library names, except for "none"
9075# which indicates that we try without any flags at all, and "pthread-config"
9076# which is a program returning the flags for the Pth emulation library.
9077
9078ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9079
9080# The ordering *is* (sometimes) important. Some notes on the
9081# individual items follow:
9082
9083# pthreads: AIX (must check this before -lpthread)
9084# none: in case threads are in libc; should be tried before -Kthread and
9085# other compiler flags to prevent continual compiler warnings
9086# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9087# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9088# (Note: HP C rejects this with "bad form for `-t' option")
9089# -pthreads: Solaris/gcc (Note: HP C also rejects)
9090# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9091# doesn't hurt to check since this sometimes defines pthreads and
9092# -D_REENTRANT too), HP C (must be checked before -lpthread, which
9093# is present but should not be used directly; and before -mthreads,
9094# because the compiler interprets this as "-mt" + "-hreads")
9095# -mthreads: Mingw32/gcc, Lynx/gcc
9096# pthread: Linux, etcetera
9097# --thread-safe: KAI C++
9098# pthread-config: use pthread-config program (for GNU Pth library)
9099
9100case $host_os in
9101
9102 freebsd*)
9103
9104 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9105 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9106
9107 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9108 ;;
9109
9110 hpux*)
9111
9112 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9113 # multi-threading and also sets -lpthread."
9114
9115 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9116 ;;
9117
9118 openedition*)
9119
9120 # IBM z/OS requires a feature-test macro to be defined in order to
9121 # enable POSIX threads at all, so give the user a hint if this is
9122 # not set. (We don't define these ourselves, as they can affect
9123 # other portions of the system API in unpredictable ways.)
9124
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h. */
9127
9128# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9129 AX_PTHREAD_ZOS_MISSING
9130# endif
9131
9132_ACEOF
9133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9136$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9137fi
9138rm -f conftest*
9139
9140 ;;
9141
9142 solaris*)
9143
9144 # On Solaris (at least, for some versions), libc contains stubbed
9145 # (non-functional) versions of the pthreads routines, so link-based
9146 # tests will erroneously succeed. (N.B.: The stubs are missing
9147 # pthread_cleanup_push, or rather a function called by this macro,
9148 # so we could check for that, but who knows whether they'll stub
9149 # that too in a future libc.) So we'll check first for the
9150 # standard Solaris way of linking pthreads (-mt -lpthread).
9151
9152 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9153 ;;
9154esac
9155
9156# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9157
9158if test "x$GCC" = "xyes"; then :
9159 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9160fi
9161
9162# The presence of a feature test macro requesting re-entrant function
9163# definitions is, on some systems, a strong hint that pthreads support is
9164# correctly enabled
9165
9166case $host_os in
9167 darwin* | hpux* | linux* | osf* | solaris*)
9168 ax_pthread_check_macro="_REENTRANT"
9169 ;;
9170
9171 aix*)
9172 ax_pthread_check_macro="_THREAD_SAFE"
9173 ;;
9174
9175 *)
9176 ax_pthread_check_macro="--"
9177 ;;
9178esac
9179if test "x$ax_pthread_check_macro" = "x--"; then :
9180 ax_pthread_check_cond=0
9181else
9182 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9183fi
9184
9185# Are we compiling with Clang?
9186
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9188$as_echo_n "checking whether $CC is Clang... " >&6; }
9189if ${ax_cv_PTHREAD_CLANG+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191else
9192 ax_cv_PTHREAD_CLANG=no
9193 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9194 if test "x$GCC" = "xyes"; then
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h. */
9197/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9198# if defined(__clang__) && defined(__llvm__)
9199 AX_PTHREAD_CC_IS_CLANG
9200# endif
9201
9202_ACEOF
9203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9205 ax_cv_PTHREAD_CLANG=yes
9206fi
9207rm -f conftest*
9208
9209 fi
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9213$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9214ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9215
9216ax_pthread_clang_warning=no
9217
9218# Clang needs special handling, because older versions handle the -pthread
9219# option in a rather... idiosyncratic way
9220
9221if test "x$ax_pthread_clang" = "xyes"; then
9222
9223 # Clang takes -pthread; it has never supported any other flag
9224
9225 # (Note 1: This will need to be revisited if a system that Clang
9226 # supports has POSIX threads in a separate library. This tends not
9227 # to be the way of modern systems, but it's conceivable.)
9228
9229 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9230 # to get POSIX threads support; the API is always present and
9231 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9232 # -pthread does define _REENTRANT, and while the Darwin headers
9233 # ignore this macro, third-party headers might not.)
01027315
TT
9234
9235 PTHREAD_CFLAGS="-pthread"
9236 PTHREAD_LIBS=
9237
9238 ax_pthread_ok=yes
9239
9240 # However, older versions of Clang make a point of warning the user
9241 # that, in an invocation where only linking and no compilation is
9242 # taking place, the -pthread option has no effect ("argument unused
9243 # during compilation"). They expect -pthread to be passed in only
9244 # when source code is being compiled.
9245 #
9246 # Problem is, this is at odds with the way Automake and most other
9247 # C build frameworks function, which is that the same flags used in
9248 # compilation (CFLAGS) are also used in linking. Many systems
9249 # supported by AX_PTHREAD require exactly this for POSIX threads
9250 # support, and in fact it is often not straightforward to specify a
9251 # flag that is used only in the compilation phase and not in
9252 # linking. Such a scenario is extremely rare in practice.
9253 #
9254 # Even though use of the -pthread flag in linking would only print
9255 # a warning, this can be a nuisance for well-run software projects
9256 # that build with -Werror. So if the active version of Clang has
9257 # this misfeature, we search for an option to squash it.
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9260$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9261if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263else
9264 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9265 # Create an alternate version of $ac_link that compiles and
9266 # links in two steps (.c -> .o, .o -> exe) instead of one
9267 # (.c -> exe), because the warning occurs only in the second
9268 # step
9269 ax_pthread_save_ac_link="$ac_link"
9270 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9271 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9272 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9273 ax_pthread_save_CFLAGS="$CFLAGS"
9274 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9275 if test "x$ax_pthread_try" = "xunknown"; then :
9276 break
9277fi
9278 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9279 ac_link="$ax_pthread_save_ac_link"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h. */
9282int main(void){return 0;}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"; then :
9285 ac_link="$ax_pthread_2step_ac_link"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h. */
9288int main(void){return 0;}
9289_ACEOF
9290if ac_fn_c_try_link "$LINENO"; then :
9291 break
9292fi
9293rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 done
9300 ac_link="$ax_pthread_save_ac_link"
9301 CFLAGS="$ax_pthread_save_CFLAGS"
9302 if test "x$ax_pthread_try" = "x"; then :
9303 ax_pthread_try=no
9304fi
9305 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9306
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9309$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9310
9311 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9312 no | unknown) ;;
9313 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9314 esac
9315
9316fi # $ax_pthread_clang = yes
9317
9318if test "x$ax_pthread_ok" = "xno"; then
9319for ax_pthread_try_flag in $ax_pthread_flags; do
9320
9321 case $ax_pthread_try_flag in
9322 none)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9324$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9325 ;;
9326
9327 -mt,pthread)
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9329$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9330 PTHREAD_CFLAGS="-mt"
9331 PTHREAD_LIBS="-lpthread"
9332 ;;
9333
9334 -*)
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9336$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9337 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9338 ;;
9339
9340 pthread-config)
9341 # Extract the first word of "pthread-config", so it can be a program name with args.
9342set dummy pthread-config; ac_word=$2
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344$as_echo_n "checking for $ac_word... " >&6; }
9345if ${ac_cv_prog_ax_pthread_config+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347else
9348 if test -n "$ax_pthread_config"; then
9349 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9350else
9351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352for as_dir in $PATH
9353do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_ax_pthread_config="yes"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9361 fi
05ea2a05
TT
9362done
9363 done
9364IFS=$as_save_IFS
9365
9366 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9367fi
9368fi
9369ax_pthread_config=$ac_cv_prog_ax_pthread_config
9370if test -n "$ax_pthread_config"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9372$as_echo "$ax_pthread_config" >&6; }
9373else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
9376fi
9377
9378
9379 if test "x$ax_pthread_config" = "xno"; then :
9380 continue
9381fi
9382 PTHREAD_CFLAGS="`pthread-config --cflags`"
9383 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9384 ;;
9385
9386 *)
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9388$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9389 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9390 ;;
9391 esac
9392
9393 ax_pthread_save_CFLAGS="$CFLAGS"
9394 ax_pthread_save_LIBS="$LIBS"
9395 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9396 LIBS="$PTHREAD_LIBS $LIBS"
9397
9398 # Check for various functions. We must include pthread.h,
9399 # since some functions may be macros. (On the Sequent, we
9400 # need a special flag -Kthread to make this header compile.)
9401 # We check for pthread_join because it is in -lpthread on IRIX
9402 # while pthread_create is in libc. We check for pthread_attr_init
9403 # due to DEC craziness with -lpthreads. We check for
9404 # pthread_cleanup_push because it is one of the few pthread
9405 # functions on Solaris that doesn't have a non-functional libc stub.
9406 # We try pthread_create on general principles.
9407
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h. */
9410#include <pthread.h>
9411# if $ax_pthread_check_cond
9412# error "$ax_pthread_check_macro must be defined"
9413# endif
9414 static void routine(void *a) { a = 0; }
9415 static void *start_routine(void *a) { return a; }
9416int
9417main ()
9418{
9419pthread_t th; pthread_attr_t attr;
9420 pthread_create(&th, 0, start_routine, 0);
9421 pthread_join(th, 0);
9422 pthread_attr_init(&attr);
9423 pthread_cleanup_push(routine, 0);
9424 pthread_cleanup_pop(0) /* ; */
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429if ac_fn_c_try_link "$LINENO"; then :
9430 ax_pthread_ok=yes
9431fi
9432rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434
9435 CFLAGS="$ax_pthread_save_CFLAGS"
9436 LIBS="$ax_pthread_save_LIBS"
9437
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9439$as_echo "$ax_pthread_ok" >&6; }
9440 if test "x$ax_pthread_ok" = "xyes"; then :
9441 break
9442fi
9443
9444 PTHREAD_LIBS=""
9445 PTHREAD_CFLAGS=""
9446done
9447fi
9448
9449# Various other checks:
9450if test "x$ax_pthread_ok" = "xyes"; then
9451 ax_pthread_save_CFLAGS="$CFLAGS"
9452 ax_pthread_save_LIBS="$LIBS"
9453 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9454 LIBS="$PTHREAD_LIBS $LIBS"
9455
9456 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9458$as_echo_n "checking for joinable pthread attribute... " >&6; }
9459if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461else
9462 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9463 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h. */
9466#include <pthread.h>
9467int
9468main ()
9469{
9470int attr = $ax_pthread_attr; return attr /* ; */
9471 ;
9472 return 0;
9473}
9474_ACEOF
9475if ac_fn_c_try_link "$LINENO"; then :
9476 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9477fi
9478rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 done
9481
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9484$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9485 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9486 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9487 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9488
9489cat >>confdefs.h <<_ACEOF
9490#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9491_ACEOF
9492
9493 ax_pthread_joinable_attr_defined=yes
9494
9495fi
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9498$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9499if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501else
9502 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9503 case $host_os in
9504 solaris*)
9505 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9506 ;;
9507 esac
9508
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9511$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9512 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9513 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9514 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9515 ax_pthread_special_flags_added=yes
9516fi
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9519$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9520if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h. */
9525#include <pthread.h>
9526int
9527main ()
9528{
9529int i = PTHREAD_PRIO_INHERIT;
9530 ;
9531 return 0;
9532}
9533_ACEOF
9534if ac_fn_c_try_link "$LINENO"; then :
9535 ax_cv_PTHREAD_PRIO_INHERIT=yes
9536else
9537 ax_cv_PTHREAD_PRIO_INHERIT=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9544$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9545 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9546 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9547
9548$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9549
9550 ax_pthread_prio_inherit_defined=yes
9551
9552fi
9553
9554 CFLAGS="$ax_pthread_save_CFLAGS"
9555 LIBS="$ax_pthread_save_LIBS"
9556
9557 # More AIX lossage: compile with *_r variant
9558 if test "x$GCC" != "xyes"; then
9559 case $host_os in
9560 aix*)
9561 case "x/$CC" in #(
9562 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9563 #handle absolute path differently from PATH based program lookup
9564 case "x$CC" in #(
9565 x/*) :
9566 if as_fn_executable_p ${CC}_r; then :
9567 PTHREAD_CC="${CC}_r"
9568fi ;; #(
9569 *) :
9570 for ac_prog in ${CC}_r
9571do
9572 # Extract the first word of "$ac_prog", so it can be a program name with args.
9573set dummy $ac_prog; ac_word=$2
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578else
9579 if test -n "$PTHREAD_CC"; then
9580 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9581else
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_PTHREAD_CC="$ac_prog"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593done
9594 done
9595IFS=$as_save_IFS
9596
9597fi
9598fi
9599PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9600if test -n "$PTHREAD_CC"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9602$as_echo "$PTHREAD_CC" >&6; }
9603else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
9606fi
9607
9608
9609 test -n "$PTHREAD_CC" && break
9610done
9611test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9612 ;;
9613esac ;; #(
9614 *) :
9615 ;;
9616esac
9617 ;;
9618 esac
9619 fi
9620fi
9621
9622test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9623
9624
9625
9626
9627
9628# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9629if test "x$ax_pthread_ok" = "xyes"; then
9630 threads=yes
9631 :
9632else
9633 ax_pthread_ok=no
9634 threads=no
9635fi
9636ac_ext=cpp
9637ac_cpp='$CXXCPP $CPPFLAGS'
9638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9641
9642
9643 if test "$threads" = "yes"; then
9644 save_LIBS="$LIBS"
9645 LIBS="$PTHREAD_LIBS $LIBS"
9646 save_CXXFLAGS="$CXXFLAGS"
9647 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9649$as_echo_n "checking for std::thread... " >&6; }
9650if ${gdb_cv_cxx_std_thread+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h. */
9655#include <thread>
9656 void callback() { }
9657int
9658main ()
9659{
9660std::thread t(callback);
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665if ac_fn_cxx_try_compile "$LINENO"; then :
9666 gdb_cv_cxx_std_thread=yes
9667else
9668 gdb_cv_cxx_std_thread=no
9669fi
9670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9673$as_echo "$gdb_cv_cxx_std_thread" >&6; }
9674
9675 # This check must be here, while LIBS includes any necessary
9676 # threading library.
9677 for ac_func in pthread_sigmask pthread_setname_np
9678do :
9679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9681if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9682 cat >>confdefs.h <<_ACEOF
9683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9684_ACEOF
9685
9686fi
9687done
9688
9689
9690 LIBS="$save_LIBS"
9691 CXXFLAGS="$save_CXXFLAGS"
9692 fi
9693 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9694
9695$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9696
9697 fi
9698 ac_ext=c
9699ac_cpp='$CPP $CPPFLAGS'
9700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703
9704
3684d331 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
05ea2a05
TT
9706$as_echo_n "checking for sigsetjmp... " >&6; }
9707if ${gdb_cv_func_sigsetjmp+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h. */
9712
3684d331 9713 #include <setjmp.h>
05ea2a05
TT
9714
9715int
9716main ()
9717{
9718sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723if ac_fn_c_try_compile "$LINENO"; then :
9724 gdb_cv_func_sigsetjmp=yes
9725else
9726 gdb_cv_func_sigsetjmp=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729fi
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9731$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
3684d331 9732 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
05ea2a05
TT
9733
9734$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9735
3684d331 9736 fi
05ea2a05
TT
9737
9738
9739# Check whether --with-intel_pt was given.
9740if test "${with_intel_pt+set}" = set; then :
9741 withval=$with_intel_pt;
9742else
9743 with_intel_pt=auto
9744fi
9745
3684d331 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
05ea2a05 9747$as_echo_n "checking whether to use intel pt... " >&6; }
3684d331 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
05ea2a05
TT
9749$as_echo "$with_intel_pt" >&6; }
9750
3684d331
PA
9751 if test "${with_intel_pt}" = no; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
05ea2a05 9753$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
3684d331
PA
9754 HAVE_LIBIPT=no
9755 else
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
9757/* end confdefs.h. */
9758
3684d331
PA
9759 #include <linux/perf_event.h>
9760 #ifndef PERF_ATTR_SIZE_VER5
9761 # error
9762 #endif
05ea2a05
TT
9763
9764_ACEOF
9765if ac_fn_c_try_cpp "$LINENO"; then :
9766 perf_event=yes
9767else
9768 perf_event=no
9769fi
9770rm -f conftest.err conftest.i conftest.$ac_ext
3684d331
PA
9771 if test "$perf_event" != yes; then
9772 if test "$with_intel_pt" = yes; then
9773 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
05ea2a05 9776$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
3684d331 9777 fi
05ea2a05 9778 fi
05ea2a05
TT
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788 use_additional=yes
9789
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9794
9795 eval additional_includedir=\"$includedir\"
9796 eval additional_libdir=\"$libdir\"
9797
9798 exec_prefix="$acl_save_exec_prefix"
9799 prefix="$acl_save_prefix"
9800
9801
9802# Check whether --with-libipt-prefix was given.
9803if test "${with_libipt_prefix+set}" = set; then :
9804 withval=$with_libipt_prefix;
9805 if test "X$withval" = "Xno"; then
9806 use_additional=no
9807 else
9808 if test "X$withval" = "X"; then
9809
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 acl_save_exec_prefix="$exec_prefix"
9813 exec_prefix="$acl_final_exec_prefix"
9814
9815 eval additional_includedir=\"$includedir\"
9816 eval additional_libdir=\"$libdir\"
9817
9818 exec_prefix="$acl_save_exec_prefix"
9819 prefix="$acl_save_prefix"
9820
9821 else
9822 additional_includedir="$withval/include"
9823 additional_libdir="$withval/lib"
9824 fi
9825 fi
9826
9827fi
9828
9f1528a1
AB
9829
9830# Check whether --with-libipt-type was given.
9831if test "${with_libipt_type+set}" = set; then :
9832 withval=$with_libipt_type; with_libipt_type=$withval
9833else
9834 with_libipt_type=auto
9835fi
9836
9837 lib_type=`eval echo \$with_libipt_type`
9838
05ea2a05
TT
9839 LIBIPT=
9840 LTLIBIPT=
9841 INCIPT=
9842 rpathdirs=
9843 ltrpathdirs=
9844 names_already_handled=
9845 names_next_round='ipt '
9846 while test -n "$names_next_round"; do
9847 names_this_round="$names_next_round"
9848 names_next_round=
9849 for name in $names_this_round; do
9850 already_handled=
9851 for n in $names_already_handled; do
9852 if test "$n" = "$name"; then
9853 already_handled=yes
9854 break
9855 fi
9856 done
9857 if test -z "$already_handled"; then
9858 names_already_handled="$names_already_handled $name"
9859 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9860 eval value=\"\$HAVE_LIB$uppername\"
9861 if test -n "$value"; then
9862 if test "$value" = yes; then
9863 eval value=\"\$LIB$uppername\"
9864 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9865 eval value=\"\$LTLIB$uppername\"
9866 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9867 else
9868 :
9869 fi
9870 else
9871 found_dir=
9872 found_la=
9873 found_so=
9874 found_a=
9875 if test $use_additional = yes; then
9f1528a1 9876 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9877 found_dir="$additional_libdir"
9878 found_so="$additional_libdir/lib$name.$shlibext"
9879 if test -f "$additional_libdir/lib$name.la"; then
9880 found_la="$additional_libdir/lib$name.la"
9881 fi
9f1528a1 9882 elif test x$lib_type != xshared; then
05ea2a05
TT
9883 if test -f "$additional_libdir/lib$name.$libext"; then
9884 found_dir="$additional_libdir"
9885 found_a="$additional_libdir/lib$name.$libext"
9886 if test -f "$additional_libdir/lib$name.la"; then
9887 found_la="$additional_libdir/lib$name.la"
9888 fi
9889 fi
9890 fi
9891 fi
9892 if test "X$found_dir" = "X"; then
9893 for x in $LDFLAGS $LTLIBIPT; do
9894
9895 acl_save_prefix="$prefix"
9896 prefix="$acl_final_prefix"
9897 acl_save_exec_prefix="$exec_prefix"
9898 exec_prefix="$acl_final_exec_prefix"
9899 eval x=\"$x\"
9900 exec_prefix="$acl_save_exec_prefix"
9901 prefix="$acl_save_prefix"
9902
9903 case "$x" in
9904 -L*)
9905 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 9906 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9907 found_dir="$dir"
9908 found_so="$dir/lib$name.$shlibext"
9909 if test -f "$dir/lib$name.la"; then
9910 found_la="$dir/lib$name.la"
9911 fi
9f1528a1 9912 elif test x$lib_type != xshared; then
05ea2a05
TT
9913 if test -f "$dir/lib$name.$libext"; then
9914 found_dir="$dir"
9915 found_a="$dir/lib$name.$libext"
9916 if test -f "$dir/lib$name.la"; then
9917 found_la="$dir/lib$name.la"
9918 fi
9919 fi
9920 fi
9921 ;;
9922 esac
9923 if test "X$found_dir" != "X"; then
9924 break
9925 fi
9926 done
9927 fi
9928 if test "X$found_dir" != "X"; then
9929 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9930 if test "X$found_so" != "X"; then
9931 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9932 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9933 else
9934 haveit=
9935 for x in $ltrpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9937 haveit=yes
9938 break
9939 fi
9940 done
9941 if test -z "$haveit"; then
9942 ltrpathdirs="$ltrpathdirs $found_dir"
9943 fi
9944 if test "$hardcode_direct" = yes; then
9945 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9946 else
9947 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9948 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9949 haveit=
9950 for x in $rpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9952 haveit=yes
9953 break
9954 fi
9955 done
9956 if test -z "$haveit"; then
9957 rpathdirs="$rpathdirs $found_dir"
9958 fi
9959 else
9960 haveit=
9961 for x in $LDFLAGS $LIBIPT; do
9962
9963 acl_save_prefix="$prefix"
9964 prefix="$acl_final_prefix"
9965 acl_save_exec_prefix="$exec_prefix"
9966 exec_prefix="$acl_final_exec_prefix"
9967 eval x=\"$x\"
9968 exec_prefix="$acl_save_exec_prefix"
9969 prefix="$acl_save_prefix"
9970
9971 if test "X$x" = "X-L$found_dir"; then
9972 haveit=yes
9973 break
9974 fi
9975 done
9976 if test -z "$haveit"; then
9977 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9978 fi
9979 if test "$hardcode_minus_L" != no; then
9980 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9981 else
9982 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9983 fi
9984 fi
9985 fi
9986 fi
9987 else
9988 if test "X$found_a" != "X"; then
9989 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9990 else
9991 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9992 fi
9993 fi
9994 additional_includedir=
9995 case "$found_dir" in
9996 */lib | */lib/)
9997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9998 additional_includedir="$basedir/include"
9999 ;;
10000 esac
10001 if test "X$additional_includedir" != "X"; then
10002 if test "X$additional_includedir" != "X/usr/include"; then
10003 haveit=
10004 if test "X$additional_includedir" = "X/usr/local/include"; then
10005 if test -n "$GCC"; then
10006 case $host_os in
10007 linux*) haveit=yes;;
10008 esac
10009 fi
10010 fi
10011 if test -z "$haveit"; then
10012 for x in $CPPFLAGS $INCIPT; do
10013
10014 acl_save_prefix="$prefix"
10015 prefix="$acl_final_prefix"
10016 acl_save_exec_prefix="$exec_prefix"
10017 exec_prefix="$acl_final_exec_prefix"
10018 eval x=\"$x\"
10019 exec_prefix="$acl_save_exec_prefix"
10020 prefix="$acl_save_prefix"
10021
10022 if test "X$x" = "X-I$additional_includedir"; then
10023 haveit=yes
10024 break
10025 fi
10026 done
10027 if test -z "$haveit"; then
10028 if test -d "$additional_includedir"; then
10029 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10030 fi
10031 fi
10032 fi
10033 fi
10034 fi
10035 if test -n "$found_la"; then
10036 save_libdir="$libdir"
10037 case "$found_la" in
10038 */* | *\\*) . "$found_la" ;;
10039 *) . "./$found_la" ;;
10040 esac
10041 libdir="$save_libdir"
10042 for dep in $dependency_libs; do
10043 case "$dep" in
10044 -L*)
10045 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10046 if test "X$additional_libdir" != "X/usr/lib"; then
10047 haveit=
10048 if test "X$additional_libdir" = "X/usr/local/lib"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10053 fi
10054 fi
10055 if test -z "$haveit"; then
10056 haveit=
10057 for x in $LDFLAGS $LIBIPT; do
10058
10059 acl_save_prefix="$prefix"
10060 prefix="$acl_final_prefix"
10061 acl_save_exec_prefix="$exec_prefix"
10062 exec_prefix="$acl_final_exec_prefix"
10063 eval x=\"$x\"
10064 exec_prefix="$acl_save_exec_prefix"
10065 prefix="$acl_save_prefix"
10066
10067 if test "X$x" = "X-L$additional_libdir"; then
10068 haveit=yes
10069 break
10070 fi
10071 done
10072 if test -z "$haveit"; then
10073 if test -d "$additional_libdir"; then
10074 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10075 fi
10076 fi
10077 haveit=
10078 for x in $LDFLAGS $LTLIBIPT; do
10079
10080 acl_save_prefix="$prefix"
10081 prefix="$acl_final_prefix"
10082 acl_save_exec_prefix="$exec_prefix"
10083 exec_prefix="$acl_final_exec_prefix"
10084 eval x=\"$x\"
10085 exec_prefix="$acl_save_exec_prefix"
10086 prefix="$acl_save_prefix"
10087
10088 if test "X$x" = "X-L$additional_libdir"; then
10089 haveit=yes
10090 break
10091 fi
10092 done
10093 if test -z "$haveit"; then
10094 if test -d "$additional_libdir"; then
10095 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10096 fi
10097 fi
10098 fi
10099 fi
10100 ;;
10101 -R*)
10102 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10103 if test "$enable_rpath" != no; then
10104 haveit=
10105 for x in $rpathdirs; do
10106 if test "X$x" = "X$dir"; then
10107 haveit=yes
10108 break
10109 fi
10110 done
10111 if test -z "$haveit"; then
10112 rpathdirs="$rpathdirs $dir"
10113 fi
10114 haveit=
10115 for x in $ltrpathdirs; do
10116 if test "X$x" = "X$dir"; then
10117 haveit=yes
10118 break
10119 fi
10120 done
10121 if test -z "$haveit"; then
10122 ltrpathdirs="$ltrpathdirs $dir"
10123 fi
10124 fi
10125 ;;
10126 -l*)
10127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10128 ;;
10129 *.la)
10130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10131 ;;
10132 *)
10133 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10134 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10135 ;;
10136 esac
10137 done
10138 fi
10139 else
9f1528a1
AB
10140 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10141 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10142 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10143 else
10144 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10145 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10146 fi
05ea2a05
TT
10147 fi
10148 fi
10149 fi
10150 done
10151 done
10152 if test "X$rpathdirs" != "X"; then
10153 if test -n "$hardcode_libdir_separator"; then
10154 alldirs=
10155 for found_dir in $rpathdirs; do
10156 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10157 done
10158 acl_save_libdir="$libdir"
10159 libdir="$alldirs"
10160 eval flag=\"$hardcode_libdir_flag_spec\"
10161 libdir="$acl_save_libdir"
10162 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10163 else
10164 for found_dir in $rpathdirs; do
10165 acl_save_libdir="$libdir"
10166 libdir="$found_dir"
10167 eval flag=\"$hardcode_libdir_flag_spec\"
10168 libdir="$acl_save_libdir"
10169 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10170 done
10171 fi
10172 fi
10173 if test "X$ltrpathdirs" != "X"; then
10174 for found_dir in $ltrpathdirs; do
10175 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10176 done
10177 fi
01027315 10178
01027315 10179
05ea2a05 10180 ac_save_CPPFLAGS="$CPPFLAGS"
01027315 10181
05ea2a05
TT
10182 for element in $INCIPT; do
10183 haveit=
10184 for x in $CPPFLAGS; do
01027315 10185
05ea2a05
TT
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 acl_save_exec_prefix="$exec_prefix"
10189 exec_prefix="$acl_final_exec_prefix"
10190 eval x=\"$x\"
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
01027315 10193
05ea2a05
TT
10194 if test "X$x" = "X$element"; then
10195 haveit=yes
10196 break
10197 fi
10198 done
10199 if test -z "$haveit"; then
10200 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10201 fi
10202 done
01027315 10203
01027315 10204
05ea2a05
TT
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10206$as_echo_n "checking for libipt... " >&6; }
10207if ${ac_cv_libipt+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209else
10210
10211 ac_save_LIBS="$LIBS"
10212 LIBS="$LIBS $LIBIPT"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10214/* end confdefs.h. */
05ea2a05 10215#include "intel-pt.h"
01027315
TT
10216int
10217main ()
10218{
05ea2a05 10219pt_insn_alloc_decoder (0);
01027315
TT
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
05ea2a05
TT
10225 ac_cv_libipt=yes
10226else
10227 ac_cv_libipt=no
01027315
TT
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
05ea2a05 10231 LIBS="$ac_save_LIBS"
01027315 10232
01027315 10233fi
05ea2a05
TT
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10235$as_echo "$ac_cv_libipt" >&6; }
10236 if test "$ac_cv_libipt" = yes; then
10237 HAVE_LIBIPT=yes
01027315 10238
05ea2a05
TT
10239$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10242$as_echo_n "checking how to link with libipt... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10244$as_echo "$LIBIPT" >&6; }
10245 else
10246 HAVE_LIBIPT=no
10247 CPPFLAGS="$ac_save_CPPFLAGS"
10248 LIBIPT=
10249 LTLIBIPT=
10250 fi
10251
10252
10253
10254
10255
10256
3684d331
PA
10257 if test "$HAVE_LIBIPT" != yes; then
10258 if test "$with_intel_pt" = yes; then
10259 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
05ea2a05 10262$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
3684d331
PA
10263 fi
10264 else
10265 save_LIBS=$LIBS
10266 LIBS="$LIBS $LIBIPT"
10267 for ac_func in pt_insn_event
05ea2a05
TT
10268do :
10269 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10270if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10271 cat >>confdefs.h <<_ACEOF
10272#define HAVE_PT_INSN_EVENT 1
10273_ACEOF
10274
10275fi
01027315 10276done
05ea2a05 10277
3684d331 10278 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
05ea2a05
TT
10279"
10280if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10281
10282cat >>confdefs.h <<_ACEOF
10283#define HAVE_STRUCT_PT_INSN_ENABLED 1
10284_ACEOF
10285
10286
01027315 10287fi
05ea2a05
TT
10288ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10289"
10290if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
01027315 10291
05ea2a05
TT
10292cat >>confdefs.h <<_ACEOF
10293#define HAVE_STRUCT_PT_INSN_RESYNCED 1
10294_ACEOF
01027315 10295
05ea2a05
TT
10296
10297fi
10298
3684d331
PA
10299 LIBS=$save_LIBS
10300 fi
05ea2a05 10301 fi
05ea2a05 10302
3684d331
PA
10303 if test "$ac_cv_header_sys_procfs_h" = yes; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
05ea2a05
TT
10305$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10306 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
01027315
TT
10307 $as_echo_n "(cached) " >&6
10308else
05ea2a05 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10310/* end confdefs.h. */
05ea2a05
TT
10311
10312#define _SYSCALL32
10313/* Needed for new procfs interface on sparc-solaris. */
10314#define _STRUCTURED_PROC 1
10315#include <sys/procfs.h>
01027315
TT
10316int
10317main ()
10318{
05ea2a05 10319gregset_t avar
01027315
TT
10320 ;
10321 return 0;
10322}
10323_ACEOF
05ea2a05
TT
10324if ac_fn_c_try_compile "$LINENO"; then :
10325 bfd_cv_have_sys_procfs_type_gregset_t=yes
10326else
10327 bfd_cv_have_sys_procfs_type_gregset_t=no
01027315
TT
10328
10329fi
05ea2a05
TT
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331fi
01027315 10332
05ea2a05 10333 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
01027315 10334
05ea2a05 10335$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
01027315 10336
05ea2a05
TT
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10339$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
01027315 10340
3684d331 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10342$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10343 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
01027315
TT
10344 $as_echo_n "(cached) " >&6
10345else
05ea2a05
TT
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h. */
10348
10349#define _SYSCALL32
10350/* Needed for new procfs interface on sparc-solaris. */
10351#define _STRUCTURED_PROC 1
10352#include <sys/procfs.h>
10353int
10354main ()
10355{
10356fpregset_t avar
10357 ;
10358 return 0;
10359}
10360_ACEOF
10361if ac_fn_c_try_compile "$LINENO"; then :
10362 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10363else
10364 bfd_cv_have_sys_procfs_type_fpregset_t=no
01027315
TT
10365
10366fi
05ea2a05 10367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10368fi
10369
05ea2a05
TT
10370 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10371
10372$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10373
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10376$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10377
3684d331 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
05ea2a05
TT
10379$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10380 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
01027315
TT
10381 $as_echo_n "(cached) " >&6
10382else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h. */
05ea2a05
TT
10385
10386#define _SYSCALL32
10387/* Needed for new procfs interface on sparc-solaris. */
10388#define _STRUCTURED_PROC 1
10389#include <sys/procfs.h>
01027315
TT
10390int
10391main ()
10392{
05ea2a05 10393prgregset_t avar
01027315
TT
10394 ;
10395 return 0;
10396}
10397_ACEOF
05ea2a05
TT
10398if ac_fn_c_try_compile "$LINENO"; then :
10399 bfd_cv_have_sys_procfs_type_prgregset_t=yes
01027315 10400else
05ea2a05 10401 bfd_cv_have_sys_procfs_type_prgregset_t=no
01027315
TT
10402
10403fi
05ea2a05
TT
10404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405fi
01027315 10406
05ea2a05 10407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
01027315 10408
05ea2a05 10409$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
01027315 10410
05ea2a05
TT
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10413$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
01027315 10414
3684d331 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10416$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10417 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
01027315
TT
10418 $as_echo_n "(cached) " >&6
10419else
05ea2a05
TT
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421/* end confdefs.h. */
01027315 10422
05ea2a05
TT
10423#define _SYSCALL32
10424/* Needed for new procfs interface on sparc-solaris. */
10425#define _STRUCTURED_PROC 1
10426#include <sys/procfs.h>
10427int
10428main ()
10429{
10430prfpregset_t avar
10431 ;
10432 return 0;
10433}
10434_ACEOF
10435if ac_fn_c_try_compile "$LINENO"; then :
10436 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
01027315 10437else
05ea2a05 10438 bfd_cv_have_sys_procfs_type_prfpregset_t=no
01027315 10439
05ea2a05
TT
10440fi
10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10442fi
10443
05ea2a05 10444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
01027315 10445
05ea2a05 10446$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
01027315 10447
05ea2a05
TT
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10450$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
01027315 10451
3684d331 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
05ea2a05
TT
10453$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10454 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h. */
01027315 10459
05ea2a05
TT
10460#define _SYSCALL32
10461/* Needed for new procfs interface on sparc-solaris. */
10462#define _STRUCTURED_PROC 1
10463#include <sys/procfs.h>
10464int
10465main ()
10466{
10467prgregset32_t avar
10468 ;
10469 return 0;
10470}
10471_ACEOF
10472if ac_fn_c_try_compile "$LINENO"; then :
10473 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
01027315 10474else
05ea2a05
TT
10475 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10476
10477fi
10478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315 10479fi
01027315 10480
05ea2a05 10481 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
01027315 10482
05ea2a05
TT
10483$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10484
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10487$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10488
3684d331 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
05ea2a05
TT
10490$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10491 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
01027315
TT
10492 $as_echo_n "(cached) " >&6
10493else
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
05ea2a05
TT
10496
10497#define _SYSCALL32
10498/* Needed for new procfs interface on sparc-solaris. */
10499#define _STRUCTURED_PROC 1
10500#include <sys/procfs.h>
01027315
TT
10501int
10502main ()
10503{
05ea2a05 10504lwpid_t avar
01027315
TT
10505 ;
10506 return 0;
10507}
10508_ACEOF
05ea2a05
TT
10509if ac_fn_c_try_compile "$LINENO"; then :
10510 bfd_cv_have_sys_procfs_type_lwpid_t=yes
01027315 10511else
05ea2a05
TT
10512 bfd_cv_have_sys_procfs_type_lwpid_t=no
10513
01027315
TT
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516fi
01027315 10517
05ea2a05 10518 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
01027315 10519
05ea2a05 10520$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
01027315 10521
05ea2a05
TT
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10524$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
01027315 10525
3684d331 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
05ea2a05
TT
10527$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10528 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h. */
01027315 10533
05ea2a05
TT
10534#define _SYSCALL32
10535/* Needed for new procfs interface on sparc-solaris. */
10536#define _STRUCTURED_PROC 1
10537#include <sys/procfs.h>
10538int
10539main ()
10540{
10541psaddr_t avar
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546if ac_fn_c_try_compile "$LINENO"; then :
10547 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10548else
10549 bfd_cv_have_sys_procfs_type_psaddr_t=no
01027315 10550
05ea2a05
TT
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
01027315 10554
05ea2a05 10555 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
01027315 10556
05ea2a05
TT
10557$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10558
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10561$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10562
3684d331 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10564$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10565 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
01027315
TT
10566 $as_echo_n "(cached) " >&6
10567else
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h. */
10570
05ea2a05
TT
10571#define _SYSCALL32
10572/* Needed for new procfs interface on sparc-solaris. */
10573#define _STRUCTURED_PROC 1
10574#include <sys/procfs.h>
01027315
TT
10575int
10576main ()
10577{
05ea2a05 10578elf_fpregset_t avar
01027315
TT
10579 ;
10580 return 0;
10581}
10582_ACEOF
10583if ac_fn_c_try_compile "$LINENO"; then :
05ea2a05 10584 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
01027315 10585else
05ea2a05
TT
10586 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10587
01027315
TT
10588fi
10589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590fi
01027315 10591
05ea2a05
TT
10592 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10593
10594$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10595
10596 fi
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10598$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
01027315 10599
3684d331 10600 fi
01027315
TT
10601
10602
10603# Check whether we will enable the inclusion of unit tests when
10604# compiling GDB.
10605#
10606# The default value of this option changes depending whether we're on
10607# development mode (in which case it's "true") or not (in which case
db6878ac
SM
10608# it's "false"). The $development variable is set by the GDB_AC_COMMON
10609# macro, which must therefore be used before GDB_AC_SELFTEST.
4d696a5c
SM
10610
10611if test "x$development" != xtrue && test "x$development" != xfalse; then :
10612 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10613fi
10614
01027315
TT
10615# Check whether --enable-unit-tests was given.
10616if test "${enable_unit_tests+set}" = set; then :
10617 enableval=$enable_unit_tests; case "${enableval}" in
10618 yes) enable_unittests=true ;;
10619 no) enable_unittests=false ;;
10620 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10621esac
10622else
10623 enable_unittests=$development
10624fi
10625
10626
10627if $enable_unittests; then
10628
10629$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10630
10631
10632fi
10633
10634 if $enable_unittests; then
10635 SELFTEST_TRUE=
10636 SELFTEST_FALSE='#'
10637else
10638 SELFTEST_TRUE='#'
10639 SELFTEST_FALSE=
10640fi
10641
10642
05ea2a05
TT
10643# Check the return and argument types of ptrace.
10644
10645
10646for ac_header in sys/ptrace.h ptrace.h
10647do :
10648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10649ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10651 cat >>confdefs.h <<_ACEOF
10652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653_ACEOF
10654
10655fi
10656
10657done
10658
10659
10660gdb_ptrace_headers='
10661#include <sys/types.h>
10662#if HAVE_SYS_PTRACE_H
10663# include <sys/ptrace.h>
10664#endif
10665#if HAVE_UNISTD_H
10666# include <unistd.h>
10667#endif
10668'
05ea2a05
TT
10669
10670# Check return type. Varargs (used on GNU/Linux) conflict with the
10671# empty argument list, so check for that explicitly.
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10673$as_echo_n "checking return type of ptrace... " >&6; }
10674if ${gdb_cv_func_ptrace_ret+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676else
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h. */
10679$gdb_ptrace_headers
10680int
10681main ()
10682{
10683extern long ptrace (enum __ptrace_request, ...);
10684 ;
10685 return 0;
10686}
10687_ACEOF
10688if ac_fn_c_try_compile "$LINENO"; then :
10689 gdb_cv_func_ptrace_ret='long'
10690else
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692/* end confdefs.h. */
10693$gdb_ptrace_headers
10694int
10695main ()
10696{
10697extern int ptrace ();
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702if ac_fn_c_try_compile "$LINENO"; then :
10703 gdb_cv_func_ptrace_ret='int'
10704else
10705 gdb_cv_func_ptrace_ret='long'
10706fi
10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708fi
10709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710fi
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10712$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10713
10714cat >>confdefs.h <<_ACEOF
10715#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10716_ACEOF
10717
10718# Check argument types.
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10720$as_echo_n "checking types of arguments for ptrace... " >&6; }
10721if ${gdb_cv_func_ptrace_args+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723else
10724
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727$gdb_ptrace_headers
10728int
10729main ()
10730{
10731extern long ptrace (enum __ptrace_request, ...);
10732 ;
10733 return 0;
10734}
10735_ACEOF
10736if ac_fn_c_try_compile "$LINENO"; then :
10737 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10738else
10739
10740for gdb_arg1 in 'int' 'long'; do
10741 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10742 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10743 for gdb_arg4 in 'int' 'long' 'void *'; do
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h. */
10746$gdb_ptrace_headers
10747int
10748main ()
10749{
10750
10751extern $gdb_cv_func_ptrace_ret
10752 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10753
10754 ;
10755 return 0;
10756}
10757_ACEOF
10758if ac_fn_c_try_compile "$LINENO"; then :
10759 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10760 break 4;
10761fi
10762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 for gdb_arg5 in 'int *' 'int' 'long'; do
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765/* end confdefs.h. */
10766$gdb_ptrace_headers
10767int
10768main ()
10769{
10770
10771extern $gdb_cv_func_ptrace_ret
10772 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10773
10774 ;
10775 return 0;
10776}
10777_ACEOF
10778if ac_fn_c_try_compile "$LINENO"; then :
10779
10780gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10781 break 5;
10782fi
10783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 done
10785 done
10786 done
10787 done
10788done
10789# Provide a safe default value.
10790: ${gdb_cv_func_ptrace_args='int,int,long,long'}
10791
10792fi
10793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10796$as_echo "$gdb_cv_func_ptrace_args" >&6; }
10797ac_save_IFS=$IFS; IFS=','
10798set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10799IFS=$ac_save_IFS
10800shift
10801
10802cat >>confdefs.h <<_ACEOF
10803#define PTRACE_TYPE_ARG1 $1
10804_ACEOF
10805
10806
10807cat >>confdefs.h <<_ACEOF
10808#define PTRACE_TYPE_ARG3 $3
10809_ACEOF
10810
10811
10812cat >>confdefs.h <<_ACEOF
10813#define PTRACE_TYPE_ARG4 $4
10814_ACEOF
10815
10816if test -n "$5"; then
10817
10818cat >>confdefs.h <<_ACEOF
10819#define PTRACE_TYPE_ARG5 $5
10820_ACEOF
10821
10822fi
10823
10824
629c2962
SM
10825# Detect support warning flags.
10826
10827# Check whether --enable-werror was given.
10828if test "${enable_werror+set}" = set; then :
10829 enableval=$enable_werror; case "${enableval}" in
10830 yes | y) ERROR_ON_WARNING="yes" ;;
10831 no | n) ERROR_ON_WARNING="no" ;;
10832 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10833 esac
10834fi
10835
10836
10837# Enable -Werror by default when using gcc. Turn it off for releases.
10838if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10839 ERROR_ON_WARNING=yes
10840fi
10841
10842WERROR_CFLAGS=""
10843if test "${ERROR_ON_WARNING}" = yes ; then
10844 WERROR_CFLAGS="-Werror"
10845fi
10846
10847# The options we'll try to enable.
10848build_warnings="-Wall -Wpointer-arith \
10849-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10850-Wno-switch -Wno-char-subscripts \
10851-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10852-Wno-sign-compare -Wno-error=maybe-uninitialized \
10853-Wno-mismatched-tags \
10854-Wno-error=deprecated-register \
10855-Wsuggest-override \
10856-Wimplicit-fallthrough=3 \
10857-Wduplicated-cond \
10858-Wshadow=local \
10859-Wdeprecated-copy \
10860-Wdeprecated-copy-dtor \
10861-Wredundant-move \
8ddd8e0e 10862-Wmissing-declarations \
a0761e34 10863-Wmissing-prototypes \
898e7f60
SM
10864-Wstrict-null-sentinel \
10865"
629c2962
SM
10866
10867case "${host}" in
10868 *-*-mingw32*)
10869 # Enable -Wno-format by default when using gcc on mingw since many
10870 # GCC versions complain about %I64.
10871 build_warnings="$build_warnings -Wno-format" ;;
10872 *-*-solaris*)
10873 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10874 # doesn't understand.
10875 build_warnings="$build_warnings -Wno-unknown-pragmas"
10876 # Solaris 11 <unistd.h> marks vfork deprecated.
10877 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10878 *)
10879 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10880 # but there's a special case for this below.
10881 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10882esac
10883
10884# Check whether --enable-build-warnings was given.
10885if test "${enable_build_warnings+set}" = set; then :
10886 enableval=$enable_build_warnings; case "${enableval}" in
10887 yes) ;;
10888 no) build_warnings="-w";;
10889 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10890 build_warnings="${build_warnings} ${t}";;
10891 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10892 build_warnings="${t} ${build_warnings}";;
10893 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10894esac
10895if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10896 echo "Setting compiler warning flags = $build_warnings" 6>&1
10897fi
10898fi
10899# Check whether --enable-gdb-build-warnings was given.
10900if test "${enable_gdb_build_warnings+set}" = set; then :
10901 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10902 yes) ;;
10903 no) build_warnings="-w";;
10904 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10905 build_warnings="${build_warnings} ${t}";;
10906 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10907 build_warnings="${t} ${build_warnings}";;
10908 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10909esac
10910if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10911 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10912fi
10913fi
10914
10915# The set of warnings supported by a C++ compiler is not the same as
10916# of the C compiler.
10917ac_ext=cpp
10918ac_cpp='$CXXCPP $CPPFLAGS'
10919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10922
10923
10924WARN_CFLAGS=""
10925if test "x${build_warnings}" != x -a "x$GCC" = xyes
10926then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10928$as_echo_n "checking compiler warning flags... " >&6; }
10929 # Separate out the -Werror flag as some files just cannot be
10930 # compiled with it enabled.
10931 for w in ${build_warnings}; do
10932 # GCC does not complain about -Wno-unknown-warning. Invert
10933 # and test -Wunknown-warning instead.
10934 case $w in
10935 -Wno-*)
10936 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10937 -Wformat-nonliteral)
10938 # gcc requires -Wformat before -Wformat-nonliteral
10939 # will work, so stick them together.
10940 w="-Wformat $w"
10941 wtest="$w"
10942 ;;
10943 *)
10944 wtest=$w ;;
10945 esac
10946
10947 case $w in
10948 -Werr*) WERROR_CFLAGS=-Werror ;;
10949 *)
10950 # Check whether GCC accepts it.
10951 saved_CFLAGS="$CFLAGS"
10952 CFLAGS="$CFLAGS -Werror $wtest"
10953 saved_CXXFLAGS="$CXXFLAGS"
10954 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10955 if test "x$w" = "x-Wunused-variable"; then
10956 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10957 # fixed in GCC 4.9. This test is derived from the gdb
10958 # source code that triggered this bug in GCC.
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960/* end confdefs.h. */
10961struct scoped_restore_base {};
10962 struct scoped_restore_tmpl : public scoped_restore_base {
10963 ~scoped_restore_tmpl() {}
10964 };
10965int
10966main ()
10967{
10968const scoped_restore_base &b = scoped_restore_tmpl();
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973if ac_fn_cxx_try_compile "$LINENO"; then :
10974 WARN_CFLAGS="${WARN_CFLAGS} $w"
10975fi
10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 else
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979/* end confdefs.h. */
10980
10981int
10982main ()
10983{
10984
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989if ac_fn_cxx_try_compile "$LINENO"; then :
10990 WARN_CFLAGS="${WARN_CFLAGS} $w"
10991fi
10992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 fi
10994 CFLAGS="$saved_CFLAGS"
10995 CXXFLAGS="$saved_CXXFLAGS"
10996 esac
10997 done
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10999$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11000fi
11001
11002
11003
11004ac_ext=c
11005ac_cpp='$CPP $CPPFLAGS'
11006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008ac_compiler_gnu=$ac_cv_c_compiler_gnu
11009
11010
11011
01027315
TT
11012TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11013
11014cat >>confdefs.h <<_ACEOF
11015#define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11016_ACEOF
11017
11018
11019case ${host} in
11020 *mingw32*)
11021
11022$as_echo "#define USE_WIN32API 1" >>confdefs.h
11023
11024 ;;
11025esac
11026
11027ac_config_files="$ac_config_files Makefile"
11028
11029cat >confcache <<\_ACEOF
11030# This file is a shell script that caches the results of configure
11031# tests run on this system so they can be shared between configure
11032# scripts and configure runs, see configure's option --config-cache.
11033# It is not useful on other systems. If it contains results you don't
11034# want to keep, you may remove or edit it.
11035#
11036# config.status only pays attention to the cache file if you give it
11037# the --recheck option to rerun configure.
11038#
11039# `ac_cv_env_foo' variables (set or unset) will be overridden when
11040# loading this file, other *unset* `ac_cv_foo' will be assigned the
11041# following values.
11042
11043_ACEOF
11044
11045# The following way of writing the cache mishandles newlines in values,
11046# but we know of no workaround that is simple, portable, and efficient.
11047# So, we kill variables containing newlines.
11048# Ultrix sh set writes to stderr and can't be redirected directly,
11049# and sets the high bit in the cache file unless we assign to the vars.
11050(
11051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11052 eval ac_val=\$$ac_var
11053 case $ac_val in #(
11054 *${as_nl}*)
11055 case $ac_var in #(
11056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11057$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11058 esac
11059 case $ac_var in #(
11060 _ | IFS | as_nl) ;; #(
11061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11062 *) { eval $ac_var=; unset $ac_var;} ;;
11063 esac ;;
11064 esac
11065 done
11066
11067 (set) 2>&1 |
11068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11069 *${as_nl}ac_space=\ *)
11070 # `set' does not quote correctly, so add quotes: double-quote
11071 # substitution turns \\\\ into \\, and sed turns \\ into \.
11072 sed -n \
11073 "s/'/'\\\\''/g;
11074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11075 ;; #(
11076 *)
11077 # `set' quotes correctly as required by POSIX, so do not add quotes.
11078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11079 ;;
11080 esac |
11081 sort
11082) |
11083 sed '
11084 /^ac_cv_env_/b end
11085 t clear
11086 :clear
11087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11088 t end
11089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11090 :end' >>confcache
11091if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11092 if test -w "$cache_file"; then
11093 if test "x$cache_file" != "x/dev/null"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11095$as_echo "$as_me: updating cache $cache_file" >&6;}
11096 if test ! -f "$cache_file" || test -h "$cache_file"; then
11097 cat confcache >"$cache_file"
11098 else
11099 case $cache_file in #(
11100 */* | ?:*)
11101 mv -f confcache "$cache_file"$$ &&
11102 mv -f "$cache_file"$$ "$cache_file" ;; #(
11103 *)
11104 mv -f confcache "$cache_file" ;;
11105 esac
11106 fi
11107 fi
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11110$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11111 fi
11112fi
11113rm -f confcache
11114
11115test "x$prefix" = xNONE && prefix=$ac_default_prefix
11116# Let make expand exec_prefix.
11117test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11118
11119DEFS=-DHAVE_CONFIG_H
11120
11121ac_libobjs=
11122ac_ltlibobjs=
11123for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11124 # 1. Remove the extension, and $U if already installed.
11125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11126 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11128 # will be set to the directory where LIBOBJS objects are built.
11129 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11130 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11131done
11132LIBOBJS=$ac_libobjs
11133
11134LTLIBOBJS=$ac_ltlibobjs
11135
11136
11137if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11138 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11139Usually this means the macro was only invoked conditionally." "$LINENO" 5
11140fi
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11142$as_echo_n "checking that generated files are newer than configure... " >&6; }
11143 if test -n "$am_sleep_pid"; then
11144 # Hide warnings about reused PIDs.
11145 wait $am_sleep_pid 2>/dev/null
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11148$as_echo "done" >&6; }
11149 if test -n "$EXEEXT"; then
11150 am__EXEEXT_TRUE=
11151 am__EXEEXT_FALSE='#'
11152else
11153 am__EXEEXT_TRUE='#'
11154 am__EXEEXT_FALSE=
11155fi
11156
11157if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11158 as_fn_error $? "conditional \"AMDEP\" was never defined.
11159Usually this means the macro was only invoked conditionally." "$LINENO" 5
11160fi
11161if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11163Usually this means the macro was only invoked conditionally." "$LINENO" 5
11164fi
11165if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11167Usually this means the macro was only invoked conditionally." "$LINENO" 5
11168fi
11169if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11170 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11171Usually this means the macro was only invoked conditionally." "$LINENO" 5
11172fi
11173if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11174 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11175Usually this means the macro was only invoked conditionally." "$LINENO" 5
11176fi
11177
11178: "${CONFIG_STATUS=./config.status}"
11179ac_write_fail=0
11180ac_clean_files_save=$ac_clean_files
11181ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11184as_write_fail=0
11185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11186#! $SHELL
11187# Generated by $as_me.
11188# Run this file to recreate the current configuration.
11189# Compiler output produced by configure, useful for debugging
11190# configure, is in config.log if it exists.
11191
11192debug=false
11193ac_cs_recheck=false
11194ac_cs_silent=false
11195
11196SHELL=\${CONFIG_SHELL-$SHELL}
11197export SHELL
11198_ASEOF
11199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11200## -------------------- ##
11201## M4sh Initialization. ##
11202## -------------------- ##
11203
11204# Be more Bourne compatible
11205DUALCASE=1; export DUALCASE # for MKS sh
11206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11207 emulate sh
11208 NULLCMD=:
11209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11210 # is contrary to our usage. Disable this feature.
11211 alias -g '${1+"$@"}'='"$@"'
11212 setopt NO_GLOB_SUBST
11213else
11214 case `(set -o) 2>/dev/null` in #(
11215 *posix*) :
11216 set -o posix ;; #(
11217 *) :
11218 ;;
11219esac
11220fi
11221
11222
11223as_nl='
11224'
11225export as_nl
11226# Printing a long string crashes Solaris 7 /usr/bin/printf.
11227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11230# Prefer a ksh shell builtin over an external printf program on Solaris,
11231# but without wasting forks for bash or zsh.
11232if test -z "$BASH_VERSION$ZSH_VERSION" \
11233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11234 as_echo='print -r --'
11235 as_echo_n='print -rn --'
11236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11237 as_echo='printf %s\n'
11238 as_echo_n='printf %s'
11239else
11240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11242 as_echo_n='/usr/ucb/echo -n'
11243 else
11244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11245 as_echo_n_body='eval
11246 arg=$1;
11247 case $arg in #(
11248 *"$as_nl"*)
11249 expr "X$arg" : "X\\(.*\\)$as_nl";
11250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11251 esac;
11252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11253 '
11254 export as_echo_n_body
11255 as_echo_n='sh -c $as_echo_n_body as_echo'
11256 fi
11257 export as_echo_body
11258 as_echo='sh -c $as_echo_body as_echo'
11259fi
11260
11261# The user is always right.
11262if test "${PATH_SEPARATOR+set}" != set; then
11263 PATH_SEPARATOR=:
11264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11266 PATH_SEPARATOR=';'
11267 }
11268fi
11269
11270
11271# IFS
11272# We need space, tab and new line, in precisely that order. Quoting is
11273# there to prevent editors from complaining about space-tab.
11274# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11275# splitting by setting IFS to empty value.)
11276IFS=" "" $as_nl"
11277
11278# Find who we are. Look in the path if we contain no directory separator.
11279as_myself=
11280case $0 in #((
11281 *[\\/]* ) as_myself=$0 ;;
11282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11288 done
11289IFS=$as_save_IFS
11290
11291 ;;
11292esac
11293# We did not find ourselves, most probably we were run as `sh COMMAND'
11294# in which case we are not to be found in the path.
11295if test "x$as_myself" = x; then
11296 as_myself=$0
11297fi
11298if test ! -f "$as_myself"; then
11299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11300 exit 1
11301fi
11302
11303# Unset variables that we do not need and which cause bugs (e.g. in
11304# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11305# suppresses any "Segmentation fault" message there. '((' could
11306# trigger a bug in pdksh 5.2.14.
11307for as_var in BASH_ENV ENV MAIL MAILPATH
11308do eval test x\${$as_var+set} = xset \
11309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11310done
11311PS1='$ '
11312PS2='> '
11313PS4='+ '
11314
11315# NLS nuisances.
11316LC_ALL=C
11317export LC_ALL
11318LANGUAGE=C
11319export LANGUAGE
11320
11321# CDPATH.
11322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11323
11324
11325# as_fn_error STATUS ERROR [LINENO LOG_FD]
11326# ----------------------------------------
11327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11329# script with STATUS, using 1 if that was 0.
11330as_fn_error ()
11331{
11332 as_status=$1; test $as_status -eq 0 && as_status=1
11333 if test "$4"; then
11334 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11336 fi
11337 $as_echo "$as_me: error: $2" >&2
11338 as_fn_exit $as_status
11339} # as_fn_error
11340
11341
11342# as_fn_set_status STATUS
11343# -----------------------
11344# Set $? to STATUS, without forking.
11345as_fn_set_status ()
11346{
11347 return $1
11348} # as_fn_set_status
11349
11350# as_fn_exit STATUS
11351# -----------------
11352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11353as_fn_exit ()
11354{
11355 set +e
11356 as_fn_set_status $1
11357 exit $1
11358} # as_fn_exit
11359
11360# as_fn_unset VAR
11361# ---------------
11362# Portably unset VAR.
11363as_fn_unset ()
11364{
11365 { eval $1=; unset $1;}
11366}
11367as_unset=as_fn_unset
11368# as_fn_append VAR VALUE
11369# ----------------------
11370# Append the text in VALUE to the end of the definition contained in VAR. Take
11371# advantage of any shell optimizations that allow amortized linear growth over
11372# repeated appends, instead of the typical quadratic growth present in naive
11373# implementations.
11374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11375 eval 'as_fn_append ()
11376 {
11377 eval $1+=\$2
11378 }'
11379else
11380 as_fn_append ()
11381 {
11382 eval $1=\$$1\$2
11383 }
11384fi # as_fn_append
11385
11386# as_fn_arith ARG...
11387# ------------------
11388# Perform arithmetic evaluation on the ARGs, and store the result in the
11389# global $as_val. Take advantage of shells that can avoid forks. The arguments
11390# must be portable across $(()) and expr.
11391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11392 eval 'as_fn_arith ()
11393 {
11394 as_val=$(( $* ))
11395 }'
11396else
11397 as_fn_arith ()
11398 {
11399 as_val=`expr "$@" || test $? -eq 1`
11400 }
11401fi # as_fn_arith
11402
11403
11404if expr a : '\(a\)' >/dev/null 2>&1 &&
11405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11406 as_expr=expr
11407else
11408 as_expr=false
11409fi
11410
11411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11412 as_basename=basename
11413else
11414 as_basename=false
11415fi
11416
11417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11418 as_dirname=dirname
11419else
11420 as_dirname=false
11421fi
11422
11423as_me=`$as_basename -- "$0" ||
11424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11425 X"$0" : 'X\(//\)$' \| \
11426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11427$as_echo X/"$0" |
11428 sed '/^.*\/\([^/][^/]*\)\/*$/{
11429 s//\1/
11430 q
11431 }
11432 /^X\/\(\/\/\)$/{
11433 s//\1/
11434 q
11435 }
11436 /^X\/\(\/\).*/{
11437 s//\1/
11438 q
11439 }
11440 s/.*/./; q'`
11441
11442# Avoid depending upon Character Ranges.
11443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11446as_cr_digits='0123456789'
11447as_cr_alnum=$as_cr_Letters$as_cr_digits
11448
11449ECHO_C= ECHO_N= ECHO_T=
11450case `echo -n x` in #(((((
11451-n*)
11452 case `echo 'xy\c'` in
11453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11454 xy) ECHO_C='\c';;
11455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11456 ECHO_T=' ';;
11457 esac;;
11458*)
11459 ECHO_N='-n';;
11460esac
11461
11462rm -f conf$$ conf$$.exe conf$$.file
11463if test -d conf$$.dir; then
11464 rm -f conf$$.dir/conf$$.file
11465else
11466 rm -f conf$$.dir
11467 mkdir conf$$.dir 2>/dev/null
11468fi
11469if (echo >conf$$.file) 2>/dev/null; then
11470 if ln -s conf$$.file conf$$ 2>/dev/null; then
11471 as_ln_s='ln -s'
11472 # ... but there are two gotchas:
11473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11475 # In both cases, we have to default to `cp -pR'.
11476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11477 as_ln_s='cp -pR'
11478 elif ln conf$$.file conf$$ 2>/dev/null; then
11479 as_ln_s=ln
11480 else
11481 as_ln_s='cp -pR'
11482 fi
11483else
11484 as_ln_s='cp -pR'
11485fi
11486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11487rmdir conf$$.dir 2>/dev/null
11488
11489
11490# as_fn_mkdir_p
11491# -------------
11492# Create "$as_dir" as a directory, including parents if necessary.
11493as_fn_mkdir_p ()
11494{
11495
11496 case $as_dir in #(
11497 -*) as_dir=./$as_dir;;
11498 esac
11499 test -d "$as_dir" || eval $as_mkdir_p || {
11500 as_dirs=
11501 while :; do
11502 case $as_dir in #(
11503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11504 *) as_qdir=$as_dir;;
11505 esac
11506 as_dirs="'$as_qdir' $as_dirs"
11507 as_dir=`$as_dirname -- "$as_dir" ||
11508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11509 X"$as_dir" : 'X\(//\)[^/]' \| \
11510 X"$as_dir" : 'X\(//\)$' \| \
11511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11512$as_echo X"$as_dir" |
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\(\/\/\)[^/].*/{
11518 s//\1/
11519 q
11520 }
11521 /^X\(\/\/\)$/{
11522 s//\1/
11523 q
11524 }
11525 /^X\(\/\).*/{
11526 s//\1/
11527 q
11528 }
11529 s/.*/./; q'`
11530 test -d "$as_dir" && break
11531 done
11532 test -z "$as_dirs" || eval "mkdir $as_dirs"
11533 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11534
11535
11536} # as_fn_mkdir_p
11537if mkdir -p . 2>/dev/null; then
11538 as_mkdir_p='mkdir -p "$as_dir"'
11539else
11540 test -d ./-p && rmdir ./-p
11541 as_mkdir_p=false
11542fi
11543
11544
11545# as_fn_executable_p FILE
11546# -----------------------
11547# Test if FILE is an executable regular file.
11548as_fn_executable_p ()
11549{
11550 test -f "$1" && test -x "$1"
11551} # as_fn_executable_p
11552as_test_x='test -x'
11553as_executable_p=as_fn_executable_p
11554
11555# Sed expression to map a string onto a valid CPP name.
11556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11557
11558# Sed expression to map a string onto a valid variable name.
11559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11560
11561
11562exec 6>&1
11563## ----------------------------------- ##
11564## Main body of $CONFIG_STATUS script. ##
11565## ----------------------------------- ##
11566_ASEOF
11567test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11568
11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11570# Save the log message, to keep $0 and so on meaningful, and to
11571# report actual input values of CONFIG_FILES etc. instead of their
11572# values after options handling.
11573ac_log="
11574This file was extended by gdbsupport $as_me 1.0, which was
11575generated by GNU Autoconf 2.69. Invocation command line was
11576
11577 CONFIG_FILES = $CONFIG_FILES
11578 CONFIG_HEADERS = $CONFIG_HEADERS
11579 CONFIG_LINKS = $CONFIG_LINKS
11580 CONFIG_COMMANDS = $CONFIG_COMMANDS
11581 $ $0 $@
11582
11583on `(hostname || uname -n) 2>/dev/null | sed 1q`
11584"
11585
11586_ACEOF
11587
11588case $ac_config_files in *"
11589"*) set x $ac_config_files; shift; ac_config_files=$*;;
11590esac
11591
11592case $ac_config_headers in *"
11593"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11594esac
11595
11596
11597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11598# Files that config.status was made for.
11599config_files="$ac_config_files"
11600config_headers="$ac_config_headers"
11601config_commands="$ac_config_commands"
11602
11603_ACEOF
11604
11605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606ac_cs_usage="\
11607\`$as_me' instantiates files and other configuration actions
11608from templates according to the current configuration. Unless the files
11609and actions are specified as TAGs, all are instantiated by default.
11610
11611Usage: $0 [OPTION]... [TAG]...
11612
11613 -h, --help print this help, then exit
11614 -V, --version print version number and configuration settings, then exit
11615 --config print configuration, then exit
11616 -q, --quiet, --silent
11617 do not print progress messages
11618 -d, --debug don't remove temporary files
11619 --recheck update $as_me by reconfiguring in the same conditions
11620 --file=FILE[:TEMPLATE]
11621 instantiate the configuration file FILE
11622 --header=FILE[:TEMPLATE]
11623 instantiate the configuration header FILE
11624
11625Configuration files:
11626$config_files
11627
11628Configuration headers:
11629$config_headers
11630
11631Configuration commands:
11632$config_commands
11633
11634Report bugs to the package provider."
11635
11636_ACEOF
11637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11639ac_cs_version="\\
11640gdbsupport config.status 1.0
11641configured by $0, generated by GNU Autoconf 2.69,
11642 with options \\"\$ac_cs_config\\"
11643
11644Copyright (C) 2012 Free Software Foundation, Inc.
11645This config.status script is free software; the Free Software Foundation
11646gives unlimited permission to copy, distribute and modify it."
11647
11648ac_pwd='$ac_pwd'
11649srcdir='$srcdir'
11650INSTALL='$INSTALL'
11651MKDIR_P='$MKDIR_P'
11652AWK='$AWK'
11653test -n "\$AWK" || AWK=awk
11654_ACEOF
11655
11656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657# The default lists apply if the user does not specify any file.
11658ac_need_defaults=:
11659while test $# != 0
11660do
11661 case $1 in
11662 --*=?*)
11663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11664 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11665 ac_shift=:
11666 ;;
11667 --*=)
11668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11669 ac_optarg=
11670 ac_shift=:
11671 ;;
11672 *)
11673 ac_option=$1
11674 ac_optarg=$2
11675 ac_shift=shift
11676 ;;
11677 esac
11678
11679 case $ac_option in
11680 # Handling of the options.
11681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11682 ac_cs_recheck=: ;;
11683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11684 $as_echo "$ac_cs_version"; exit ;;
11685 --config | --confi | --conf | --con | --co | --c )
11686 $as_echo "$ac_cs_config"; exit ;;
11687 --debug | --debu | --deb | --de | --d | -d )
11688 debug=: ;;
11689 --file | --fil | --fi | --f )
11690 $ac_shift
11691 case $ac_optarg in
11692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11693 '') as_fn_error $? "missing file argument" ;;
11694 esac
11695 as_fn_append CONFIG_FILES " '$ac_optarg'"
11696 ac_need_defaults=false;;
11697 --header | --heade | --head | --hea )
11698 $ac_shift
11699 case $ac_optarg in
11700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11701 esac
11702 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11703 ac_need_defaults=false;;
11704 --he | --h)
11705 # Conflict between --help and --header
11706 as_fn_error $? "ambiguous option: \`$1'
11707Try \`$0 --help' for more information.";;
11708 --help | --hel | -h )
11709 $as_echo "$ac_cs_usage"; exit ;;
11710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11712 ac_cs_silent=: ;;
11713
11714 # This is an error.
11715 -*) as_fn_error $? "unrecognized option: \`$1'
11716Try \`$0 --help' for more information." ;;
11717
11718 *) as_fn_append ac_config_targets " $1"
11719 ac_need_defaults=false ;;
11720
11721 esac
11722 shift
11723done
11724
11725ac_configure_extra_args=
11726
11727if $ac_cs_silent; then
11728 exec 6>/dev/null
11729 ac_configure_extra_args="$ac_configure_extra_args --silent"
11730fi
11731
11732_ACEOF
11733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734if \$ac_cs_recheck; then
11735 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11736 shift
11737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11738 CONFIG_SHELL='$SHELL'
11739 export CONFIG_SHELL
11740 exec "\$@"
11741fi
11742
11743_ACEOF
11744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11745exec 5>>config.log
11746{
11747 echo
11748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11749## Running $as_me. ##
11750_ASBOX
11751 $as_echo "$ac_log"
11752} >&5
11753
11754_ACEOF
11755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11756#
11757# INIT-COMMANDS
11758#
11759AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11760
11761_ACEOF
11762
11763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11764
11765# Handling of arguments.
11766for ac_config_target in $ac_config_targets
11767do
11768 case $ac_config_target in
3684d331 11769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
01027315
TT
11770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11772
11773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11774 esac
11775done
11776
11777
11778# If the user did not use the arguments to specify the items to instantiate,
11779# then the envvar interface is used. Set only those that are not.
11780# We use the long form for the default assignment because of an extremely
11781# bizarre bug on SunOS 4.1.3.
11782if $ac_need_defaults; then
11783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11786fi
11787
11788# Have a temporary directory for convenience. Make it in the build tree
11789# simply because there is no reason against having it here, and in addition,
11790# creating and moving files from /tmp can sometimes cause problems.
11791# Hook for its removal unless debugging.
11792# Note that there is a small window in which the directory will not be cleaned:
11793# after its creation but before its name has been assigned to `$tmp'.
11794$debug ||
11795{
11796 tmp= ac_tmp=
11797 trap 'exit_status=$?
11798 : "${ac_tmp:=$tmp}"
11799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11800' 0
11801 trap 'as_fn_exit 1' 1 2 13 15
11802}
11803# Create a (secure) tmp directory for tmp files.
11804
11805{
11806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11807 test -d "$tmp"
11808} ||
11809{
11810 tmp=./conf$$-$RANDOM
11811 (umask 077 && mkdir "$tmp")
11812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11813ac_tmp=$tmp
11814
11815# Set up the scripts for CONFIG_FILES section.
11816# No need to generate them if there are no CONFIG_FILES.
11817# This happens for instance with `./config.status config.h'.
11818if test -n "$CONFIG_FILES"; then
11819
11820
11821ac_cr=`echo X | tr X '\015'`
11822# On cygwin, bash can eat \r inside `` if the user requested igncr.
11823# But we know of no other shell where ac_cr would be empty at this
11824# point, so we can use a bashism as a fallback.
11825if test "x$ac_cr" = x; then
11826 eval ac_cr=\$\'\\r\'
11827fi
11828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11830 ac_cs_awk_cr='\\r'
11831else
11832 ac_cs_awk_cr=$ac_cr
11833fi
11834
11835echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11836_ACEOF
11837
11838
11839{
11840 echo "cat >conf$$subs.awk <<_ACEOF" &&
11841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11842 echo "_ACEOF"
11843} >conf$$subs.sh ||
11844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11846ac_delim='%!_!# '
11847for ac_last_try in false false false false false :; do
11848 . ./conf$$subs.sh ||
11849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11850
11851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11852 if test $ac_delim_n = $ac_delim_num; then
11853 break
11854 elif $ac_last_try; then
11855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11856 else
11857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11858 fi
11859done
11860rm -f conf$$subs.sh
11861
11862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11864_ACEOF
11865sed -n '
11866h
11867s/^/S["/; s/!.*/"]=/
11868p
11869g
11870s/^[^!]*!//
11871:repl
11872t repl
11873s/'"$ac_delim"'$//
11874t delim
11875:nl
11876h
11877s/\(.\{148\}\)..*/\1/
11878t more1
11879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11880p
11881n
11882b repl
11883:more1
11884s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11885p
11886g
11887s/.\{148\}//
11888t nl
11889:delim
11890h
11891s/\(.\{148\}\)..*/\1/
11892t more2
11893s/["\\]/\\&/g; s/^/"/; s/$/"/
11894p
11895b
11896:more2
11897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11898p
11899g
11900s/.\{148\}//
11901t delim
11902' <conf$$subs.awk | sed '
11903/^[^""]/{
11904 N
11905 s/\n//
11906}
11907' >>$CONFIG_STATUS || ac_write_fail=1
11908rm -f conf$$subs.awk
11909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11910_ACAWK
11911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11912 for (key in S) S_is_set[key] = 1
11913 FS = "\a"
11914
11915}
11916{
11917 line = $ 0
11918 nfields = split(line, field, "@")
11919 substed = 0
11920 len = length(field[1])
11921 for (i = 2; i < nfields; i++) {
11922 key = field[i]
11923 keylen = length(key)
11924 if (S_is_set[key]) {
11925 value = S[key]
11926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11927 len += length(value) + length(field[++i])
11928 substed = 1
11929 } else
11930 len += 1 + keylen
11931 }
11932
11933 print line
11934}
11935
11936_ACAWK
11937_ACEOF
11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11941else
11942 cat
11943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11945_ACEOF
11946
11947# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11949# trailing colons and then remove the whole line if VPATH becomes empty
11950# (actually we leave an empty line to preserve line numbers).
11951if test "x$srcdir" = x.; then
11952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11953h
11954s///
11955s/^/:/
11956s/[ ]*$/:/
11957s/:\$(srcdir):/:/g
11958s/:\${srcdir}:/:/g
11959s/:@srcdir@:/:/g
11960s/^:*//
11961s/:*$//
11962x
11963s/\(=[ ]*\).*/\1/
11964G
11965s/\n//
11966s/^[^=]*=[ ]*$//
11967}'
11968fi
11969
11970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11971fi # test -n "$CONFIG_FILES"
11972
11973# Set up the scripts for CONFIG_HEADERS section.
11974# No need to generate them if there are no CONFIG_HEADERS.
11975# This happens for instance with `./config.status Makefile'.
11976if test -n "$CONFIG_HEADERS"; then
11977cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11978BEGIN {
11979_ACEOF
11980
11981# Transform confdefs.h into an awk script `defines.awk', embedded as
11982# here-document in config.status, that substitutes the proper values into
11983# config.h.in to produce config.h.
11984
11985# Create a delimiter string that does not exist in confdefs.h, to ease
11986# handling of long lines.
11987ac_delim='%!_!# '
11988for ac_last_try in false false :; do
11989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11990 if test -z "$ac_tt"; then
11991 break
11992 elif $ac_last_try; then
11993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11994 else
11995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11996 fi
11997done
11998
11999# For the awk script, D is an array of macro values keyed by name,
12000# likewise P contains macro parameters if any. Preserve backslash
12001# newline sequences.
12002
12003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12004sed -n '
12005s/.\{148\}/&'"$ac_delim"'/g
12006t rset
12007:rset
12008s/^[ ]*#[ ]*define[ ][ ]*/ /
12009t def
12010d
12011:def
12012s/\\$//
12013t bsnl
12014s/["\\]/\\&/g
12015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12016D["\1"]=" \3"/p
12017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12018d
12019:bsnl
12020s/["\\]/\\&/g
12021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12022D["\1"]=" \3\\\\\\n"\\/p
12023t cont
12024s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12025t cont
12026d
12027:cont
12028n
12029s/.\{148\}/&'"$ac_delim"'/g
12030t clear
12031:clear
12032s/\\$//
12033t bsnlc
12034s/["\\]/\\&/g; s/^/"/; s/$/"/p
12035d
12036:bsnlc
12037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12038b cont
12039' <confdefs.h | sed '
12040s/'"$ac_delim"'/"\\\
12041"/g' >>$CONFIG_STATUS || ac_write_fail=1
12042
12043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12044 for (key in D) D_is_set[key] = 1
12045 FS = "\a"
12046}
12047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12048 line = \$ 0
12049 split(line, arg, " ")
12050 if (arg[1] == "#") {
12051 defundef = arg[2]
12052 mac1 = arg[3]
12053 } else {
12054 defundef = substr(arg[1], 2)
12055 mac1 = arg[2]
12056 }
12057 split(mac1, mac2, "(") #)
12058 macro = mac2[1]
12059 prefix = substr(line, 1, index(line, defundef) - 1)
12060 if (D_is_set[macro]) {
12061 # Preserve the white space surrounding the "#".
12062 print prefix "define", macro P[macro] D[macro]
12063 next
12064 } else {
12065 # Replace #undef with comments. This is necessary, for example,
12066 # in the case of _POSIX_SOURCE, which is predefined and required
12067 # on some systems where configure will not decide to define it.
12068 if (defundef == "undef") {
12069 print "/*", prefix defundef, macro, "*/"
12070 next
12071 }
12072 }
12073}
12074{ print }
12075_ACAWK
12076_ACEOF
12077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12079fi # test -n "$CONFIG_HEADERS"
12080
12081
12082eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12083shift
12084for ac_tag
12085do
12086 case $ac_tag in
12087 :[FHLC]) ac_mode=$ac_tag; continue;;
12088 esac
12089 case $ac_mode$ac_tag in
12090 :[FHL]*:*);;
12091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12092 :[FH]-) ac_tag=-:-;;
12093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12094 esac
12095 ac_save_IFS=$IFS
12096 IFS=:
12097 set x $ac_tag
12098 IFS=$ac_save_IFS
12099 shift
12100 ac_file=$1
12101 shift
12102
12103 case $ac_mode in
12104 :L) ac_source=$1;;
12105 :[FH])
12106 ac_file_inputs=
12107 for ac_f
12108 do
12109 case $ac_f in
12110 -) ac_f="$ac_tmp/stdin";;
12111 *) # Look for the file first in the build tree, then in the source tree
12112 # (if the path is not absolute). The absolute path cannot be DOS-style,
12113 # because $ac_f cannot contain `:'.
12114 test -f "$ac_f" ||
12115 case $ac_f in
12116 [\\/$]*) false;;
12117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12118 esac ||
12119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12120 esac
12121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12122 as_fn_append ac_file_inputs " '$ac_f'"
12123 done
12124
12125 # Let's still pretend it is `configure' which instantiates (i.e., don't
12126 # use $as_me), people would be surprised to read:
12127 # /* config.h. Generated by config.status. */
12128 configure_input='Generated from '`
12129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12130 `' by configure.'
12131 if test x"$ac_file" != x-; then
12132 configure_input="$ac_file. $configure_input"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12134$as_echo "$as_me: creating $ac_file" >&6;}
12135 fi
12136 # Neutralize special characters interpreted by sed in replacement strings.
12137 case $configure_input in #(
12138 *\&* | *\|* | *\\* )
12139 ac_sed_conf_input=`$as_echo "$configure_input" |
12140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12141 *) ac_sed_conf_input=$configure_input;;
12142 esac
12143
12144 case $ac_tag in
12145 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12147 esac
12148 ;;
12149 esac
12150
12151 ac_dir=`$as_dirname -- "$ac_file" ||
12152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$ac_file" : 'X\(//\)[^/]' \| \
12154 X"$ac_file" : 'X\(//\)$' \| \
12155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12156$as_echo X"$ac_file" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\/\)[^/].*/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\/\)$/{
12166 s//\1/
12167 q
12168 }
12169 /^X\(\/\).*/{
12170 s//\1/
12171 q
12172 }
12173 s/.*/./; q'`
12174 as_dir="$ac_dir"; as_fn_mkdir_p
12175 ac_builddir=.
12176
12177case "$ac_dir" in
12178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12179*)
12180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12181 # A ".." for each directory in $ac_dir_suffix.
12182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12183 case $ac_top_builddir_sub in
12184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12186 esac ;;
12187esac
12188ac_abs_top_builddir=$ac_pwd
12189ac_abs_builddir=$ac_pwd$ac_dir_suffix
12190# for backward compatibility:
12191ac_top_builddir=$ac_top_build_prefix
12192
12193case $srcdir in
12194 .) # We are building in place.
12195 ac_srcdir=.
12196 ac_top_srcdir=$ac_top_builddir_sub
12197 ac_abs_top_srcdir=$ac_pwd ;;
12198 [\\/]* | ?:[\\/]* ) # Absolute name.
12199 ac_srcdir=$srcdir$ac_dir_suffix;
12200 ac_top_srcdir=$srcdir
12201 ac_abs_top_srcdir=$srcdir ;;
12202 *) # Relative name.
12203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12204 ac_top_srcdir=$ac_top_build_prefix$srcdir
12205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12206esac
12207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12208
12209
12210 case $ac_mode in
12211 :F)
12212 #
12213 # CONFIG_FILE
12214 #
12215
12216 case $INSTALL in
12217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12219 esac
12220 ac_MKDIR_P=$MKDIR_P
12221 case $MKDIR_P in
12222 [\\/$]* | ?:[\\/]* ) ;;
12223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12224 esac
12225_ACEOF
12226
12227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228# If the template does not know about datarootdir, expand it.
12229# FIXME: This hack should be removed a few years after 2.60.
12230ac_datarootdir_hack=; ac_datarootdir_seen=
12231ac_sed_dataroot='
12232/datarootdir/ {
12233 p
12234 q
12235}
12236/@datadir@/p
12237/@docdir@/p
12238/@infodir@/p
12239/@localedir@/p
12240/@mandir@/p'
12241case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12242*datarootdir*) ac_datarootdir_seen=yes;;
12243*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12245$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12246_ACEOF
12247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12248 ac_datarootdir_hack='
12249 s&@datadir@&$datadir&g
12250 s&@docdir@&$docdir&g
12251 s&@infodir@&$infodir&g
12252 s&@localedir@&$localedir&g
12253 s&@mandir@&$mandir&g
12254 s&\\\${datarootdir}&$datarootdir&g' ;;
12255esac
12256_ACEOF
12257
12258# Neutralize VPATH when `$srcdir' = `.'.
12259# Shell code in configure.ac might set extrasub.
12260# FIXME: do we really want to maintain this feature?
12261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12262ac_sed_extra="$ac_vpsub
12263$extrasub
12264_ACEOF
12265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266:t
12267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12268s|@configure_input@|$ac_sed_conf_input|;t t
12269s&@top_builddir@&$ac_top_builddir_sub&;t t
12270s&@top_build_prefix@&$ac_top_build_prefix&;t t
12271s&@srcdir@&$ac_srcdir&;t t
12272s&@abs_srcdir@&$ac_abs_srcdir&;t t
12273s&@top_srcdir@&$ac_top_srcdir&;t t
12274s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12275s&@builddir@&$ac_builddir&;t t
12276s&@abs_builddir@&$ac_abs_builddir&;t t
12277s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12278s&@INSTALL@&$ac_INSTALL&;t t
12279s&@MKDIR_P@&$ac_MKDIR_P&;t t
12280$ac_datarootdir_hack
12281"
12282eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12284
12285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12290which seems to be undefined. Please make sure it is defined" >&5
12291$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12292which seems to be undefined. Please make sure it is defined" >&2;}
12293
12294 rm -f "$ac_tmp/stdin"
12295 case $ac_file in
12296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12298 esac \
12299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12300 ;;
12301 :H)
12302 #
12303 # CONFIG_HEADER
12304 #
12305 if test x"$ac_file" != x-; then
12306 {
12307 $as_echo "/* $configure_input */" \
12308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12309 } >"$ac_tmp/config.h" \
12310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12313$as_echo "$as_me: $ac_file is unchanged" >&6;}
12314 else
12315 rm -f "$ac_file"
12316 mv "$ac_tmp/config.h" "$ac_file" \
12317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12318 fi
12319 else
12320 $as_echo "/* $configure_input */" \
12321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12322 || as_fn_error $? "could not create -" "$LINENO" 5
12323 fi
12324# Compute "$ac_file"'s index in $config_headers.
12325_am_arg="$ac_file"
12326_am_stamp_count=1
12327for _am_header in $config_headers :; do
12328 case $_am_header in
12329 $_am_arg | $_am_arg:* )
12330 break ;;
12331 * )
12332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12333 esac
12334done
12335echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12336$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337 X"$_am_arg" : 'X\(//\)[^/]' \| \
12338 X"$_am_arg" : 'X\(//\)$' \| \
12339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12340$as_echo X"$_am_arg" |
12341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\/\)[^/].*/{
12346 s//\1/
12347 q
12348 }
12349 /^X\(\/\/\)$/{
12350 s//\1/
12351 q
12352 }
12353 /^X\(\/\).*/{
12354 s//\1/
12355 q
12356 }
12357 s/.*/./; q'`/stamp-h$_am_stamp_count
12358 ;;
12359
12360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12361$as_echo "$as_me: executing $ac_file commands" >&6;}
12362 ;;
12363 esac
12364
12365
12366 case $ac_file$ac_mode in
12367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12368 # Older Autoconf quotes --file arguments for eval, but not when files
12369 # are listed without --file. Let's play safe and only enable the eval
12370 # if we detect the quoting.
12371 case $CONFIG_FILES in
12372 *\'*) eval set x "$CONFIG_FILES" ;;
12373 *) set x $CONFIG_FILES ;;
12374 esac
12375 shift
12376 for mf
12377 do
12378 # Strip MF so we end up with the name of the file.
12379 mf=`echo "$mf" | sed -e 's/:.*$//'`
12380 # Check whether this is an Automake generated Makefile or not.
12381 # We used to match only the files named 'Makefile.in', but
12382 # some people rename them; so instead we look at the file content.
12383 # Grep'ing the first line is not enough: some people post-process
12384 # each Makefile.in and add a new line on top of each file to say so.
12385 # Grep'ing the whole file is not good either: AIX grep has a line
12386 # limit of 2048, but all sed's we know have understand at least 4000.
12387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12388 dirpart=`$as_dirname -- "$mf" ||
12389$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12390 X"$mf" : 'X\(//\)[^/]' \| \
12391 X"$mf" : 'X\(//\)$' \| \
12392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12393$as_echo X"$mf" |
12394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12395 s//\1/
12396 q
12397 }
12398 /^X\(\/\/\)[^/].*/{
12399 s//\1/
12400 q
12401 }
12402 /^X\(\/\/\)$/{
12403 s//\1/
12404 q
12405 }
12406 /^X\(\/\).*/{
12407 s//\1/
12408 q
12409 }
12410 s/.*/./; q'`
12411 else
12412 continue
12413 fi
12414 # Extract the definition of DEPDIR, am__include, and am__quote
12415 # from the Makefile without running 'make'.
12416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12417 test -z "$DEPDIR" && continue
12418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12419 test -z "$am__include" && continue
12420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12421 # Find all dependency output files, they are included files with
12422 # $(DEPDIR) in their names. We invoke sed twice because it is the
12423 # simplest approach to changing $(DEPDIR) to its actual value in the
12424 # expansion.
12425 for file in `sed -n "
12426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12428 # Make sure the directory exists.
12429 test -f "$dirpart/$file" && continue
12430 fdir=`$as_dirname -- "$file" ||
12431$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12432 X"$file" : 'X\(//\)[^/]' \| \
12433 X"$file" : 'X\(//\)$' \| \
12434 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12435$as_echo X"$file" |
12436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12437 s//\1/
12438 q
12439 }
12440 /^X\(\/\/\)[^/].*/{
12441 s//\1/
12442 q
12443 }
12444 /^X\(\/\/\)$/{
12445 s//\1/
12446 q
12447 }
12448 /^X\(\/\).*/{
12449 s//\1/
12450 q
12451 }
12452 s/.*/./; q'`
12453 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12454 # echo "creating $dirpart/$file"
12455 echo '# dummy' > "$dirpart/$file"
12456 done
12457 done
12458}
12459 ;;
12460
12461 esac
12462done # for ac_tag
12463
12464
12465as_fn_exit 0
12466_ACEOF
12467ac_clean_files=$ac_clean_files_save
12468
12469test $ac_write_fail = 0 ||
12470 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12471
12472
12473# configure is writing to config.log, and then calls config.status.
12474# config.status does its own redirection, appending to config.log.
12475# Unfortunately, on DOS this fails, as config.log is still kept open
12476# by configure, so config.status won't be able to write to it; its
12477# output is simply discarded. So we exec the FD to /dev/null,
12478# effectively closing config.log, so it can be properly (re)opened and
12479# appended to by config.status. When coming back to configure, we
12480# need to make the FD available again.
12481if test "$no_create" != yes; then
12482 ac_cs_success=:
12483 ac_config_status_args=
12484 test "$silent" = yes &&
12485 ac_config_status_args="$ac_config_status_args --quiet"
12486 exec 5>/dev/null
12487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12488 exec 5>>config.log
12489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12490 # would make configure fail if this is the last instruction.
12491 $ac_cs_success || as_fn_exit 1
12492fi
12493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12496fi
12497