Regenerate gdb/configure and gdbserver/configure
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
d6e9fb05
JK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
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 :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
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'
bec39cab 50else
81ecdfbb
RW
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 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bec39cab 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
bec39cab 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bec39cab 410
dae5f5cf
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b80864fb 417
bec39cab 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bec39cab
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
dae5f5cf 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
d6e9fb05 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bec39cab
AC
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
d6e9fb05 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
dae5f5cf 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="server.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
bec39cab
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
bec39cab
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
bec39cab
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
bec39cab
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
bec39cab 582# include <inttypes.h>
bec39cab 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
bec39cab
AC
588# include <unistd.h>
589#endif"
590
c971b7fa 591ac_subst_vars='LTLIBOBJS
698b3e08 592LIBOBJS
c9a1864a 593GNULIB_STDINT_H
fa593d66
PA
594extra_libraries
595IPA_DEPFILES
81ecdfbb
RW
596srv_xmlfiles
597srv_xmlbuiltin
81ecdfbb
RW
598GDBSERVER_LIBS
599GDBSERVER_DEPFILES
600RDYNAMIC
601REPORT_BUGS_TEXI
602REPORT_BUGS_TO
603PKGVERSION
d4596a3d
PA
604WERROR_CFLAGS
605WARN_CFLAGS
0fb4aa4b
PA
606ustinc
607ustlibs
9c232dda 608ALLOCA
61c125b9 609CCDEPMODE
60d6cfc9 610CONFIG_SRC_SUBDIR
61c125b9
TT
611DEPDIR
612am__leading_dot
bd885420
YQ
613host_noncanonical
614target_noncanonical
0bcda685
PA
615CXX_DIALECT
616HAVE_CXX11
c971b7fa 617RANLIB
e1d2394b 618AR
81ecdfbb
RW
619INSTALL_DATA
620INSTALL_SCRIPT
621INSTALL_PROGRAM
622target_os
623target_vendor
624target_cpu
625target
626host_os
627host_vendor
628host_cpu
629host
630build_os
631build_vendor
632build_cpu
633build
770d76d7
PA
634EGREP
635GREP
636CPP
3bc3d82a
PA
637ac_ct_CXX
638CXXFLAGS
639CXX
81ecdfbb
RW
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
c9a1864a
YQ
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
81ecdfbb
RW
650target_alias
651host_alias
652build_alias
653LIBS
654ECHO_T
655ECHO_N
656ECHO_C
657DEFS
658mandir
659localedir
660libdir
661psdir
662pdfdir
663dvidir
664htmldir
665infodir
666docdir
667oldincludedir
668includedir
669localstatedir
670sharedstatedir
671sysconfdir
672datadir
673datarootdir
674libexecdir
675sbindir
676bindir
677program_transform_name
678prefix
679exec_prefix
680PACKAGE_URL
681PACKAGE_BUGREPORT
682PACKAGE_STRING
683PACKAGE_VERSION
684PACKAGE_TARNAME
685PACKAGE_NAME
686PATH_SEPARATOR
687SHELL'
bec39cab 688ac_subst_files=''
81ecdfbb
RW
689ac_user_opts='
690enable_option_checking
c9a1864a 691enable_maintainer_mode
589bc927 692enable_largefile
17ef446e 693enable_libmcheck
0fb4aa4b
PA
694with_ust
695with_ust_include
696with_ust_lib
d4596a3d 697enable_werror
8f13a3ce
MF
698enable_build_warnings
699enable_gdb_build_warnings
81ecdfbb
RW
700with_pkgversion
701with_bugurl
96f15937 702with_libthread_db
c2a66c29 703enable_inprocess_agent
81ecdfbb
RW
704'
705 ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS
3bc3d82a
PA
713CXX
714CXXFLAGS
715CCC
81ecdfbb
RW
716CPP'
717
d6e9fb05
JK
718
719# Initialize some variables set by options.
bec39cab
AC
720ac_init_help=
721ac_init_version=false
81ecdfbb
RW
722ac_unrecognized_opts=
723ac_unrecognized_sep=
d6e9fb05
JK
724# The variables have the same names as the options, with
725# dashes changed to underlines.
bec39cab 726cache_file=/dev/null
d6e9fb05 727exec_prefix=NONE
d6e9fb05 728no_create=
d6e9fb05
JK
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
d6e9fb05
JK
737verbose=
738x_includes=NONE
739x_libraries=NONE
bec39cab
AC
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 746# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
d6e9fb05
JK
752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
d6e9fb05
JK
755includedir='${prefix}/include'
756oldincludedir='/usr/include'
81ecdfbb
RW
757docdir='${datarootdir}/doc/${PACKAGE}'
758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
d6e9fb05 766
d6e9fb05 767ac_prev=
81ecdfbb 768ac_dashdash=
d6e9fb05
JK
769for ac_option
770do
d6e9fb05
JK
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
81ecdfbb 773 eval $ac_prev=\$ac_option
d6e9fb05
JK
774 ac_prev=
775 continue
776 fi
777
81ecdfbb
RW
778 case $ac_option in
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *) ac_optarg=yes ;;
781 esac
d6e9fb05
JK
782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
81ecdfbb
RW
785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
d6e9fb05
JK
788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 792 bindir=$ac_optarg ;;
d6e9fb05
JK
793
794 -build | --build | --buil | --bui | --bu)
bec39cab 795 ac_prev=build_alias ;;
d6e9fb05 796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 797 build_alias=$ac_optarg ;;
d6e9fb05
JK
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
d6e9fb05 808
81ecdfbb 809 -datadir | --datadir | --datadi | --datad)
d6e9fb05 810 ac_prev=datadir ;;
81ecdfbb 811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 812 datadir=$ac_optarg ;;
d6e9fb05 813
81ecdfbb
RW
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
d6e9fb05 821 -disable-* | --disable-*)
81ecdfbb 822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 823 # Reject names that are not valid shell variable names.
81ecdfbb
RW
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
829 *"
830"enable_$ac_useropt"
831"*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
836
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
841
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
d6e9fb05
JK
846
847 -enable-* | --enable-*)
81ecdfbb 848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 849 # Reject names that are not valid shell variable names.
81ecdfbb
RW
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856"enable_$ac_useropt"
857"*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
dae5f5cf 860 esac
81ecdfbb 861 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
bec39cab 870 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
bec39cab
AC
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
d6e9fb05
JK
882
883 -host | --host | --hos | --ho)
bec39cab 884 ac_prev=host_alias ;;
d6e9fb05 885 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 886 host_alias=$ac_optarg ;;
d6e9fb05 887
81ecdfbb
RW
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
d6e9fb05
JK
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 899 includedir=$ac_optarg ;;
d6e9fb05
JK
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 904 infodir=$ac_optarg ;;
d6e9fb05
JK
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 909 libdir=$ac_optarg ;;
d6e9fb05
JK
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
bec39cab 916 libexecdir=$ac_optarg ;;
d6e9fb05 917
81ecdfbb
RW
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
d6e9fb05 923 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 924 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 928 localstatedir=$ac_optarg ;;
d6e9fb05
JK
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 933 mandir=$ac_optarg ;;
d6e9fb05
JK
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 940 | --no-cr | --no-c | -n)
d6e9fb05
JK
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 954 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 959 prefix=$ac_optarg ;;
d6e9fb05
JK
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 966 program_prefix=$ac_optarg ;;
d6e9fb05
JK
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 973 program_suffix=$ac_optarg ;;
d6e9fb05
JK
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 990 program_transform_name=$ac_optarg ;;
d6e9fb05 991
81ecdfbb
RW
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
d6e9fb05
JK
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
bec39cab 1010 sbindir=$ac_optarg ;;
d6e9fb05
JK
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
bec39cab 1021 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
bec39cab 1026 site=$ac_optarg ;;
434c4c77 1027
d6e9fb05
JK
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1031 srcdir=$ac_optarg ;;
d6e9fb05
JK
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1038 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1041 ac_prev=target_alias ;;
d6e9fb05 1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1043 target_alias=$ac_optarg ;;
d6e9fb05
JK
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
bec39cab
AC
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
d6e9fb05
JK
1050
1051 -with-* | --with-*)
81ecdfbb 1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1053 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"with_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
dae5f5cf 1064 esac
81ecdfbb 1065 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1066
1067 -without-* | --without-*)
81ecdfbb 1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1069 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"with_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1082
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1086
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1092 x_includes=$ac_optarg ;;
d6e9fb05
JK
1093
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1099 x_libraries=$ac_optarg ;;
d6e9fb05 1100
81ecdfbb
RW
1101 -*) as_fn_error "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information."
d6e9fb05
JK
1103 ;;
1104
bec39cab
AC
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1113 export $ac_envvar ;;
1114
d6e9fb05 1115 *)
bec39cab 1116 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1121 ;;
1122
1123 esac
1124done
1125
1126if test -n "$ac_prev"; then
bec39cab 1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1128 as_fn_error "missing argument to $ac_option"
d6e9fb05 1129fi
d6e9fb05 1130
81ecdfbb
RW
1131if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1136 esac
81ecdfbb 1137fi
dae5f5cf 1138
81ecdfbb
RW
1139# Check all directory arguments for consistency.
1140for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
dae5f5cf 1144do
81ecdfbb
RW
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
dae5f5cf 1153 case $ac_val in
81ecdfbb
RW
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1156 esac
81ecdfbb 1157 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1158done
1159
bec39cab
AC
1160# There might be people who depend on the old broken behavior: `$host'
1161# used to hold the argument of --host etc.
1162# FIXME: To remove some day.
1163build=$build_alias
1164host=$host_alias
1165target=$target_alias
1166
1167# FIXME: To remove some day.
1168if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
81ecdfbb 1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1174 cross_compiling=yes
1175 fi
1176fi
d6e9fb05 1177
bec39cab
AC
1178ac_tool_prefix=
1179test -n "$host_alias" && ac_tool_prefix=$host_alias-
1180
1181test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1182
d6e9fb05 1183
81ecdfbb
RW
1184ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185ac_ls_di=`ls -di .` &&
1186ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error "working directory cannot be determined"
1188test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error "pwd does not report name of working directory"
1190
1191
d6e9fb05
JK
1192# Find the source files, if location was not specified.
1193if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
81ecdfbb
RW
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201$as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\/\)[^/].*/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\/\)$/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\).*/{
1215 s//\1/
1216 q
1217 }
1218 s/.*/./; q'`
d6e9fb05 1219 srcdir=$ac_confdir
81ecdfbb 1220 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1221 srcdir=..
1222 fi
1223else
1224 ac_srcdir_defaulted=no
1225fi
81ecdfbb
RW
1226if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1229fi
1230ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1233 pwd)`
1234# When building in place, set srcdir=.
1235if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1237fi
1238# Remove unnecessary trailing slashes from srcdir.
1239# Double slashes in file names in object file debugging info
1240# mess up M-x gdb in Emacs.
1241case $srcdir in
1242*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243esac
1244for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249done
d6e9fb05 1250
bec39cab
AC
1251#
1252# Report the --help message.
1253#
1254if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258\`configure' configures this package to adapt to many kinds of systems.
1259
1260Usage: $0 [OPTION]... [VAR=VALUE]...
1261
1262To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263VAR=VALUE. See below for descriptions of some of the useful variables.
1264
1265Defaults for the options are specified in brackets.
1266
1267Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277
bec39cab
AC
1278Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1280 [$ac_default_prefix]
bec39cab 1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1282 [PREFIX]
bec39cab
AC
1283
1284By default, \`make install' will install all the files in
1285\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287for instance \`--prefix=\$HOME'.
1288
1289For better control, use the options below.
1290
1291Fine tuning of the installation directories:
81ecdfbb
RW
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1311_ACEOF
1312
1313 cat <<\_ACEOF
1314
dcdb98d2
DJ
1315Program names:
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1319
bec39cab
AC
1320System types:
1321 --build=BUILD configure for building on BUILD [guessed]
1322 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1323 --target=TARGET configure for building compilers for TARGET [HOST]
1324_ACEOF
1325fi
1326
1327if test -n "$ac_init_help"; then
1328
1329 cat <<\_ACEOF
1330
d4596a3d
PA
1331Optional Features:
1332 --disable-option-checking ignore unrecognized --enable/--with options
1333 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1334 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c9a1864a
YQ
1335 --enable-maintainer-mode enable make rules and dependencies not useful
1336 (and sometimes confusing) to the casual installer
589bc927 1337 --disable-largefile omit support for large files
17ef446e 1338 --enable-libmcheck Try linking with -lmcheck if available
d4596a3d 1339 --enable-werror treat compile warnings as errors
8f13a3ce
MF
1340 --enable-build-warnings enable build-time compiler warnings if gcc is used
1341 --enable-gdb-build-warnings
1342 enable GDB specific build-time compiler warnings if
1343 gcc is used
c2a66c29
NS
1344 --enable-inprocess-agent
1345 inprocess agent
d4596a3d 1346
c16158bc
JM
1347Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0fb4aa4b
PA
1350 --with-ust=PATH Specify prefix directory for the installed UST package
1351 Equivalent to --with-ust-include=PATH/include
1352 plus --with-ust-lib=PATH/lib
1353 --with-ust-include=PATH Specify directory for installed UST include files
1354 --with-ust-lib=PATH Specify the directory for the installed UST library
c16158bc
JM
1355 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1356 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1357 --with-libthread-db=PATH
1358 use given libthread_db directly
c16158bc 1359
bec39cab
AC
1360Some influential environment variables:
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364 nonstandard directory <lib dir>
81ecdfbb
RW
1365 LIBS libraries to pass to the linker, e.g. -l<library>
1366 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1367 you have headers in a nonstandard directory <include dir>
3bc3d82a
PA
1368 CXX C++ compiler command
1369 CXXFLAGS C++ compiler flags
bec39cab
AC
1370 CPP C preprocessor
1371
1372Use these variables to override the choices made by `configure' or to help
1373it to find libraries and programs with nonstandard names/locations.
1374
81ecdfbb 1375Report bugs to the package provider.
bec39cab 1376_ACEOF
81ecdfbb 1377ac_status=$?
bec39cab
AC
1378fi
1379
1380if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
bec39cab 1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1383 test -d "$ac_dir" ||
1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1385 continue
bec39cab
AC
1386 ac_builddir=.
1387
81ecdfbb
RW
1388case "$ac_dir" in
1389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390*)
1391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398esac
1399ac_abs_top_builddir=$ac_pwd
1400ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401# for backward compatibility:
1402ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1403
1404case $srcdir in
81ecdfbb 1405 .) # We are building in place.
bec39cab 1406 ac_srcdir=.
81ecdfbb
RW
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1410 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1417esac
81ecdfbb
RW
1418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1428 else
81ecdfbb
RW
1429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1432 done
1433fi
1434
81ecdfbb 1435test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1436if $ac_init_version; then
1437 cat <<\_ACEOF
81ecdfbb
RW
1438configure
1439generated by GNU Autoconf 2.64
bec39cab 1440
81ecdfbb 1441Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1442This configure script is free software; the Free Software Foundation
1443gives unlimited permission to copy, distribute and modify it.
1444_ACEOF
81ecdfbb 1445 exit
bec39cab 1446fi
bec39cab 1447
81ecdfbb
RW
1448## ------------------------ ##
1449## Autoconf initialization. ##
1450## ------------------------ ##
bec39cab 1451
81ecdfbb
RW
1452# ac_fn_c_try_compile LINENO
1453# --------------------------
1454# Try to compile conftest.$ac_ext, and return whether this succeeded.
1455ac_fn_c_try_compile ()
bec39cab 1456{
81ecdfbb
RW
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 rm -f conftest.$ac_objext
1459 if { { ac_try="$ac_compile"
1460case "(($ac_try" in
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1463esac
1464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465$as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_compile") 2>conftest.err
1467 ac_status=$?
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1472 fi
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } && {
1475 test -z "$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 } && test -s conftest.$ac_objext; then :
1478 ac_retval=0
1479else
1480 $as_echo "$as_me: failed program was:" >&5
1481sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1482
81ecdfbb
RW
1483 ac_retval=1
1484fi
1485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1486 return $ac_retval
bec39cab 1487
81ecdfbb 1488} # ac_fn_c_try_compile
bec39cab 1489
3bc3d82a
PA
1490# ac_fn_cxx_try_compile LINENO
1491# ----------------------------
1492# Try to compile conftest.$ac_ext, and return whether this succeeded.
1493ac_fn_cxx_try_compile ()
1494{
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1498case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501esac
1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503$as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1510 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_cxx_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1516 ac_retval=0
1517else
1518 $as_echo "$as_me: failed program was:" >&5
1519sed 's/^/| /' conftest.$ac_ext >&5
1520
1521 ac_retval=1
1522fi
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 return $ac_retval
1525
1526} # ac_fn_cxx_try_compile
1527
81ecdfbb
RW
1528# ac_fn_c_try_cpp LINENO
1529# ----------------------
1530# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_cpp ()
1532{
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if { { ac_try="$ac_cpp conftest.$ac_ext"
1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } >/dev/null && {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 }; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1557
81ecdfbb
RW
1558 ac_retval=1
1559fi
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
bec39cab 1562
81ecdfbb
RW
1563} # ac_fn_c_try_cpp
1564
1565# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1566# -------------------------------------------------------
1567# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1568# the include files in INCLUDES and setting the cache variable VAR
1569# accordingly.
1570ac_fn_c_check_header_mongrel ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1575$as_echo_n "checking for $2... " >&6; }
1576if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1577 $as_echo_n "(cached) " >&6
1578fi
1579eval ac_res=\$$3
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581$as_echo "$ac_res" >&6; }
1582else
1583 # Is the header compilable?
1584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1585$as_echo_n "checking $2 usability... " >&6; }
1586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587/* end confdefs.h. */
1588$4
1589#include <$2>
1590_ACEOF
1591if ac_fn_c_try_compile "$LINENO"; then :
1592 ac_header_compiler=yes
1593else
1594 ac_header_compiler=no
1595fi
1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1598$as_echo "$ac_header_compiler" >&6; }
1599
1600# Is the header present?
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1602$as_echo_n "checking $2 presence... " >&6; }
1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h. */
1605#include <$2>
1606_ACEOF
1607if ac_fn_c_try_cpp "$LINENO"; then :
1608 ac_header_preproc=yes
1609else
1610 ac_header_preproc=no
1611fi
1612rm -f conftest.err conftest.$ac_ext
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1614$as_echo "$ac_header_preproc" >&6; }
1615
1616# So? What about this header?
1617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 yes:no: )
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1620$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 ;;
1624 no:yes:* )
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1626$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1628$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1630$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1632$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
1636esac
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
1641else
1642 eval "$3=\$ac_header_compiler"
1643fi
1644eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646$as_echo "$ac_res" >&6; }
1647fi
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649
1650} # ac_fn_c_check_header_mongrel
1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713else
1714 eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
1769} # ac_fn_c_try_link
1770
eb0edac8
GB
1771# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772# -------------------------------------------
1773# Tests whether TYPE exists after having included INCLUDES, setting cache
1774# variable VAR accordingly.
1775ac_fn_c_check_type ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
1780if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782else
1783 eval "$3=no"
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787int
1788main ()
1789{
1790if (sizeof ($2))
1791 return 0;
1792 ;
1793 return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800int
1801main ()
1802{
1803if (sizeof (($2)))
1804 return 0;
1805 ;
1806 return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810
1811else
1812 eval "$3=yes"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823} # ac_fn_c_check_type
1824
81ecdfbb
RW
1825# ac_fn_c_check_func LINENO FUNC VAR
1826# ----------------------------------
1827# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828ac_fn_c_check_func ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847#ifdef __STDC__
1848# include <limits.h>
1849#else
1850# include <assert.h>
1851#endif
1852
1853#undef $2
1854
1855/* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858#ifdef __cplusplus
1859extern "C"
1860#endif
1861char $2 ();
1862/* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865#if defined __stub_$2 || defined __stub___$2
1866choke me
1867#endif
1868
1869int
1870main ()
1871{
1872return $2 ();
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_c_check_decl LINENO SYMBOL VAR
1893# ------------------------------------
1894# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1895ac_fn_c_check_decl ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0fb4aa4b
PA
1898 as_decl_name=`echo $2|sed 's/ *(.*//'`
1899 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1902if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908int
1909main ()
1910{
0fb4aa4b
PA
1911#ifndef $as_decl_name
1912#ifdef __cplusplus
1913 (void) $as_decl_use;
1914#else
1915 (void) $as_decl_name;
1916#endif
81ecdfbb
RW
1917#endif
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934
1935} # ac_fn_c_check_decl
1936
07697489
PA
1937# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1938# --------------------------------------------
1939# Tries to find the compile-time value of EXPR in a program that includes
1940# INCLUDES, setting VAR accordingly. Returns whether the value could be
1941# computed
1942ac_fn_c_compute_int ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if test "$cross_compiling" = yes; then
1946 # Depending upon the size, compute the lo and hi bounds.
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
1953static int test_array [1 - 2 * !(($2) >= 0)];
1954test_array [0] = 0
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_lo=0 ac_mid=0
1962 while :; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966int
1967main ()
1968{
1969static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1970test_array [0] = 0
1971
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_hi=$ac_mid; break
1978else
1979 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1980 if test $ac_lo -le $ac_mid; then
1981 ac_lo= ac_hi=
1982 break
1983 fi
1984 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 done
1988else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992int
1993main ()
1994{
1995static int test_array [1 - 2 * !(($2) < 0)];
1996test_array [0] = 0
1997
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=-1 ac_mid=-1
2004 while :; do
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2012test_array [0] = 0
2013
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_lo=$ac_mid; break
2020else
2021 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2022 if test $ac_mid -le $ac_hi; then
2023 ac_lo= ac_hi=
2024 break
2025 fi
2026 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030else
2031 ac_lo= ac_hi=
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036# Binary search between lo and hi bounds.
2037while test "x$ac_lo" != "x$ac_hi"; do
2038 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
2045static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2046test_array [0] = 0
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=$ac_mid
2054else
2055 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058done
2059case $ac_lo in #((
2060?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061'') ac_retval=1 ;;
2062esac
2063 else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067static long int longval () { return $2; }
2068static unsigned long int ulongval () { return $2; }
2069#include <stdio.h>
2070#include <stdlib.h>
2071int
2072main ()
2073{
2074
2075 FILE *f = fopen ("conftest.val", "w");
2076 if (! f)
2077 return 1;
2078 if (($2) < 0)
2079 {
2080 long int i = longval ();
2081 if (i != ($2))
2082 return 1;
2083 fprintf (f, "%ld", i);
2084 }
2085 else
2086 {
2087 unsigned long int i = ulongval ();
2088 if (i != ($2))
2089 return 1;
2090 fprintf (f, "%lu", i);
2091 }
2092 /* Do not output a trailing newline, as this causes \r\n confusion
2093 on some platforms. */
2094 return ferror (f) || fclose (f) != 0;
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_run "$LINENO"; then :
2101 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102else
2103 ac_retval=1
2104fi
2105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106 conftest.$ac_objext conftest.beam conftest.$ac_ext
2107rm -f conftest.val
2108
2109 fi
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 return $ac_retval
2112
2113} # ac_fn_c_compute_int
791c0056
GB
2114
2115# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116# ----------------------------------------------------
2117# Tries to find if the field MEMBER exists in type AGGR, after including
2118# INCLUDES, setting cache variable VAR accordingly.
2119ac_fn_c_check_member ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123$as_echo_n "checking for $2.$3... " >&6; }
2124if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2126else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$5
2130int
2131main ()
2132{
2133static $2 ac_aggr;
2134if (ac_aggr.$3)
2135return 0;
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$5
2146int
2147main ()
2148{
2149static $2 ac_aggr;
2150if (sizeof ac_aggr.$3)
2151return 0;
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158else
2159 eval "$4=no"
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165eval ac_res=\$$4
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169
2170} # ac_fn_c_check_member
81ecdfbb
RW
2171cat >config.log <<_ACEOF
2172This file contains any messages produced by compilers while
2173running configure, to aid debugging if configure makes a mistake.
2174
2175It was created by $as_me, which was
2176generated by GNU Autoconf 2.64. Invocation command line was
2177
2178 $ $0 $@
2179
2180_ACEOF
2181exec 5>>config.log
2182{
2183cat <<_ASUNAME
2184## --------- ##
2185## Platform. ##
2186## --------- ##
2187
2188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205_ASUNAME
2206
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214IFS=$as_save_IFS
2215
2216} >&5
2217
2218cat >&5 <<_ACEOF
2219
2220
2221## ----------- ##
2222## Core tests. ##
2223## ----------- ##
bec39cab
AC
2224
2225_ACEOF
2226
2227
2228# Keep a trace of the command line.
2229# Strip out --no-create and --no-recursion so they do not pile up.
2230# Strip out --silent because we don't want to record it for future runs.
2231# Also quote any args containing shell meta-characters.
2232# Make two passes to allow for proper duplicate-argument suppression.
2233ac_configure_args=
2234ac_configure_args0=
2235ac_configure_args1=
bec39cab
AC
2236ac_must_keep_next=false
2237for ac_pass in 1 2
2238do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
81ecdfbb
RW
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2248 esac
2249 case $ac_pass in
81ecdfbb 2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 2251 2)
81ecdfbb 2252 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
81ecdfbb 2268 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
2269 ;;
2270 esac
2271 done
2272done
81ecdfbb
RW
2273{ ac_configure_args0=; unset ac_configure_args0;}
2274{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
2275
2276# When interrupted or exit'd, cleanup temporary files, and complete
2277# config.log. We remove comments because anyway the quotes in there
2278# would cause problems or look ugly.
81ecdfbb
RW
2279# WARNING: Use '\'' to represent an apostrophe within the trap.
2280# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
2281trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
2286 cat <<\_ASBOX
2287## ---------------- ##
2288## Cache variables. ##
2289## ---------------- ##
2290_ASBOX
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2293(
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
bec39cab 2309 (set) 2>&1 |
81ecdfbb
RW
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
bec39cab 2312 sed -n \
81ecdfbb
RW
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
bec39cab 2316 *)
81ecdfbb 2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 2318 ;;
81ecdfbb
RW
2319 esac |
2320 sort
2321)
bec39cab
AC
2322 echo
2323
2324 cat <<\_ASBOX
2325## ----------------- ##
2326## Output variables. ##
2327## ----------------- ##
2328_ASBOX
2329 echo
2330 for ac_var in $ac_subst_vars
2331 do
81ecdfbb
RW
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2337 done | sort
2338 echo
2339
2340 if test -n "$ac_subst_files"; then
2341 cat <<\_ASBOX
81ecdfbb
RW
2342## ------------------- ##
2343## File substitutions. ##
2344## ------------------- ##
bec39cab
AC
2345_ASBOX
2346 echo
2347 for ac_var in $ac_subst_files
2348 do
81ecdfbb
RW
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2354 done | sort
2355 echo
434c4c77 2356 fi
bec39cab
AC
2357
2358 if test -s confdefs.h; then
2359 cat <<\_ASBOX
2360## ----------- ##
2361## confdefs.h. ##
2362## ----------- ##
2363_ASBOX
2364 echo
81ecdfbb 2365 cat confdefs.h
bec39cab
AC
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
81ecdfbb
RW
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
bec39cab 2371 } >&5
81ecdfbb
RW
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2374 exit $exit_status
81ecdfbb 2375' 0
bec39cab 2376for ac_signal in 1 2 13 15; do
81ecdfbb 2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2378done
2379ac_signal=0
2380
2381# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2382rm -f -r conftest* confdefs.h
2383
2384$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2385
2386# Predefined preprocessor variables.
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_NAME "$PACKAGE_NAME"
2390_ACEOF
2391
bec39cab
AC
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394_ACEOF
2395
bec39cab
AC
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_VERSION "$PACKAGE_VERSION"
2398_ACEOF
2399
bec39cab
AC
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_STRING "$PACKAGE_STRING"
2402_ACEOF
2403
bec39cab
AC
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406_ACEOF
2407
81ecdfbb
RW
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_URL "$PACKAGE_URL"
2410_ACEOF
2411
bec39cab
AC
2412
2413# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2414# Prefer an explicitly selected file to automatically selected ones.
2415ac_site_file1=NONE
2416ac_site_file2=NONE
2417if test -n "$CONFIG_SITE"; then
2418 ac_site_file1=$CONFIG_SITE
2419elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2425fi
81ecdfbb
RW
2426for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427do
2428 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2429 if test -r "$ac_site_file"; then
81ecdfbb
RW
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2432 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2433 . "$ac_site_file"
2434 fi
2435done
2436
2437if test -r "$cache_file"; then
bec39cab
AC
2438 # Some versions of bash will fail to source /dev/null (special
2439 # files actually), so we avoid doing that.
2440 if test -f "$cache_file"; then
81ecdfbb
RW
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2443 case $cache_file in
81ecdfbb
RW
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
bec39cab
AC
2446 esac
2447 fi
d6e9fb05 2448else
81ecdfbb
RW
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2451 >$cache_file
d6e9fb05
JK
2452fi
2453
bec39cab
AC
2454# Check that the precious variables saved in the cache have kept the same
2455# value.
2456ac_cache_corrupted=false
81ecdfbb 2457for ac_var in $ac_precious_vars; do
bec39cab
AC
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2462 case $ac_old_set,$ac_new_set in
2463 set,)
81ecdfbb
RW
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2466 ac_cache_corrupted=: ;;
2467 ,set)
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2470 ac_cache_corrupted=: ;;
2471 ,);;
2472 *)
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x $ac_old_val`
2476 ac_new_val_w=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted=:
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2490 fi;;
2491 esac
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2494 case $ac_new_val in
81ecdfbb 2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2497 esac
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2501 esac
d6e9fb05 2502 fi
bec39cab
AC
2503done
2504if $ac_cache_corrupted; then
81ecdfbb
RW
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2510fi
81ecdfbb
RW
2511## -------------------- ##
2512## Main body of script. ##
2513## -------------------- ##
d6e9fb05 2514
dae5f5cf
DJ
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
d6e9fb05 2521
84563040 2522
bec39cab
AC
2523
2524
81ecdfbb 2525ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2526
2527
e28b3332 2528
c9a1864a
YQ
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2530$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2531 # Check whether --enable-maintainer-mode was given.
2532if test "${enable_maintainer_mode+set}" = set; then :
2533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2534else
2535 USE_MAINTAINER_MODE=no
2536fi
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2539$as_echo "$USE_MAINTAINER_MODE" >&6; }
2540 if test $USE_MAINTAINER_MODE = yes; then
2541 MAINTAINER_MODE_TRUE=
2542 MAINTAINER_MODE_FALSE='#'
2543else
2544 MAINTAINER_MODE_TRUE='#'
2545 MAINTAINER_MODE_FALSE=
2546fi
2547
2548 MAINT=$MAINTAINER_MODE_TRUE
2549
2550
2551
bec39cab
AC
2552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_CC+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
84563040
DJ
2564else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567else
bec39cab
AC
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2577 break 2
2578 fi
2579done
81ecdfbb
RW
2580 done
2581IFS=$as_save_IFS
bec39cab 2582
84563040
DJ
2583fi
2584fi
bec39cab 2585CC=$ac_cv_prog_CC
84563040 2586if test -n "$CC"; then
81ecdfbb
RW
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588$as_echo "$CC" >&6; }
84563040 2589else
81ecdfbb
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
84563040
DJ
2592fi
2593
81ecdfbb 2594
bec39cab
AC
2595fi
2596if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599set dummy gcc; ac_word=$2
81ecdfbb
RW
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
84563040 2604else
bec39cab
AC
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2607else
bec39cab
AC
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2615 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2617 break 2
2618 fi
2619done
81ecdfbb
RW
2620 done
2621IFS=$as_save_IFS
bec39cab
AC
2622
2623fi
2624fi
2625ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2628$as_echo "$ac_ct_CC" >&6; }
bec39cab 2629else
81ecdfbb
RW
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
bec39cab
AC
2632fi
2633
81ecdfbb
RW
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638yes:)
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641ac_tool_warned=yes ;;
2642esac
2643 CC=$ac_ct_CC
2644 fi
bec39cab
AC
2645else
2646 CC="$ac_cv_prog_CC"
2647fi
2648
2649if test -z "$CC"; then
81ecdfbb
RW
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2652set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if test "${ac_cv_prog_CC+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
bec39cab
AC
2657else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2670 break 2
2671 fi
2672done
81ecdfbb
RW
2673 done
2674IFS=$as_save_IFS
bec39cab
AC
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
81ecdfbb
RW
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
bec39cab 2682else
81ecdfbb
RW
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
bec39cab
AC
2685fi
2686
81ecdfbb
RW
2687
2688 fi
dae5f5cf 2689fi
81ecdfbb 2690if test -z "$CC"; then
dae5f5cf
DJ
2691 # Extract the first word of "cc", so it can be a program name with args.
2692set dummy cc; ac_word=$2
81ecdfbb
RW
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if test "${ac_cv_prog_CC+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
dae5f5cf 2697else
81ecdfbb
RW
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2700else
81ecdfbb 2701 ac_prog_rejected=no
dae5f5cf
DJ
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2711 continue
2712 fi
2713 ac_cv_prog_CC="cc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2715 break 2
b80864fb 2716 fi
dae5f5cf 2717done
81ecdfbb
RW
2718 done
2719IFS=$as_save_IFS
bec39cab 2720
84563040
DJ
2721if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2724 shift
bec39cab 2725 if test $# != 0; then
84563040
DJ
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2729 shift
bec39cab 2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2731 fi
2732fi
2733fi
2734fi
bec39cab 2735CC=$ac_cv_prog_CC
84563040 2736if test -n "$CC"; then
81ecdfbb
RW
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738$as_echo "$CC" >&6; }
84563040 2739else
81ecdfbb
RW
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
84563040
DJ
2742fi
2743
81ecdfbb 2744
bec39cab
AC
2745fi
2746if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
81ecdfbb 2748 for ac_prog in cl.exe
bec39cab
AC
2749 do
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
2754if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
84563040
DJ
2756else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
bec39cab
AC
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2769 break 2
2770 fi
2771done
81ecdfbb
RW
2772 done
2773IFS=$as_save_IFS
bec39cab 2774
84563040
DJ
2775fi
2776fi
bec39cab 2777CC=$ac_cv_prog_CC
84563040 2778if test -n "$CC"; then
81ecdfbb
RW
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780$as_echo "$CC" >&6; }
84563040 2781else
81ecdfbb
RW
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
84563040 2784fi
bec39cab 2785
81ecdfbb 2786
bec39cab
AC
2787 test -n "$CC" && break
2788 done
2789fi
2790if test -z "$CC"; then
2791 ac_ct_CC=$CC
81ecdfbb 2792 for ac_prog in cl.exe
bec39cab
AC
2793do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
bec39cab
AC
2800else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2811 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2813 break 2
84563040 2814 fi
bec39cab 2815done
81ecdfbb
RW
2816 done
2817IFS=$as_save_IFS
bec39cab
AC
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824$as_echo "$ac_ct_CC" >&6; }
bec39cab 2825else
81ecdfbb
RW
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
84563040
DJ
2828fi
2829
81ecdfbb 2830
bec39cab
AC
2831 test -n "$ac_ct_CC" && break
2832done
84563040 2833
81ecdfbb
RW
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838yes:)
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841ac_tool_warned=yes ;;
2842esac
2843 CC=$ac_ct_CC
2844 fi
bec39cab
AC
2845fi
2846
2847fi
2848
2849
81ecdfbb
RW
2850test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852as_fn_error "no acceptable C compiler found in \$PATH
2853See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2854
2855# Provide some information about the compiler.
81ecdfbb
RW
2856$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2857set X $ac_compile
2858ac_compiler=$2
2859for ac_option in --version -v -V -qversion; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2861case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864esac
2865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866$as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2868 ac_status=$?
81ecdfbb
RW
2869 if test -s conftest.err; then
2870 sed '10a\
2871... rest of stderr output deleted ...
2872 10q' conftest.err >conftest.er1
2873 cat conftest.er1 >&5
2874 rm -f conftest.er1 conftest.err
2875 fi
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878done
bec39cab 2879
81ecdfbb 2880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2881/* end confdefs.h. */
2882
2883int
2884main ()
2885{
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891ac_clean_files_save=$ac_clean_files
81ecdfbb 2892ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2893# Try to create an executable without -o first, disregard a.out.
2894# It will help us diagnose broken compilers, and finding out an intuition
2895# of exeext.
81ecdfbb
RW
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2897$as_echo_n "checking for C compiler default output file name... " >&6; }
2898ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899
2900# The possible output files:
2901ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902
2903ac_rmfiles=
2904for ac_file in $ac_files
2905do
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 esac
2910done
2911rm -f $ac_rmfiles
2912
2913if { { ac_try="$ac_link_default"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919$as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
bec39cab 2921 ac_status=$?
81ecdfbb
RW
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2925# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2926# in a Makefile. We should not override ac_cv_exeext if it was cached,
2927# so that the user can short-circuit this test for compilers unknown to
2928# Autoconf.
2929for ac_file in $ac_files ''
bec39cab
AC
2930do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
81ecdfbb 2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2934 ;;
2935 [ab].out )
2936 # We found the default executable, but exeext='' is most
2937 # certainly right.
2938 break;;
2939 *.* )
81ecdfbb
RW
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2941 then :; else
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 fi
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2948 # actually working.
bec39cab
AC
2949 break;;
2950 * )
2951 break;;
2952 esac
2953done
81ecdfbb
RW
2954test "$ac_cv_exeext" = no && ac_cv_exeext=
2955
bec39cab 2956else
81ecdfbb
RW
2957 ac_file=''
2958fi
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960$as_echo "$ac_file" >&6; }
2961if test -z "$ac_file"; then :
2962 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
81ecdfbb
RW
2965{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967{ as_fn_set_status 77
2968as_fn_error "C compiler cannot create executables
2969See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2970fi
bec39cab 2971ac_exeext=$ac_cv_exeext
bec39cab 2972
81ecdfbb 2973# Check that the compiler produces executables we can run. If not, either
bec39cab 2974# the compiler is broken, or we cross compile.
81ecdfbb
RW
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2976$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2977# If not cross compiling, check that we can run a simple program.
2978if test "$cross_compiling" != yes; then
2979 if { ac_try='./$ac_file'
81ecdfbb
RW
2980 { { case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985$as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_try") 2>&5
bec39cab 2987 ac_status=$?
81ecdfbb
RW
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }; }; then
bec39cab 2990 cross_compiling=no
84563040 2991 else
bec39cab
AC
2992 if test "$cross_compiling" = maybe; then
2993 cross_compiling=yes
2994 else
81ecdfbb
RW
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997as_fn_error "cannot run C compiled programs.
bec39cab 2998If you meant to cross compile, use \`--host'.
81ecdfbb 2999See \`config.log' for more details." "$LINENO" 5; }
bec39cab 3000 fi
84563040 3001 fi
84563040 3002fi
81ecdfbb
RW
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004$as_echo "yes" >&6; }
bec39cab 3005
81ecdfbb 3006rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 3007ac_clean_files=$ac_clean_files_save
81ecdfbb 3008# Check that the compiler produces executables we can run. If not, either
bec39cab 3009# the compiler is broken, or we cross compile.
81ecdfbb
RW
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3011$as_echo_n "checking whether we are cross compiling... " >&6; }
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3013$as_echo "$cross_compiling" >&6; }
3014
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016$as_echo_n "checking for suffix of executables... " >&6; }
3017if { { ac_try="$ac_link"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
bec39cab 3025 ac_status=$?
81ecdfbb
RW
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
bec39cab
AC
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030# work properly (i.e., refer to `conftest.exe'), while it won't with
3031# `rm'.
3032for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3034 case $ac_file in
81ecdfbb 3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
3037 break;;
3038 * ) break;;
3039 esac
3040done
84563040 3041else
81ecdfbb
RW
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error "cannot compute suffix of executables: cannot compile and link
3045See \`config.log' for more details." "$LINENO" 5; }
84563040 3046fi
bec39cab 3047rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
3050
3051rm -f conftest.$ac_ext
3052EXEEXT=$ac_cv_exeext
3053ac_exeext=$EXEEXT
81ecdfbb
RW
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3055$as_echo_n "checking for suffix of object files... " >&6; }
3056if test "${ac_cv_objext+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
bec39cab 3058else
81ecdfbb 3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.o conftest.obj
81ecdfbb
RW
3071if { { ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compile") 2>&5
bec39cab 3079 ac_status=$?
81ecdfbb
RW
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 for ac_file in conftest.o conftest.obj conftest.*; do
3083 test -f "$ac_file" || continue;
bec39cab 3084 case $ac_file in
81ecdfbb 3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
3086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3087 break;;
3088 esac
3089done
3090else
81ecdfbb 3091 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
81ecdfbb
RW
3094{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096as_fn_error "cannot compute suffix of object files: cannot compile
3097See \`config.log' for more details." "$LINENO" 5; }
84563040 3098fi
bec39cab
AC
3099rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100fi
81ecdfbb
RW
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3102$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
3103OBJEXT=$ac_cv_objext
3104ac_objext=$OBJEXT
81ecdfbb
RW
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3106$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3107if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
bec39cab 3109else
81ecdfbb 3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116#ifndef __GNUC__
3117 choke me
3118#endif
84563040 3119
bec39cab
AC
3120 ;
3121 return 0;
3122}
3123_ACEOF
81ecdfbb 3124if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 3125 ac_compiler_gnu=yes
84563040 3126else
81ecdfbb 3127 ac_compiler_gnu=no
84563040 3128fi
81ecdfbb 3129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3130ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 3131
bec39cab 3132fi
81ecdfbb
RW
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3134$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3135if test $ac_compiler_gnu = yes; then
3136 GCC=yes
3137else
3138 GCC=
3139fi
bec39cab
AC
3140ac_test_CFLAGS=${CFLAGS+set}
3141ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3143$as_echo_n "checking whether $CC accepts -g... " >&6; }
3144if test "${ac_cv_prog_cc_g+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146else
3147 ac_save_c_werror_flag=$ac_c_werror_flag
3148 ac_c_werror_flag=yes
3149 ac_cv_prog_cc_g=no
3150 CFLAGS="-g"
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3152/* end confdefs.h. */
3153
3154int
3155main ()
3156{
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
81ecdfbb 3162if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3163 ac_cv_prog_cc_g=yes
3164else
81ecdfbb
RW
3165 CFLAGS=""
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177if ac_fn_c_try_compile "$LINENO"; then :
3178
3179else
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
84563040 3188
81ecdfbb
RW
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193if ac_fn_c_try_compile "$LINENO"; then :
3194 ac_cv_prog_cc_g=yes
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 3197fi
81ecdfbb 3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3199fi
81ecdfbb
RW
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3204$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 3205if test "$ac_test_CFLAGS" = set; then
bec39cab 3206 CFLAGS=$ac_save_CFLAGS
84563040
DJ
3207elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3209 CFLAGS="-g -O2"
3210 else
3211 CFLAGS="-g"
3212 fi
3213else
3214 if test "$GCC" = yes; then
3215 CFLAGS="-O2"
3216 else
3217 CFLAGS=
3218 fi
3219fi
81ecdfbb
RW
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3221$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3222if test "${ac_cv_prog_cc_c89+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
bec39cab 3224else
81ecdfbb 3225 ac_cv_prog_cc_c89=no
bec39cab 3226ac_save_CC=$CC
81ecdfbb 3227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231#include <sys/types.h>
3232#include <sys/stat.h>
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3255 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3258 that's true only with -std. */
bec39cab
AC
3259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
81ecdfbb
RW
3261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
bec39cab
AC
3266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
81ecdfbb
RW
3280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3282do
3283 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_cv_prog_cc_c89=$ac_arg
bec39cab 3286fi
81ecdfbb
RW
3287rm -f core conftest.err conftest.$ac_objext
3288 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 3289done
81ecdfbb 3290rm -f conftest.$ac_ext
bec39cab
AC
3291CC=$ac_save_CC
3292
3293fi
81ecdfbb
RW
3294# AC_CACHE_VAL
3295case "x$ac_cv_prog_cc_c89" in
3296 x)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3298$as_echo "none needed" >&6; } ;;
3299 xno)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3301$as_echo "unsupported" >&6; } ;;
bec39cab 3302 *)
81ecdfbb
RW
3303 CC="$CC $ac_cv_prog_cc_c89"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3305$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 3306esac
81ecdfbb 3307if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 3308
dae5f5cf
DJ
3309fi
3310
dae5f5cf 3311ac_ext=c
bec39cab
AC
3312ac_cpp='$CPP $CPPFLAGS'
3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040 3316
3bc3d82a
PA
3317ac_ext=cpp
3318ac_cpp='$CXXCPP $CPPFLAGS'
3319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3322if test -z "$CXX"; then
3323 if test -n "$CCC"; then
3324 CXX=$CCC
3325 else
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 do
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if test "${ac_cv_prog_CXX+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3335else
3336 if test -n "$CXX"; then
3337 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350done
3351 done
3352IFS=$as_save_IFS
3353
3354fi
3355fi
3356CXX=$ac_cv_prog_CXX
3357if test -n "$CXX"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3359$as_echo "$CXX" >&6; }
3360else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365
3366 test -n "$CXX" && break
3367 done
3368fi
3369if test -z "$CXX"; then
3370 ac_ct_CXX=$CXX
3371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3372do
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374set dummy $ac_prog; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3379else
3380 if test -n "$ac_ct_CXX"; then
3381 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_ac_ct_CXX="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395 done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3401if test -n "$ac_ct_CXX"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3403$as_echo "$ac_ct_CXX" >&6; }
3404else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409
3410 test -n "$ac_ct_CXX" && break
3411done
3412
3413 if test "x$ac_ct_CXX" = x; then
3414 CXX="g++"
3415 else
3416 case $cross_compiling:$ac_tool_warned in
3417yes:)
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420ac_tool_warned=yes ;;
3421esac
3422 CXX=$ac_ct_CXX
3423 fi
3424fi
3425
3426 fi
3427fi
3428# Provide some information about the compiler.
3429$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3430set X $ac_compile
3431ac_compiler=$2
3432for ac_option in --version -v -V -qversion; do
3433 { { ac_try="$ac_compiler $ac_option >&5"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3441 ac_status=$?
3442 if test -s conftest.err; then
3443 sed '10a\
3444... rest of stderr output deleted ...
3445 10q' conftest.err >conftest.er1
3446 cat conftest.er1 >&5
3447 rm -f conftest.er1 conftest.err
3448 fi
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }
3451done
3452
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3454$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h. */
3460
3461int
3462main ()
3463{
3464#ifndef __GNUC__
3465 choke me
3466#endif
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472if ac_fn_cxx_try_compile "$LINENO"; then :
3473 ac_compiler_gnu=yes
3474else
3475 ac_compiler_gnu=no
3476fi
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3479
3480fi
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3482$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3483if test $ac_compiler_gnu = yes; then
3484 GXX=yes
3485else
3486 GXX=
3487fi
3488ac_test_CXXFLAGS=${CXXFLAGS+set}
3489ac_save_CXXFLAGS=$CXXFLAGS
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3491$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3492if test "${ac_cv_prog_cxx_g+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3496 ac_cxx_werror_flag=yes
3497 ac_cv_prog_cxx_g=no
3498 CXXFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h. */
3501
3502int
3503main ()
3504{
3505
3506 ;
3507 return 0;
3508}
3509_ACEOF
3510if ac_fn_cxx_try_compile "$LINENO"; then :
3511 ac_cv_prog_cxx_g=yes
3512else
3513 CXXFLAGS=""
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h. */
3516
3517int
3518main ()
3519{
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525if ac_fn_cxx_try_compile "$LINENO"; then :
3526
3527else
3528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3529 CXXFLAGS="-g"
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
3532
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541if ac_fn_cxx_try_compile "$LINENO"; then :
3542 ac_cv_prog_cxx_g=yes
3543fi
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3552$as_echo "$ac_cv_prog_cxx_g" >&6; }
3553if test "$ac_test_CXXFLAGS" = set; then
3554 CXXFLAGS=$ac_save_CXXFLAGS
3555elif test $ac_cv_prog_cxx_g = yes; then
3556 if test "$GXX" = yes; then
3557 CXXFLAGS="-g -O2"
3558 else
3559 CXXFLAGS="-g"
3560 fi
3561else
3562 if test "$GXX" = yes; then
3563 CXXFLAGS="-O2"
3564 else
3565 CXXFLAGS=
3566 fi
3567fi
3568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
c9a1864a
YQ
3574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3581$as_echo_n "checking how to run the C preprocessor... " >&6; }
3582# On Suns, sometimes $CPP names a directory.
3583if test -n "$CPP" && test -d "$CPP"; then
3584 CPP=
3585fi
3586if test -z "$CPP"; then
3587 if test "${ac_cv_prog_CPP+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589else
3590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3592 do
3593 ac_preproc_ok=false
3594for ac_c_preproc_warn_flag in '' yes
3595do
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error" is here to catch this case.
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h. */
3604#ifdef __STDC__
3605# include <limits.h>
3606#else
3607# include <assert.h>
3608#endif
3609 Syntax error
3610_ACEOF
3611if ac_fn_c_try_cpp "$LINENO"; then :
3612
3613else
3614 # Broken: fails on valid input.
3615continue
3616fi
3617rm -f conftest.err conftest.$ac_ext
3618
3619 # OK, works on sane cases. Now check whether nonexistent headers
3620 # can be detected and how.
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
3623#include <ac_nonexistent.h>
3624_ACEOF
3625if ac_fn_c_try_cpp "$LINENO"; then :
3626 # Broken: success on invalid input.
3627continue
3628else
3629 # Passes both tests.
3630ac_preproc_ok=:
3631break
3632fi
3633rm -f conftest.err conftest.$ac_ext
3634
3635done
3636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637rm -f conftest.err conftest.$ac_ext
3638if $ac_preproc_ok; then :
3639 break
3640fi
3641
3642 done
3643 ac_cv_prog_CPP=$CPP
3644
3645fi
3646 CPP=$ac_cv_prog_CPP
3647else
3648 ac_cv_prog_CPP=$CPP
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3651$as_echo "$CPP" >&6; }
3652ac_preproc_ok=false
3653for ac_c_preproc_warn_flag in '' yes
3654do
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h. */
3663#ifdef __STDC__
3664# include <limits.h>
3665#else
3666# include <assert.h>
3667#endif
3668 Syntax error
3669_ACEOF
3670if ac_fn_c_try_cpp "$LINENO"; then :
3671
3672else
3673 # Broken: fails on valid input.
3674continue
3675fi
3676rm -f conftest.err conftest.$ac_ext
3677
3678 # OK, works on sane cases. Now check whether nonexistent headers
3679 # can be detected and how.
81ecdfbb 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3681/* end confdefs.h. */
3682#include <ac_nonexistent.h>
3683_ACEOF
81ecdfbb 3684if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3685 # Broken: success on invalid input.
3686continue
3687else
bec39cab
AC
3688 # Passes both tests.
3689ac_preproc_ok=:
3690break
3691fi
3692rm -f conftest.err conftest.$ac_ext
3693
3694done
3695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3697if $ac_preproc_ok; then :
3698
3699else
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702as_fn_error "C preprocessor \"$CPP\" fails sanity check
3703See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3704fi
3705
81ecdfbb
RW
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3711
81ecdfbb
RW
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3714$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3715if test "${ac_cv_path_GREP+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
bec39cab 3717else
81ecdfbb
RW
3718 if test -z "$GREP"; then
3719 ac_path_GREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3723do
81ecdfbb
RW
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_prog in grep ggrep; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3730# Check for GNU ac_path_GREP and select it if it is found.
3731 # Check for GNU $ac_path_GREP
3732case `"$ac_path_GREP" --version 2>&1` in
3733*GNU*)
3734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3735*)
3736 ac_count=0
3737 $as_echo_n 0123456789 >"conftest.in"
3738 while :
3739 do
3740 cat "conftest.in" "conftest.in" >"conftest.tmp"
3741 mv "conftest.tmp" "conftest.in"
3742 cp "conftest.in" "conftest.nl"
3743 $as_echo 'GREP' >> "conftest.nl"
3744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3746 as_fn_arith $ac_count + 1 && ac_count=$as_val
3747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748 # Best one so far, save it but keep looking for a better one
3749 ac_cv_path_GREP="$ac_path_GREP"
3750 ac_path_GREP_max=$ac_count
3751 fi
3752 # 10*(2^10) chars as input seems more than enough
3753 test $ac_count -gt 10 && break
3754 done
3755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756esac
3757
3758 $ac_path_GREP_found && break 3
3759 done
3760 done
3761 done
3762IFS=$as_save_IFS
3763 if test -z "$ac_cv_path_GREP"; then
3764 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3765 fi
3766else
81ecdfbb 3767 ac_cv_path_GREP=$GREP
bec39cab 3768fi
bec39cab 3769
84563040 3770fi
81ecdfbb
RW
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3772$as_echo "$ac_cv_path_GREP" >&6; }
3773 GREP="$ac_cv_path_GREP"
bec39cab 3774
bec39cab 3775
81ecdfbb
RW
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3777$as_echo_n "checking for egrep... " >&6; }
3778if test "${ac_cv_path_EGREP+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780else
3781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782 then ac_cv_path_EGREP="$GREP -E"
3783 else
3784 if test -z "$EGREP"; then
3785 ac_path_EGREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3796# Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798case `"$ac_path_EGREP" --version 2>&1` in
3799*GNU*)
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801*)
3802 ac_count=0
3803 $as_echo_n 0123456789 >"conftest.in"
3804 while :
3805 do
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 $as_echo 'EGREP' >> "conftest.nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812 as_fn_arith $ac_count + 1 && ac_count=$as_val
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3817 fi
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
bec39cab 3823
81ecdfbb
RW
3824 $ac_path_EGREP_found && break 3
3825 done
3826 done
3827 done
3828IFS=$as_save_IFS
3829 if test -z "$ac_cv_path_EGREP"; then
3830 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3831 fi
bec39cab 3832else
81ecdfbb 3833 ac_cv_path_EGREP=$EGREP
84563040 3834fi
bec39cab 3835
81ecdfbb 3836 fi
b80864fb 3837fi
81ecdfbb
RW
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3839$as_echo "$ac_cv_path_EGREP" >&6; }
3840 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3841
3842
c971b7fa
PA
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3844$as_echo_n "checking for ANSI C header files... " >&6; }
3845if test "${ac_cv_header_stdc+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847else
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h. */
3850#include <stdlib.h>
3851#include <stdarg.h>
3852#include <string.h>
3853#include <float.h>
bec39cab 3854
c971b7fa
PA
3855int
3856main ()
3857{
bec39cab 3858
c971b7fa
PA
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_header_stdc=yes
84563040 3865else
c971b7fa
PA
3866 ac_cv_header_stdc=no
3867fi
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 3869
c971b7fa
PA
3870if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3873/* end confdefs.h. */
c971b7fa 3874#include <string.h>
bec39cab
AC
3875
3876_ACEOF
84563040 3877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c971b7fa
PA
3878 $EGREP "memchr" >/dev/null 2>&1; then :
3879
84563040 3880else
c971b7fa 3881 ac_cv_header_stdc=no
84563040
DJ
3882fi
3883rm -f conftest*
3884
770d76d7 3885fi
81ecdfbb 3886
c971b7fa
PA
3887if test $ac_cv_header_stdc = yes; then
3888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h. */
3891#include <stdlib.h>
3892
3893_ACEOF
3894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895 $EGREP "free" >/dev/null 2>&1; then :
3896
770d76d7 3897else
c971b7fa 3898 ac_cv_header_stdc=no
bec39cab 3899fi
c971b7fa 3900rm -f conftest*
bec39cab
AC
3901
3902fi
c971b7fa
PA
3903
3904if test $ac_cv_header_stdc = yes; then
3905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3906 if test "$cross_compiling" = yes; then :
3907 :
770d76d7 3908else
c971b7fa
PA
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h. */
3911#include <ctype.h>
3912#include <stdlib.h>
3913#if ((' ' & 0x0FF) == 0x020)
3914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916#else
3917# define ISLOWER(c) \
3918 (('a' <= (c) && (c) <= 'i') \
3919 || ('j' <= (c) && (c) <= 'r') \
3920 || ('s' <= (c) && (c) <= 'z'))
3921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922#endif
3923
3924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925int
3926main ()
3927{
3928 int i;
3929 for (i = 0; i < 256; i++)
3930 if (XOR (islower (i), ISLOWER (i))
3931 || toupper (i) != TOUPPER (i))
3932 return 2;
3933 return 0;
3934}
3935_ACEOF
3936if ac_fn_c_try_run "$LINENO"; then :
3937
770d76d7 3938else
c971b7fa
PA
3939 ac_cv_header_stdc=no
3940fi
3941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3942 conftest.$ac_objext conftest.beam conftest.$ac_ext
3943fi
bec39cab 3944
770d76d7
PA
3945fi
3946fi
c971b7fa
PA
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3948$as_echo "$ac_cv_header_stdc" >&6; }
3949if test $ac_cv_header_stdc = yes; then
3950
3951$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3952
770d76d7 3953fi
bec39cab 3954
c971b7fa
PA
3955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3957 inttypes.h stdint.h unistd.h
3958do :
3959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3960ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3961"
3962eval as_val=\$$as_ac_Header
3963 if test "x$as_val" = x""yes; then :
3964 cat >>confdefs.h <<_ACEOF
3965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966_ACEOF
3967
81ecdfbb 3968fi
bec39cab 3969
c971b7fa 3970done
bec39cab
AC
3971
3972
3973
c971b7fa
PA
3974 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3975if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3976 MINIX=yes
770d76d7 3977else
c971b7fa 3978 MINIX=
770d76d7 3979fi
bec39cab
AC
3980
3981
c971b7fa
PA
3982 if test "$MINIX" = yes; then
3983
3984$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3985
3986
3987$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3988
3989
3990$as_echo "#define _MINIX 1" >>confdefs.h
3991
770d76d7 3992 fi
bec39cab 3993
c971b7fa
PA
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3996$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3997if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
770d76d7 3999else
c971b7fa
PA
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h. */
bec39cab 4002
c971b7fa
PA
4003# define __EXTENSIONS__ 1
4004 $ac_includes_default
4005int
4006main ()
4007{
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_safe_to_define___extensions__=yes
770d76d7 4015else
c971b7fa
PA
4016 ac_cv_safe_to_define___extensions__=no
4017fi
4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7 4019fi
c971b7fa
PA
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4021$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4022 test $ac_cv_safe_to_define___extensions__ = yes &&
4023 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4024
4025 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4026
4027 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4028
4029 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4030
4031 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4032
bec39cab 4033
c9a1864a 4034
589bc927
TT
4035# Check whether --enable-largefile was given.
4036if test "${enable_largefile+set}" = set; then :
4037 enableval=$enable_largefile;
4038fi
4039
4040if test "$enable_largefile" != no; then
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4043$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4044if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046else
4047 ac_cv_sys_largefile_CC=no
4048 if test "$GCC" != yes; then
4049 ac_save_CC=$CC
4050 while :; do
4051 # IRIX 6.2 and later do not support large files by default,
4052 # so use the C compiler's -n32 option if that helps.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h. */
4055#include <sys/types.h>
4056 /* Check that off_t can represent 2**63 - 1 correctly.
4057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4058 since some C++ compilers masquerading as C compilers
4059 incorrectly reject 9223372036854775807. */
4060#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4062 && LARGE_OFF_T % 2147483647 == 1)
4063 ? 1 : -1];
4064int
4065main ()
4066{
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 break
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076 CC="$CC -n32"
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_sys_largefile_CC=' -n32'; break
4079fi
4080rm -f core conftest.err conftest.$ac_objext
4081 break
4082 done
4083 CC=$ac_save_CC
4084 rm -f conftest.$ac_ext
4085 fi
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4088$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4089 if test "$ac_cv_sys_largefile_CC" != no; then
4090 CC=$CC$ac_cv_sys_largefile_CC
4091 fi
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4094$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4095if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097else
4098 while :; do
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h. */
4101#include <sys/types.h>
4102 /* Check that off_t can represent 2**63 - 1 correctly.
4103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4104 since some C++ compilers masquerading as C compilers
4105 incorrectly reject 9223372036854775807. */
4106#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4108 && LARGE_OFF_T % 2147483647 == 1)
4109 ? 1 : -1];
4110int
4111main ()
4112{
4113
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_sys_file_offset_bits=no; break
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
4124#define _FILE_OFFSET_BITS 64
4125#include <sys/types.h>
4126 /* Check that off_t can represent 2**63 - 1 correctly.
4127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4128 since some C++ compilers masquerading as C compilers
4129 incorrectly reject 9223372036854775807. */
4130#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4132 && LARGE_OFF_T % 2147483647 == 1)
4133 ? 1 : -1];
4134int
4135main ()
4136{
4137
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_sys_file_offset_bits=64; break
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_cv_sys_file_offset_bits=unknown
4147 break
4148done
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4151$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4152case $ac_cv_sys_file_offset_bits in #(
4153 no | unknown) ;;
4154 *)
4155cat >>confdefs.h <<_ACEOF
4156#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4157_ACEOF
4158;;
4159esac
4160rm -rf conftest*
4161 if test $ac_cv_sys_file_offset_bits = unknown; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4163$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4164if test "${ac_cv_sys_large_files+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166else
4167 while :; do
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
4170#include <sys/types.h>
4171 /* Check that off_t can represent 2**63 - 1 correctly.
4172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173 since some C++ compilers masquerading as C compilers
4174 incorrectly reject 9223372036854775807. */
4175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177 && LARGE_OFF_T % 2147483647 == 1)
4178 ? 1 : -1];
4179int
4180main ()
4181{
4182
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_sys_large_files=no; break
4189fi
4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h. */
4193#define _LARGE_FILES 1
4194#include <sys/types.h>
4195 /* Check that off_t can represent 2**63 - 1 correctly.
4196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197 since some C++ compilers masquerading as C compilers
4198 incorrectly reject 9223372036854775807. */
4199#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201 && LARGE_OFF_T % 2147483647 == 1)
4202 ? 1 : -1];
4203int
4204main ()
4205{
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_sys_large_files=1; break
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_cv_sys_large_files=unknown
4216 break
4217done
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4220$as_echo "$ac_cv_sys_large_files" >&6; }
4221case $ac_cv_sys_large_files in #(
4222 no | unknown) ;;
4223 *)
4224cat >>confdefs.h <<_ACEOF
4225#define _LARGE_FILES $ac_cv_sys_large_files
4226_ACEOF
4227;;
4228esac
4229rm -rf conftest*
4230 fi
4231fi
4232
c9a1864a 4233
770d76d7
PA
4234ac_aux_dir=
4235for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4236 for ac_t in install-sh install.sh shtool; do
4237 if test -f "$ac_dir/$ac_t"; then
4238 ac_aux_dir=$ac_dir
4239 ac_install_sh="$ac_aux_dir/$ac_t -c"
4240 break 2
4241 fi
4242 done
4243done
4244if test -z "$ac_aux_dir"; then
4245 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4246fi
4247
4248# These three variables are undocumented and unsupported,
4249# and are intended to be withdrawn in a future Autoconf release.
4250# They can cause serious problems if a builder's source tree is in a directory
4251# whose full name contains unusual characters.
4252ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4253ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4254ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
c9a1864a 4255
bec39cab 4256
770d76d7
PA
4257# Make sure we can run config.sub.
4258$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4259 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4262$as_echo_n "checking build system type... " >&6; }
4263if test "${ac_cv_build+set}" = set; then :
81ecdfbb
RW
4264 $as_echo_n "(cached) " >&6
4265else
770d76d7
PA
4266 ac_build_alias=$build_alias
4267test "x$ac_build_alias" = x &&
4268 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4269test "x$ac_build_alias" = x &&
4270 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4271ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4272 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4276$as_echo "$ac_cv_build" >&6; }
4277case $ac_cv_build in
4278*-*-*) ;;
4279*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4280esac
4281build=$ac_cv_build
4282ac_save_IFS=$IFS; IFS='-'
4283set x $ac_cv_build
4284shift
4285build_cpu=$1
4286build_vendor=$2
4287shift; shift
4288# Remember, the first character of IFS is used to create $*,
4289# except with old shells:
4290build_os=$*
4291IFS=$ac_save_IFS
4292case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4296$as_echo_n "checking host system type... " >&6; }
4297if test "${ac_cv_host+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299else
4300 if test "x$host_alias" = x; then
4301 ac_cv_host=$ac_cv_build
4302else
4303 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4304 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4305fi
4306
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4309$as_echo "$ac_cv_host" >&6; }
4310case $ac_cv_host in
4311*-*-*) ;;
4312*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4313esac
4314host=$ac_cv_host
4315ac_save_IFS=$IFS; IFS='-'
4316set x $ac_cv_host
4317shift
4318host_cpu=$1
4319host_vendor=$2
4320shift; shift
4321# Remember, the first character of IFS is used to create $*,
4322# except with old shells:
4323host_os=$*
4324IFS=$ac_save_IFS
4325case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4326
4327
c971b7fa
PA
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4329$as_echo_n "checking target system type... " >&6; }
4330if test "${ac_cv_target+set}" = set; then :
770d76d7
PA
4331 $as_echo_n "(cached) " >&6
4332else
c971b7fa
PA
4333 if test "x$target_alias" = x; then
4334 ac_cv_target=$ac_cv_host
770d76d7 4335else
c971b7fa
PA
4336 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4337 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
770d76d7 4338fi
770d76d7
PA
4339
4340fi
c971b7fa
PA
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4342$as_echo "$ac_cv_target" >&6; }
4343case $ac_cv_target in
4344*-*-*) ;;
4345*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4346esac
4347target=$ac_cv_target
4348ac_save_IFS=$IFS; IFS='-'
4349set x $ac_cv_target
4350shift
4351target_cpu=$1
4352target_vendor=$2
4353shift; shift
4354# Remember, the first character of IFS is used to create $*,
4355# except with old shells:
4356target_os=$*
4357IFS=$ac_save_IFS
4358case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
770d76d7 4359
770d76d7 4360
c971b7fa
PA
4361# The aliases save the names the user supplied, while $host etc.
4362# will get canonicalized.
4363test -n "$target_alias" &&
4364 test "$program_prefix$program_suffix$program_transform_name" = \
4365 NONENONEs,x,x, &&
4366 program_prefix=${target_alias}-
770d76d7 4367
770d76d7 4368
c971b7fa
PA
4369# Find a good install program. We prefer a C program (faster),
4370# so one script is as good as another. But avoid the broken or
4371# incompatible versions:
4372# SysV /etc/install, /usr/sbin/install
4373# SunOS /usr/etc/install
4374# IRIX /sbin/install
4375# AIX /bin/install
4376# AmigaOS /C/install, which installs bootblocks on floppy discs
4377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4380# OS/2's system install, which has a completely different semantic
4381# ./install, which can be erroneously created by make from ./install.sh.
4382# Reject install programs that cannot install multiple files.
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4384$as_echo_n "checking for a BSD-compatible install... " >&6; }
4385if test -z "$INSTALL"; then
4386if test "${ac_cv_path_install+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
81ecdfbb
RW
4388else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
fd462a61 4391do
81ecdfbb
RW
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395case $as_dir/ in #((
4396 ./ | .// | /[cC]/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4399 /usr/ucb/* ) ;;
4400 *)
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4403 # by default.
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4410 :
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4414 :
4415 else
4416 rm -rf conftest.one conftest.two conftest.dir
4417 echo one > conftest.one
4418 echo two > conftest.two
4419 mkdir conftest.dir
4420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4421 test -s conftest.one && test -s conftest.two &&
4422 test -s conftest.dir/conftest.one &&
4423 test -s conftest.dir/conftest.two
4424 then
4425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4426 break 3
4427 fi
4428 fi
4429 fi
4430 done
4431 done
4432 ;;
4433esac
fd462a61 4434
81ecdfbb
RW
4435 done
4436IFS=$as_save_IFS
fd462a61 4437
81ecdfbb 4438rm -rf conftest.one conftest.two conftest.dir
fd462a61 4439
fd462a61 4440fi
81ecdfbb
RW
4441 if test "${ac_cv_path_install+set}" = set; then
4442 INSTALL=$ac_cv_path_install
4443 else
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for INSTALL within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 INSTALL=$ac_install_sh
4449 fi
fd462a61 4450fi
81ecdfbb
RW
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4452$as_echo "$INSTALL" >&6; }
fd462a61 4453
81ecdfbb
RW
4454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4455# It thinks the first close brace ends the variable substitution.
4456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 4457
81ecdfbb 4458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 4459
81ecdfbb 4460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 4461
e1d2394b
MS
4462if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4464set dummy ${ac_tool_prefix}ar; ac_word=$2
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if test "${ac_cv_prog_AR+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 if test -n "$AR"; then
4471 ac_cv_prog_AR="$AR" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_AR="${ac_tool_prefix}ar"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484done
4485 done
4486IFS=$as_save_IFS
4487
4488fi
4489fi
4490AR=$ac_cv_prog_AR
4491if test -n "$AR"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4493$as_echo "$AR" >&6; }
4494else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499
4500fi
4501if test -z "$ac_cv_prog_AR"; then
4502 ac_ct_AR=$AR
4503 # Extract the first word of "ar", so it can be a program name with args.
4504set dummy ar; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509else
4510 if test -n "$ac_ct_AR"; then
4511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_ac_ct_AR="ar"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525 done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530ac_ct_AR=$ac_cv_prog_ac_ct_AR
4531if test -n "$ac_ct_AR"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4533$as_echo "$ac_ct_AR" >&6; }
4534else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539 if test "x$ac_ct_AR" = x; then
4540 AR=""
4541 else
4542 case $cross_compiling:$ac_tool_warned in
4543yes:)
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546ac_tool_warned=yes ;;
4547esac
4548 AR=$ac_ct_AR
4549 fi
4550else
4551 AR="$ac_cv_prog_AR"
4552fi
4553
c971b7fa
PA
4554if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if test "${ac_cv_prog_RANLIB+set}" = set; then :
81ecdfbb
RW
4560 $as_echo_n "(cached) " >&6
4561else
c971b7fa
PA
4562 if test -n "$RANLIB"; then
4563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
e28b3332 4564else
c971b7fa
PA
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577 done
4578IFS=$as_save_IFS
4579
4580fi
4581fi
4582RANLIB=$ac_cv_prog_RANLIB
4583if test -n "$RANLIB"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4585$as_echo "$RANLIB" >&6; }
4586else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
4592fi
4593if test -z "$ac_cv_prog_RANLIB"; then
4594 ac_ct_RANLIB=$RANLIB
4595 # Extract the first word of "ranlib", so it can be a program name with args.
4596set dummy ranlib; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
4599if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601else
4602 if test -n "$ac_ct_RANLIB"; then
4603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_RANLIB="ranlib"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617 done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4623if test -n "$ac_ct_RANLIB"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4625$as_echo "$ac_ct_RANLIB" >&6; }
4626else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630
4631 if test "x$ac_ct_RANLIB" = x; then
4632 RANLIB=":"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635yes:)
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638ac_tool_warned=yes ;;
4639esac
4640 RANLIB=$ac_ct_RANLIB
4641 fi
4642else
4643 RANLIB="$ac_cv_prog_RANLIB"
4644fi
4645
4646
4647test "$program_prefix" != NONE &&
4648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4649# Use a double $ so make ignores it.
4650test "$program_suffix" != NONE &&
4651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4652# Double any \ or $.
4653# By default was `s,x,x', remove it if useless.
4654ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4655program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4656
4657
0bcda685
PA
4658# We require a C++11 compiler. Check if one is available, and if
4659# necessary, set CXX_DIALECT to some -std=xxx switch.
4660
458412c3 4661 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
0bcda685
PA
4662 ac_ext=cpp
4663ac_cpp='$CXXCPP $CPPFLAGS'
4664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 CXX_DIALECT=""
4668 ac_success=no
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4670$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4671if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676
4677
4678// If the compiler admits that it is not ready for C++11, why torture it?
4679// Hopefully, this will speed up the test.
4680
4681#ifndef __cplusplus
4682
4683#error "This is not a C++ compiler"
4684
4685#elif __cplusplus < 201103L
4686
4687#error "This is not a C++11 compiler"
4688
4689#else
4690
4691namespace cxx11
4692{
4693
4694 namespace test_static_assert
4695 {
4696
4697 template <typename T>
4698 struct check
4699 {
4700 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4701 };
4702
4703 }
4704
4705 namespace test_final_override
4706 {
4707
4708 struct Base
4709 {
4710 virtual void f() {}
4711 };
4712
4713 struct Derived : public Base
4714 {
4715 virtual void f() override {}
4716 };
4717
4718 }
4719
4720 namespace test_double_right_angle_brackets
4721 {
4722
4723 template < typename T >
4724 struct check {};
4725
4726 typedef check<void> single_type;
4727 typedef check<check<void>> double_type;
4728 typedef check<check<check<void>>> triple_type;
4729 typedef check<check<check<check<void>>>> quadruple_type;
4730
4731 }
4732
4733 namespace test_decltype
4734 {
4735
4736 int
4737 f()
4738 {
4739 int a = 1;
4740 decltype(a) b = 2;
4741 return a + b;
4742 }
4743
4744 }
4745
4746 namespace test_type_deduction
4747 {
4748
4749 template < typename T1, typename T2 >
4750 struct is_same
4751 {
4752 static const bool value = false;
4753 };
4754
4755 template < typename T >
4756 struct is_same<T, T>
4757 {
4758 static const bool value = true;
4759 };
4760
4761 template < typename T1, typename T2 >
4762 auto
4763 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4764 {
4765 return a1 + a2;
4766 }
4767
4768 int
4769 test(const int c, volatile int v)
4770 {
4771 static_assert(is_same<int, decltype(0)>::value == true, "");
4772 static_assert(is_same<int, decltype(c)>::value == false, "");
4773 static_assert(is_same<int, decltype(v)>::value == false, "");
4774 auto ac = c;
4775 auto av = v;
4776 auto sumi = ac + av + 'x';
4777 auto sumf = ac + av + 1.0;
4778 static_assert(is_same<int, decltype(ac)>::value == true, "");
4779 static_assert(is_same<int, decltype(av)>::value == true, "");
4780 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4781 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4782 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4783 return (sumf > 0.0) ? sumi : add(c, v);
4784 }
4785
4786 }
4787
4788 namespace test_noexcept
4789 {
4790
4791 int f() { return 0; }
4792 int g() noexcept { return 0; }
4793
4794 static_assert(noexcept(f()) == false, "");
4795 static_assert(noexcept(g()) == true, "");
4796
4797 }
4798
4799 namespace test_constexpr
4800 {
4801
4802 template < typename CharT >
4803 unsigned long constexpr
4804 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4805 {
4806 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4807 }
4808
4809 template < typename CharT >
4810 unsigned long constexpr
4811 strlen_c(const CharT *const s) noexcept
4812 {
4813 return strlen_c_r(s, 0UL);
4814 }
4815
4816 static_assert(strlen_c("") == 0UL, "");
4817 static_assert(strlen_c("1") == 1UL, "");
4818 static_assert(strlen_c("example") == 7UL, "");
4819 static_assert(strlen_c("another\0example") == 7UL, "");
4820
4821 }
4822
4823 namespace test_rvalue_references
4824 {
4825
4826 template < int N >
4827 struct answer
4828 {
4829 static constexpr int value = N;
4830 };
4831
4832 answer<1> f(int&) { return answer<1>(); }
4833 answer<2> f(const int&) { return answer<2>(); }
4834 answer<3> f(int&&) { return answer<3>(); }
4835
4836 void
4837 test()
4838 {
4839 int i = 0;
4840 const int c = 0;
4841 static_assert(decltype(f(i))::value == 1, "");
4842 static_assert(decltype(f(c))::value == 2, "");
4843 static_assert(decltype(f(0))::value == 3, "");
4844 }
4845
4846 }
4847
4848 namespace test_uniform_initialization
4849 {
4850
4851 struct test
4852 {
4853 static const int zero {};
4854 static const int one {1};
4855 };
4856
4857 static_assert(test::zero == 0, "");
4858 static_assert(test::one == 1, "");
4859
4860 }
4861
4862 namespace test_lambdas
4863 {
4864
4865 void
4866 test1()
4867 {
4868 auto lambda1 = [](){};
4869 auto lambda2 = lambda1;
4870 lambda1();
4871 lambda2();
4872 }
4873
4874 int
4875 test2()
4876 {
4877 auto a = [](int i, int j){ return i + j; }(1, 2);
4878 auto b = []() -> int { return '0'; }();
4879 auto c = [=](){ return a + b; }();
4880 auto d = [&](){ return c; }();
4881 auto e = [a, &b](int x) mutable {
4882 const auto identity = [](int y){ return y; };
4883 for (auto i = 0; i < a; ++i)
4884 a += b--;
4885 return x + identity(a + b);
4886 }(0);
4887 return a + b + c + d + e;
4888 }
4889
4890 int
4891 test3()
4892 {
4893 const auto nullary = [](){ return 0; };
4894 const auto unary = [](int x){ return x; };
4895 using nullary_t = decltype(nullary);
4896 using unary_t = decltype(unary);
4897 const auto higher1st = [](nullary_t f){ return f(); };
4898 const auto higher2nd = [unary](nullary_t f1){
4899 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4900 };
4901 return higher1st(nullary) + higher2nd(nullary)(unary);
4902 }
4903
4904 }
4905
4906 namespace test_variadic_templates
4907 {
4908
4909 template <int...>
4910 struct sum;
4911
4912 template <int N0, int... N1toN>
4913 struct sum<N0, N1toN...>
4914 {
4915 static constexpr auto value = N0 + sum<N1toN...>::value;
4916 };
4917
4918 template <>
4919 struct sum<>
4920 {
4921 static constexpr auto value = 0;
4922 };
4923
4924 static_assert(sum<>::value == 0, "");
4925 static_assert(sum<1>::value == 1, "");
4926 static_assert(sum<23>::value == 23, "");
4927 static_assert(sum<1, 2>::value == 3, "");
4928 static_assert(sum<5, 5, 11>::value == 21, "");
4929 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4930
4931 }
4932
4933 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4934 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
4935 // because of this.
4936 namespace test_template_alias_sfinae
4937 {
4938
4939 struct foo {};
4940
4941 template<typename T>
4942 using member = typename T::member_type;
4943
4944 template<typename T>
4945 void func(...) {}
4946
4947 template<typename T>
4948 void func(member<T>*) {}
4949
4950 void test();
4951
4952 void test() { func<foo>(0); }
4953
4954 }
4955
4956} // namespace cxx11
4957
4958#endif // __cplusplus >= 201103L
4959
4960
4961
4962_ACEOF
4963if ac_fn_cxx_try_compile "$LINENO"; then :
4964 ax_cv_cxx_compile_cxx11=yes
4965else
4966 ax_cv_cxx_compile_cxx11=no
4967fi
4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4971$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
4972 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
4973 ac_success=yes
4974 fi
4975
4976 if test x$ac_success = xno; then
458412c3
TT
4977 for alternative in ${ax_cxx_compile_alternatives}; do
4978 switch="-std=gnu++${alternative}"
0bcda685
PA
4979 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4981$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
4982if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 ac_save_CXX="$CXX"
4986 CXX="$CXX $switch"
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h. */
4989
4990
4991// If the compiler admits that it is not ready for C++11, why torture it?
4992// Hopefully, this will speed up the test.
4993
4994#ifndef __cplusplus
4995
4996#error "This is not a C++ compiler"
4997
4998#elif __cplusplus < 201103L
4999
5000#error "This is not a C++11 compiler"
5001
5002#else
5003
5004namespace cxx11
5005{
5006
5007 namespace test_static_assert
5008 {
5009
5010 template <typename T>
5011 struct check
5012 {
5013 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5014 };
5015
5016 }
5017
5018 namespace test_final_override
5019 {
5020
5021 struct Base
5022 {
5023 virtual void f() {}
5024 };
5025
5026 struct Derived : public Base
5027 {
5028 virtual void f() override {}
5029 };
5030
5031 }
5032
5033 namespace test_double_right_angle_brackets
5034 {
5035
5036 template < typename T >
5037 struct check {};
5038
5039 typedef check<void> single_type;
5040 typedef check<check<void>> double_type;
5041 typedef check<check<check<void>>> triple_type;
5042 typedef check<check<check<check<void>>>> quadruple_type;
5043
5044 }
5045
5046 namespace test_decltype
5047 {
5048
5049 int
5050 f()
5051 {
5052 int a = 1;
5053 decltype(a) b = 2;
5054 return a + b;
5055 }
5056
5057 }
5058
5059 namespace test_type_deduction
5060 {
5061
5062 template < typename T1, typename T2 >
5063 struct is_same
5064 {
5065 static const bool value = false;
5066 };
5067
5068 template < typename T >
5069 struct is_same<T, T>
5070 {
5071 static const bool value = true;
5072 };
5073
5074 template < typename T1, typename T2 >
5075 auto
5076 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5077 {
5078 return a1 + a2;
5079 }
5080
5081 int
5082 test(const int c, volatile int v)
5083 {
5084 static_assert(is_same<int, decltype(0)>::value == true, "");
5085 static_assert(is_same<int, decltype(c)>::value == false, "");
5086 static_assert(is_same<int, decltype(v)>::value == false, "");
5087 auto ac = c;
5088 auto av = v;
5089 auto sumi = ac + av + 'x';
5090 auto sumf = ac + av + 1.0;
5091 static_assert(is_same<int, decltype(ac)>::value == true, "");
5092 static_assert(is_same<int, decltype(av)>::value == true, "");
5093 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5094 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5095 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5096 return (sumf > 0.0) ? sumi : add(c, v);
5097 }
5098
5099 }
5100
5101 namespace test_noexcept
5102 {
5103
5104 int f() { return 0; }
5105 int g() noexcept { return 0; }
5106
5107 static_assert(noexcept(f()) == false, "");
5108 static_assert(noexcept(g()) == true, "");
5109
5110 }
5111
5112 namespace test_constexpr
5113 {
5114
5115 template < typename CharT >
5116 unsigned long constexpr
5117 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5118 {
5119 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5120 }
5121
5122 template < typename CharT >
5123 unsigned long constexpr
5124 strlen_c(const CharT *const s) noexcept
5125 {
5126 return strlen_c_r(s, 0UL);
5127 }
5128
5129 static_assert(strlen_c("") == 0UL, "");
5130 static_assert(strlen_c("1") == 1UL, "");
5131 static_assert(strlen_c("example") == 7UL, "");
5132 static_assert(strlen_c("another\0example") == 7UL, "");
5133
5134 }
5135
5136 namespace test_rvalue_references
5137 {
5138
5139 template < int N >
5140 struct answer
5141 {
5142 static constexpr int value = N;
5143 };
5144
5145 answer<1> f(int&) { return answer<1>(); }
5146 answer<2> f(const int&) { return answer<2>(); }
5147 answer<3> f(int&&) { return answer<3>(); }
5148
5149 void
5150 test()
5151 {
5152 int i = 0;
5153 const int c = 0;
5154 static_assert(decltype(f(i))::value == 1, "");
5155 static_assert(decltype(f(c))::value == 2, "");
5156 static_assert(decltype(f(0))::value == 3, "");
5157 }
5158
5159 }
5160
5161 namespace test_uniform_initialization
5162 {
5163
5164 struct test
5165 {
5166 static const int zero {};
5167 static const int one {1};
5168 };
5169
5170 static_assert(test::zero == 0, "");
5171 static_assert(test::one == 1, "");
5172
5173 }
5174
5175 namespace test_lambdas
5176 {
5177
5178 void
5179 test1()
5180 {
5181 auto lambda1 = [](){};
5182 auto lambda2 = lambda1;
5183 lambda1();
5184 lambda2();
5185 }
5186
5187 int
5188 test2()
5189 {
5190 auto a = [](int i, int j){ return i + j; }(1, 2);
5191 auto b = []() -> int { return '0'; }();
5192 auto c = [=](){ return a + b; }();
5193 auto d = [&](){ return c; }();
5194 auto e = [a, &b](int x) mutable {
5195 const auto identity = [](int y){ return y; };
5196 for (auto i = 0; i < a; ++i)
5197 a += b--;
5198 return x + identity(a + b);
5199 }(0);
5200 return a + b + c + d + e;
5201 }
5202
5203 int
5204 test3()
5205 {
5206 const auto nullary = [](){ return 0; };
5207 const auto unary = [](int x){ return x; };
5208 using nullary_t = decltype(nullary);
5209 using unary_t = decltype(unary);
5210 const auto higher1st = [](nullary_t f){ return f(); };
5211 const auto higher2nd = [unary](nullary_t f1){
5212 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5213 };
5214 return higher1st(nullary) + higher2nd(nullary)(unary);
5215 }
5216
5217 }
5218
5219 namespace test_variadic_templates
5220 {
5221
5222 template <int...>
5223 struct sum;
5224
5225 template <int N0, int... N1toN>
5226 struct sum<N0, N1toN...>
5227 {
5228 static constexpr auto value = N0 + sum<N1toN...>::value;
5229 };
5230
5231 template <>
5232 struct sum<>
5233 {
5234 static constexpr auto value = 0;
5235 };
5236
5237 static_assert(sum<>::value == 0, "");
5238 static_assert(sum<1>::value == 1, "");
5239 static_assert(sum<23>::value == 23, "");
5240 static_assert(sum<1, 2>::value == 3, "");
5241 static_assert(sum<5, 5, 11>::value == 21, "");
5242 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5243
5244 }
5245
5246 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5247 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5248 // because of this.
5249 namespace test_template_alias_sfinae
5250 {
5251
5252 struct foo {};
5253
5254 template<typename T>
5255 using member = typename T::member_type;
5256
5257 template<typename T>
5258 void func(...) {}
5259
5260 template<typename T>
5261 void func(member<T>*) {}
5262
5263 void test();
5264
5265 void test() { func<foo>(0); }
5266
5267 }
5268
5269} // namespace cxx11
5270
5271#endif // __cplusplus >= 201103L
5272
5273
5274
5275_ACEOF
5276if ac_fn_cxx_try_compile "$LINENO"; then :
5277 eval $cachevar=yes
5278else
5279 eval $cachevar=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 CXX="$ac_save_CXX"
5283fi
5284eval ac_res=\$$cachevar
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5286$as_echo "$ac_res" >&6; }
5287 if eval test x\$$cachevar = xyes; then
5288 CXX_DIALECT="$switch"
5289 ac_success=yes
5290 break
5291 fi
5292 done
5293 fi
5294
5295 if test x$ac_success = xno; then
458412c3
TT
5296 for alternative in ${ax_cxx_compile_alternatives}; do
5297 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5298 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
0bcda685
PA
5300$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5301if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 ac_save_CXX="$CXX"
458412c3
TT
5305 CXX="$CXX $switch"
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0bcda685
PA
5307/* end confdefs.h. */
5308
5309
5310// If the compiler admits that it is not ready for C++11, why torture it?
5311// Hopefully, this will speed up the test.
5312
5313#ifndef __cplusplus
5314
5315#error "This is not a C++ compiler"
5316
5317#elif __cplusplus < 201103L
5318
5319#error "This is not a C++11 compiler"
5320
5321#else
5322
5323namespace cxx11
5324{
5325
5326 namespace test_static_assert
5327 {
5328
5329 template <typename T>
5330 struct check
5331 {
5332 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5333 };
5334
5335 }
5336
5337 namespace test_final_override
5338 {
5339
5340 struct Base
5341 {
5342 virtual void f() {}
5343 };
5344
5345 struct Derived : public Base
5346 {
5347 virtual void f() override {}
5348 };
5349
5350 }
5351
5352 namespace test_double_right_angle_brackets
5353 {
5354
5355 template < typename T >
5356 struct check {};
5357
5358 typedef check<void> single_type;
5359 typedef check<check<void>> double_type;
5360 typedef check<check<check<void>>> triple_type;
5361 typedef check<check<check<check<void>>>> quadruple_type;
5362
5363 }
5364
5365 namespace test_decltype
5366 {
5367
5368 int
5369 f()
5370 {
5371 int a = 1;
5372 decltype(a) b = 2;
5373 return a + b;
5374 }
5375
5376 }
5377
5378 namespace test_type_deduction
5379 {
5380
5381 template < typename T1, typename T2 >
5382 struct is_same
5383 {
5384 static const bool value = false;
5385 };
5386
5387 template < typename T >
5388 struct is_same<T, T>
5389 {
5390 static const bool value = true;
5391 };
5392
5393 template < typename T1, typename T2 >
5394 auto
5395 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5396 {
5397 return a1 + a2;
5398 }
5399
5400 int
5401 test(const int c, volatile int v)
5402 {
5403 static_assert(is_same<int, decltype(0)>::value == true, "");
5404 static_assert(is_same<int, decltype(c)>::value == false, "");
5405 static_assert(is_same<int, decltype(v)>::value == false, "");
5406 auto ac = c;
5407 auto av = v;
5408 auto sumi = ac + av + 'x';
5409 auto sumf = ac + av + 1.0;
5410 static_assert(is_same<int, decltype(ac)>::value == true, "");
5411 static_assert(is_same<int, decltype(av)>::value == true, "");
5412 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5413 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5414 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5415 return (sumf > 0.0) ? sumi : add(c, v);
5416 }
5417
5418 }
5419
5420 namespace test_noexcept
5421 {
5422
5423 int f() { return 0; }
5424 int g() noexcept { return 0; }
5425
5426 static_assert(noexcept(f()) == false, "");
5427 static_assert(noexcept(g()) == true, "");
5428
5429 }
5430
5431 namespace test_constexpr
5432 {
5433
5434 template < typename CharT >
5435 unsigned long constexpr
5436 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5437 {
5438 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5439 }
5440
5441 template < typename CharT >
5442 unsigned long constexpr
5443 strlen_c(const CharT *const s) noexcept
5444 {
5445 return strlen_c_r(s, 0UL);
5446 }
5447
5448 static_assert(strlen_c("") == 0UL, "");
5449 static_assert(strlen_c("1") == 1UL, "");
5450 static_assert(strlen_c("example") == 7UL, "");
5451 static_assert(strlen_c("another\0example") == 7UL, "");
5452
5453 }
5454
5455 namespace test_rvalue_references
5456 {
5457
5458 template < int N >
5459 struct answer
5460 {
5461 static constexpr int value = N;
5462 };
5463
5464 answer<1> f(int&) { return answer<1>(); }
5465 answer<2> f(const int&) { return answer<2>(); }
5466 answer<3> f(int&&) { return answer<3>(); }
5467
5468 void
5469 test()
5470 {
5471 int i = 0;
5472 const int c = 0;
5473 static_assert(decltype(f(i))::value == 1, "");
5474 static_assert(decltype(f(c))::value == 2, "");
5475 static_assert(decltype(f(0))::value == 3, "");
5476 }
5477
5478 }
5479
5480 namespace test_uniform_initialization
5481 {
5482
5483 struct test
5484 {
5485 static const int zero {};
5486 static const int one {1};
5487 };
5488
5489 static_assert(test::zero == 0, "");
5490 static_assert(test::one == 1, "");
5491
5492 }
5493
5494 namespace test_lambdas
5495 {
5496
5497 void
5498 test1()
5499 {
5500 auto lambda1 = [](){};
5501 auto lambda2 = lambda1;
5502 lambda1();
5503 lambda2();
5504 }
5505
5506 int
5507 test2()
5508 {
5509 auto a = [](int i, int j){ return i + j; }(1, 2);
5510 auto b = []() -> int { return '0'; }();
5511 auto c = [=](){ return a + b; }();
5512 auto d = [&](){ return c; }();
5513 auto e = [a, &b](int x) mutable {
5514 const auto identity = [](int y){ return y; };
5515 for (auto i = 0; i < a; ++i)
5516 a += b--;
5517 return x + identity(a + b);
5518 }(0);
5519 return a + b + c + d + e;
5520 }
5521
5522 int
5523 test3()
5524 {
5525 const auto nullary = [](){ return 0; };
5526 const auto unary = [](int x){ return x; };
5527 using nullary_t = decltype(nullary);
5528 using unary_t = decltype(unary);
5529 const auto higher1st = [](nullary_t f){ return f(); };
5530 const auto higher2nd = [unary](nullary_t f1){
5531 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5532 };
5533 return higher1st(nullary) + higher2nd(nullary)(unary);
5534 }
5535
5536 }
5537
5538 namespace test_variadic_templates
5539 {
5540
5541 template <int...>
5542 struct sum;
5543
5544 template <int N0, int... N1toN>
5545 struct sum<N0, N1toN...>
5546 {
5547 static constexpr auto value = N0 + sum<N1toN...>::value;
5548 };
5549
5550 template <>
5551 struct sum<>
5552 {
5553 static constexpr auto value = 0;
5554 };
5555
5556 static_assert(sum<>::value == 0, "");
5557 static_assert(sum<1>::value == 1, "");
5558 static_assert(sum<23>::value == 23, "");
5559 static_assert(sum<1, 2>::value == 3, "");
5560 static_assert(sum<5, 5, 11>::value == 21, "");
5561 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5562
5563 }
5564
5565 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5566 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5567 // because of this.
5568 namespace test_template_alias_sfinae
5569 {
5570
5571 struct foo {};
5572
5573 template<typename T>
5574 using member = typename T::member_type;
5575
5576 template<typename T>
5577 void func(...) {}
5578
5579 template<typename T>
5580 void func(member<T>*) {}
5581
5582 void test();
5583
5584 void test() { func<foo>(0); }
5585
5586 }
5587
5588} // namespace cxx11
5589
5590#endif // __cplusplus >= 201103L
5591
5592
5593
5594_ACEOF
5595if ac_fn_cxx_try_compile "$LINENO"; then :
5596 eval $cachevar=yes
5597else
5598 eval $cachevar=no
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
458412c3 5601 CXX="$ac_save_CXX"
0bcda685
PA
5602fi
5603eval ac_res=\$$cachevar
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5605$as_echo "$ac_res" >&6; }
458412c3
TT
5606 if eval test x\$$cachevar = xyes; then
5607 CXX_DIALECT="$switch"
5608 ac_success=yes
5609 break
5610 fi
5611 done
5612 if test x$ac_success = xyes; then
0bcda685
PA
5613 break
5614 fi
5615 done
5616 fi
5617 ac_ext=c
5618ac_cpp='$CPP $CPPFLAGS'
5619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621ac_compiler_gnu=$ac_cv_c_compiler_gnu
5622
5623 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5624 if test x$ac_success = xno; then
5625 as_fn_error "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5626 fi
5627 fi
5628 if test x$ac_success = xno; then
5629 HAVE_CXX11=0
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5631$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5632 else
5633 HAVE_CXX11=1
5634
5635$as_echo "#define HAVE_CXX11 1" >>confdefs.h
5636
5637 fi
5638
5639
5640
5641
c971b7fa
PA
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5643$as_echo_n "checking for ANSI C header files... " >&6; }
5644if test "${ac_cv_header_stdc+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5646else
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h. */
5649#include <stdlib.h>
5650#include <stdarg.h>
5651#include <string.h>
5652#include <float.h>
5653
5654int
5655main ()
5656{
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_header_stdc=yes
5664else
5665 ac_cv_header_stdc=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668
5669if test $ac_cv_header_stdc = yes; then
5670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h. */
5673#include <string.h>
5674
5675_ACEOF
5676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5677 $EGREP "memchr" >/dev/null 2>&1; then :
5678
68070c10 5679else
81ecdfbb
RW
5680 ac_cv_header_stdc=no
5681fi
5682rm -f conftest*
68070c10
PA
5683
5684fi
68070c10 5685
81ecdfbb
RW
5686if test $ac_cv_header_stdc = yes; then
5687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690#include <stdlib.h>
68070c10 5691
68070c10 5692_ACEOF
81ecdfbb
RW
5693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
5695
5696else
81ecdfbb 5697 ac_cv_header_stdc=no
68070c10 5698fi
81ecdfbb
RW
5699rm -f conftest*
5700
68070c10
PA
5701fi
5702
81ecdfbb
RW
5703if test $ac_cv_header_stdc = yes; then
5704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705 if test "$cross_compiling" = yes; then :
5706 :
43d5792c 5707else
81ecdfbb 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 5709/* end confdefs.h. */
81ecdfbb
RW
5710#include <ctype.h>
5711#include <stdlib.h>
5712#if ((' ' & 0x0FF) == 0x020)
5713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5715#else
5716# define ISLOWER(c) \
5717 (('a' <= (c) && (c) <= 'i') \
5718 || ('j' <= (c) && (c) <= 'r') \
5719 || ('s' <= (c) && (c) <= 'z'))
5720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5721#endif
5722
5723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
5724int
5725main ()
5726{
81ecdfbb
RW
5727 int i;
5728 for (i = 0; i < 256; i++)
5729 if (XOR (islower (i), ISLOWER (i))
5730 || toupper (i) != TOUPPER (i))
5731 return 2;
bec39cab
AC
5732 return 0;
5733}
5734_ACEOF
81ecdfbb 5735if ac_fn_c_try_run "$LINENO"; then :
bec39cab 5736
81ecdfbb
RW
5737else
5738 ac_cv_header_stdc=no
43d5792c 5739fi
81ecdfbb
RW
5740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5741 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 5742fi
e122f1f5 5743
68070c10 5744fi
81ecdfbb
RW
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5747$as_echo "$ac_cv_header_stdc" >&6; }
5748if test $ac_cv_header_stdc = yes; then
68070c10 5749
81ecdfbb 5750$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 5751
68070c10 5752fi
68070c10 5753
68070c10 5754
17ef446e 5755# Set the 'development' global.
270c9937 5756. $srcdir/../../bfd/development.sh
17ef446e
PA
5757
5758# Enable -lmcheck by default (it provides cheap-enough memory
5759# mangling), but turn it off for releases.
5760if $development; then
5761 libmcheck_default=yes
5762else
5763 libmcheck_default=no
5764fi
5765
5766 # Check whether --enable-libmcheck was given.
5767if test "${enable_libmcheck+set}" = set; then :
5768 enableval=$enable_libmcheck; case "${enableval}" in
5769 yes | y) ENABLE_LIBMCHECK="yes" ;;
5770 no | n) ENABLE_LIBMCHECK="no" ;;
5771 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5772 esac
5773fi
5774
5775
5776 if test -z "${ENABLE_LIBMCHECK}"; then
5777 ENABLE_LIBMCHECK=${libmcheck_default}
5778 fi
5779
5780 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5782$as_echo_n "checking for main in -lmcheck... " >&6; }
5783if test "${ac_cv_lib_mcheck_main+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785else
5786 ac_check_lib_save_LIBS=$LIBS
5787LIBS="-lmcheck $LIBS"
5788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h. */
5790
5791
5792int
5793main ()
5794{
5795return main ();
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800if ac_fn_c_try_link "$LINENO"; then :
5801 ac_cv_lib_mcheck_main=yes
5802else
5803 ac_cv_lib_mcheck_main=no
5804fi
5805rm -f core conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807LIBS=$ac_check_lib_save_LIBS
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5810$as_echo "$ac_cv_lib_mcheck_main" >&6; }
5811if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
5812 cat >>confdefs.h <<_ACEOF
5813#define HAVE_LIBMCHECK 1
5814_ACEOF
5815
5816 LIBS="-lmcheck $LIBS"
5817
5818fi
5819
5820 fi
5821
5822
6d580b63 5823if $development; then
b5884fa7 5824 srv_selftest_objs="common/selftest.o"
6d580b63
YQ
5825
5826$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5827
5828fi
5829
bd885420
YQ
5830 case ${build_alias} in
5831 "") build_noncanonical=${build} ;;
5832 *) build_noncanonical=${build_alias} ;;
5833esac
5834
5835 case ${host_alias} in
5836 "") host_noncanonical=${build_noncanonical} ;;
5837 *) host_noncanonical=${host_alias} ;;
5838esac
5839
5840 case ${target_alias} in
5841 "") target_noncanonical=${host_noncanonical} ;;
5842 *) target_noncanonical=${target_alias} ;;
5843esac
5844
5845
5846
5847
5848
5849
61c125b9
TT
5850# Dependency checking.
5851rm -rf .tst 2>/dev/null
5852mkdir .tst 2>/dev/null
5853if test -d .tst; then
5854 am__leading_dot=.
5855else
5856 am__leading_dot=_
5857fi
5858rmdir .tst 2>/dev/null
5859
5860DEPDIR="${am__leading_dot}deps"
5861
5862ac_config_commands="$ac_config_commands depdir"
5863
5864
60d6cfc9
YQ
5865
5866# Create sub-directories for objects and dependencies.
b5884fa7 5867CONFIG_SRC_SUBDIR="arch common"
60d6cfc9
YQ
5868
5869
5870ac_config_commands="$ac_config_commands gdbdepdir"
5871
5872
61c125b9
TT
5873depcc="$CC" am_compiler_list=
5874
5875am_depcomp=$ac_aux_dir/depcomp
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5877$as_echo_n "checking dependency style of $depcc... " >&6; }
5878if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880else
5881 if test -f "$am_depcomp"; then
5882 # We make a subdir and do the tests there. Otherwise we can end up
5883 # making bogus files that we don't know about and never remove. For
5884 # instance it was reported that on HP-UX the gcc test will end up
5885 # making a dummy file named `D' -- because `-MD' means `put the output
5886 # in D'.
5887 mkdir conftest.dir
5888 # Copy depcomp to subdir because otherwise we won't find it if we're
5889 # using a relative directory.
5890 cp "$am_depcomp" conftest.dir
5891 cd conftest.dir
5892 # We will build objects and dependencies in a subdirectory because
5893 # it helps to detect inapplicable dependency modes. For instance
5894 # both Tru64's cc and ICC support -MD to output dependencies as a
5895 # side effect of compilation, but ICC will put the dependencies in
5896 # the current directory while Tru64 will put them in the object
5897 # directory.
5898 mkdir sub
5899
5900 am_cv_CC_dependencies_compiler_type=none
5901 if test "$am_compiler_list" = ""; then
5902 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5903 fi
5904 for depmode in $am_compiler_list; do
5905 if test $depmode = none; then break; fi
5906
5907 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5908 # Setup a source with many dependencies, because some compilers
5909 # like to wrap large dependency lists on column 80 (with \), and
5910 # we should not choose a depcomp mode which is confused by this.
5911 #
5912 # We need to recreate these files for each test, as the compiler may
5913 # overwrite some of them when testing with obscure command lines.
5914 # This happens at least with the AIX C compiler.
5915 : > sub/conftest.c
5916 for i in 1 2 3 4 5 6; do
5917 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5918 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5919 # Solaris 8's {/usr,}/bin/sh.
5920 touch sub/conftst$i.h
5921 done
5922 echo "include sub/conftest.Po" > confmf
5923
5924 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5925 # mode. It turns out that the SunPro C++ compiler does not properly
5926 # handle `-M -o', and we need to detect this.
5927 depcmd="depmode=$depmode \
5928 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5930 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5931 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5932 if env $depcmd > conftest.err 2>&1 &&
5933 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5934 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5935 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5936 # icc doesn't choke on unknown options, it will just issue warnings
5937 # or remarks (even with -Werror). So we grep stderr for any message
5938 # that says an option was ignored or not supported.
5939 # When given -MP, icc 7.0 and 7.1 complain thusly:
5940 # icc: Command line warning: ignoring option '-M'; no argument required
5941 # The diagnosis changed in icc 8.0:
5942 # icc: Command line remark: option '-MP' not supported
5943 if (grep 'ignoring option' conftest.err ||
5944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5945 am_cv_CC_dependencies_compiler_type=$depmode
5946 $as_echo "$as_me:$LINENO: success" >&5
5947 break
5948 fi
5949 fi
5950 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5951 sed -e 's/^/| /' < conftest.err >&5
5952 done
5953
5954 cd ..
5955 rm -rf conftest.dir
5956else
5957 am_cv_CC_dependencies_compiler_type=none
5958fi
5959
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5963if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5964then as_fn_error "no usable dependency style found" "$LINENO" 5
5965else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5966
5967fi
5968
5969
648d586d
JB
5970gnulib_extra_configure_args=
5971# If large-file support is disabled, make sure gnulib does the same.
5972if test "$enable_largefile" = no; then
5973gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5974fi
5975
c971b7fa
PA
5976# Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5977# to find the the source subdir to be configured directly under
5978# gdbserver/. We need to build gnulib under some other directory not
5979# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5980# build it in the same directory, when building in the source dir.
5981
5982 in_src="../gnulib"
5983 in_build="build-gnulib-gdbserver"
648d586d 5984 in_extra_args="$gnulib_extra_configure_args"
c971b7fa
PA
5985
5986 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5987 # so they do not pile up.
5988 ac_sub_configure_args=
5989 ac_prev=
5990 eval "set x $ac_configure_args"
5991 shift
5992 for ac_arg
5993 do
5994 if test -n "$ac_prev"; then
5995 ac_prev=
5996 continue
5997 fi
5998 case $ac_arg in
5999 -cache-file | --cache-file | --cache-fil | --cache-fi \
6000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6001 ac_prev=cache_file ;;
6002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6004 | --c=*)
6005 ;;
6006 --config-cache | -C)
6007 ;;
6008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6009 ac_prev=srcdir ;;
6010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6011 ;;
6012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6013 ac_prev=prefix ;;
6014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6015 ;;
6016 --disable-option-checking)
6017 ;;
6018 *)
6019 case $ac_arg in
6020 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6021 esac
6022 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6023 esac
6024 done
6025
6026 # Always prepend --prefix to ensure using the same prefix
6027 # in subdir configurations.
6028 ac_arg="--prefix=$prefix"
6029 case $ac_arg in
6030 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6031 esac
6032 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6033
6034 # Pass --silent
6035 if test "$silent" = yes; then
6036 ac_sub_configure_args="--silent $ac_sub_configure_args"
6037 fi
6038
6039 # Always prepend --disable-option-checking to silence warnings, since
6040 # different subdirs can have different --enable and --with options.
6041 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6042
6043 ac_popdir=`pwd`
6044 ac_dir=$in_build
6045
6046 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6048 $as_echo "$ac_msg" >&6
6049 as_dir="$ac_dir"; as_fn_mkdir_p
6050
38ea300a
PA
6051 case $srcdir in
6052 [\\/]* | ?:[\\/]* )
6053 ac_srcdir=$srcdir/$in_src ;;
6054 *) # Relative name.
6055 ac_srcdir=../$srcdir/$in_src ;;
6056 esac
c971b7fa
PA
6057
6058 cd "$ac_dir"
6059
6060 ac_sub_configure=$ac_srcdir/configure
6061
6062 # Make the cache file name correct relative to the subdirectory.
6063 case $cache_file in
6064 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6065 *) # Relative name.
6066 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6067 esac
6068
648d586d
JB
6069 if test -n "$in_extra_args"; then
6070 # Add the extra args at the end.
6071 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6072 fi
6073
c971b7fa
PA
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6075$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6076 # The eval makes quoting arguments work.
6077 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6078 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6079 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6080
6081 cd "$ac_popdir"
6082
6083
0b04e523
TT
6084
6085 in_src="../../libiberty"
6086 in_build="build-libiberty-gdbserver"
648d586d 6087 in_extra_args=
0b04e523
TT
6088
6089 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6090 # so they do not pile up.
6091 ac_sub_configure_args=
6092 ac_prev=
6093 eval "set x $ac_configure_args"
6094 shift
6095 for ac_arg
6096 do
6097 if test -n "$ac_prev"; then
6098 ac_prev=
6099 continue
6100 fi
6101 case $ac_arg in
6102 -cache-file | --cache-file | --cache-fil | --cache-fi \
6103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6104 ac_prev=cache_file ;;
6105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6107 | --c=*)
6108 ;;
6109 --config-cache | -C)
6110 ;;
6111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6112 ac_prev=srcdir ;;
6113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6114 ;;
6115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6116 ac_prev=prefix ;;
6117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6118 ;;
6119 --disable-option-checking)
6120 ;;
6121 *)
6122 case $ac_arg in
6123 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6124 esac
6125 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6126 esac
6127 done
6128
6129 # Always prepend --prefix to ensure using the same prefix
6130 # in subdir configurations.
6131 ac_arg="--prefix=$prefix"
6132 case $ac_arg in
6133 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6134 esac
6135 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6136
6137 # Pass --silent
6138 if test "$silent" = yes; then
6139 ac_sub_configure_args="--silent $ac_sub_configure_args"
6140 fi
6141
6142 # Always prepend --disable-option-checking to silence warnings, since
6143 # different subdirs can have different --enable and --with options.
6144 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6145
6146 ac_popdir=`pwd`
6147 ac_dir=$in_build
6148
6149 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6151 $as_echo "$ac_msg" >&6
6152 as_dir="$ac_dir"; as_fn_mkdir_p
6153
6154 case $srcdir in
6155 [\\/]* | ?:[\\/]* )
6156 ac_srcdir=$srcdir/$in_src ;;
6157 *) # Relative name.
6158 ac_srcdir=../$srcdir/$in_src ;;
6159 esac
6160
6161 cd "$ac_dir"
6162
6163 ac_sub_configure=$ac_srcdir/configure
6164
6165 # Make the cache file name correct relative to the subdirectory.
6166 case $cache_file in
6167 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6168 *) # Relative name.
6169 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6170 esac
6171
648d586d
JB
6172 if test -n "$in_extra_args"; then
6173 # Add the extra args at the end.
6174 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6175 fi
6176
0b04e523
TT
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6178$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6179 # The eval makes quoting arguments work.
6180 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6181 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6182 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6183
6184 cd "$ac_popdir"
6185
6186
726e1356 6187for ac_header in termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
81ecdfbb
RW
6188do :
6189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6191eval as_val=\$$as_ac_Header
6192 if test "x$as_val" = x""yes; then :
68070c10 6193 cat >>confdefs.h <<_ACEOF
81ecdfbb 6194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
6195_ACEOF
6196
ec56be1b 6197fi
ec56be1b 6198
81ecdfbb
RW
6199done
6200
eb0edac8
GB
6201ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6202if test "x$ac_cv_type_pid_t" = x""yes; then :
6203
6204else
6205
6206cat >>confdefs.h <<_ACEOF
6207#define pid_t int
6208_ACEOF
6209
6210fi
6211
6212for ac_header in vfork.h
6213do :
6214 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6215if test "x$ac_cv_header_vfork_h" = x""yes; then :
6216 cat >>confdefs.h <<_ACEOF
6217#define HAVE_VFORK_H 1
6218_ACEOF
6219
6220fi
6221
6222done
6223
6224for ac_func in fork vfork
6225do :
6226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6227ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6228eval as_val=\$$as_ac_var
6229 if test "x$as_val" = x""yes; then :
6230 cat >>confdefs.h <<_ACEOF
6231#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6232_ACEOF
6233
6234fi
6235done
6236
6237if test "x$ac_cv_func_fork" = xyes; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6239$as_echo_n "checking for working fork... " >&6; }
6240if test "${ac_cv_func_fork_works+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242else
6243 if test "$cross_compiling" = yes; then :
6244 ac_cv_func_fork_works=cross
6245else
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h. */
6248$ac_includes_default
6249int
6250main ()
6251{
6252
6253 /* By Ruediger Kuhlmann. */
6254 return fork () < 0;
6255
6256 ;
6257 return 0;
6258}
6259_ACEOF
6260if ac_fn_c_try_run "$LINENO"; then :
6261 ac_cv_func_fork_works=yes
6262else
6263 ac_cv_func_fork_works=no
6264fi
6265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6266 conftest.$ac_objext conftest.beam conftest.$ac_ext
6267fi
6268
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6271$as_echo "$ac_cv_func_fork_works" >&6; }
6272
6273else
6274 ac_cv_func_fork_works=$ac_cv_func_fork
6275fi
6276if test "x$ac_cv_func_fork_works" = xcross; then
6277 case $host in
6278 *-*-amigaos* | *-*-msdosdjgpp*)
6279 # Override, as these systems have only a dummy fork() stub
6280 ac_cv_func_fork_works=no
6281 ;;
6282 *)
6283 ac_cv_func_fork_works=yes
6284 ;;
6285 esac
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6287$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6288fi
6289ac_cv_func_vfork_works=$ac_cv_func_vfork
6290if test "x$ac_cv_func_vfork" = xyes; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6292$as_echo_n "checking for working vfork... " >&6; }
6293if test "${ac_cv_func_vfork_works+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6295else
6296 if test "$cross_compiling" = yes; then :
6297 ac_cv_func_vfork_works=cross
6298else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h. */
6301/* Thanks to Paul Eggert for this test. */
6302$ac_includes_default
6303#include <sys/wait.h>
6304#ifdef HAVE_VFORK_H
6305# include <vfork.h>
6306#endif
6307/* On some sparc systems, changes by the child to local and incoming
6308 argument registers are propagated back to the parent. The compiler
6309 is told about this with #include <vfork.h>, but some compilers
6310 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6311 static variable whose address is put into a register that is
6312 clobbered by the vfork. */
6313static void
6314#ifdef __cplusplus
6315sparc_address_test (int arg)
6316# else
6317sparc_address_test (arg) int arg;
6318#endif
6319{
6320 static pid_t child;
6321 if (!child) {
6322 child = vfork ();
6323 if (child < 0) {
6324 perror ("vfork");
6325 _exit(2);
6326 }
6327 if (!child) {
6328 arg = getpid();
6329 write(-1, "", 0);
6330 _exit (arg);
6331 }
6332 }
6333}
6334
6335int
6336main ()
6337{
6338 pid_t parent = getpid ();
6339 pid_t child;
6340
6341 sparc_address_test (0);
6342
6343 child = vfork ();
6344
6345 if (child == 0) {
6346 /* Here is another test for sparc vfork register problems. This
6347 test uses lots of local variables, at least as many local
6348 variables as main has allocated so far including compiler
6349 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6350 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6351 reuse the register of parent for one of the local variables,
6352 since it will think that parent can't possibly be used any more
6353 in this routine. Assigning to the local variable will thus
6354 munge parent in the parent process. */
6355 pid_t
6356 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6357 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6358 /* Convince the compiler that p..p7 are live; otherwise, it might
6359 use the same hardware register for all 8 local variables. */
6360 if (p != p1 || p != p2 || p != p3 || p != p4
6361 || p != p5 || p != p6 || p != p7)
6362 _exit(1);
6363
6364 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6365 from child file descriptors. If the child closes a descriptor
6366 before it execs or exits, this munges the parent's descriptor
6367 as well. Test for this by closing stdout in the child. */
6368 _exit(close(fileno(stdout)) != 0);
6369 } else {
6370 int status;
6371 struct stat st;
6372
6373 while (wait(&status) != child)
6374 ;
6375 return (
6376 /* Was there some problem with vforking? */
6377 child < 0
6378
6379 /* Did the child fail? (This shouldn't happen.) */
6380 || status
6381
6382 /* Did the vfork/compiler bug occur? */
6383 || parent != getpid()
6384
6385 /* Did the file descriptor bug occur? */
6386 || fstat(fileno(stdout), &st) != 0
6387 );
6388 }
6389}
6390_ACEOF
6391if ac_fn_c_try_run "$LINENO"; then :
6392 ac_cv_func_vfork_works=yes
6393else
6394 ac_cv_func_vfork_works=no
6395fi
6396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6397 conftest.$ac_objext conftest.beam conftest.$ac_ext
6398fi
6399
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6402$as_echo "$ac_cv_func_vfork_works" >&6; }
6403
6404fi;
6405if test "x$ac_cv_func_fork_works" = xcross; then
6406 ac_cv_func_vfork_works=$ac_cv_func_vfork
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6408$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6409fi
6410
6411if test "x$ac_cv_func_vfork_works" = xyes; then
6412
6413$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6414
6415else
6416
6417$as_echo "#define vfork fork" >>confdefs.h
6418
6419fi
6420if test "x$ac_cv_func_fork_works" = xyes; then
6421
6422$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6423
6424fi
6425
4b8b5e72 6426for ac_func in getauxval pread pwrite pread64 setns
81ecdfbb
RW
6427do :
6428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6429ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6430eval as_val=\$$as_ac_var
6431 if test "x$as_val" = x""yes; then :
6432 cat >>confdefs.h <<_ACEOF
6433#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
6434_ACEOF
6435
81ecdfbb
RW
6436fi
6437done
ec56be1b 6438
e122f1f5 6439
3266f10b
TT
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6442$as_echo_n "checking for ANSI C header files... " >&6; }
6443if test "${ac_cv_header_stdc+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448#include <stdlib.h>
6449#include <stdarg.h>
6450#include <string.h>
6451#include <float.h>
6452
6453int
6454main ()
6455{
6456
6457 ;
6458 return 0;
6459}
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"; then :
6462 ac_cv_header_stdc=yes
6463else
6464 ac_cv_header_stdc=no
6465fi
6466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467
6468if test $ac_cv_header_stdc = yes; then
6469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h. */
6472#include <string.h>
6473
6474_ACEOF
6475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6476 $EGREP "memchr" >/dev/null 2>&1; then :
6477
6478else
6479 ac_cv_header_stdc=no
6480fi
6481rm -f conftest*
6482
6483fi
6484
6485if test $ac_cv_header_stdc = yes; then
6486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h. */
6489#include <stdlib.h>
6490
6491_ACEOF
6492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 $EGREP "free" >/dev/null 2>&1; then :
6494
6495else
6496 ac_cv_header_stdc=no
6497fi
6498rm -f conftest*
6499
6500fi
6501
6502if test $ac_cv_header_stdc = yes; then
6503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6504 if test "$cross_compiling" = yes; then :
6505 :
6506else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
6509#include <ctype.h>
6510#include <stdlib.h>
6511#if ((' ' & 0x0FF) == 0x020)
6512# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6513# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6514#else
6515# define ISLOWER(c) \
6516 (('a' <= (c) && (c) <= 'i') \
6517 || ('j' <= (c) && (c) <= 'r') \
6518 || ('s' <= (c) && (c) <= 'z'))
6519# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6520#endif
6521
6522#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6523int
6524main ()
6525{
6526 int i;
6527 for (i = 0; i < 256; i++)
6528 if (XOR (islower (i), ISLOWER (i))
6529 || toupper (i) != TOUPPER (i))
6530 return 2;
6531 return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_run "$LINENO"; then :
6535
6536else
6537 ac_cv_header_stdc=no
6538fi
6539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6540 conftest.$ac_objext conftest.beam conftest.$ac_ext
6541fi
6542
6543fi
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6546$as_echo "$ac_cv_header_stdc" >&6; }
6547if test $ac_cv_header_stdc = yes; then
6548
6549$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6550
3266f10b
TT
6551fi
6552
6553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6554# for constant arguments. Useless!
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6556$as_echo_n "checking for working alloca.h... " >&6; }
6557if test "${ac_cv_working_alloca_h+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559else
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h. */
6562#include <alloca.h>
6563int
6564main ()
6565{
6566char *p = (char *) alloca (2 * sizeof (int));
6567 if (p) return 0;
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_link "$LINENO"; then :
6573 ac_cv_working_alloca_h=yes
6574else
6575 ac_cv_working_alloca_h=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext \
6578 conftest$ac_exeext conftest.$ac_ext
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6581$as_echo "$ac_cv_working_alloca_h" >&6; }
6582if test $ac_cv_working_alloca_h = yes; then
6583
6584$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6585
6586fi
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6589$as_echo_n "checking for alloca... " >&6; }
6590if test "${ac_cv_func_alloca_works+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h. */
6595#ifdef __GNUC__
6596# define alloca __builtin_alloca
6597#else
6598# ifdef _MSC_VER
6599# include <malloc.h>
6600# define alloca _alloca
6601# else
6602# ifdef HAVE_ALLOCA_H
6603# include <alloca.h>
6604# else
6605# ifdef _AIX
6606 #pragma alloca
6607# else
6608# ifndef alloca /* predefined by HP cc +Olibcalls */
6609char *alloca ();
6610# endif
6611# endif
6612# endif
6613# endif
6614#endif
6615
6616int
6617main ()
6618{
6619char *p = (char *) alloca (1);
6620 if (p) return 0;
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_link "$LINENO"; then :
6626 ac_cv_func_alloca_works=yes
6627else
6628 ac_cv_func_alloca_works=no
6629fi
6630rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632fi
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6634$as_echo "$ac_cv_func_alloca_works" >&6; }
6635
6636if test $ac_cv_func_alloca_works = yes; then
6637
6638$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6639
6640else
6641 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6642# that cause trouble. Some versions do not even contain alloca or
6643# contain a buggy version. If you still want to use their alloca,
6644# use ar to extract alloca.o from them instead of compiling alloca.c.
6645
6646ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6647
6648$as_echo "#define C_ALLOCA 1" >>confdefs.h
6649
6650
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6652$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6653if test "${ac_cv_os_cray+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h. */
6658#if defined CRAY && ! defined CRAY2
6659webecray
6660#else
6661wenotbecray
6662#endif
6663
6664_ACEOF
6665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "webecray" >/dev/null 2>&1; then :
6667 ac_cv_os_cray=yes
6668else
6669 ac_cv_os_cray=no
6670fi
6671rm -f conftest*
6672
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6675$as_echo "$ac_cv_os_cray" >&6; }
6676if test $ac_cv_os_cray = yes; then
6677 for ac_func in _getb67 GETB67 getb67; do
6678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6680eval as_val=\$$as_ac_var
6681 if test "x$as_val" = x""yes; then :
6682
6683cat >>confdefs.h <<_ACEOF
6684#define CRAY_STACKSEG_END $ac_func
6685_ACEOF
6686
6687 break
6688fi
6689
6690 done
6691fi
6692
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6694$as_echo_n "checking stack direction for C alloca... " >&6; }
6695if test "${ac_cv_c_stack_direction+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697else
6698 if test "$cross_compiling" = yes; then :
6699 ac_cv_c_stack_direction=0
6700else
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703$ac_includes_default
6704int
6705find_stack_direction ()
6706{
6707 static char *addr = 0;
6708 auto char dummy;
6709 if (addr == 0)
6710 {
6711 addr = &dummy;
6712 return find_stack_direction ();
6713 }
6714 else
6715 return (&dummy > addr) ? 1 : -1;
6716}
6717
6718int
6719main ()
6720{
6721 return find_stack_direction () < 0;
6722}
6723_ACEOF
6724if ac_fn_c_try_run "$LINENO"; then :
6725 ac_cv_c_stack_direction=1
6726else
6727 ac_cv_c_stack_direction=-1
6728fi
6729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6730 conftest.$ac_objext conftest.beam conftest.$ac_ext
6731fi
6732
6733fi
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6735$as_echo "$ac_cv_c_stack_direction" >&6; }
6736cat >>confdefs.h <<_ACEOF
6737#define STACK_DIRECTION $ac_cv_c_stack_direction
6738_ACEOF
6739
6740
6741fi
6742
6743
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6746$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6747if test "${am_cv_langinfo_codeset+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6749else
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h. */
6752#include <langinfo.h>
6753int
6754main ()
6755{
6756char* cs = nl_langinfo(CODESET);
6757 ;
6758 return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_link "$LINENO"; then :
6762 am_cv_langinfo_codeset=yes
6763else
6764 am_cv_langinfo_codeset=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6768
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6771$as_echo "$am_cv_langinfo_codeset" >&6; }
6772 if test $am_cv_langinfo_codeset = yes; then
6773
6774$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6775
6776 fi
6777
6778
44122162 6779 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
3266f10b
TT
6780do :
6781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6782ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6783eval as_val=\$$as_ac_Header
6784 if test "x$as_val" = x""yes; then :
6785 cat >>confdefs.h <<_ACEOF
6786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787_ACEOF
6788
6789fi
6790
6791done
6792
6793
f348d89a 6794 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
3266f10b
TT
6795do :
6796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6797ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6798eval as_val=\$$as_ac_var
6799 if test "x$as_val" = x""yes; then :
6800 cat >>confdefs.h <<_ACEOF
6801#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6802_ACEOF
6803
6804fi
6805done
6806
6807
6808 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6809if test "x$ac_cv_have_decl_strerror" = x""yes; then :
6810 ac_have_decl=1
6811else
6812 ac_have_decl=0
6813fi
6814
6815cat >>confdefs.h <<_ACEOF
6816#define HAVE_DECL_STRERROR $ac_have_decl
6817_ACEOF
6818ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6819if test "x$ac_cv_have_decl_strstr" = x""yes; then :
6820 ac_have_decl=1
6821else
6822 ac_have_decl=0
6823fi
6824
6825cat >>confdefs.h <<_ACEOF
6826#define HAVE_DECL_STRSTR $ac_have_decl
6827_ACEOF
6828
6829
e9bcb658
GB
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6831$as_echo_n "checking for sigsetjmp... " >&6; }
6832if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h. */
6837
6838#include <setjmp.h>
6839
6840int
6841main ()
6842{
6843sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6844 ;
6845 return 0;
6846}
6847_ACEOF
6848if ac_fn_c_try_compile "$LINENO"; then :
6849 gdb_cv_func_sigsetjmp=yes
6850else
6851 gdb_cv_func_sigsetjmp=no
6852fi
6853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854fi
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6856$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6857if test $gdb_cv_func_sigsetjmp = yes; then
6858
6859$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6860
6861fi
6862
3266f10b 6863
eb7aa561
PA
6864# Check the return and argument types of ptrace.
6865
6866
6867for ac_header in sys/ptrace.h ptrace.h
6868do :
6869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6870ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6871eval as_val=\$$as_ac_Header
6872 if test "x$as_val" = x""yes; then :
6873 cat >>confdefs.h <<_ACEOF
6874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875_ACEOF
6876
6877fi
6878
6879done
6880
6881
6882gdb_ptrace_headers='
6883#include <sys/types.h>
6884#if HAVE_SYS_PTRACE_H
6885# include <sys/ptrace.h>
6886#endif
6887#if HAVE_UNISTD_H
6888# include <unistd.h>
6889#endif
6890'
6891# There is no point in checking if we don't have a prototype.
9b30624b 6892ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
eb7aa561
PA
6893"
6894if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
6895 ac_have_decl=1
6896else
6897 ac_have_decl=0
6898fi
6899
6900cat >>confdefs.h <<_ACEOF
6901#define HAVE_DECL_PTRACE $ac_have_decl
6902_ACEOF
6903if test $ac_have_decl = 1; then :
6904
6905else
6906
6907 : ${gdb_cv_func_ptrace_ret='int'}
6908 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6909
6910fi
6911
6912# Check return type. Varargs (used on GNU/Linux) conflict with the
6913# empty argument list, so check for that explicitly.
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6915$as_echo_n "checking return type of ptrace... " >&6; }
6916if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h. */
6921$gdb_ptrace_headers
6922int
6923main ()
6924{
6925extern long ptrace (enum __ptrace_request, ...);
6926 ;
6927 return 0;
6928}
6929_ACEOF
9b30624b 6930if ac_fn_c_try_compile "$LINENO"; then :
eb7aa561
PA
6931 gdb_cv_func_ptrace_ret='long'
6932else
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h. */
6935$gdb_ptrace_headers
6936int
6937main ()
6938{
6939extern int ptrace ();
6940 ;
6941 return 0;
6942}
6943_ACEOF
9b30624b 6944if ac_fn_c_try_compile "$LINENO"; then :
eb7aa561
PA
6945 gdb_cv_func_ptrace_ret='int'
6946else
6947 gdb_cv_func_ptrace_ret='long'
6948fi
6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6954$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6955
6956cat >>confdefs.h <<_ACEOF
6957#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6958_ACEOF
6959
6960# Check argument types.
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6962$as_echo_n "checking types of arguments for ptrace... " >&6; }
6963if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965else
6966
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h. */
6969$gdb_ptrace_headers
6970int
6971main ()
6972{
6973extern long ptrace (enum __ptrace_request, ...);
6974 ;
6975 return 0;
6976}
6977_ACEOF
9b30624b 6978if ac_fn_c_try_compile "$LINENO"; then :
54019719 6979 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
eb7aa561
PA
6980else
6981
6982for gdb_arg1 in 'int' 'long'; do
6983 for gdb_arg2 in 'pid_t' 'int' 'long'; do
6984 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6985 for gdb_arg4 in 'int' 'long' 'void *'; do
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h. */
6988$gdb_ptrace_headers
6989int
6990main ()
6991{
6992
6993extern $gdb_cv_func_ptrace_ret
6994 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6995
6996 ;
6997 return 0;
6998}
6999_ACEOF
9b30624b 7000if ac_fn_c_try_compile "$LINENO"; then :
eb7aa561
PA
7001 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7002 break 4;
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 for gdb_arg5 in 'int *' 'int' 'long'; do
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h. */
7008$gdb_ptrace_headers
7009int
7010main ()
7011{
7012
7013extern $gdb_cv_func_ptrace_ret
7014 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7015
7016 ;
7017 return 0;
7018}
7019_ACEOF
9b30624b 7020if ac_fn_c_try_compile "$LINENO"; then :
eb7aa561
PA
7021
7022gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7023 break 5;
7024fi
7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 done
7027 done
7028 done
7029 done
7030done
7031# Provide a safe default value.
7032: ${gdb_cv_func_ptrace_args='int,int,long,long'}
7033
7034fi
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7038$as_echo "$gdb_cv_func_ptrace_args" >&6; }
7039ac_save_IFS=$IFS; IFS=','
7040set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7041IFS=$ac_save_IFS
7042shift
7043
54019719
PA
7044cat >>confdefs.h <<_ACEOF
7045#define PTRACE_TYPE_ARG1 $1
7046_ACEOF
7047
7048
eb7aa561
PA
7049cat >>confdefs.h <<_ACEOF
7050#define PTRACE_TYPE_ARG3 $3
7051_ACEOF
7052
7053
7054cat >>confdefs.h <<_ACEOF
7055#define PTRACE_TYPE_ARG4 $4
7056_ACEOF
7057
7058if test -n "$5"; then
7059
7060cat >>confdefs.h <<_ACEOF
7061#define PTRACE_TYPE_ARG5 $5
7062_ACEOF
7063
7064fi
7065
7066
0fb4aa4b
PA
7067# Check for UST
7068ustlibs=""
7069ustinc=""
7070
7071
7072# Check whether --with-ust was given.
7073if test "${with_ust+set}" = set; then :
7074 withval=$with_ust;
7075fi
7076
7077
7078# Check whether --with-ust_include was given.
7079if test "${with_ust_include+set}" = set; then :
7080 withval=$with_ust_include;
7081fi
7082
7083
7084# Check whether --with-ust_lib was given.
7085if test "${with_ust_lib+set}" = set; then :
7086 withval=$with_ust_lib;
7087fi
7088
7089
7090case $with_ust in
7091 no)
7092 ustlibs=
7093 ustinc=
7094 ;;
7095 "" | yes)
7096 ustlibs=" -lust "
7097 ustinc=""
7098 ;;
7099 *)
7100 ustlibs="-L$with_ust/lib -lust"
7101 ustinc="-I$with_ust/include "
7102 ;;
7103esac
7104if test "x$with_ust_include" != x; then
7105 ustinc="-I$with_ust_include "
7106fi
7107if test "x$with_ust_lib" != x; then
7108 ustlibs="-L$with_ust_lib -lust"
7109fi
7110
7111if test "x$with_ust" != "xno"; then
7112 saved_CFLAGS="$CFLAGS"
7113 CFLAGS="$CFLAGS $ustinc"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7115$as_echo_n "checking for ust... " >&6; }
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h. */
7118
7119#define CONFIG_UST_GDB_INTEGRATION
7120#include <ust/ust.h>
7121
7122int
7123main ()
7124{
7125
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"; then :
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7132$as_echo "yes" >&6; };
7133$as_echo "#define HAVE_UST 1" >>confdefs.h
7134
7135else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }; ustlibs= ; ustinc=
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 CFLAGS="$saved_CFLAGS"
7141fi
7142
7143# Flags needed for UST
7144
7145
7146
8f13a3ce 7147
d4596a3d
PA
7148# Check whether --enable-werror was given.
7149if test "${enable_werror+set}" = set; then :
7150 enableval=$enable_werror; case "${enableval}" in
7151 yes | y) ERROR_ON_WARNING="yes" ;;
7152 no | n) ERROR_ON_WARNING="no" ;;
7153 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7154 esac
7155fi
7156
7157
9a084706 7158# Enable -Werror by default when using gcc. Turn it off for releases.
8f13a3ce 7159if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
d4596a3d
PA
7160 ERROR_ON_WARNING=yes
7161fi
7162
7163WERROR_CFLAGS=""
7164if test "${ERROR_ON_WARNING}" = yes ; then
7165 WERROR_CFLAGS="-Werror"
7166fi
7167
cf6de44d 7168# The options we'll try to enable.
aac331e4 7169build_warnings="-Wall -Wpointer-arith \
8f13a3ce
MF
7170-Wno-unused -Wunused-value -Wunused-function \
7171-Wno-switch -Wno-char-subscripts \
cf6de44d 7172-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
8465943a 7173-Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
458412c3
TT
7174-Wno-mismatched-tags \
7175-Wno-error=deprecated-register"
8f13a3ce 7176
8f13a3ce 7177case "${host}" in
5bfda255
YQ
7178 *-*-mingw32*)
7179 # Enable -Wno-format by default when using gcc on mingw since many
7180 # GCC versions complain about %I64.
7181 build_warnings="$build_warnings -Wno-format" ;;
7182 *-*-solaris*)
7183 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7184 # doesn't understand.
7185 build_warnings="$build_warnings -Wno-unknown-pragmas"
7186 # Solaris 11 <unistd.h> marks vfork deprecated.
7187 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
8f13a3ce
MF
7188 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
7189esac
7190
7191# Check whether --enable-build-warnings was given.
7192if test "${enable_build_warnings+set}" = set; then :
7193 enableval=$enable_build_warnings; case "${enableval}" in
7194 yes) ;;
7195 no) build_warnings="-w";;
7196 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7197 build_warnings="${build_warnings} ${t}";;
7198 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7199 build_warnings="${t} ${build_warnings}";;
7200 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7201esac
7202if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7203 echo "Setting compiler warning flags = $build_warnings" 6>&1
7204fi
7205fi
7206# Check whether --enable-gdb-build-warnings was given.
7207if test "${enable_gdb_build_warnings+set}" = set; then :
7208 enableval=$enable_gdb_build_warnings; case "${enableval}" in
7209 yes) ;;
7210 no) build_warnings="-w";;
7211 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7212 build_warnings="${build_warnings} ${t}";;
7213 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7214 build_warnings="${t} ${build_warnings}";;
7215 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7216esac
7217if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7218 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7219fi
3bc3d82a
PA
7220fi
7221
7222# The set of warnings supported by a C++ compiler is not the same as
7223# of the C compiler.
cf6de44d 7224ac_ext=cpp
3bc3d82a
PA
7225ac_cpp='$CXXCPP $CPPFLAGS'
7226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7229
3bc3d82a 7230
d4596a3d 7231WARN_CFLAGS=""
8f13a3ce 7232if test "x${build_warnings}" != x -a "x$GCC" = xyes
d4596a3d
PA
7233then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7235$as_echo_n "checking compiler warning flags... " >&6; }
7236 # Separate out the -Werror flag as some files just cannot be
7237 # compiled with it enabled.
7238 for w in ${build_warnings}; do
7544db95
PA
7239 # GCC does not complain about -Wno-unknown-warning. Invert
7240 # and test -Wunknown-warning instead.
7241 case $w in
7242 -Wno-*)
7243 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
7244 *)
7245 wtest=$w ;;
7246 esac
7247
d4596a3d
PA
7248 case $w in
7249 -Werr*) WERROR_CFLAGS=-Werror ;;
3bc3d82a
PA
7250 *)
7251 # Check whether GCC accepts it.
d4596a3d 7252 saved_CFLAGS="$CFLAGS"
3e019bdc 7253 CFLAGS="$CFLAGS -Werror $wtest"
3bc3d82a 7254 saved_CXXFLAGS="$CXXFLAGS"
3e019bdc 7255 CXXFLAGS="$CXXFLAGS -Werror $wtest"
54019719 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d4596a3d
PA
7257/* end confdefs.h. */
7258
7259int
7260main ()
7261{
7262
7263 ;
7264 return 0;
7265}
7266_ACEOF
3bc3d82a 7267if ac_fn_cxx_try_compile "$LINENO"; then :
d4596a3d
PA
7268 WARN_CFLAGS="${WARN_CFLAGS} $w"
7269fi
7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 CFLAGS="$saved_CFLAGS"
3bc3d82a 7272 CXXFLAGS="$saved_CXXFLAGS"
d4596a3d
PA
7273 esac
7274 done
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7276$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7277fi
7278
7279
7280
cf6de44d 7281ac_ext=c
3bc3d82a
PA
7282ac_cpp='$CPP $CPPFLAGS'
7283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286
3bc3d82a 7287
8f13a3ce
MF
7288case " $WARN_CFLAGS " in
7289*" -Wmissing-prototypes "*)
7290 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
7291 ;;
7292esac
7293
10e86dd7
DE
7294old_LIBS="$LIBS"
7295LIBS="$LIBS -ldl"
7296for ac_func in dladdr
7297do :
7298 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
7299if test "x$ac_cv_func_dladdr" = x""yes; then :
7300 cat >>confdefs.h <<_ACEOF
7301#define HAVE_DLADDR 1
7302_ACEOF
7303
7304fi
7305done
7306
7307LIBS="$old_LIBS"
7308
07697489
PA
7309
7310 # Check for presence and size of long long.
7311 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7312if test "x$ac_cv_type_long_long" = x""yes; then :
7313
7314cat >>confdefs.h <<_ACEOF
7315#define HAVE_LONG_LONG 1
7316_ACEOF
7317
7318# The cast to long int works around a bug in the HP C Compiler
7319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7321# This bug is HP SR number 8606223364.
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7323$as_echo_n "checking size of long long... " >&6; }
7324if test "${ac_cv_sizeof_long_long+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7328
7329else
7330 if test "$ac_cv_type_long_long" = yes; then
7331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7333{ as_fn_set_status 77
7334as_fn_error "cannot compute sizeof (long long)
7335See \`config.log' for more details." "$LINENO" 5; }; }
7336 else
7337 ac_cv_sizeof_long_long=0
7338 fi
7339fi
7340
7341fi
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7343$as_echo "$ac_cv_sizeof_long_long" >&6; }
7344
7345
7346
7347cat >>confdefs.h <<_ACEOF
7348#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7349_ACEOF
7350
7351
7352fi
7353
7354
7355 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
7356if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
7357 ac_have_decl=1
7358else
7359 ac_have_decl=0
7360fi
7361
7362cat >>confdefs.h <<_ACEOF
7363#define HAVE_DECL_BASENAME $ac_have_decl
7364_ACEOF
7365ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7366if test "x$ac_cv_have_decl_ffs" = x""yes; then :
7367 ac_have_decl=1
7368else
7369 ac_have_decl=0
7370fi
7371
7372cat >>confdefs.h <<_ACEOF
7373#define HAVE_DECL_FFS $ac_have_decl
7374_ACEOF
7375ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7376if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
7377 ac_have_decl=1
7378else
7379 ac_have_decl=0
7380fi
7381
7382cat >>confdefs.h <<_ACEOF
7383#define HAVE_DECL_ASPRINTF $ac_have_decl
7384_ACEOF
7385ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7386if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7387 ac_have_decl=1
7388else
7389 ac_have_decl=0
7390fi
7391
7392cat >>confdefs.h <<_ACEOF
7393#define HAVE_DECL_VASPRINTF $ac_have_decl
7394_ACEOF
7395ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7396if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7397 ac_have_decl=1
7398else
7399 ac_have_decl=0
7400fi
7401
7402cat >>confdefs.h <<_ACEOF
7403#define HAVE_DECL_SNPRINTF $ac_have_decl
7404_ACEOF
7405ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7406if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7407 ac_have_decl=1
7408else
7409 ac_have_decl=0
7410fi
7411
7412cat >>confdefs.h <<_ACEOF
7413#define HAVE_DECL_VSNPRINTF $ac_have_decl
7414_ACEOF
7415
7416 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7417if test "x$ac_cv_have_decl_strtol" = x""yes; then :
7418 ac_have_decl=1
7419else
7420 ac_have_decl=0
7421fi
7422
7423cat >>confdefs.h <<_ACEOF
7424#define HAVE_DECL_STRTOL $ac_have_decl
7425_ACEOF
7426ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7427if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
7428 ac_have_decl=1
7429else
7430 ac_have_decl=0
7431fi
7432
7433cat >>confdefs.h <<_ACEOF
7434#define HAVE_DECL_STRTOUL $ac_have_decl
7435_ACEOF
7436ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7437if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
7438 ac_have_decl=1
7439else
7440 ac_have_decl=0
7441fi
7442
7443cat >>confdefs.h <<_ACEOF
7444#define HAVE_DECL_STRTOLL $ac_have_decl
7445_ACEOF
7446ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7447if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
7448 ac_have_decl=1
7449else
7450 ac_have_decl=0
7451fi
7452
7453cat >>confdefs.h <<_ACEOF
7454#define HAVE_DECL_STRTOULL $ac_have_decl
7455_ACEOF
7456
7457 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7458if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7459 ac_have_decl=1
7460else
7461 ac_have_decl=0
7462fi
7463
7464cat >>confdefs.h <<_ACEOF
7465#define HAVE_DECL_STRVERSCMP $ac_have_decl
7466_ACEOF
7467
7468
7469
81ecdfbb
RW
7470ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
7471if test "x$ac_cv_have_decl_strerror" = x""yes; then :
7472 ac_have_decl=1
7473else
7474 ac_have_decl=0
7475fi
f450004a 7476
81ecdfbb
RW
7477cat >>confdefs.h <<_ACEOF
7478#define HAVE_DECL_STRERROR $ac_have_decl
7479_ACEOF
7480ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
7481if test "x$ac_cv_have_decl_perror" = x""yes; then :
7482 ac_have_decl=1
7483else
7484 ac_have_decl=0
f450004a 7485fi
81ecdfbb
RW
7486
7487cat >>confdefs.h <<_ACEOF
7488#define HAVE_DECL_PERROR $ac_have_decl
7489_ACEOF
bb0116a4
JB
7490ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7491if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7492 ac_have_decl=1
7493else
7494 ac_have_decl=0
7495fi
7496
7497cat >>confdefs.h <<_ACEOF
7498#define HAVE_DECL_VASPRINTF $ac_have_decl
7499_ACEOF
7500ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7501if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7502 ac_have_decl=1
7503else
7504 ac_have_decl=0
7505fi
7506
7507cat >>confdefs.h <<_ACEOF
7508#define HAVE_DECL_VSNPRINTF $ac_have_decl
7509_ACEOF
81ecdfbb
RW
7510
7511
791c0056
GB
7512ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7513if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
7514
7515cat >>confdefs.h <<_ACEOF
7516#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7517_ACEOF
7518
7519
7520fi
7521ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7522if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
7523
7524cat >>confdefs.h <<_ACEOF
7525#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7526_ACEOF
7527
7528
7529fi
7530
7531
3e019bdc
SM
7532# See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7533# Older amd64 Linux's don't have the fs_base and gs_base members of
7534# `struct user_regs_struct'.
f517c180
EA
7535ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
7536#include <sys/user.h>
239b6d10
WT
7537"
7538if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
7539
7540cat >>confdefs.h <<_ACEOF
7541#define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7542_ACEOF
7543
7544
7545fi
f517c180
EA
7546ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
7547#include <sys/user.h>
239b6d10
WT
7548"
7549if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
7550
7551cat >>confdefs.h <<_ACEOF
7552#define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7553_ACEOF
7554
7555
7556fi
7557
7558
7559
81ecdfbb
RW
7560ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7561#include <sys/socket.h>
7562
7563"
7564if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 7565
ccbd4912 7566cat >>confdefs.h <<_ACEOF
f450004a
DJ
7567#define HAVE_SOCKLEN_T 1
7568_ACEOF
7569
f450004a 7570
ccbd4912 7571fi
f450004a 7572
fb1e4ffc 7573
64da5dd5
JB
7574case "${target}" in
7575 *-android*)
7576 # Starting with NDK version 9, <elf.h> actually includes definitions
7577 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7578 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7579 # leading to conflicts with the defintions from <linux/elf.h>.
7580 # This makes it impossible for us to include both <elf.h> and
7581 # <linux/elf.h>, which means that, in practice, we do not have
7582 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7583 # Therefore, do not try to auto-detect availability, as it would
7584 # get it wrong on this platform.
7585 ;;
7586 *)
7587 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
8365dcf5
TJB
7588
7589"
7590if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
7591
7592cat >>confdefs.h <<_ACEOF
7593#define HAVE_ELF32_AUXV_T 1
7594_ACEOF
7595
7596
7597fi
7598ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
7599
7600"
7601if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
7602
7603cat >>confdefs.h <<_ACEOF
7604#define HAVE_ELF64_AUXV_T 1
7605_ACEOF
7606
7607
7608fi
7609
64da5dd5 7610esac
8365dcf5 7611
c16158bc
JM
7612
7613
81ecdfbb
RW
7614# Check whether --with-pkgversion was given.
7615if test "${with_pkgversion+set}" = set; then :
7616 withval=$with_pkgversion; case "$withval" in
7617 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
7618 no) PKGVERSION= ;;
7619 *) PKGVERSION="($withval) " ;;
7620 esac
7621else
7622 PKGVERSION="(GDB) "
7623
81ecdfbb
RW
7624fi
7625
c16158bc
JM
7626
7627
7628
7629
81ecdfbb
RW
7630# Check whether --with-bugurl was given.
7631if test "${with_bugurl+set}" = set; then :
7632 withval=$with_bugurl; case "$withval" in
7633 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
7634 no) BUGURL=
7635 ;;
7636 *) BUGURL="$withval"
7637 ;;
7638 esac
7639else
7640 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7641
81ecdfbb
RW
7642fi
7643
c16158bc
JM
7644 case ${BUGURL} in
7645 "")
7646 REPORT_BUGS_TO=
7647 REPORT_BUGS_TEXI=
7648 ;;
7649 *)
7650 REPORT_BUGS_TO="<$BUGURL>"
7651 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7652 ;;
7653 esac;
7654
7655
7656
7657
7658cat >>confdefs.h <<_ACEOF
7659#define PKGVERSION "$PKGVERSION"
7660_ACEOF
7661
7662
7663cat >>confdefs.h <<_ACEOF
7664#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7665_ACEOF
7666
7667
8838b45e
NS
7668# Check for various supplementary target information (beyond the
7669# triplet) which might affect the choices in configure.srv.
7670case "${target}" in
7671 i[34567]86-*-linux*)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
7673$as_echo_n "checking if building for x86-64... " >&6; }
7674if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676else
7677 save_CPPFLAGS="$CPPFLAGS"
7678 CPPFLAGS="$CPPFLAGS $CFLAGS"
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h. */
7681
7682#if __x86_64__
7683got it
7684#endif
7685
7686_ACEOF
7687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688 $EGREP "got it" >/dev/null 2>&1; then :
7689 gdb_cv_i386_is_x86_64=yes
7690else
7691 gdb_cv_i386_is_x86_64=no
7692fi
7693rm -f conftest*
7694
7695 CPPFLAGS="$save_CPPFLAGS"
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
7698$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7699 ;;
201506da
PA
7700
7701 x86_64-*-linux*)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x32" >&5
7703$as_echo_n "checking if building for x32... " >&6; }
7704if test "${gdb_cv_x86_is_x32+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7706else
7707 save_CPPFLAGS="$CPPFLAGS"
7708 CPPFLAGS="$CPPFLAGS $CFLAGS"
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711
7712#if __x86_64__ && __ILP32__
7713got it
7714#endif
7715
7716_ACEOF
7717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718 $EGREP "got it" >/dev/null 2>&1; then :
7719 gdb_cv_x86_is_x32=yes
7720else
7721 gdb_cv_x86_is_x32=no
7722fi
7723rm -f conftest*
7724
7725 CPPFLAGS="$save_CPPFLAGS"
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_x86_is_x32" >&5
7728$as_echo "$gdb_cv_x86_is_x32" >&6; }
7729 ;;
7730
9ac544ce
MK
7731 m68k-*-*)
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
7733$as_echo_n "checking if building for Coldfire... " >&6; }
7734if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736else
7737 save_CPPFLAGS="$CPPFLAGS"
7738 CPPFLAGS="$CPPFLAGS $CFLAGS"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740/* end confdefs.h. */
7741
7742#ifdef __mcoldfire__
7743got it
7744#endif
7745
7746_ACEOF
7747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 $EGREP "got it" >/dev/null 2>&1; then :
7749 gdb_cv_m68k_is_coldfire=yes
7750else
7751 gdb_cv_m68k_is_coldfire=no
7752fi
7753rm -f conftest*
7754
7755 CPPFLAGS="$save_CPPFLAGS"
7756fi
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
7758$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7759 ;;
8838b45e
NS
7760esac
7761
7ea81414 7762. ${srcdir}/configure.srv
d6e9fb05 7763
fb23d554
SDJ
7764# Add in the common host objects.
7765. ${srcdir}/../common/common.host
7766srv_host_obs="$common_host_obs"
7767
68070c10
PA
7768if test "${srv_mingwce}" = "yes"; then
7769 LIBS="$LIBS -lws2"
7770elif test "${srv_mingw}" = "yes"; then
12ea4b69 7771 LIBS="$LIBS -lws2_32"
ac8c974e
AR
7772elif test "${srv_qnx}" = "yes"; then
7773 LIBS="$LIBS -lsocket"
8ed54b31
JB
7774elif test "${srv_lynxos}" = "yes"; then
7775 LIBS="$LIBS -lnetinet"
68070c10
PA
7776fi
7777
7778if test "${srv_mingw}" = "yes"; then
b80864fb 7779
81ecdfbb 7780$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
7781
7782fi
7783
58caa3dc 7784if test "${srv_linux_usrregs}" = "yes"; then
f450004a 7785
81ecdfbb 7786$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
7787
7788fi
7789
7790if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 7791
81ecdfbb 7792$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
7793
7794
81ecdfbb
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7796$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7797 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
bec39cab 7799else
81ecdfbb 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7801/* end confdefs.h. */
58caa3dc 7802#include <sys/ptrace.h>
bec39cab
AC
7803int
7804main ()
7805{
58caa3dc 7806PTRACE_GETREGS;
bec39cab
AC
7807 ;
7808 return 0;
7809}
7810_ACEOF
81ecdfbb 7811if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
7812 gdbsrv_cv_have_ptrace_getregs=yes
7813else
81ecdfbb 7814 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 7815fi
81ecdfbb 7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
7817fi
7818
81ecdfbb
RW
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7820$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 7821 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 7822
81ecdfbb 7823$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
7824
7825 fi
7826
81ecdfbb
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7828$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7829 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
58caa3dc 7831else
81ecdfbb 7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7833/* end confdefs.h. */
58caa3dc 7834#include <sys/ptrace.h>
bec39cab
AC
7835int
7836main ()
7837{
58caa3dc 7838PTRACE_GETFPXREGS;
bec39cab
AC
7839 ;
7840 return 0;
7841}
7842_ACEOF
81ecdfbb 7843if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
7844 gdbsrv_cv_have_ptrace_getfpxregs=yes
7845else
81ecdfbb 7846 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 7847fi
81ecdfbb 7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
7849fi
7850
81ecdfbb
RW
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7852$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 7853 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 7854
81ecdfbb 7855$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
7856
7857 fi
7858fi
7859
9accd112
MM
7860if test "${srv_linux_btrace}" = "yes"; then
7861
7862$as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7863
7864fi
7865
0d62e5e8 7866if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7868$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7869 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
0d62e5e8 7871else
81ecdfbb 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7873/* end confdefs.h. */
0d62e5e8
DJ
7874
7875#define _SYSCALL32
8e642873
PM
7876/* Needed for new procfs interface on sparc-solaris. */
7877#define _STRUCTURED_PROC 1
0d62e5e8 7878#include <sys/procfs.h>
bec39cab
AC
7879int
7880main ()
7881{
0d62e5e8 7882lwpid_t avar
bec39cab
AC
7883 ;
7884 return 0;
7885}
7886_ACEOF
81ecdfbb 7887if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7888 bfd_cv_have_sys_procfs_type_lwpid_t=yes
7889else
81ecdfbb 7890 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 7891
0d62e5e8 7892fi
81ecdfbb 7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7894fi
7895
7896 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 7897
81ecdfbb 7898$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
7899
7900 fi
81ecdfbb
RW
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7902$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 7903
81ecdfbb
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7905$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7906 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
0d62e5e8 7908else
81ecdfbb 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7910/* end confdefs.h. */
0d62e5e8
DJ
7911
7912#define _SYSCALL32
8e642873
PM
7913/* Needed for new procfs interface on sparc-solaris. */
7914#define _STRUCTURED_PROC 1
0d62e5e8 7915#include <sys/procfs.h>
bec39cab
AC
7916int
7917main ()
7918{
0d62e5e8 7919psaddr_t avar
bec39cab
AC
7920 ;
7921 return 0;
7922}
7923_ACEOF
81ecdfbb 7924if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7925 bfd_cv_have_sys_procfs_type_psaddr_t=yes
7926else
81ecdfbb 7927 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 7928
0d62e5e8 7929fi
81ecdfbb 7930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7931fi
7932
7933 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 7934
81ecdfbb 7935$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
7936
7937 fi
81ecdfbb
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7939$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 7940
81ecdfbb
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7942$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7943 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
0d62e5e8 7945else
81ecdfbb 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7947/* end confdefs.h. */
0d62e5e8
DJ
7948
7949#define _SYSCALL32
8e642873
PM
7950/* Needed for new procfs interface on sparc-solaris. */
7951#define _STRUCTURED_PROC 1
0d62e5e8 7952#include <sys/procfs.h>
bec39cab
AC
7953int
7954main ()
7955{
0d62e5e8 7956prgregset_t avar
bec39cab
AC
7957 ;
7958 return 0;
7959}
7960_ACEOF
81ecdfbb 7961if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7962 bfd_cv_have_sys_procfs_type_prgregset_t=yes
7963else
81ecdfbb 7964 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 7965
0d62e5e8 7966fi
81ecdfbb 7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7968fi
7969
7970 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 7971
81ecdfbb 7972$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
7973
7974 fi
81ecdfbb
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7976$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 7977
1041a03c
JB
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7979$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7980 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h. */
7985
7986#define _SYSCALL32
7987/* Needed for new procfs interface on sparc-solaris. */
7988#define _STRUCTURED_PROC 1
7989#include <sys/procfs.h>
7990int
7991main ()
7992{
7993prfpregset_t avar
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998if ac_fn_c_try_compile "$LINENO"; then :
7999 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8000else
8001 bfd_cv_have_sys_procfs_type_prfpregset_t=no
8002
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi
8006
8007 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8008
8009$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8010
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8013$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8014
81ecdfbb
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8016$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8017 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
0d62e5e8 8019else
81ecdfbb 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8021/* end confdefs.h. */
0d62e5e8
DJ
8022
8023#define _SYSCALL32
8e642873
PM
8024/* Needed for new procfs interface on sparc-solaris. */
8025#define _STRUCTURED_PROC 1
0d62e5e8 8026#include <sys/procfs.h>
bec39cab
AC
8027int
8028main ()
8029{
0d62e5e8 8030elf_fpregset_t avar
bec39cab
AC
8031 ;
8032 return 0;
8033}
8034_ACEOF
81ecdfbb 8035if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
8036 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
8037else
81ecdfbb 8038 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 8039
0d62e5e8 8040fi
81ecdfbb 8041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
8042fi
8043
8044 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 8045
81ecdfbb 8046$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
8047
8048 fi
81ecdfbb
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8050$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
8051
8052fi
8053
18f5fd81
TJB
8054if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8056$as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8057 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h. */
8062
8063#include <thread_db.h>
8064int
8065main ()
8066{
8067lwpid_t avar
8068 ;
8069 return 0;
8070}
8071_ACEOF
8072if ac_fn_c_try_compile "$LINENO"; then :
8073 gdbserver_cv_have_thread_db_type_lwpid_t=yes
8074else
8075 gdbserver_cv_have_thread_db_type_lwpid_t=no
8076
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079fi
8080
8081 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8082
8083$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8084
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8087$as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8088
8089fi
8090
8091if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8093$as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8094 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096else
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098/* end confdefs.h. */
8099
8100#include <thread_db.h>
8101int
8102main ()
8103{
8104psaddr_t avar
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_compile "$LINENO"; then :
8110 gdbserver_cv_have_thread_db_type_psaddr_t=yes
8111else
8112 gdbserver_cv_have_thread_db_type_psaddr_t=no
8113
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116fi
8117
8118 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8119
8120$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8124$as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8125
8126fi
8127
193f13e6
MK
8128old_LIBS="$LIBS"
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8130$as_echo_n "checking for dlopen in -ldl... " >&6; }
8131if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133else
8134 ac_check_lib_save_LIBS=$LIBS
8135LIBS="-ldl $LIBS"
8136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h. */
8138
8139/* Override any GCC internal prototype to avoid an error.
8140 Use char because int might match the return type of a GCC
8141 builtin and then its argument prototype would still apply. */
8142#ifdef __cplusplus
8143extern "C"
8144#endif
8145char dlopen ();
8146int
8147main ()
8148{
8149return dlopen ();
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_link "$LINENO"; then :
8155 ac_cv_lib_dl_dlopen=yes
8156else
8157 ac_cv_lib_dl_dlopen=no
8158fi
8159rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161LIBS=$ac_check_lib_save_LIBS
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8164$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8165if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8166 cat >>confdefs.h <<_ACEOF
8167#define HAVE_LIBDL 1
8168_ACEOF
8169
8170 LIBS="-ldl $LIBS"
8171
8172fi
8173
8174LIBS="$old_LIBS"
8175
0d62e5e8
DJ
8176srv_thread_depfiles=
8177srv_libs=
0d62e5e8
DJ
8178
8179if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
8180 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8181 srv_libs="-ldl"
f6528abd
JK
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8183$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 8184 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
8185 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8186 # supported there.
8187 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8188 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
8190/* end confdefs.h. */
8191
8192int
8193main ()
8194{
8195
8196 ;
8197 return 0;
8198}
8199_ACEOF
81ecdfbb 8200if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
8201 found="-Wl,--dynamic-list"
8202 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 8203else
f6528abd
JK
8204 RDYNAMIC="-rdynamic"
8205 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h. */
8208
8209int
8210main ()
8211{
8212
8213 ;
8214 return 0;
8215}
8216_ACEOF
8217if ac_fn_c_try_link "$LINENO"; then :
8218 found="-rdynamic"
8219else
8220 found="no"
8221 RDYNAMIC=""
770d76d7
PA
8222fi
8223rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225fi
8226rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228
8229 LDFLAGS="$old_LDFLAGS"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8231$as_echo "$found" >&6; }
8232 else
8233 srv_libs="-lthread_db"
8234 fi
55a8c076 8235
770d76d7 8236 srv_thread_depfiles="thread-db.o proc-service.o"
7d4e5717
PA
8237
8238$as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8239
770d76d7
PA
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8241$as_echo_n "checking for TD_VERSION... " >&6; }
8242if test "${gdbsrv_cv_have_td_version+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h. */
8247#include <thread_db.h>
55a8c076
YQ
8248int
8249main ()
8250{
770d76d7 8251TD_VERSION;
c9a1864a
YQ
8252 ;
8253 return 0;
8254}
8255_ACEOF
55a8c076 8256if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 8257 gdbsrv_cv_have_td_version=yes
c9a1864a 8258else
770d76d7
PA
8259 gdbsrv_cv_have_td_version=no
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8264$as_echo "$gdbsrv_cv_have_td_version" >&6; }
8265 if test $gdbsrv_cv_have_td_version = yes; then
c9a1864a 8266
770d76d7 8267$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
55a8c076 8268
770d76d7
PA
8269 fi
8270fi
c9a1864a
YQ
8271
8272
770d76d7
PA
8273# Check whether --with-libthread-db was given.
8274if test "${with_libthread_db+set}" = set; then :
8275 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
8276 srv_libs="$srv_libthread_db_path"
c9a1864a 8277
770d76d7 8278fi
c9a1864a
YQ
8279
8280
770d76d7 8281if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
c9a1864a 8282
770d76d7 8283$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
c9a1864a 8284
55a8c076 8285fi
c9a1864a 8286
770d76d7
PA
8287if test "$srv_xmlfiles" != ""; then
8288 srv_xmlbuiltin="xml-builtin.o"
c9a1864a 8289
770d76d7 8290$as_echo "#define USE_XML 1" >>confdefs.h
c9a1864a 8291
c9a1864a 8292
770d76d7
PA
8293 tmp_xmlfiles=$srv_xmlfiles
8294 srv_xmlfiles=""
8295 for f in $tmp_xmlfiles; do
8296 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
8297 done
c9a1864a
YQ
8298fi
8299
605fd3c6 8300GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
770d76d7 8301GDBSERVER_LIBS="$srv_libs"
c9a1864a 8302
770d76d7
PA
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8304$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8305if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307else
c9a1864a 8308
770d76d7
PA
8309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h. */
c9a1864a 8311
770d76d7
PA
8312int
8313main ()
8314{
8315int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8316 ;
8317 return 0;
8318}
8319_ACEOF
8320if ac_fn_c_try_link "$LINENO"; then :
8321 gdbsrv_cv_have_sync_builtins=yes
8322else
c971b7fa 8323 gdbsrv_cv_have_sync_builtins=no
c9a1864a 8324fi
c971b7fa
PA
8325rm -f core conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
c9a1864a 8327fi
c971b7fa
PA
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8329$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8330if test $gdbsrv_cv_have_sync_builtins = yes; then
8331
8332$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8333
c9a1864a
YQ
8334fi
8335
c971b7fa
PA
8336saved_cflags="$CFLAGS"
8337CFLAGS="$CFLAGS -fvisibility=hidden"
8338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
c9a1864a 8340
c971b7fa
PA
8341int
8342main ()
8343{
c9a1864a 8344
c971b7fa
PA
8345 ;
8346 return 0;
8347}
c9a1864a 8348_ACEOF
c971b7fa
PA
8349if ac_fn_c_try_compile "$LINENO"; then :
8350 gdbsrv_cv_have_visibility_hidden=yes
8351else
8352 gdbsrv_cv_have_visibility_hidden=no
c9a1864a 8353fi
c971b7fa
PA
8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355CFLAGS="$saved_cflags"
8356
8357ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8358"
8359if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
8360 ac_have_decl=1
c9a1864a 8361else
c971b7fa 8362 ac_have_decl=0
c9a1864a
YQ
8363fi
8364
c971b7fa
PA
8365cat >>confdefs.h <<_ACEOF
8366#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8367_ACEOF
c9a1864a 8368
c9a1864a 8369
c971b7fa
PA
8370if test "$cross_compiling" = yes; then :
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h. */
8373#include <sys/personality.h>
8374int
8375main ()
8376{
fb1e4ffc 8377
c971b7fa
PA
8378# if !HAVE_DECL_ADDR_NO_RANDOMIZE
8379# define ADDR_NO_RANDOMIZE 0x0040000
8380# endif
8381 /* Test the flag could be set and stays set. */
8382 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8383 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8384 return 1
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389if ac_fn_c_try_link "$LINENO"; then :
8390 gdbsrv_cv_have_personality=true
fa593d66 8391else
c971b7fa 8392 gdbsrv_cv_have_personality=false
c9a1864a 8393fi
c971b7fa
PA
8394rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399#include <sys/personality.h>
8400int
8401main ()
8402{
fa593d66 8403
c971b7fa
PA
8404# if !HAVE_DECL_ADDR_NO_RANDOMIZE
8405# define ADDR_NO_RANDOMIZE 0x0040000
8406# endif
8407 /* Test the flag could be set and stays set. */
8408 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8409 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8410 return 1
8411 ;
8412 return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_run "$LINENO"; then :
8416 gdbsrv_cv_have_personality=true
8417else
8418 gdbsrv_cv_have_personality=false
fa593d66 8419fi
c971b7fa
PA
8420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8421 conftest.$ac_objext conftest.beam conftest.$ac_ext
fa593d66 8422fi
fa593d66 8423
c971b7fa
PA
8424if $gdbsrv_cv_have_personality
8425then
fa593d66 8426
c971b7fa 8427$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
03583c20 8428
c971b7fa 8429fi
03583c20 8430
03583c20 8431
c971b7fa
PA
8432IPA_DEPFILES=""
8433extra_libraries=""
c2a66c29 8434
c971b7fa
PA
8435# check whether to enable the inprocess agent
8436if test "$ipa_obj" != "" \
8437 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8438 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8439 have_ipa=true
8440else
8441 have_ipa=false
8442fi
fa593d66 8443
c971b7fa
PA
8444# Check whether --enable-inprocess-agent was given.
8445if test "${enable_inprocess_agent+set}" = set; then :
8446 enableval=$enable_inprocess_agent; case "$enableval" in
8447 yes) want_ipa=true ;;
8448 no) want_ipa=false ;;
8449 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8450esac
8451else
8452 want_ipa=$have_ipa
8453fi
c2a66c29 8454
c9a1864a 8455
c971b7fa
PA
8456if $want_ipa ; then
8457 if $have_ipa ; then
8458 IPA_DEPFILES="$ipa_obj"
8459 extra_libraries="$extra_libraries libinproctrace.so"
8460 else
8461 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
8462 fi
8463fi
c9a1864a 8464
c9a1864a 8465
c2a66c29
NS
8466
8467
fa593d66
PA
8468
8469
8470
0d62e5e8 8471
c971b7fa 8472GNULIB=build-gnulib-gdbserver/import
d6e9fb05 8473
c9a1864a
YQ
8474GNULIB_STDINT_H=
8475if test x"$STDINT_H" != x; then
c971b7fa 8476 GNULIB_STDINT_H=$GNULIB/$STDINT_H
c9a1864a 8477fi
d6e9fb05 8478
fb1e4ffc 8479
c971b7fa 8480ac_config_files="$ac_config_files Makefile"
81ecdfbb 8481
81ecdfbb 8482
bec39cab 8483cat >confcache <<\_ACEOF
d6e9fb05
JK
8484# This file is a shell script that caches the results of configure
8485# tests run on this system so they can be shared between configure
bec39cab
AC
8486# scripts and configure runs, see configure's option --config-cache.
8487# It is not useful on other systems. If it contains results you don't
8488# want to keep, you may remove or edit it.
d6e9fb05 8489#
bec39cab
AC
8490# config.status only pays attention to the cache file if you give it
8491# the --recheck option to rerun configure.
d6e9fb05 8492#
bec39cab
AC
8493# `ac_cv_env_foo' variables (set or unset) will be overridden when
8494# loading this file, other *unset* `ac_cv_foo' will be assigned the
8495# following values.
8496
8497_ACEOF
8498
d6e9fb05
JK
8499# The following way of writing the cache mishandles newlines in values,
8500# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 8501# So, we kill variables containing newlines.
d6e9fb05
JK
8502# Ultrix sh set writes to stderr and can't be redirected directly,
8503# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
8504(
8505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8506 eval ac_val=\$$ac_var
8507 case $ac_val in #(
8508 *${as_nl}*)
8509 case $ac_var in #(
8510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8512 esac
8513 case $ac_var in #(
8514 _ | IFS | as_nl) ;; #(
8515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8516 *) { eval $ac_var=; unset $ac_var;} ;;
8517 esac ;;
8518 esac
8519 done
8520
bec39cab 8521 (set) 2>&1 |
81ecdfbb
RW
8522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8523 *${as_nl}ac_space=\ *)
8524 # `set' does not quote correctly, so add quotes: double-quote
8525 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
8526 sed -n \
8527 "s/'/'\\\\''/g;
8528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 8529 ;; #(
bec39cab
AC
8530 *)
8531 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 8532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 8533 ;;
81ecdfbb
RW
8534 esac |
8535 sort
8536) |
bec39cab 8537 sed '
81ecdfbb 8538 /^ac_cv_env_/b end
bec39cab 8539 t clear
81ecdfbb 8540 :clear
bec39cab
AC
8541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8542 t end
81ecdfbb
RW
8543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8544 :end' >>confcache
8545if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8546 if test -w "$cache_file"; then
8547 test "x$cache_file" != "x/dev/null" &&
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8549$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 8550 cat confcache >$cache_file
d6e9fb05 8551 else
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8553$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
8554 fi
8555fi
8556rm -f confcache
8557
d6e9fb05
JK
8558test "x$prefix" = xNONE && prefix=$ac_default_prefix
8559# Let make expand exec_prefix.
8560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8561
84563040 8562DEFS=-DHAVE_CONFIG_H
d6e9fb05 8563
bec39cab
AC
8564ac_libobjs=
8565ac_ltlibobjs=
8566for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8567 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
8568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8571 # will be set to the directory where LIBOBJS objects are built.
8572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
8574done
8575LIBOBJS=$ac_libobjs
d6e9fb05 8576
bec39cab
AC
8577LTLIBOBJS=$ac_ltlibobjs
8578
8579
c9a1864a
YQ
8580if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8581 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8582Usually this means the macro was only invoked conditionally." "$LINENO" 5
8583fi
bec39cab
AC
8584
8585: ${CONFIG_STATUS=./config.status}
81ecdfbb 8586ac_write_fail=0
bec39cab
AC
8587ac_clean_files_save=$ac_clean_files
8588ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8590$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8591as_write_fail=0
8592cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
8593#! $SHELL
8594# Generated by $as_me.
d6e9fb05 8595# Run this file to recreate the current configuration.
d6e9fb05 8596# Compiler output produced by configure, useful for debugging
bec39cab
AC
8597# configure, is in config.log if it exists.
8598
8599debug=false
8600ac_cs_recheck=false
8601ac_cs_silent=false
bec39cab 8602
81ecdfbb
RW
8603SHELL=\${CONFIG_SHELL-$SHELL}
8604export SHELL
8605_ASEOF
8606cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8607## -------------------- ##
8608## M4sh Initialization. ##
8609## -------------------- ##
8610
8611# Be more Bourne compatible
8612DUALCASE=1; export DUALCASE # for MKS sh
8613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
8614 emulate sh
8615 NULLCMD=:
81ecdfbb 8616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
8617 # is contrary to our usage. Disable this feature.
8618 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
8619 setopt NO_GLOB_SUBST
8620else
8621 case `(set -o) 2>/dev/null` in #(
8622 *posix*) :
8623 set -o posix ;; #(
8624 *) :
8625 ;;
8626esac
bec39cab 8627fi
d6e9fb05 8628
81ecdfbb
RW
8629
8630as_nl='
8631'
8632export as_nl
8633# Printing a long string crashes Solaris 7 /usr/bin/printf.
8634as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8635as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8636as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8637# Prefer a ksh shell builtin over an external printf program on Solaris,
8638# but without wasting forks for bash or zsh.
8639if test -z "$BASH_VERSION$ZSH_VERSION" \
8640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8641 as_echo='print -r --'
8642 as_echo_n='print -rn --'
8643elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8644 as_echo='printf %s\n'
8645 as_echo_n='printf %s'
bec39cab 8646else
81ecdfbb
RW
8647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8649 as_echo_n='/usr/ucb/echo -n'
8650 else
8651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8652 as_echo_n_body='eval
8653 arg=$1;
8654 case $arg in #(
8655 *"$as_nl"*)
8656 expr "X$arg" : "X\\(.*\\)$as_nl";
8657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8658 esac;
8659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8660 '
8661 export as_echo_n_body
8662 as_echo_n='sh -c $as_echo_n_body as_echo'
8663 fi
8664 export as_echo_body
8665 as_echo='sh -c $as_echo_body as_echo'
8666fi
8667
8668# The user is always right.
8669if test "${PATH_SEPARATOR+set}" != set; then
8670 PATH_SEPARATOR=:
8671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8673 PATH_SEPARATOR=';'
8674 }
bec39cab
AC
8675fi
8676
8677
81ecdfbb
RW
8678# IFS
8679# We need space, tab and new line, in precisely that order. Quoting is
8680# there to prevent editors from complaining about space-tab.
8681# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8682# splitting by setting IFS to empty value.)
8683IFS=" "" $as_nl"
8684
8685# Find who we are. Look in the path if we contain no directory separator.
8686case $0 in #((
8687 *[\\/]* ) as_myself=$0 ;;
8688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8694 done
8695IFS=$as_save_IFS
8696
8697 ;;
8698esac
8699# We did not find ourselves, most probably we were run as `sh COMMAND'
8700# in which case we are not to be found in the path.
8701if test "x$as_myself" = x; then
8702 as_myself=$0
8703fi
8704if test ! -f "$as_myself"; then
8705 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8706 exit 1
8707fi
8708
8709# Unset variables that we do not need and which cause bugs (e.g. in
8710# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8711# suppresses any "Segmentation fault" message there. '((' could
8712# trigger a bug in pdksh 5.2.14.
8713for as_var in BASH_ENV ENV MAIL MAILPATH
8714do eval test x\${$as_var+set} = xset \
8715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8716done
bec39cab
AC
8717PS1='$ '
8718PS2='> '
8719PS4='+ '
8720
8721# NLS nuisances.
81ecdfbb
RW
8722LC_ALL=C
8723export LC_ALL
8724LANGUAGE=C
8725export LANGUAGE
8726
8727# CDPATH.
8728(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8729
8730
8731# as_fn_error ERROR [LINENO LOG_FD]
8732# ---------------------------------
8733# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8734# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8735# script with status $?, using 1 if that was 0.
8736as_fn_error ()
8737{
8738 as_status=$?; test $as_status -eq 0 && as_status=1
8739 if test "$3"; then
8740 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8741 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 8742 fi
81ecdfbb
RW
8743 $as_echo "$as_me: error: $1" >&2
8744 as_fn_exit $as_status
8745} # as_fn_error
8746
8747
8748# as_fn_set_status STATUS
8749# -----------------------
8750# Set $? to STATUS, without forking.
8751as_fn_set_status ()
8752{
8753 return $1
8754} # as_fn_set_status
8755
8756# as_fn_exit STATUS
8757# -----------------
8758# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8759as_fn_exit ()
8760{
8761 set +e
8762 as_fn_set_status $1
8763 exit $1
8764} # as_fn_exit
8765
8766# as_fn_unset VAR
8767# ---------------
8768# Portably unset VAR.
8769as_fn_unset ()
8770{
8771 { eval $1=; unset $1;}
8772}
8773as_unset=as_fn_unset
8774# as_fn_append VAR VALUE
8775# ----------------------
8776# Append the text in VALUE to the end of the definition contained in VAR. Take
8777# advantage of any shell optimizations that allow amortized linear growth over
8778# repeated appends, instead of the typical quadratic growth present in naive
8779# implementations.
8780if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8781 eval 'as_fn_append ()
8782 {
8783 eval $1+=\$2
8784 }'
8785else
8786 as_fn_append ()
8787 {
8788 eval $1=\$$1\$2
8789 }
8790fi # as_fn_append
8791
8792# as_fn_arith ARG...
8793# ------------------
8794# Perform arithmetic evaluation on the ARGs, and store the result in the
8795# global $as_val. Take advantage of shells that can avoid forks. The arguments
8796# must be portable across $(()) and expr.
8797if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8798 eval 'as_fn_arith ()
8799 {
8800 as_val=$(( $* ))
8801 }'
8802else
8803 as_fn_arith ()
8804 {
8805 as_val=`expr "$@" || test $? -eq 1`
8806 }
8807fi # as_fn_arith
8808
d6e9fb05 8809
81ecdfbb
RW
8810if expr a : '\(a\)' >/dev/null 2>&1 &&
8811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
8812 as_expr=expr
8813else
8814 as_expr=false
8815fi
d6e9fb05 8816
81ecdfbb 8817if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
8818 as_basename=basename
8819else
8820 as_basename=false
8821fi
d6e9fb05 8822
81ecdfbb
RW
8823if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8824 as_dirname=dirname
8825else
8826 as_dirname=false
8827fi
d6e9fb05 8828
81ecdfbb 8829as_me=`$as_basename -- "$0" ||
bec39cab
AC
8830$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8831 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
8832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8833$as_echo X/"$0" |
8834 sed '/^.*\/\([^/][^/]*\)\/*$/{
8835 s//\1/
8836 q
8837 }
8838 /^X\/\(\/\/\)$/{
8839 s//\1/
8840 q
8841 }
8842 /^X\/\(\/\).*/{
8843 s//\1/
8844 q
8845 }
8846 s/.*/./; q'`
bec39cab 8847
dae5f5cf
DJ
8848# Avoid depending upon Character Ranges.
8849as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8850as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8851as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8852as_cr_digits='0123456789'
8853as_cr_alnum=$as_cr_Letters$as_cr_digits
8854
81ecdfbb
RW
8855ECHO_C= ECHO_N= ECHO_T=
8856case `echo -n x` in #(((((
8857-n*)
8858 case `echo 'xy\c'` in
8859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8860 xy) ECHO_C='\c';;
8861 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8862 ECHO_T=' ';;
8863 esac;;
8864*)
8865 ECHO_N='-n';;
bec39cab
AC
8866esac
8867
81ecdfbb
RW
8868rm -f conf$$ conf$$.exe conf$$.file
8869if test -d conf$$.dir; then
8870 rm -f conf$$.dir/conf$$.file
bec39cab 8871else
81ecdfbb
RW
8872 rm -f conf$$.dir
8873 mkdir conf$$.dir 2>/dev/null
bec39cab 8874fi
81ecdfbb
RW
8875if (echo >conf$$.file) 2>/dev/null; then
8876 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 8877 as_ln_s='ln -s'
81ecdfbb
RW
8878 # ... but there are two gotchas:
8879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8881 # In both cases, we have to default to `cp -p'.
8882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8883 as_ln_s='cp -p'
8884 elif ln conf$$.file conf$$ 2>/dev/null; then
8885 as_ln_s=ln
8886 else
8887 as_ln_s='cp -p'
dae5f5cf 8888 fi
bec39cab
AC
8889else
8890 as_ln_s='cp -p'
8891fi
81ecdfbb
RW
8892rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8893rmdir conf$$.dir 2>/dev/null
8894
8895
8896# as_fn_mkdir_p
8897# -------------
8898# Create "$as_dir" as a directory, including parents if necessary.
8899as_fn_mkdir_p ()
8900{
8901
8902 case $as_dir in #(
8903 -*) as_dir=./$as_dir;;
8904 esac
8905 test -d "$as_dir" || eval $as_mkdir_p || {
8906 as_dirs=
8907 while :; do
8908 case $as_dir in #(
8909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8910 *) as_qdir=$as_dir;;
8911 esac
8912 as_dirs="'$as_qdir' $as_dirs"
8913 as_dir=`$as_dirname -- "$as_dir" ||
8914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8915 X"$as_dir" : 'X\(//\)[^/]' \| \
8916 X"$as_dir" : 'X\(//\)$' \| \
8917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8918$as_echo X"$as_dir" |
8919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8920 s//\1/
8921 q
8922 }
8923 /^X\(\/\/\)[^/].*/{
8924 s//\1/
8925 q
8926 }
8927 /^X\(\/\/\)$/{
8928 s//\1/
8929 q
8930 }
8931 /^X\(\/\).*/{
8932 s//\1/
8933 q
8934 }
8935 s/.*/./; q'`
8936 test -d "$as_dir" && break
8937 done
8938 test -z "$as_dirs" || eval "mkdir $as_dirs"
8939 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 8940
81ecdfbb
RW
8941
8942} # as_fn_mkdir_p
bec39cab 8943if mkdir -p . 2>/dev/null; then
81ecdfbb 8944 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
8945else
8946 test -d ./-p && rmdir ./-p
8947 as_mkdir_p=false
8948fi
8949
81ecdfbb
RW
8950if test -x / >/dev/null 2>&1; then
8951 as_test_x='test -x'
8952else
8953 if ls -dL / >/dev/null 2>&1; then
8954 as_ls_L_option=L
8955 else
8956 as_ls_L_option=
8957 fi
8958 as_test_x='
8959 eval sh -c '\''
8960 if test -d "$1"; then
8961 test -d "$1/.";
8962 else
8963 case $1 in #(
8964 -*)set "./$1";;
8965 esac;
8966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8967 ???[sx]*):;;*)false;;esac;fi
8968 '\'' sh
8969 '
8970fi
8971as_executable_p=$as_test_x
bec39cab
AC
8972
8973# Sed expression to map a string onto a valid CPP name.
8974as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8975
8976# Sed expression to map a string onto a valid variable name.
8977as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8978
8979
bec39cab 8980exec 6>&1
81ecdfbb
RW
8981## ----------------------------------- ##
8982## Main body of $CONFIG_STATUS script. ##
8983## ----------------------------------- ##
8984_ASEOF
8985test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8986
8987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8988# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 8989# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8990# values after options handling.
8991ac_log="
bec39cab 8992This file was extended by $as_me, which was
81ecdfbb 8993generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
8994
8995 CONFIG_FILES = $CONFIG_FILES
8996 CONFIG_HEADERS = $CONFIG_HEADERS
8997 CONFIG_LINKS = $CONFIG_LINKS
8998 CONFIG_COMMANDS = $CONFIG_COMMANDS
8999 $ $0 $@
9000
81ecdfbb
RW
9001on `(hostname || uname -n) 2>/dev/null | sed 1q`
9002"
9003
bec39cab
AC
9004_ACEOF
9005
81ecdfbb
RW
9006case $ac_config_files in *"
9007"*) set x $ac_config_files; shift; ac_config_files=$*;;
9008esac
bec39cab 9009
81ecdfbb
RW
9010case $ac_config_headers in *"
9011"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9012esac
dae5f5cf 9013
dae5f5cf 9014
81ecdfbb
RW
9015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9016# Files that config.status was made for.
9017config_files="$ac_config_files"
9018config_headers="$ac_config_headers"
9019config_commands="$ac_config_commands"
bec39cab 9020
81ecdfbb 9021_ACEOF
dae5f5cf 9022
81ecdfbb 9023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 9024ac_cs_usage="\
81ecdfbb
RW
9025\`$as_me' instantiates files and other configuration actions
9026from templates according to the current configuration. Unless the files
9027and actions are specified as TAGs, all are instantiated by default.
bec39cab 9028
81ecdfbb 9029Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
9030
9031 -h, --help print this help, then exit
81ecdfbb
RW
9032 -V, --version print version number and configuration settings, then exit
9033 -q, --quiet, --silent
9034 do not print progress messages
bec39cab
AC
9035 -d, --debug don't remove temporary files
9036 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
9037 --file=FILE[:TEMPLATE]
9038 instantiate the configuration file FILE
9039 --header=FILE[:TEMPLATE]
9040 instantiate the configuration header FILE
bec39cab
AC
9041
9042Configuration files:
9043$config_files
9044
9045Configuration headers:
9046$config_headers
9047
9048Configuration commands:
9049$config_commands
9050
81ecdfbb 9051Report bugs to the package provider."
dae5f5cf 9052
81ecdfbb
RW
9053_ACEOF
9054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
9055ac_cs_version="\\
9056config.status
81ecdfbb
RW
9057configured by $0, generated by GNU Autoconf 2.64,
9058 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 9059
81ecdfbb 9060Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
9061This config.status script is free software; the Free Software Foundation
9062gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
9063
9064ac_pwd='$ac_pwd'
9065srcdir='$srcdir'
9066INSTALL='$INSTALL'
9067test -n "\$AWK" || AWK=awk
bec39cab
AC
9068_ACEOF
9069
81ecdfbb
RW
9070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9071# The default lists apply if the user does not specify any file.
bec39cab
AC
9072ac_need_defaults=:
9073while test $# != 0
9074do
9075 case $1 in
9076 --*=*)
81ecdfbb
RW
9077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
9079 ac_shift=:
9080 ;;
81ecdfbb 9081 *)
bec39cab
AC
9082 ac_option=$1
9083 ac_optarg=$2
9084 ac_shift=shift
9085 ;;
bec39cab
AC
9086 esac
9087
9088 case $ac_option in
9089 # Handling of the options.
bec39cab
AC
9090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9091 ac_cs_recheck=: ;;
81ecdfbb
RW
9092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9093 $as_echo "$ac_cs_version"; exit ;;
9094 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
9095 debug=: ;;
9096 --file | --fil | --fi | --f )
9097 $ac_shift
81ecdfbb
RW
9098 case $ac_optarg in
9099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9100 esac
9101 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
9102 ac_need_defaults=false;;
9103 --header | --heade | --head | --hea )
9104 $ac_shift
81ecdfbb
RW
9105 case $ac_optarg in
9106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9107 esac
9108 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 9109 ac_need_defaults=false;;
81ecdfbb
RW
9110 --he | --h)
9111 # Conflict between --help and --header
9112 as_fn_error "ambiguous option: \`$1'
9113Try \`$0 --help' for more information.";;
9114 --help | --hel | -h )
9115 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
9116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9118 ac_cs_silent=: ;;
9119
9120 # This is an error.
81ecdfbb
RW
9121 -*) as_fn_error "unrecognized option: \`$1'
9122Try \`$0 --help' for more information." ;;
bec39cab 9123
81ecdfbb
RW
9124 *) as_fn_append ac_config_targets " $1"
9125 ac_need_defaults=false ;;
bec39cab
AC
9126
9127 esac
9128 shift
d6e9fb05 9129done
bec39cab
AC
9130
9131ac_configure_extra_args=
9132
9133if $ac_cs_silent; then
9134 exec 6>/dev/null
9135 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 9136fi
d6e9fb05 9137
bec39cab 9138_ACEOF
81ecdfbb 9139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 9140if \$ac_cs_recheck; then
81ecdfbb
RW
9141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9142 shift
9143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9144 CONFIG_SHELL='$SHELL'
9145 export CONFIG_SHELL
9146 exec "\$@"
bec39cab 9147fi
d6e9fb05 9148
bec39cab 9149_ACEOF
81ecdfbb
RW
9150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9151exec 5>>config.log
9152{
9153 echo
9154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9155## Running $as_me. ##
9156_ASBOX
9157 $as_echo "$ac_log"
9158} >&5
bec39cab 9159
81ecdfbb
RW
9160_ACEOF
9161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61c125b9
TT
9162#
9163# INIT-COMMANDS
9164#
9165ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
60d6cfc9 9166ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
61c125b9 9167
81ecdfbb 9168_ACEOF
bec39cab 9169
81ecdfbb 9170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 9171
81ecdfbb 9172# Handling of arguments.
bec39cab
AC
9173for ac_config_target in $ac_config_targets
9174do
81ecdfbb
RW
9175 case $ac_config_target in
9176 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
61c125b9 9177 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
60d6cfc9 9178 "gdbdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbdepdir" ;;
81ecdfbb 9179 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb
RW
9180
9181 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 9182 esac
bec39cab
AC
9183done
9184
81ecdfbb 9185
bec39cab
AC
9186# If the user did not use the arguments to specify the items to instantiate,
9187# then the envvar interface is used. Set only those that are not.
9188# We use the long form for the default assignment because of an extremely
9189# bizarre bug on SunOS 4.1.3.
9190if $ac_need_defaults; then
9191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9194fi
d6e9fb05 9195
bec39cab 9196# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 9197# simply because there is no reason against having it here, and in addition,
bec39cab 9198# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
9199# Hook for its removal unless debugging.
9200# Note that there is a small window in which the directory will not be cleaned:
9201# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
9202$debug ||
9203{
81ecdfbb
RW
9204 tmp=
9205 trap 'exit_status=$?
9206 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9207' 0
9208 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 9209}
bec39cab
AC
9210# Create a (secure) tmp directory for tmp files.
9211
9212{
81ecdfbb 9213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
9214 test -n "$tmp" && test -d "$tmp"
9215} ||
9216{
81ecdfbb
RW
9217 tmp=./conf$$-$RANDOM
9218 (umask 077 && mkdir "$tmp")
9219} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9220
9221# Set up the scripts for CONFIG_FILES section.
9222# No need to generate them if there are no CONFIG_FILES.
9223# This happens for instance with `./config.status config.h'.
9224if test -n "$CONFIG_FILES"; then
9225
9226
9227ac_cr=`echo X | tr X '\015'`
9228# On cygwin, bash can eat \r inside `` if the user requested igncr.
9229# But we know of no other shell where ac_cr would be empty at this
9230# point, so we can use a bashism as a fallback.
9231if test "x$ac_cr" = x; then
9232 eval ac_cr=\$\'\\r\'
9233fi
9234ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9235if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9236 ac_cs_awk_cr='\r'
9237else
9238 ac_cs_awk_cr=$ac_cr
9239fi
9240
9241echo 'BEGIN {' >"$tmp/subs1.awk" &&
9242_ACEOF
9243
9244
9245{
9246 echo "cat >conf$$subs.awk <<_ACEOF" &&
9247 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9248 echo "_ACEOF"
9249} >conf$$subs.sh ||
9250 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9251ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9252ac_delim='%!_!# '
9253for ac_last_try in false false false false false :; do
9254 . ./conf$$subs.sh ||
9255 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9256
9257 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9258 if test $ac_delim_n = $ac_delim_num; then
9259 break
9260 elif $ac_last_try; then
9261 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9262 else
9263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9264 fi
9265done
9266rm -f conf$$subs.sh
9267
9268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9269cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9270_ACEOF
9271sed -n '
9272h
9273s/^/S["/; s/!.*/"]=/
9274p
9275g
9276s/^[^!]*!//
9277:repl
9278t repl
9279s/'"$ac_delim"'$//
9280t delim
9281:nl
9282h
9283s/\(.\{148\}\).*/\1/
9284t more1
9285s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9286p
9287n
9288b repl
9289:more1
9290s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9291p
9292g
9293s/.\{148\}//
9294t nl
9295:delim
9296h
9297s/\(.\{148\}\).*/\1/
9298t more2
9299s/["\\]/\\&/g; s/^/"/; s/$/"/
9300p
9301b
9302:more2
9303s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9304p
9305g
9306s/.\{148\}//
9307t delim
9308' <conf$$subs.awk | sed '
9309/^[^""]/{
9310 N
9311 s/\n//
9312}
9313' >>$CONFIG_STATUS || ac_write_fail=1
9314rm -f conf$$subs.awk
9315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9316_ACAWK
9317cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9318 for (key in S) S_is_set[key] = 1
9319 FS = "\a"
9320
9321}
bec39cab 9322{
81ecdfbb
RW
9323 line = $ 0
9324 nfields = split(line, field, "@")
9325 substed = 0
9326 len = length(field[1])
9327 for (i = 2; i < nfields; i++) {
9328 key = field[i]
9329 keylen = length(key)
9330 if (S_is_set[key]) {
9331 value = S[key]
9332 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9333 len += length(value) + length(field[++i])
9334 substed = 1
9335 } else
9336 len += 1 + keylen
9337 }
9338
9339 print line
bec39cab
AC
9340}
9341
81ecdfbb
RW
9342_ACAWK
9343_ACEOF
9344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9345if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9346 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9347else
9348 cat
9349fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9350 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
9351_ACEOF
9352
81ecdfbb
RW
9353# VPATH may cause trouble with some makes, so we remove $(srcdir),
9354# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9355# trailing colons and then remove the whole line if VPATH becomes empty
9356# (actually we leave an empty line to preserve line numbers).
9357if test "x$srcdir" = x.; then
9358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9359s/:*\$(srcdir):*/:/
9360s/:*\${srcdir}:*/:/
9361s/:*@srcdir@:*/:/
9362s/^\([^=]*=[ ]*\):*/\1/
9363s/:*$//
9364s/^[^=]*=[ ]*$//
9365}'
9366fi
bec39cab 9367
81ecdfbb
RW
9368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9369fi # test -n "$CONFIG_FILES"
bec39cab 9370
81ecdfbb
RW
9371# Set up the scripts for CONFIG_HEADERS section.
9372# No need to generate them if there are no CONFIG_HEADERS.
9373# This happens for instance with `./config.status Makefile'.
9374if test -n "$CONFIG_HEADERS"; then
9375cat >"$tmp/defines.awk" <<\_ACAWK ||
9376BEGIN {
b80864fb
DJ
9377_ACEOF
9378
81ecdfbb
RW
9379# Transform confdefs.h into an awk script `defines.awk', embedded as
9380# here-document in config.status, that substitutes the proper values into
9381# config.h.in to produce config.h.
9382
9383# Create a delimiter string that does not exist in confdefs.h, to ease
9384# handling of long lines.
9385ac_delim='%!_!# '
9386for ac_last_try in false false :; do
9387 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9388 if test -z "$ac_t"; then
9389 break
9390 elif $ac_last_try; then
9391 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9392 else
9393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 9394 fi
81ecdfbb 9395done
d6e9fb05 9396
81ecdfbb
RW
9397# For the awk script, D is an array of macro values keyed by name,
9398# likewise P contains macro parameters if any. Preserve backslash
9399# newline sequences.
9400
9401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9402sed -n '
9403s/.\{148\}/&'"$ac_delim"'/g
9404t rset
9405:rset
9406s/^[ ]*#[ ]*define[ ][ ]*/ /
9407t def
9408d
9409:def
9410s/\\$//
9411t bsnl
9412s/["\\]/\\&/g
9413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9414D["\1"]=" \3"/p
9415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9416d
9417:bsnl
9418s/["\\]/\\&/g
9419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9420D["\1"]=" \3\\\\\\n"\\/p
9421t cont
9422s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9423t cont
9424d
9425:cont
9426n
9427s/.\{148\}/&'"$ac_delim"'/g
9428t clear
9429:clear
9430s/\\$//
9431t bsnlc
9432s/["\\]/\\&/g; s/^/"/; s/$/"/p
9433d
9434:bsnlc
9435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9436b cont
9437' <confdefs.h | sed '
9438s/'"$ac_delim"'/"\\\
9439"/g' >>$CONFIG_STATUS || ac_write_fail=1
9440
9441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9442 for (key in D) D_is_set[key] = 1
9443 FS = "\a"
9444}
9445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9446 line = \$ 0
9447 split(line, arg, " ")
9448 if (arg[1] == "#") {
9449 defundef = arg[2]
9450 mac1 = arg[3]
9451 } else {
9452 defundef = substr(arg[1], 2)
9453 mac1 = arg[2]
9454 }
9455 split(mac1, mac2, "(") #)
9456 macro = mac2[1]
9457 prefix = substr(line, 1, index(line, defundef) - 1)
9458 if (D_is_set[macro]) {
9459 # Preserve the white space surrounding the "#".
9460 print prefix "define", macro P[macro] D[macro]
9461 next
9462 } else {
9463 # Replace #undef with comments. This is necessary, for example,
9464 # in the case of _POSIX_SOURCE, which is predefined and required
9465 # on some systems where configure will not decide to define it.
9466 if (defundef == "undef") {
9467 print "/*", prefix defundef, macro, "*/"
9468 next
9469 }
9470 }
9471}
9472{ print }
9473_ACAWK
bec39cab 9474_ACEOF
81ecdfbb
RW
9475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9476 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9477fi # test -n "$CONFIG_HEADERS"
9478
9479
9480eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9481shift
9482for ac_tag
9483do
9484 case $ac_tag in
9485 :[FHLC]) ac_mode=$ac_tag; continue;;
9486 esac
9487 case $ac_mode$ac_tag in
9488 :[FHL]*:*);;
9489 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9490 :[FH]-) ac_tag=-:-;;
9491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9492 esac
9493 ac_save_IFS=$IFS
9494 IFS=:
9495 set x $ac_tag
9496 IFS=$ac_save_IFS
9497 shift
9498 ac_file=$1
9499 shift
9500
9501 case $ac_mode in
9502 :L) ac_source=$1;;
9503 :[FH])
9504 ac_file_inputs=
9505 for ac_f
9506 do
9507 case $ac_f in
9508 -) ac_f="$tmp/stdin";;
9509 *) # Look for the file first in the build tree, then in the source tree
9510 # (if the path is not absolute). The absolute path cannot be DOS-style,
9511 # because $ac_f cannot contain `:'.
9512 test -f "$ac_f" ||
9513 case $ac_f in
9514 [\\/$]*) false;;
9515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9516 esac ||
9517 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9518 esac
9519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9520 as_fn_append ac_file_inputs " '$ac_f'"
9521 done
9522
9523 # Let's still pretend it is `configure' which instantiates (i.e., don't
9524 # use $as_me), people would be surprised to read:
9525 # /* config.h. Generated by config.status. */
9526 configure_input='Generated from '`
9527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9528 `' by configure.'
9529 if test x"$ac_file" != x-; then
9530 configure_input="$ac_file. $configure_input"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9532$as_echo "$as_me: creating $ac_file" >&6;}
9533 fi
9534 # Neutralize special characters interpreted by sed in replacement strings.
9535 case $configure_input in #(
9536 *\&* | *\|* | *\\* )
9537 ac_sed_conf_input=`$as_echo "$configure_input" |
9538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9539 *) ac_sed_conf_input=$configure_input;;
9540 esac
9541
9542 case $ac_tag in
9543 *:-:* | *:-) cat >"$tmp/stdin" \
9544 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9545 esac
9546 ;;
d6e9fb05
JK
9547 esac
9548
81ecdfbb 9549 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
9550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9551 X"$ac_file" : 'X\(//\)[^/]' \| \
9552 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
9553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9554$as_echo X"$ac_file" |
9555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9556 s//\1/
9557 q
9558 }
9559 /^X\(\/\/\)[^/].*/{
9560 s//\1/
9561 q
9562 }
9563 /^X\(\/\/\)$/{
9564 s//\1/
9565 q
9566 }
9567 /^X\(\/\).*/{
9568 s//\1/
9569 q
9570 }
9571 s/.*/./; q'`
9572 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
9573 ac_builddir=.
9574
81ecdfbb
RW
9575case "$ac_dir" in
9576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9577*)
9578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9579 # A ".." for each directory in $ac_dir_suffix.
9580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9581 case $ac_top_builddir_sub in
9582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9584 esac ;;
9585esac
9586ac_abs_top_builddir=$ac_pwd
9587ac_abs_builddir=$ac_pwd$ac_dir_suffix
9588# for backward compatibility:
9589ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
9590
9591case $srcdir in
81ecdfbb 9592 .) # We are building in place.
bec39cab 9593 ac_srcdir=.
81ecdfbb
RW
9594 ac_top_srcdir=$ac_top_builddir_sub
9595 ac_abs_top_srcdir=$ac_pwd ;;
9596 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 9597 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
9598 ac_top_srcdir=$srcdir
9599 ac_abs_top_srcdir=$srcdir ;;
9600 *) # Relative name.
9601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9602 ac_top_srcdir=$ac_top_build_prefix$srcdir
9603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 9604esac
81ecdfbb 9605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 9606
bec39cab 9607
81ecdfbb
RW
9608 case $ac_mode in
9609 :F)
9610 #
9611 # CONFIG_FILE
9612 #
d6e9fb05 9613
bec39cab
AC
9614 case $INSTALL in
9615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 9616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 9617 esac
81ecdfbb 9618_ACEOF
3db0444b 9619
81ecdfbb
RW
9620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9621# If the template does not know about datarootdir, expand it.
9622# FIXME: This hack should be removed a few years after 2.60.
9623ac_datarootdir_hack=; ac_datarootdir_seen=
9624ac_sed_dataroot='
9625/datarootdir/ {
9626 p
9627 q
9628}
9629/@datadir@/p
9630/@docdir@/p
9631/@infodir@/p
9632/@localedir@/p
9633/@mandir@/p'
9634case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9635*datarootdir*) ac_datarootdir_seen=yes;;
9636*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9638$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9639_ACEOF
9640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9641 ac_datarootdir_hack='
9642 s&@datadir@&$datadir&g
9643 s&@docdir@&$docdir&g
9644 s&@infodir@&$infodir&g
9645 s&@localedir@&$localedir&g
9646 s&@mandir@&$mandir&g
9647 s&\\\${datarootdir}&$datarootdir&g' ;;
9648esac
bec39cab 9649_ACEOF
81ecdfbb
RW
9650
9651# Neutralize VPATH when `$srcdir' = `.'.
9652# Shell code in configure.ac might set extrasub.
9653# FIXME: do we really want to maintain this feature?
9654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9655ac_sed_extra="$ac_vpsub
bec39cab
AC
9656$extrasub
9657_ACEOF
81ecdfbb 9658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
9659:t
9660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
9661s|@configure_input@|$ac_sed_conf_input|;t t
9662s&@top_builddir@&$ac_top_builddir_sub&;t t
9663s&@top_build_prefix@&$ac_top_build_prefix&;t t
9664s&@srcdir@&$ac_srcdir&;t t
9665s&@abs_srcdir@&$ac_abs_srcdir&;t t
9666s&@top_srcdir@&$ac_top_srcdir&;t t
9667s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9668s&@builddir@&$ac_builddir&;t t
9669s&@abs_builddir@&$ac_abs_builddir&;t t
9670s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9671s&@INSTALL@&$ac_INSTALL&;t t
9672$ac_datarootdir_hack
9673"
9674eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9675 || as_fn_error "could not create $ac_file" "$LINENO" 5
9676
9677test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9678 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9681which seems to be undefined. Please make sure it is defined." >&5
9682$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9683which seems to be undefined. Please make sure it is defined." >&2;}
9684
9685 rm -f "$tmp/stdin"
bec39cab 9686 case $ac_file in
81ecdfbb
RW
9687 -) cat "$tmp/out" && rm -f "$tmp/out";;
9688 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9689 esac \
9690 || as_fn_error "could not create $ac_file" "$LINENO" 5
9691 ;;
9692 :H)
9693 #
9694 # CONFIG_HEADER
9695 #
bec39cab 9696 if test x"$ac_file" != x-; then
81ecdfbb
RW
9697 {
9698 $as_echo "/* $configure_input */" \
9699 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9700 } >"$tmp/config.h" \
9701 || as_fn_error "could not create $ac_file" "$LINENO" 5
9702 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9704$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 9705 else
81ecdfbb
RW
9706 rm -f "$ac_file"
9707 mv "$tmp/config.h" "$ac_file" \
9708 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 9709 fi
bec39cab 9710 else
81ecdfbb
RW
9711 $as_echo "/* $configure_input */" \
9712 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9713 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 9714 fi
81ecdfbb 9715 ;;
dae5f5cf 9716
81ecdfbb
RW
9717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9718$as_echo "$as_me: executing $ac_file commands" >&6;}
9719 ;;
9720 esac
dae5f5cf
DJ
9721
9722
81ecdfbb 9723 case $ac_file$ac_mode in
61c125b9 9724 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
60d6cfc9
YQ
9725 "gdbdepdir":C)
9726 for subdir in ${CONFIG_SRC_SUBDIR}
9727 do
9728 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9729 done ;;
1e94266c 9730 "Makefile":F) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
9731xconfig.h:config.in)
9732echo > stamp-h ;;
9733esac
bec39cab 9734 ;;
81ecdfbb 9735
bec39cab 9736 esac
81ecdfbb 9737done # for ac_tag
d6e9fb05 9738
bec39cab 9739
81ecdfbb 9740as_fn_exit 0
bec39cab 9741_ACEOF
bec39cab
AC
9742ac_clean_files=$ac_clean_files_save
9743
81ecdfbb
RW
9744test $ac_write_fail = 0 ||
9745 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9746
bec39cab
AC
9747
9748# configure is writing to config.log, and then calls config.status.
9749# config.status does its own redirection, appending to config.log.
9750# Unfortunately, on DOS this fails, as config.log is still kept open
9751# by configure, so config.status won't be able to write to it; its
9752# output is simply discarded. So we exec the FD to /dev/null,
9753# effectively closing config.log, so it can be properly (re)opened and
9754# appended to by config.status. When coming back to configure, we
9755# need to make the FD available again.
9756if test "$no_create" != yes; then
9757 ac_cs_success=:
9758 ac_config_status_args=
9759 test "$silent" = yes &&
9760 ac_config_status_args="$ac_config_status_args --quiet"
9761 exec 5>/dev/null
9762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9763 exec 5>>config.log
9764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9765 # would make configure fail if this is the last instruction.
81ecdfbb
RW
9766 $ac_cs_success || as_fn_exit $?
9767fi
9768if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9770$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 9771fi
d6e9fb05 9772
This page took 1.912613 seconds and 4 git commands to generate.