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