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