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