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