[gdb/testsuite] Handle shell prompt in batch-preserve-term-settings.exp
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
c906108c
SS
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
bec39cab
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bec39cab 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
bec39cab 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
bec39cab 402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
bec39cab 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
bec39cab
AC
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
bec39cab 456
bec39cab
AC
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
bec39cab 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
bec39cab 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
bec39cab 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 482 t loop
81ecdfbb 483 s/-\n.*//
bec39cab 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bec39cab 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
bec39cab
AC
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
bec39cab
AC
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
bec39cab
AC
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
bec39cab 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
bec39cab 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
bec39cab 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
bec39cab 533 fi
bec39cab 534else
d0ac1c44 535 as_ln_s='cp -pR'
bec39cab 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
bec39cab
AC
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
c906108c 546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
bec39cab
AC
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
bec39cab
AC
559
560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
bec39cab
AC
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
bec39cab
AC
565#
566# Initializations.
567#
c906108c 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
bec39cab 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
bec39cab
AC
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
bec39cab
AC
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
bec39cab
AC
584
585ac_unique_file="gdb.base"
a13c5393 586enable_option_checking=no
bec39cab
AC
587# Factoring default headers for most tests.
588ac_includes_default="\
589#include <stdio.h>
81ecdfbb 590#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
591# include <sys/types.h>
592#endif
81ecdfbb 593#ifdef HAVE_SYS_STAT_H
bec39cab
AC
594# include <sys/stat.h>
595#endif
81ecdfbb 596#ifdef STDC_HEADERS
bec39cab
AC
597# include <stdlib.h>
598# include <stddef.h>
599#else
81ecdfbb 600# ifdef HAVE_STDLIB_H
bec39cab
AC
601# include <stdlib.h>
602# endif
603#endif
81ecdfbb
RW
604#ifdef HAVE_STRING_H
605# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
606# include <memory.h>
607# endif
608# include <string.h>
609#endif
81ecdfbb 610#ifdef HAVE_STRINGS_H
bec39cab
AC
611# include <strings.h>
612#endif
81ecdfbb 613#ifdef HAVE_INTTYPES_H
bec39cab 614# include <inttypes.h>
bec39cab 615#endif
81ecdfbb
RW
616#ifdef HAVE_STDINT_H
617# include <stdint.h>
618#endif
619#ifdef HAVE_UNISTD_H
bec39cab
AC
620# include <unistd.h>
621#endif"
622
81ecdfbb
RW
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
497c491b
JM
625NM_TRANSFORM_NAME
626GAS_TRANSFORM_NAME
627READELF_TRANSFORM_NAME
628STRIP_TRANSFORM_NAME
2a31c623 629EXTRA_RULES
81ecdfbb
RW
630EGREP
631GREP
632CPP
633OBJEXT
634EXEEXT
635ac_ct_CC
636CPPFLAGS
637LDFLAGS
638CFLAGS
639CC
640RPATH_ENVVAR
1776e3e5 641enable_libctf
a13c5393 642subdirs
81ecdfbb
RW
643target_noncanonical
644target_os
645target_vendor
646target_cpu
647target
648host_os
649host_vendor
650host_cpu
651host
652build_os
653build_vendor
654build_cpu
655build
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL'
bec39cab 694ac_subst_files=''
81ecdfbb
RW
695ac_user_opts='
696enable_option_checking
a13c5393 697enable_gdbtk
1776e3e5 698enable_libctf
81ecdfbb
RW
699enable_shared
700'
701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CC
705CFLAGS
706LDFLAGS
707LIBS
708CPPFLAGS
709CPP'
a13c5393 710ac_subdirs_all='gdb.gdbtk'
c906108c
SS
711
712# Initialize some variables set by options.
bec39cab
AC
713ac_init_help=
714ac_init_version=false
81ecdfbb
RW
715ac_unrecognized_opts=
716ac_unrecognized_sep=
c906108c
SS
717# The variables have the same names as the options, with
718# dashes changed to underlines.
bec39cab 719cache_file=/dev/null
c906108c 720exec_prefix=NONE
c906108c 721no_create=
c906108c
SS
722no_recursion=
723prefix=NONE
724program_prefix=NONE
725program_suffix=NONE
726program_transform_name=s,x,x,
727silent=
728site=
729srcdir=
c906108c
SS
730verbose=
731x_includes=NONE
732x_libraries=NONE
bec39cab
AC
733
734# Installation directory options.
735# These are left unexpanded so users can "make install exec_prefix=/foo"
736# and all the variables that are supposed to be based on exec_prefix
737# by default will actually change.
738# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 739# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
740bindir='${exec_prefix}/bin'
741sbindir='${exec_prefix}/sbin'
742libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
743datarootdir='${prefix}/share'
744datadir='${datarootdir}'
c906108c
SS
745sysconfdir='${prefix}/etc'
746sharedstatedir='${prefix}/com'
747localstatedir='${prefix}/var'
c906108c
SS
748includedir='${prefix}/include'
749oldincludedir='/usr/include'
81ecdfbb
RW
750docdir='${datarootdir}/doc/${PACKAGE}'
751infodir='${datarootdir}/info'
752htmldir='${docdir}'
753dvidir='${docdir}'
754pdfdir='${docdir}'
755psdir='${docdir}'
756libdir='${exec_prefix}/lib'
757localedir='${datarootdir}/locale'
758mandir='${datarootdir}/man'
c906108c 759
c906108c 760ac_prev=
81ecdfbb 761ac_dashdash=
c906108c
SS
762for ac_option
763do
c906108c
SS
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
81ecdfbb 766 eval $ac_prev=\$ac_option
c906108c
SS
767 ac_prev=
768 continue
769 fi
770
81ecdfbb 771 case $ac_option in
d0ac1c44
SM
772 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *=) ac_optarg= ;;
774 *) ac_optarg=yes ;;
81ecdfbb 775 esac
c906108c
SS
776
777 # Accept the important Cygnus configure options, so we can diagnose typos.
778
81ecdfbb
RW
779 case $ac_dashdash$ac_option in
780 --)
781 ac_dashdash=yes ;;
c906108c
SS
782
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 786 bindir=$ac_optarg ;;
c906108c
SS
787
788 -build | --build | --buil | --bui | --bu)
bec39cab 789 ac_prev=build_alias ;;
c906108c 790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 791 build_alias=$ac_optarg ;;
c906108c
SS
792
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
798 cache_file=$ac_optarg ;;
799
800 --config-cache | -C)
801 cache_file=config.cache ;;
c906108c 802
81ecdfbb 803 -datadir | --datadir | --datadi | --datad)
c906108c 804 ac_prev=datadir ;;
81ecdfbb 805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 806 datadir=$ac_optarg ;;
c906108c 807
81ecdfbb
RW
808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
814
c906108c 815 -disable-* | --disable-*)
81ecdfbb 816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 817 # Reject names that are not valid shell variable names.
81ecdfbb 818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 819 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
823 *"
824"enable_$ac_useropt"
825"*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=no ;;
830
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
835
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
c906108c
SS
840
841 -enable-* | --enable-*)
81ecdfbb 842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 843 # Reject names that are not valid shell variable names.
81ecdfbb 844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 845 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850"enable_$ac_useropt"
851"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
c906108c 854 esac
81ecdfbb 855 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
856
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
bec39cab 864 exec_prefix=$ac_optarg ;;
c906108c
SS
865
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
868 with_gas=yes ;;
869
bec39cab
AC
870 -help | --help | --hel | --he | -h)
871 ac_init_help=long ;;
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
c906108c
SS
876
877 -host | --host | --hos | --ho)
bec39cab 878 ac_prev=host_alias ;;
c906108c 879 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 880 host_alias=$ac_optarg ;;
c906108c 881
81ecdfbb
RW
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 ac_prev=htmldir ;;
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 | --ht=*)
886 htmldir=$ac_optarg ;;
887
c906108c
SS
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 893 includedir=$ac_optarg ;;
c906108c
SS
894
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 ac_prev=infodir ;;
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 898 infodir=$ac_optarg ;;
c906108c
SS
899
900 -libdir | --libdir | --libdi | --libd)
901 ac_prev=libdir ;;
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 903 libdir=$ac_optarg ;;
c906108c
SS
904
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
bec39cab 910 libexecdir=$ac_optarg ;;
c906108c 911
81ecdfbb
RW
912 -localedir | --localedir | --localedi | --localed | --locale)
913 ac_prev=localedir ;;
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
916
c906108c 917 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 918 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 922 localstatedir=$ac_optarg ;;
c906108c
SS
923
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 ac_prev=mandir ;;
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 927 mandir=$ac_optarg ;;
c906108c
SS
928
929 -nfp | --nfp | --nf)
930 # Obsolete; use --without-fp.
931 with_fp=no ;;
932
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 934 | --no-cr | --no-c | -n)
c906108c
SS
935 no_create=yes ;;
936
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 no_recursion=yes ;;
940
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 948 oldincludedir=$ac_optarg ;;
c906108c
SS
949
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 ac_prev=prefix ;;
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 953 prefix=$ac_optarg ;;
c906108c
SS
954
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 960 program_prefix=$ac_optarg ;;
c906108c
SS
961
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 967 program_suffix=$ac_optarg ;;
c906108c
SS
968
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 984 program_transform_name=$ac_optarg ;;
c906108c 985
81ecdfbb
RW
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 ac_prev=pdfdir ;;
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 pdfdir=$ac_optarg ;;
990
991 -psdir | --psdir | --psdi | --psd | --ps)
992 ac_prev=psdir ;;
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 psdir=$ac_optarg ;;
995
c906108c
SS
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
998 silent=yes ;;
999
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 ac_prev=sbindir ;;
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 | --sbi=* | --sb=*)
bec39cab 1004 sbindir=$ac_optarg ;;
c906108c
SS
1005
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1009 | --sha | --sh)
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 | --sha=* | --sh=*)
bec39cab 1015 sharedstatedir=$ac_optarg ;;
c906108c
SS
1016
1017 -site | --site | --sit)
1018 ac_prev=site ;;
1019 -site=* | --site=* | --sit=*)
bec39cab 1020 site=$ac_optarg ;;
5710a1af 1021
c906108c
SS
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 ac_prev=srcdir ;;
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1025 srcdir=$ac_optarg ;;
c906108c
SS
1026
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1032 sysconfdir=$ac_optarg ;;
c906108c
SS
1033
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1035 ac_prev=target_alias ;;
c906108c 1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1037 target_alias=$ac_optarg ;;
c906108c
SS
1038
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 verbose=yes ;;
1041
bec39cab
AC
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
c906108c
SS
1044
1045 -with-* | --with-*)
81ecdfbb 1046 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1047 # Reject names that are not valid shell variable names.
81ecdfbb 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1049 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"with_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
c906108c 1058 esac
81ecdfbb 1059 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1060
1061 -without-* | --without-*)
81ecdfbb 1062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1063 # Reject names that are not valid shell variable names.
81ecdfbb 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1065 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"with_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=no ;;
c906108c
SS
1076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1086 x_includes=$ac_optarg ;;
c906108c
SS
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1093 x_libraries=$ac_optarg ;;
c906108c 1094
d0ac1c44
SM
1095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1096Try \`$0 --help' for more information"
c906108c
SS
1097 ;;
1098
bec39cab
AC
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1102 case $ac_envvar in #(
1103 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1104 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1105 esac
1106 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1107 export $ac_envvar ;;
1108
c906108c 1109 *)
bec39cab 1110 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1111 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1113 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1114 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1115 ;;
1116
1117 esac
1118done
1119
1120if test -n "$ac_prev"; then
bec39cab 1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1122 as_fn_error $? "missing argument to $ac_option"
c906108c
SS
1123fi
1124
81ecdfbb
RW
1125if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in
1127 no) ;;
d0ac1c44 1128 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bec39cab 1130 esac
81ecdfbb 1131fi
c906108c 1132
81ecdfbb
RW
1133# Check all directory arguments for consistency.
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
c906108c 1138do
81ecdfbb
RW
1139 eval ac_val=\$$ac_var
1140 # Remove trailing slashes.
bec39cab 1141 case $ac_val in
81ecdfbb
RW
1142 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;;
c906108c 1145 esac
81ecdfbb
RW
1146 # Be sure to have absolute directory names.
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
d0ac1c44 1151 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1152done
1153
bec39cab
AC
1154# There might be people who depend on the old broken behavior: `$host'
1155# used to hold the argument of --host etc.
1156# FIXME: To remove some day.
1157build=$build_alias
1158host=$host_alias
1159target=$target_alias
1160
1161# FIXME: To remove some day.
1162if test "x$host_alias" != x; then
1163 if test "x$build_alias" = x; then
1164 cross_compiling=maybe
bec39cab
AC
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
c906108c 1169
bec39cab
AC
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
c906108c 1174
c906108c 1175
81ecdfbb
RW
1176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1179 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1180test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1181 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1182
1183
c906108c
SS
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'`
c906108c 1211 srcdir=$ac_confdir
81ecdfbb 1212 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
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 .."
d0ac1c44 1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1221fi
1222ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223ac_abs_confdir=`(
d0ac1c44 1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
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
c906108c 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
d0ac1c44 1264 -q, --quiet, --silent do not print \`checking ...' messages
bec39cab
AC
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
497c491b
JM
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
1323Optional Features:
81ecdfbb 1324 --disable-option-checking ignore unrecognized --enable/--with options
bec39cab
AC
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a13c5393 1327 --enable-gtk enable gdbtk graphical user interface (GUI)
1776e3e5 1328 --enable-libctf Handle .ctf type-info sections [default=yes]
bec39cab
AC
1329 --enable-shared build shared libraries deault=yes
1330
bec39cab
AC
1331Some influential environment variables:
1332 CC C compiler command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir>
81ecdfbb 1336 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1337 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1338 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1339 CPP C preprocessor
1340
1341Use these variables to override the choices made by `configure' or to help
1342it to find libraries and programs with nonstandard names/locations.
1343
81ecdfbb 1344Report bugs to the package provider.
bec39cab 1345_ACEOF
81ecdfbb 1346ac_status=$?
bec39cab
AC
1347fi
1348
1349if test "$ac_init_help" = "recursive"; then
1350 # If there are subdirs, report their specific --help.
bec39cab 1351 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1352 test -d "$ac_dir" ||
1353 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1354 continue
bec39cab
AC
1355 ac_builddir=.
1356
81ecdfbb
RW
1357case "$ac_dir" in
1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359*)
1360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1361 # A ".." for each directory in $ac_dir_suffix.
1362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1363 case $ac_top_builddir_sub in
1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366 esac ;;
1367esac
1368ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1372
1373case $srcdir in
81ecdfbb 1374 .) # We are building in place.
bec39cab 1375 ac_srcdir=.
81ecdfbb
RW
1376 ac_top_srcdir=$ac_top_builddir_sub
1377 ac_abs_top_srcdir=$ac_pwd ;;
1378 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1379 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1380 ac_top_srcdir=$srcdir
1381 ac_abs_top_srcdir=$srcdir ;;
1382 *) # Relative name.
1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384 ac_top_srcdir=$ac_top_build_prefix$srcdir
1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1386esac
81ecdfbb 1387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1388
81ecdfbb
RW
1389 cd "$ac_dir" || { ac_status=$?; continue; }
1390 # Check for guested configure.
1391 if test -f "$ac_srcdir/configure.gnu"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure" --help=recursive
bec39cab 1397 else
81ecdfbb
RW
1398 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 fi || ac_status=$?
1400 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1401 done
1402fi
1403
81ecdfbb 1404test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1405if $ac_init_version; then
1406 cat <<\_ACEOF
81ecdfbb 1407configure
d0ac1c44 1408generated by GNU Autoconf 2.69
bec39cab 1409
d0ac1c44 1410Copyright (C) 2012 Free Software Foundation, Inc.
bec39cab
AC
1411This configure script is free software; the Free Software Foundation
1412gives unlimited permission to copy, distribute and modify it.
1413_ACEOF
81ecdfbb 1414 exit
bec39cab 1415fi
bec39cab 1416
81ecdfbb
RW
1417## ------------------------ ##
1418## Autoconf initialization. ##
1419## ------------------------ ##
bec39cab 1420
81ecdfbb
RW
1421# ac_fn_c_try_compile LINENO
1422# --------------------------
1423# Try to compile conftest.$ac_ext, and return whether this succeeded.
1424ac_fn_c_try_compile ()
bec39cab 1425{
81ecdfbb
RW
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 rm -f conftest.$ac_objext
1428 if { { ac_try="$ac_compile"
1429case "(($ac_try" in
1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1431 *) ac_try_echo=$ac_try;;
1432esac
1433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1434$as_echo "$ac_try_echo"; } >&5
1435 (eval "$ac_compile") 2>conftest.err
1436 ac_status=$?
1437 if test -s conftest.err; then
1438 grep -v '^ *+' conftest.err >conftest.er1
1439 cat conftest.er1 >&5
1440 mv -f conftest.er1 conftest.err
1441 fi
1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443 test $ac_status = 0; } && {
1444 test -z "$ac_c_werror_flag" ||
1445 test ! -s conftest.err
1446 } && test -s conftest.$ac_objext; then :
1447 ac_retval=0
1448else
1449 $as_echo "$as_me: failed program was:" >&5
1450sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1451
81ecdfbb
RW
1452 ac_retval=1
1453fi
d0ac1c44
SM
1454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1455 as_fn_set_status $ac_retval
bec39cab 1456
81ecdfbb 1457} # ac_fn_c_try_compile
bec39cab 1458
81ecdfbb
RW
1459# ac_fn_c_try_cpp LINENO
1460# ----------------------
1461# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1462ac_fn_c_try_cpp ()
1463{
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 if { { ac_try="$ac_cpp conftest.$ac_ext"
1466case "(($ac_try" in
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1469esac
1470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471$as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1473 ac_status=$?
1474 if test -s conftest.err; then
1475 grep -v '^ *+' conftest.err >conftest.er1
1476 cat conftest.er1 >&5
1477 mv -f conftest.er1 conftest.err
1478 fi
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1480 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1482 test ! -s conftest.err
1483 }; then :
1484 ac_retval=0
1485else
1486 $as_echo "$as_me: failed program was:" >&5
1487sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1488
81ecdfbb
RW
1489 ac_retval=1
1490fi
d0ac1c44
SM
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
bec39cab 1493
81ecdfbb 1494} # ac_fn_c_try_cpp
bec39cab 1495
81ecdfbb
RW
1496# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1497# -------------------------------------------------------
1498# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1499# the include files in INCLUDES and setting the cache variable VAR
1500# accordingly.
1501ac_fn_c_check_header_mongrel ()
1502{
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1504 if eval \${$3+:} false; then :
81ecdfbb
RW
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1506$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1507if eval \${$3+:} false; then :
81ecdfbb
RW
1508 $as_echo_n "(cached) " >&6
1509fi
1510eval ac_res=\$$3
1511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1512$as_echo "$ac_res" >&6; }
1513else
1514 # Is the header compilable?
1515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1516$as_echo_n "checking $2 usability... " >&6; }
1517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1518/* end confdefs.h. */
1519$4
1520#include <$2>
1521_ACEOF
1522if ac_fn_c_try_compile "$LINENO"; then :
1523 ac_header_compiler=yes
1524else
1525 ac_header_compiler=no
1526fi
1527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1529$as_echo "$ac_header_compiler" >&6; }
1530
1531# Is the header present?
1532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1533$as_echo_n "checking $2 presence... " >&6; }
1534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535/* end confdefs.h. */
1536#include <$2>
1537_ACEOF
1538if ac_fn_c_try_cpp "$LINENO"; then :
1539 ac_header_preproc=yes
1540else
1541 ac_header_preproc=no
1542fi
d0ac1c44 1543rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1545$as_echo "$ac_header_preproc" >&6; }
1546
1547# So? What about this header?
1548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1549 yes:no: )
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1551$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1553$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1554 ;;
1555 no:yes:* )
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1557$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1559$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1561$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1563$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1565$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1566 ;;
1567esac
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1570if eval \${$3+:} false; then :
81ecdfbb
RW
1571 $as_echo_n "(cached) " >&6
1572else
1573 eval "$3=\$ac_header_compiler"
1574fi
1575eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577$as_echo "$ac_res" >&6; }
1578fi
d0ac1c44 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1580
1581} # ac_fn_c_check_header_mongrel
1582
1583# ac_fn_c_try_run LINENO
1584# ----------------------
1585# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1586# that executables *can* be run.
1587ac_fn_c_try_run ()
1588{
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_link"
1591case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_link") 2>&5
1598 ac_status=$?
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1601 { { case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_try") 2>&5
1608 ac_status=$?
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; }; }; then :
1611 ac_retval=0
1612else
1613 $as_echo "$as_me: program exited with status $ac_status" >&5
1614 $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=$ac_status
1618fi
1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
81ecdfbb
RW
1622
1623} # ac_fn_c_try_run
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1634if eval \${$3+:} false; then :
81ecdfbb
RW
1635 $as_echo_n "(cached) " >&6
1636else
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643 eval "$3=yes"
1644else
1645 eval "$3=no"
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648fi
1649eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
d0ac1c44 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1653
1654} # ac_fn_c_check_header_compile
1655cat >config.log <<_ACEOF
1656This file contains any messages produced by compilers while
1657running configure, to aid debugging if configure makes a mistake.
1658
1659It was created by $as_me, which was
d0ac1c44 1660generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1661
1662 $ $0 $@
1663
1664_ACEOF
1665exec 5>>config.log
1666{
1667cat <<_ASUNAME
1668## --------- ##
1669## Platform. ##
1670## --------- ##
1671
1672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676uname -v = `(uname -v) 2>/dev/null || echo unknown`
1677
1678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1680
1681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688
1689_ASUNAME
1690
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 $as_echo "PATH: $as_dir"
1697 done
1698IFS=$as_save_IFS
1699
1700} >&5
1701
1702cat >&5 <<_ACEOF
bec39cab
AC
1703
1704
1705## ----------- ##
1706## Core tests. ##
1707## ----------- ##
1708
1709_ACEOF
1710
1711
1712# Keep a trace of the command line.
1713# Strip out --no-create and --no-recursion so they do not pile up.
1714# Strip out --silent because we don't want to record it for future runs.
1715# Also quote any args containing shell meta-characters.
1716# Make two passes to allow for proper duplicate-argument suppression.
1717ac_configure_args=
1718ac_configure_args0=
1719ac_configure_args1=
bec39cab
AC
1720ac_must_keep_next=false
1721for ac_pass in 1 2
1722do
1723 for ac_arg
1724 do
1725 case $ac_arg in
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1729 continue ;;
81ecdfbb
RW
1730 *\'*)
1731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1732 esac
1733 case $ac_pass in
81ecdfbb 1734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1735 2)
81ecdfbb 1736 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1737 if test $ac_must_keep_next = true; then
1738 ac_must_keep_next=false # Got value, back to normal.
1739 else
1740 case $ac_arg in
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 esac
1748 ;;
1749 -* ) ac_must_keep_next=true ;;
1750 esac
1751 fi
81ecdfbb 1752 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1753 ;;
1754 esac
1755 done
1756done
81ecdfbb
RW
1757{ ac_configure_args0=; unset ac_configure_args0;}
1758{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1759
1760# When interrupted or exit'd, cleanup temporary files, and complete
1761# config.log. We remove comments because anyway the quotes in there
1762# would cause problems or look ugly.
81ecdfbb
RW
1763# WARNING: Use '\'' to represent an apostrophe within the trap.
1764# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1765trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1767 {
1768 echo
1769
d0ac1c44 1770 $as_echo "## ---------------- ##
bec39cab 1771## Cache variables. ##
d0ac1c44 1772## ---------------- ##"
bec39cab
AC
1773 echo
1774 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1775(
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in #(
1779 *${as_nl}*)
1780 case $ac_var in #(
1781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1783 esac
1784 case $ac_var in #(
1785 _ | IFS | as_nl) ;; #(
1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1787 *) { eval $ac_var=; unset $ac_var;} ;;
1788 esac ;;
1789 esac
1790 done
bec39cab 1791 (set) 2>&1 |
81ecdfbb
RW
1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793 *${as_nl}ac_space=\ *)
bec39cab 1794 sed -n \
81ecdfbb
RW
1795 "s/'\''/'\''\\\\'\'''\''/g;
1796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 ;; #(
bec39cab 1798 *)
81ecdfbb 1799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 1800 ;;
81ecdfbb
RW
1801 esac |
1802 sort
1803)
bec39cab
AC
1804 echo
1805
d0ac1c44 1806 $as_echo "## ----------------- ##
bec39cab 1807## Output variables. ##
d0ac1c44 1808## ----------------- ##"
bec39cab
AC
1809 echo
1810 for ac_var in $ac_subst_vars
1811 do
81ecdfbb
RW
1812 eval ac_val=\$$ac_var
1813 case $ac_val in
1814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 esac
1816 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1817 done | sort
1818 echo
1819
1820 if test -n "$ac_subst_files"; then
d0ac1c44 1821 $as_echo "## ------------------- ##
81ecdfbb 1822## File substitutions. ##
d0ac1c44 1823## ------------------- ##"
bec39cab
AC
1824 echo
1825 for ac_var in $ac_subst_files
1826 do
81ecdfbb
RW
1827 eval ac_val=\$$ac_var
1828 case $ac_val in
1829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 esac
1831 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1832 done | sort
1833 echo
1834 fi
1835
1836 if test -s confdefs.h; then
d0ac1c44 1837 $as_echo "## ----------- ##
bec39cab 1838## confdefs.h. ##
d0ac1c44 1839## ----------- ##"
bec39cab 1840 echo
81ecdfbb 1841 cat confdefs.h
bec39cab 1842 echo
5710a1af 1843 fi
bec39cab 1844 test "$ac_signal" != 0 &&
81ecdfbb
RW
1845 $as_echo "$as_me: caught signal $ac_signal"
1846 $as_echo "$as_me: exit $exit_status"
bec39cab 1847 } >&5
81ecdfbb
RW
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1850 exit $exit_status
81ecdfbb 1851' 0
bec39cab 1852for ac_signal in 1 2 13 15; do
81ecdfbb 1853 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
1854done
1855ac_signal=0
1856
1857# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1858rm -f -r conftest* confdefs.h
1859
1860$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
1861
1862# Predefined preprocessor variables.
1863
1864cat >>confdefs.h <<_ACEOF
1865#define PACKAGE_NAME "$PACKAGE_NAME"
1866_ACEOF
1867
bec39cab
AC
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870_ACEOF
1871
bec39cab
AC
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_VERSION "$PACKAGE_VERSION"
1874_ACEOF
1875
bec39cab
AC
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_STRING "$PACKAGE_STRING"
1878_ACEOF
1879
bec39cab
AC
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882_ACEOF
1883
81ecdfbb
RW
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_URL "$PACKAGE_URL"
1886_ACEOF
1887
bec39cab
AC
1888
1889# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1890# Prefer an explicitly selected file to automatically selected ones.
1891ac_site_file1=NONE
1892ac_site_file2=NONE
1893if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1894 # We do not want a PATH search for config.site.
1895 case $CONFIG_SITE in #((
1896 -*) ac_site_file1=./$CONFIG_SITE;;
1897 */*) ac_site_file1=$CONFIG_SITE;;
1898 *) ac_site_file1=./$CONFIG_SITE;;
1899 esac
81ecdfbb
RW
1900elif test "x$prefix" != xNONE; then
1901 ac_site_file1=$prefix/share/config.site
1902 ac_site_file2=$prefix/etc/config.site
1903else
1904 ac_site_file1=$ac_default_prefix/share/config.site
1905 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 1906fi
81ecdfbb
RW
1907for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1908do
1909 test "x$ac_site_file" = xNONE && continue
d0ac1c44 1910 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1912$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 1913 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
1914 . "$ac_site_file" \
1915 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1917as_fn_error $? "failed to load site script $ac_site_file
1918See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
1919 fi
1920done
1921
1922if test -r "$cache_file"; then
d0ac1c44
SM
1923 # Some versions of bash will fail to source /dev/null (special files
1924 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1925 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1927$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 1928 case $cache_file in
81ecdfbb
RW
1929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1930 *) . "./$cache_file";;
bec39cab
AC
1931 esac
1932 fi
c906108c 1933else
81ecdfbb
RW
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1935$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 1936 >$cache_file
c906108c
SS
1937fi
1938
bec39cab
AC
1939# Check that the precious variables saved in the cache have kept the same
1940# value.
1941ac_cache_corrupted=false
81ecdfbb 1942for ac_var in $ac_precious_vars; do
bec39cab
AC
1943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1944 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1946 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
1947 case $ac_old_set,$ac_new_set in
1948 set,)
81ecdfbb
RW
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1950$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
1951 ac_cache_corrupted=: ;;
1952 ,set)
81ecdfbb
RW
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1954$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
1955 ac_cache_corrupted=: ;;
1956 ,);;
1957 *)
1958 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1959 # differences in whitespace do not lead to failure.
1960 ac_old_val_w=`echo x $ac_old_val`
1961 ac_new_val_w=`echo x $ac_new_val`
1962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1964$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965 ac_cache_corrupted=:
1966 else
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1968$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1969 eval $ac_var=\$ac_old_val
1970 fi
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1972$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1974$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
81ecdfbb 1980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 1986 esac
c906108c 1987 fi
bec39cab
AC
1988done
1989if $ac_cache_corrupted; then
81ecdfbb
RW
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1993$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 1994 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 1995fi
81ecdfbb
RW
1996## -------------------- ##
1997## Main body of script. ##
1998## -------------------- ##
c906108c 1999
bec39cab
AC
2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007
bec39cab 2008
c906108c
SS
2009
2010
0e5b0dd0 2011
c906108c 2012ac_aux_dir=
81ecdfbb 2013for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2014 if test -f "$ac_dir/install-sh"; then
2015 ac_aux_dir=$ac_dir
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2017 break
2018 elif test -f "$ac_dir/install.sh"; then
2019 ac_aux_dir=$ac_dir
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2021 break
2022 elif test -f "$ac_dir/shtool"; then
2023 ac_aux_dir=$ac_dir
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2025 break
2026 fi
c906108c
SS
2027done
2028if test -z "$ac_aux_dir"; then
d0ac1c44 2029 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
bec39cab 2030fi
81ecdfbb
RW
2031
2032# These three variables are undocumented and unsupported,
2033# and are intended to be withdrawn in a future Autoconf release.
2034# They can cause serious problems if a builder's source tree is in a directory
2035# whose full name contains unusual characters.
2036ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2037ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2038ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2039
c906108c
SS
2040
2041# Make sure we can run config.sub.
81ecdfbb 2042$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2043 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2044
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2046$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2047if ${ac_cv_build+:} false; then :
81ecdfbb 2048 $as_echo_n "(cached) " >&6
bec39cab 2049else
81ecdfbb
RW
2050 ac_build_alias=$build_alias
2051test "x$ac_build_alias" = x &&
2052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053test "x$ac_build_alias" = x &&
d0ac1c44 2054 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2055ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2056 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2057
2058fi
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2060$as_echo "$ac_cv_build" >&6; }
2061case $ac_cv_build in
2062*-*-*) ;;
d0ac1c44 2063*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2064esac
bec39cab 2065build=$ac_cv_build
81ecdfbb
RW
2066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_build
2068shift
2069build_cpu=$1
2070build_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074build_os=$*
2075IFS=$ac_save_IFS
2076case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2077
2078
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2080$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2081if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2082 $as_echo_n "(cached) " >&6
2083else
2084 if test "x$host_alias" = x; then
2085 ac_cv_host=$ac_cv_build
bec39cab 2086else
81ecdfbb 2087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2089fi
c906108c 2090
bec39cab 2091fi
81ecdfbb
RW
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2093$as_echo "$ac_cv_host" >&6; }
2094case $ac_cv_host in
2095*-*-*) ;;
d0ac1c44 2096*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2097esac
bec39cab 2098host=$ac_cv_host
81ecdfbb
RW
2099ac_save_IFS=$IFS; IFS='-'
2100set x $ac_cv_host
2101shift
2102host_cpu=$1
2103host_vendor=$2
2104shift; shift
2105# Remember, the first character of IFS is used to create $*,
2106# except with old shells:
2107host_os=$*
2108IFS=$ac_save_IFS
2109case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2110
2111
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2113$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2114if ${ac_cv_target+:} false; then :
81ecdfbb 2115 $as_echo_n "(cached) " >&6
bec39cab 2116else
81ecdfbb
RW
2117 if test "x$target_alias" = x; then
2118 ac_cv_target=$ac_cv_host
2119else
2120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2121 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2122fi
c906108c 2123
bec39cab 2124fi
81ecdfbb
RW
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2126$as_echo "$ac_cv_target" >&6; }
2127case $ac_cv_target in
2128*-*-*) ;;
d0ac1c44 2129*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2130esac
bec39cab 2131target=$ac_cv_target
81ecdfbb
RW
2132ac_save_IFS=$IFS; IFS='-'
2133set x $ac_cv_target
2134shift
2135target_cpu=$1
2136target_vendor=$2
2137shift; shift
2138# Remember, the first character of IFS is used to create $*,
2139# except with old shells:
2140target_os=$*
2141IFS=$ac_save_IFS
2142case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 2143
c906108c 2144
bec39cab
AC
2145# The aliases save the names the user supplied, while $host etc.
2146# will get canonicalized.
2147test -n "$target_alias" &&
2148 test "$program_prefix$program_suffix$program_transform_name" = \
2149 NONENONEs,x,x, &&
2150 program_prefix=${target_alias}-
c906108c 2151
be2a5f71
DJ
2152 case ${build_alias} in
2153 "") build_noncanonical=${build} ;;
2154 *) build_noncanonical=${build_alias} ;;
2155esac
2156
2157 case ${host_alias} in
2158 "") host_noncanonical=${build_noncanonical} ;;
2159 *) host_noncanonical=${host_alias} ;;
2160esac
2161
2162 case ${target_alias} in
2163 "") target_noncanonical=${host_noncanonical} ;;
2164 *) target_noncanonical=${target_alias} ;;
2165esac
2166
2167
2168
2169
a13c5393
YQ
2170# Enable gdbtk.
2171# Check whether --enable-gdbtk was given.
2172if test "${enable_gdbtk+set}" = set; then :
2173 enableval=$enable_gdbtk;
2174else
2175 if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
2176 enable_gdbtk=yes
2177 else
2178 enable_gdbtk=no
2179 fi
2180fi
2181
2182# We unconditionally disable gdbtk tests on selected platforms.
2183case $host_os in
2184 go32* | windows*)
2185 enable_gdbtk=no ;;
2186esac
2187
2188# Add gdbtk tests when appropriate.
2189if test $enable_gdbtk = yes; then
2190
2191
2192subdirs="$subdirs gdb.gdbtk"
2193
2194fi
2195
1776e3e5
NA
2196 # Check whether --enable-libctf was given.
2197if test "${enable_libctf+set}" = set; then :
2198 enableval=$enable_libctf;
2199 case "$enableval" in
2200 yes|no) ;;
2201 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
2202 esac
2203
2204else
2205 enable_libctf=yes
2206fi
2207
2208
2209
2210
b39c905e 2211# Enable shared libraries.
81ecdfbb
RW
2212# Check whether --enable-shared was given.
2213if test "${enable_shared+set}" = set; then :
2214 enableval=$enable_shared;
b39c905e
MK
2215else
2216 enable_shared=yes
81ecdfbb
RW
2217fi
2218
b39c905e
MK
2219
2220# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
2221# such that we can find the shared libraries in the build tree.
2222if test $enable_shared = no; then
2223 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
2224 # platform.
2225 RPATH_ENVVAR=RPATH_ENVVAR
2226else
2227 # The variable `LD_LIBRARY_PATH' is used on most platforms.
2228 RPATH_ENVVAR=LD_LIBRARY_PATH
2229 # The following exceptions are taken from Libtool 1.4.3.
2230 case $host_os in
2231 aix*)
2232 if test $host_cpu != ia64; then
2233 RPATH_ENVVAR=LIBPATH
2234 fi ;;
2235 darwin* | rhapsody*)
2236 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
b39c905e 2237 esac
3fc11d3e 2238fi
b39c905e 2239
c906108c 2240
bec39cab
AC
2241ac_ext=c
2242ac_cpp='$CPP $CPPFLAGS'
2243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246if test -n "$ac_tool_prefix"; then
2247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2248set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2251if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2252 $as_echo_n "(cached) " >&6
bec39cab
AC
2253else
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
81ecdfbb 2262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab 2264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2266 break 2
2267 fi
2268done
81ecdfbb
RW
2269 done
2270IFS=$as_save_IFS
bec39cab
AC
2271
2272fi
2273fi
2274CC=$ac_cv_prog_CC
2275if test -n "$CC"; then
81ecdfbb
RW
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2277$as_echo "$CC" >&6; }
bec39cab 2278else
81ecdfbb
RW
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280$as_echo "no" >&6; }
bec39cab
AC
2281fi
2282
81ecdfbb 2283
bec39cab
AC
2284fi
2285if test -z "$ac_cv_prog_CC"; then
2286 ac_ct_CC=$CC
2287 # Extract the first word of "gcc", so it can be a program name with args.
2288set dummy gcc; ac_word=$2
81ecdfbb
RW
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2291if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2292 $as_echo_n "(cached) " >&6
bec39cab
AC
2293else
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
81ecdfbb 2302 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab 2304 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2306 break 2
2307 fi
2308done
81ecdfbb
RW
2309 done
2310IFS=$as_save_IFS
bec39cab
AC
2311
2312fi
2313fi
2314ac_ct_CC=$ac_cv_prog_ac_ct_CC
2315if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2317$as_echo "$ac_ct_CC" >&6; }
bec39cab 2318else
81ecdfbb
RW
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2320$as_echo "no" >&6; }
bec39cab
AC
2321fi
2322
81ecdfbb
RW
2323 if test "x$ac_ct_CC" = x; then
2324 CC=""
2325 else
2326 case $cross_compiling:$ac_tool_warned in
2327yes:)
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2330ac_tool_warned=yes ;;
2331esac
2332 CC=$ac_ct_CC
2333 fi
bec39cab
AC
2334else
2335 CC="$ac_cv_prog_CC"
2336fi
2337
2338if test -z "$CC"; then
81ecdfbb
RW
2339 if test -n "$ac_tool_prefix"; then
2340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2341set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2343$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2344if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2345 $as_echo_n "(cached) " >&6
bec39cab
AC
2346else
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC="$CC" # Let the user override the test.
2349else
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
81ecdfbb 2355 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab 2357 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2359 break 2
2360 fi
2361done
81ecdfbb
RW
2362 done
2363IFS=$as_save_IFS
bec39cab
AC
2364
2365fi
2366fi
2367CC=$ac_cv_prog_CC
2368if test -n "$CC"; then
81ecdfbb
RW
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2370$as_echo "$CC" >&6; }
bec39cab 2371else
81ecdfbb
RW
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373$as_echo "no" >&6; }
bec39cab
AC
2374fi
2375
bec39cab 2376
81ecdfbb 2377 fi
bec39cab
AC
2378fi
2379if test -z "$CC"; then
2380 # Extract the first word of "cc", so it can be a program name with args.
2381set dummy cc; ac_word=$2
81ecdfbb
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2384if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2385 $as_echo_n "(cached) " >&6
bec39cab
AC
2386else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
2390 ac_prog_rejected=no
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
81ecdfbb 2396 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
2398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2399 ac_prog_rejected=yes
2400 continue
2401 fi
2402 ac_cv_prog_CC="cc"
81ecdfbb 2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2404 break 2
2405 fi
2406done
81ecdfbb
RW
2407 done
2408IFS=$as_save_IFS
bec39cab
AC
2409
2410if test $ac_prog_rejected = yes; then
2411 # We found a bogon in the path, so make sure we never use it.
2412 set dummy $ac_cv_prog_CC
2413 shift
2414 if test $# != 0; then
2415 # We chose a different compiler from the bogus one.
2416 # However, it has the same basename, so the bogon will be chosen
2417 # first if we set CC to just the basename; use the full file name.
2418 shift
2419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2420 fi
2421fi
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
81ecdfbb
RW
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2427$as_echo "$CC" >&6; }
bec39cab 2428else
81ecdfbb
RW
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430$as_echo "no" >&6; }
bec39cab
AC
2431fi
2432
81ecdfbb 2433
bec39cab
AC
2434fi
2435if test -z "$CC"; then
2436 if test -n "$ac_tool_prefix"; then
81ecdfbb 2437 for ac_prog in cl.exe
bec39cab
AC
2438 do
2439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2443if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2444 $as_echo_n "(cached) " >&6
bec39cab
AC
2445else
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
81ecdfbb 2454 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab 2456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2458 break 2
2459 fi
2460done
81ecdfbb
RW
2461 done
2462IFS=$as_save_IFS
bec39cab
AC
2463
2464fi
2465fi
2466CC=$ac_cv_prog_CC
2467if test -n "$CC"; then
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2469$as_echo "$CC" >&6; }
bec39cab 2470else
81ecdfbb
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
bec39cab
AC
2473fi
2474
81ecdfbb 2475
bec39cab
AC
2476 test -n "$CC" && break
2477 done
2478fi
2479if test -z "$CC"; then
2480 ac_ct_CC=$CC
81ecdfbb 2481 for ac_prog in cl.exe
bec39cab
AC
2482do
2483 # Extract the first word of "$ac_prog", so it can be a program name with args.
2484set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2487if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2488 $as_echo_n "(cached) " >&6
bec39cab
AC
2489else
2490 if test -n "$ac_ct_CC"; then
2491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
81ecdfbb 2498 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab 2500 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2502 break 2
2503 fi
2504done
81ecdfbb
RW
2505 done
2506IFS=$as_save_IFS
bec39cab
AC
2507
2508fi
2509fi
2510ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2513$as_echo "$ac_ct_CC" >&6; }
bec39cab 2514else
81ecdfbb
RW
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
bec39cab
AC
2517fi
2518
81ecdfbb 2519
bec39cab
AC
2520 test -n "$ac_ct_CC" && break
2521done
2522
81ecdfbb
RW
2523 if test "x$ac_ct_CC" = x; then
2524 CC=""
2525 else
2526 case $cross_compiling:$ac_tool_warned in
2527yes:)
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2530ac_tool_warned=yes ;;
2531esac
2532 CC=$ac_ct_CC
2533 fi
bec39cab
AC
2534fi
2535
2536fi
2537
2538
81ecdfbb
RW
2539test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2541as_fn_error $? "no acceptable C compiler found in \$PATH
2542See \`config.log' for more details" "$LINENO" 5; }
bec39cab
AC
2543
2544# Provide some information about the compiler.
81ecdfbb
RW
2545$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2546set X $ac_compile
2547ac_compiler=$2
2548for ac_option in --version -v -V -qversion; do
2549 { { ac_try="$ac_compiler $ac_option >&5"
2550case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555$as_echo "$ac_try_echo"; } >&5
2556 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2557 ac_status=$?
81ecdfbb
RW
2558 if test -s conftest.err; then
2559 sed '10a\
2560... rest of stderr output deleted ...
2561 10q' conftest.err >conftest.er1
2562 cat conftest.er1 >&5
81ecdfbb 2563 fi
d0ac1c44 2564 rm -f conftest.er1 conftest.err
81ecdfbb
RW
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; }
2567done
bec39cab 2568
81ecdfbb 2569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2570/* end confdefs.h. */
2571
2572int
2573main ()
2574{
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580ac_clean_files_save=$ac_clean_files
d0ac1c44 2581ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bec39cab
AC
2582# Try to create an executable without -o first, disregard a.out.
2583# It will help us diagnose broken compilers, and finding out an intuition
2584# of exeext.
d0ac1c44
SM
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2586$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
2587ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2588
2589# The possible output files:
2590ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2591
2592ac_rmfiles=
2593for ac_file in $ac_files
2594do
2595 case $ac_file in
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2597 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2598 esac
2599done
2600rm -f $ac_rmfiles
2601
2602if { { ac_try="$ac_link_default"
2603case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606esac
2607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608$as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_link_default") 2>&5
bec39cab 2610 ac_status=$?
81ecdfbb
RW
2611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2612 test $ac_status = 0; }; then :
2613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2614# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2615# in a Makefile. We should not override ac_cv_exeext if it was cached,
2616# so that the user can short-circuit this test for compilers unknown to
2617# Autoconf.
2618for ac_file in $ac_files ''
bec39cab
AC
2619do
2620 test -f "$ac_file" || continue
2621 case $ac_file in
81ecdfbb 2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2623 ;;
2624 [ab].out )
2625 # We found the default executable, but exeext='' is most
2626 # certainly right.
2627 break;;
2628 *.* )
81ecdfbb
RW
2629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2630 then :; else
2631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632 fi
2633 # We set ac_cv_exeext here because the later test for it is not
2634 # safe: cross compilers may not add the suffix if given an `-o'
2635 # argument, so we may need to know it at that point already.
2636 # Even if this section looks crufty: it has the advantage of
2637 # actually working.
bec39cab
AC
2638 break;;
2639 * )
2640 break;;
2641 esac
2642done
81ecdfbb
RW
2643test "$ac_cv_exeext" = no && ac_cv_exeext=
2644
bec39cab 2645else
81ecdfbb
RW
2646 ac_file=''
2647fi
81ecdfbb 2648if test -z "$ac_file"; then :
d0ac1c44
SM
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651$as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
81ecdfbb
RW
2654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2656as_fn_error 77 "C compiler cannot create executables
2657See \`config.log' for more details" "$LINENO" 5; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660$as_echo "yes" >&6; }
bec39cab 2661fi
d0ac1c44
SM
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2663$as_echo_n "checking for C compiler default output file name... " >&6; }
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2665$as_echo "$ac_file" >&6; }
bec39cab 2666ac_exeext=$ac_cv_exeext
bec39cab 2667
d0ac1c44 2668rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bec39cab 2669ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2671$as_echo_n "checking for suffix of executables... " >&6; }
2672if { { ac_try="$ac_link"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
2677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678$as_echo "$ac_try_echo"; } >&5
2679 (eval "$ac_link") 2>&5
bec39cab 2680 ac_status=$?
81ecdfbb
RW
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; }; then :
bec39cab
AC
2683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2684# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2685# work properly (i.e., refer to `conftest.exe'), while it won't with
2686# `rm'.
2687for ac_file in conftest.exe conftest conftest.*; do
2688 test -f "$ac_file" || continue
2689 case $ac_file in
81ecdfbb 2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2692 break;;
2693 * ) break;;
2694 esac
2695done
2696else
81ecdfbb
RW
2697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2699as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2700See \`config.log' for more details" "$LINENO" 5; }
bec39cab 2701fi
d0ac1c44 2702rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2704$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2705
2706rm -f conftest.$ac_ext
2707EXEEXT=$ac_cv_exeext
2708ac_exeext=$EXEEXT
d0ac1c44
SM
2709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711#include <stdio.h>
2712int
2713main ()
2714{
2715FILE *f = fopen ("conftest.out", "w");
2716 return ferror (f) || fclose (f) != 0;
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722ac_clean_files="$ac_clean_files conftest.out"
2723# Check that the compiler produces executables we can run. If not, either
2724# the compiler is broken, or we cross compile.
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2726$as_echo_n "checking whether we are cross compiling... " >&6; }
2727if test "$cross_compiling" != yes; then
2728 { { ac_try="$ac_link"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734$as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link") 2>&5
2736 ac_status=$?
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }
2739 if { ac_try='./conftest$ac_cv_exeext'
2740 { { case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745$as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_try") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; }; then
2750 cross_compiling=no
2751 else
2752 if test "$cross_compiling" = maybe; then
2753 cross_compiling=yes
2754 else
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 run C compiled programs.
2758If you meant to cross compile, use \`--host'.
2759See \`config.log' for more details" "$LINENO" 5; }
2760 fi
2761 fi
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2764$as_echo "$cross_compiling" >&6; }
2765
2766rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2767ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2769$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2770if ${ac_cv_objext+:} false; then :
81ecdfbb 2771 $as_echo_n "(cached) " >&6
bec39cab 2772else
81ecdfbb 2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2774/* end confdefs.h. */
2775
2776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784rm -f conftest.o conftest.obj
81ecdfbb
RW
2785if { { ac_try="$ac_compile"
2786case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791$as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_compile") 2>&5
bec39cab 2793 ac_status=$?
81ecdfbb
RW
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 for ac_file in conftest.o conftest.obj conftest.*; do
2797 test -f "$ac_file" || continue;
bec39cab 2798 case $ac_file in
81ecdfbb 2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 break;;
2802 esac
2803done
2804else
81ecdfbb 2805 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
81ecdfbb
RW
2808{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2810as_fn_error $? "cannot compute suffix of object files: cannot compile
2811See \`config.log' for more details" "$LINENO" 5; }
bec39cab 2812fi
bec39cab
AC
2813rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814fi
81ecdfbb
RW
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2816$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2817OBJEXT=$ac_cv_objext
2818ac_objext=$OBJEXT
81ecdfbb
RW
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2820$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2821if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 2822 $as_echo_n "(cached) " >&6
bec39cab 2823else
81ecdfbb 2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2825/* end confdefs.h. */
2826
2827int
2828main ()
2829{
2830#ifndef __GNUC__
2831 choke me
2832#endif
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
81ecdfbb 2838if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2839 ac_compiler_gnu=yes
2840else
81ecdfbb 2841 ac_compiler_gnu=no
bec39cab 2842fi
81ecdfbb 2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2844ac_cv_c_compiler_gnu=$ac_compiler_gnu
2845
2846fi
81ecdfbb
RW
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2848$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2849if test $ac_compiler_gnu = yes; then
2850 GCC=yes
2851else
2852 GCC=
2853fi
bec39cab
AC
2854ac_test_CFLAGS=${CFLAGS+set}
2855ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2857$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2858if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 2859 $as_echo_n "(cached) " >&6
bec39cab 2860else
81ecdfbb
RW
2861 ac_save_c_werror_flag=$ac_c_werror_flag
2862 ac_c_werror_flag=yes
2863 ac_cv_prog_cc_g=no
2864 CFLAGS="-g"
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2866/* end confdefs.h. */
2867
2868int
2869main ()
2870{
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
81ecdfbb 2876if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2877 ac_cv_prog_cc_g=yes
2878else
81ecdfbb
RW
2879 CFLAGS=""
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
bec39cab 2882
81ecdfbb
RW
2883int
2884main ()
2885{
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892
2893else
2894 ac_c_werror_flag=$ac_save_c_werror_flag
2895 CFLAGS="-g"
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */
2898
2899int
2900main ()
2901{
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_cv_prog_cc_g=yes
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2911fi
81ecdfbb 2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2913fi
81ecdfbb
RW
2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_c_werror_flag=$ac_save_c_werror_flag
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2918$as_echo "$ac_cv_prog_cc_g" >&6; }
bec39cab
AC
2919if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS=$ac_save_CFLAGS
2921elif test $ac_cv_prog_cc_g = yes; then
2922 if test "$GCC" = yes; then
2923 CFLAGS="-g -O2"
2924 else
2925 CFLAGS="-g"
2926 fi
2927else
2928 if test "$GCC" = yes; then
2929 CFLAGS="-O2"
2930 else
2931 CFLAGS=
2932 fi
2933fi
81ecdfbb
RW
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2935$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2936if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 2937 $as_echo_n "(cached) " >&6
bec39cab 2938else
81ecdfbb 2939 ac_cv_prog_cc_c89=no
bec39cab 2940ac_save_CC=$CC
81ecdfbb 2941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2942/* end confdefs.h. */
2943#include <stdarg.h>
2944#include <stdio.h>
d0ac1c44 2945struct stat;
bec39cab
AC
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
AC
3021
3022fi
bec39cab 3023
bec39cab
AC
3024ac_ext=c
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
3029
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
81ecdfbb
RW
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; }
dc62bfc2
MK
3038# On Suns, sometimes $CPP names a directory.
3039if test -n "$CPP" && test -d "$CPP"; then
3040 CPP=
3041fi
3042if test -z "$CPP"; then
d0ac1c44 3043 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 3044 $as_echo_n "(cached) " >&6
dc62bfc2 3045else
bec39cab
AC
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.
dc62bfc2 3056 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab 3057 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3059/* end confdefs.h. */
3060#ifdef __STDC__
3061# include <limits.h>
3062#else
3063# include <assert.h>
3064#endif
3065 Syntax error
3066_ACEOF
81ecdfbb 3067if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3068
81ecdfbb 3069else
bec39cab
AC
3070 # Broken: fails on valid input.
3071continue
3072fi
d0ac1c44 3073rm -f conftest.err conftest.i conftest.$ac_ext
bec39cab 3074
81ecdfbb 3075 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3076 # can be detected and how.
81ecdfbb 3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3078/* end confdefs.h. */
3079#include <ac_nonexistent.h>
3080_ACEOF
81ecdfbb 3081if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3082 # Broken: success on invalid input.
3083continue
3084else
bec39cab
AC
3085 # Passes both tests.
3086ac_preproc_ok=:
3087break
dc62bfc2 3088fi
d0ac1c44 3089rm -f conftest.err conftest.i conftest.$ac_ext
bec39cab
AC
3090
3091done
3092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3093rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 3094if $ac_preproc_ok; then :
bec39cab 3095 break
dc62bfc2 3096fi
bec39cab
AC
3097
3098 done
3099 ac_cv_prog_CPP=$CPP
3100
dc62bfc2 3101fi
bec39cab 3102 CPP=$ac_cv_prog_CPP
dc62bfc2 3103else
bec39cab 3104 ac_cv_prog_CPP=$CPP
dc62bfc2 3105fi
81ecdfbb
RW
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3107$as_echo "$CPP" >&6; }
bec39cab
AC
3108ac_preproc_ok=false
3109for ac_c_preproc_warn_flag in '' yes
dc62bfc2 3110do
bec39cab
AC
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.
81ecdfbb 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3118/* end confdefs.h. */
3119#ifdef __STDC__
3120# include <limits.h>
3121#else
3122# include <assert.h>
3123#endif
3124 Syntax error
3125_ACEOF
81ecdfbb 3126if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3127
81ecdfbb 3128else
bec39cab
AC
3129 # Broken: fails on valid input.
3130continue
3131fi
d0ac1c44 3132rm -f conftest.err conftest.i conftest.$ac_ext
bec39cab 3133
81ecdfbb 3134 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 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
dc62bfc2 3143else
bec39cab
AC
3144 # Passes both tests.
3145ac_preproc_ok=:
3146break
dc62bfc2 3147fi
d0ac1c44 3148rm -f conftest.err conftest.i conftest.$ac_ext
bec39cab 3149
dc62bfc2 3150done
bec39cab 3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3152rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
3153if $ac_preproc_ok; then :
3154
bec39cab 3155else
81ecdfbb
RW
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3158as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3159See \`config.log' for more details" "$LINENO" 5; }
bec39cab
AC
3160fi
3161
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
dc62bfc2
MK
3167
3168
81ecdfbb
RW
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; }
d0ac1c44 3171if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
3172 $as_echo_n "(cached) " >&6
3173else
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
3179do
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"
d0ac1c44 3185 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
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
d0ac1c44 3220 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3221 fi
3222else
3223 ac_cv_path_GREP=$GREP
3224fi
3225
3226fi
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"
3230
3231
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3233$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3234if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 3235 $as_echo_n "(cached) " >&6
93076499 3236else
81ecdfbb
RW
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"
d0ac1c44 3251 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
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
bec39cab 3273 fi
81ecdfbb
RW
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
3279
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
d0ac1c44 3286 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3287 fi
3288else
3289 ac_cv_path_EGREP=$EGREP
3290fi
3291
3292 fi
bec39cab 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"
93076499 3297
93076499 3298
81ecdfbb
RW
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; }
d0ac1c44 3301if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 3302 $as_echo_n "(cached) " >&6
bec39cab 3303else
81ecdfbb 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3305/* end confdefs.h. */
3306#include <stdlib.h>
3307#include <stdarg.h>
3308#include <string.h>
3309#include <float.h>
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
81ecdfbb 3319if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
3320 ac_cv_header_stdc=yes
3321else
81ecdfbb 3322 ac_cv_header_stdc=no
bec39cab 3323fi
81ecdfbb 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3325
3326if test $ac_cv_header_stdc = yes; then
3327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3329/* end confdefs.h. */
3330#include <string.h>
3331
3332_ACEOF
3333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3334 $EGREP "memchr" >/dev/null 2>&1; then :
3335
bec39cab
AC
3336else
3337 ac_cv_header_stdc=no
93076499
ND
3338fi
3339rm -f conftest*
bec39cab
AC
3340
3341fi
3342
3343if test $ac_cv_header_stdc = yes; then
3344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3346/* end confdefs.h. */
3347#include <stdlib.h>
3348
3349_ACEOF
3350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3351 $EGREP "free" >/dev/null 2>&1; then :
3352
bec39cab
AC
3353else
3354 ac_cv_header_stdc=no
3355fi
93076499 3356rm -f conftest*
bec39cab 3357
93076499
ND
3358fi
3359
bec39cab
AC
3360if test $ac_cv_header_stdc = yes; then
3361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3362 if test "$cross_compiling" = yes; then :
bec39cab 3363 :
93076499 3364else
81ecdfbb 3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3366/* end confdefs.h. */
3367#include <ctype.h>
81ecdfbb 3368#include <stdlib.h>
bec39cab
AC
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
93076499 3379
bec39cab
AC
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))
81ecdfbb
RW
3388 return 2;
3389 return 0;
bec39cab
AC
3390}
3391_ACEOF
81ecdfbb 3392if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3393
81ecdfbb
RW
3394else
3395 ac_cv_header_stdc=no
93076499 3396fi
81ecdfbb
RW
3397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3398 conftest.$ac_objext conftest.beam conftest.$ac_ext
bec39cab 3399fi
81ecdfbb 3400
bec39cab
AC
3401fi
3402fi
81ecdfbb
RW
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3404$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3405if test $ac_cv_header_stdc = yes; then
3406
81ecdfbb 3407$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3408
3409fi
3410
3411# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
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
81ecdfbb
RW
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"
d0ac1c44 3418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
bec39cab 3419 cat >>confdefs.h <<_ACEOF
81ecdfbb 3420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3421_ACEOF
3422
93076499
ND
3423fi
3424
bec39cab
AC
3425done
3426
93076499 3427
bec39cab 3428for ac_header in pthread.h
81ecdfbb
RW
3429do :
3430 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d0ac1c44 3431if test "x$ac_cv_header_pthread_h" = xyes; then :
bec39cab 3432 cat >>confdefs.h <<_ACEOF
81ecdfbb 3433#define HAVE_PTHREAD_H 1
bec39cab 3434_ACEOF
93076499 3435
bec39cab 3436fi
93076499 3437
bec39cab
AC
3438done
3439
3440
3441
3442
2a31c623
PA
3443if test "${build}" = "${host}" -a "${host}" = "${target}"; then
3444 case "${host}" in
3445 *gnu*)
3446 EXTRA_RULES=read1
3447 ;;
3448 esac
3449fi
3450
3451
497c491b
JM
3452# Transform the name of some programs and generate the lib/pdtrace
3453# test tool.
3454test "$program_prefix" != NONE &&
3455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3456# Use a double $ so make ignores it.
3457test "$program_suffix" != NONE &&
3458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3459# Double any \ or $.
3460# By default was `s,x,x', remove it if useless.
3461ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3462program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3463
497c491b 3464
f6a88844
JM
3465 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
3466 STRIP_TRANSFORM_NAME=`echo strip | sed -e "$gdb_ac_transform"`
3467 if test "x$STRIP_TRANSFORM_NAME" = x; then
3468 STRIP_TRANSFORM_NAME=strip
3469 fi
497c491b 3470
497c491b 3471
f6a88844
JM
3472
3473 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
3474 READELF_TRANSFORM_NAME=`echo readelf | sed -e "$gdb_ac_transform"`
3475 if test "x$READELF_TRANSFORM_NAME" = x; then
3476 READELF_TRANSFORM_NAME=readelf
3477 fi
3478
3479
3480
3481 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
3482 GAS_TRANSFORM_NAME=`echo as | sed -e "$gdb_ac_transform"`
3483 if test "x$GAS_TRANSFORM_NAME" = x; then
3484 GAS_TRANSFORM_NAME=as
3485 fi
3486
3487
3488
3489 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
3490 NM_TRANSFORM_NAME=`echo nm | sed -e "$gdb_ac_transform"`
3491 if test "x$NM_TRANSFORM_NAME" = x; then
3492 NM_TRANSFORM_NAME=nm
3493 fi
3494
497c491b
JM
3495
3496ac_config_files="$ac_config_files lib/pdtrace"
3497
2151ccc5 3498ac_config_files="$ac_config_files Makefile"
81ecdfbb 3499
1e94266c 3500
bec39cab 3501cat >confcache <<\_ACEOF
c906108c
SS
3502# This file is a shell script that caches the results of configure
3503# tests run on this system so they can be shared between configure
bec39cab
AC
3504# scripts and configure runs, see configure's option --config-cache.
3505# It is not useful on other systems. If it contains results you don't
3506# want to keep, you may remove or edit it.
c906108c 3507#
bec39cab
AC
3508# config.status only pays attention to the cache file if you give it
3509# the --recheck option to rerun configure.
c906108c 3510#
bec39cab
AC
3511# `ac_cv_env_foo' variables (set or unset) will be overridden when
3512# loading this file, other *unset* `ac_cv_foo' will be assigned the
3513# following values.
3514
3515_ACEOF
3516
c906108c
SS
3517# The following way of writing the cache mishandles newlines in values,
3518# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3519# So, we kill variables containing newlines.
c906108c
SS
3520# Ultrix sh set writes to stderr and can't be redirected directly,
3521# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3522(
3523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3524 eval ac_val=\$$ac_var
3525 case $ac_val in #(
3526 *${as_nl}*)
3527 case $ac_var in #(
3528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3529$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3530 esac
3531 case $ac_var in #(
3532 _ | IFS | as_nl) ;; #(
3533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3534 *) { eval $ac_var=; unset $ac_var;} ;;
3535 esac ;;
3536 esac
3537 done
3538
bec39cab 3539 (set) 2>&1 |
81ecdfbb
RW
3540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3541 *${as_nl}ac_space=\ *)
3542 # `set' does not quote correctly, so add quotes: double-quote
3543 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
3544 sed -n \
3545 "s/'/'\\\\''/g;
3546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3547 ;; #(
bec39cab
AC
3548 *)
3549 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 3551 ;;
81ecdfbb
RW
3552 esac |
3553 sort
3554) |
bec39cab 3555 sed '
81ecdfbb 3556 /^ac_cv_env_/b end
bec39cab 3557 t clear
81ecdfbb 3558 :clear
bec39cab
AC
3559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3560 t end
81ecdfbb
RW
3561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3562 :end' >>confcache
3563if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3564 if test -w "$cache_file"; then
d0ac1c44 3565 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3567$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
3568 if test ! -f "$cache_file" || test -h "$cache_file"; then
3569 cat confcache >"$cache_file"
3570 else
3571 case $cache_file in #(
3572 */* | ?:*)
3573 mv -f confcache "$cache_file"$$ &&
3574 mv -f "$cache_file"$$ "$cache_file" ;; #(
3575 *)
3576 mv -f confcache "$cache_file" ;;
3577 esac
3578 fi
3579 fi
c906108c 3580 else
81ecdfbb
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3582$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
3583 fi
3584fi
3585rm -f confcache
3586
c906108c
SS
3587test "x$prefix" = xNONE && prefix=$ac_default_prefix
3588# Let make expand exec_prefix.
3589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3590
5710a1af
EZ
3591# Transform confdefs.h into DEFS.
3592# Protect against shell expansion while executing Makefile rules.
3593# Protect against Makefile macro expansion.
bec39cab
AC
3594#
3595# If the first sed substitution is executed (which looks for macros that
81ecdfbb 3596# take arguments), then branch to the quote section. Otherwise,
bec39cab 3597# look for a macro that doesn't take arguments.
81ecdfbb
RW
3598ac_script='
3599:mline
3600/\\$/{
3601 N
3602 s,\\\n,,
3603 b mline
3604}
bec39cab 3605t clear
81ecdfbb
RW
3606:clear
3607s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3608t quote
81ecdfbb 3609s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3610t quote
81ecdfbb
RW
3611b any
3612:quote
3613s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3614s/\[/\\&/g
3615s/\]/\\&/g
3616s/\$/$$/g
3617H
3618:any
3619${
3620 g
3621 s/^\n//
3622 s/\n/ /g
3623 p
3624}
3625'
3626DEFS=`sed -n "$ac_script" confdefs.h`
bec39cab
AC
3627
3628
3629ac_libobjs=
3630ac_ltlibobjs=
d0ac1c44 3631U=
bec39cab
AC
3632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3633 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3637 # will be set to the directory where LIBOBJS objects are built.
3638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
3640done
3641LIBOBJS=$ac_libobjs
c906108c 3642
bec39cab
AC
3643LTLIBOBJS=$ac_ltlibobjs
3644
3645
3646
d0ac1c44 3647: "${CONFIG_STATUS=./config.status}"
81ecdfbb 3648ac_write_fail=0
bec39cab
AC
3649ac_clean_files_save=$ac_clean_files
3650ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3652$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3653as_write_fail=0
3654cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
3655#! $SHELL
3656# Generated by $as_me.
c906108c 3657# Run this file to recreate the current configuration.
c906108c 3658# Compiler output produced by configure, useful for debugging
bec39cab
AC
3659# configure, is in config.log if it exists.
3660
3661debug=false
3662ac_cs_recheck=false
3663ac_cs_silent=false
bec39cab 3664
81ecdfbb
RW
3665SHELL=\${CONFIG_SHELL-$SHELL}
3666export SHELL
3667_ASEOF
3668cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3669## -------------------- ##
3670## M4sh Initialization. ##
3671## -------------------- ##
3672
3673# Be more Bourne compatible
3674DUALCASE=1; export DUALCASE # for MKS sh
3675if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
3676 emulate sh
3677 NULLCMD=:
81ecdfbb 3678 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
3679 # is contrary to our usage. Disable this feature.
3680 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3681 setopt NO_GLOB_SUBST
3682else
3683 case `(set -o) 2>/dev/null` in #(
3684 *posix*) :
3685 set -o posix ;; #(
3686 *) :
3687 ;;
3688esac
bec39cab 3689fi
c906108c 3690
81ecdfbb
RW
3691
3692as_nl='
3693'
3694export as_nl
3695# Printing a long string crashes Solaris 7 /usr/bin/printf.
3696as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3699# Prefer a ksh shell builtin over an external printf program on Solaris,
3700# but without wasting forks for bash or zsh.
3701if test -z "$BASH_VERSION$ZSH_VERSION" \
3702 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3703 as_echo='print -r --'
3704 as_echo_n='print -rn --'
3705elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3706 as_echo='printf %s\n'
3707 as_echo_n='printf %s'
bec39cab 3708else
81ecdfbb
RW
3709 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3710 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3711 as_echo_n='/usr/ucb/echo -n'
3712 else
3713 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3714 as_echo_n_body='eval
3715 arg=$1;
3716 case $arg in #(
3717 *"$as_nl"*)
3718 expr "X$arg" : "X\\(.*\\)$as_nl";
3719 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3720 esac;
3721 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3722 '
3723 export as_echo_n_body
3724 as_echo_n='sh -c $as_echo_n_body as_echo'
3725 fi
3726 export as_echo_body
3727 as_echo='sh -c $as_echo_body as_echo'
bec39cab
AC
3728fi
3729
81ecdfbb
RW
3730# The user is always right.
3731if test "${PATH_SEPARATOR+set}" != set; then
3732 PATH_SEPARATOR=:
3733 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3734 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3735 PATH_SEPARATOR=';'
3736 }
3737fi
bec39cab 3738
81ecdfbb
RW
3739
3740# IFS
3741# We need space, tab and new line, in precisely that order. Quoting is
3742# there to prevent editors from complaining about space-tab.
3743# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3744# splitting by setting IFS to empty value.)
3745IFS=" "" $as_nl"
3746
3747# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 3748as_myself=
81ecdfbb
RW
3749case $0 in #((
3750 *[\\/]* ) as_myself=$0 ;;
3751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3757 done
3758IFS=$as_save_IFS
3759
3760 ;;
3761esac
3762# We did not find ourselves, most probably we were run as `sh COMMAND'
3763# in which case we are not to be found in the path.
3764if test "x$as_myself" = x; then
3765 as_myself=$0
3766fi
3767if test ! -f "$as_myself"; then
3768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3769 exit 1
3770fi
3771
3772# Unset variables that we do not need and which cause bugs (e.g. in
3773# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3774# suppresses any "Segmentation fault" message there. '((' could
3775# trigger a bug in pdksh 5.2.14.
3776for as_var in BASH_ENV ENV MAIL MAILPATH
3777do eval test x\${$as_var+set} = xset \
3778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3779done
bec39cab
AC
3780PS1='$ '
3781PS2='> '
3782PS4='+ '
3783
3784# NLS nuisances.
81ecdfbb
RW
3785LC_ALL=C
3786export LC_ALL
3787LANGUAGE=C
3788export LANGUAGE
3789
3790# CDPATH.
3791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3792
3793
d0ac1c44
SM
3794# as_fn_error STATUS ERROR [LINENO LOG_FD]
3795# ----------------------------------------
81ecdfbb
RW
3796# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3797# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 3798# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
3799as_fn_error ()
3800{
d0ac1c44
SM
3801 as_status=$1; test $as_status -eq 0 && as_status=1
3802 if test "$4"; then
3803 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
bec39cab 3805 fi
d0ac1c44 3806 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
3807 as_fn_exit $as_status
3808} # as_fn_error
3809
c906108c 3810
81ecdfbb
RW
3811# as_fn_set_status STATUS
3812# -----------------------
3813# Set $? to STATUS, without forking.
3814as_fn_set_status ()
3815{
3816 return $1
3817} # as_fn_set_status
3818
3819# as_fn_exit STATUS
3820# -----------------
3821# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3822as_fn_exit ()
3823{
3824 set +e
3825 as_fn_set_status $1
3826 exit $1
3827} # as_fn_exit
3828
3829# as_fn_unset VAR
3830# ---------------
3831# Portably unset VAR.
3832as_fn_unset ()
3833{
3834 { eval $1=; unset $1;}
3835}
3836as_unset=as_fn_unset
3837# as_fn_append VAR VALUE
3838# ----------------------
3839# Append the text in VALUE to the end of the definition contained in VAR. Take
3840# advantage of any shell optimizations that allow amortized linear growth over
3841# repeated appends, instead of the typical quadratic growth present in naive
3842# implementations.
3843if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3844 eval 'as_fn_append ()
3845 {
3846 eval $1+=\$2
3847 }'
3848else
3849 as_fn_append ()
3850 {
3851 eval $1=\$$1\$2
3852 }
3853fi # as_fn_append
3854
3855# as_fn_arith ARG...
3856# ------------------
3857# Perform arithmetic evaluation on the ARGs, and store the result in the
3858# global $as_val. Take advantage of shells that can avoid forks. The arguments
3859# must be portable across $(()) and expr.
3860if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3861 eval 'as_fn_arith ()
3862 {
3863 as_val=$(( $* ))
3864 }'
3865else
3866 as_fn_arith ()
3867 {
3868 as_val=`expr "$@" || test $? -eq 1`
3869 }
3870fi # as_fn_arith
3871
3872
3873if expr a : '\(a\)' >/dev/null 2>&1 &&
3874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
3875 as_expr=expr
3876else
3877 as_expr=false
3878fi
c906108c 3879
81ecdfbb 3880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
3881 as_basename=basename
3882else
3883 as_basename=false
3884fi
3885
81ecdfbb
RW
3886if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3887 as_dirname=dirname
3888else
3889 as_dirname=false
3890fi
bec39cab 3891
81ecdfbb 3892as_me=`$as_basename -- "$0" ||
bec39cab
AC
3893$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3894 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3896$as_echo X/"$0" |
3897 sed '/^.*\/\([^/][^/]*\)\/*$/{
3898 s//\1/
3899 q
3900 }
3901 /^X\/\(\/\/\)$/{
3902 s//\1/
3903 q
3904 }
3905 /^X\/\(\/\).*/{
3906 s//\1/
3907 q
3908 }
3909 s/.*/./; q'`
bec39cab 3910
bec39cab
AC
3911# Avoid depending upon Character Ranges.
3912as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3914as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3915as_cr_digits='0123456789'
3916as_cr_alnum=$as_cr_Letters$as_cr_digits
3917
81ecdfbb
RW
3918ECHO_C= ECHO_N= ECHO_T=
3919case `echo -n x` in #(((((
3920-n*)
3921 case `echo 'xy\c'` in
3922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3923 xy) ECHO_C='\c';;
3924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3925 ECHO_T=' ';;
3926 esac;;
3927*)
3928 ECHO_N='-n';;
bec39cab
AC
3929esac
3930
81ecdfbb
RW
3931rm -f conf$$ conf$$.exe conf$$.file
3932if test -d conf$$.dir; then
3933 rm -f conf$$.dir/conf$$.file
bec39cab 3934else
81ecdfbb
RW
3935 rm -f conf$$.dir
3936 mkdir conf$$.dir 2>/dev/null
bec39cab 3937fi
81ecdfbb
RW
3938if (echo >conf$$.file) 2>/dev/null; then
3939 if ln -s conf$$.file conf$$ 2>/dev/null; then
bec39cab 3940 as_ln_s='ln -s'
81ecdfbb
RW
3941 # ... but there are two gotchas:
3942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 3944 # In both cases, we have to default to `cp -pR'.
81ecdfbb 3945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 3946 as_ln_s='cp -pR'
81ecdfbb
RW
3947 elif ln conf$$.file conf$$ 2>/dev/null; then
3948 as_ln_s=ln
3949 else
d0ac1c44 3950 as_ln_s='cp -pR'
c906108c 3951 fi
bec39cab 3952else
d0ac1c44 3953 as_ln_s='cp -pR'
bec39cab 3954fi
81ecdfbb
RW
3955rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3956rmdir conf$$.dir 2>/dev/null
3957
3958
3959# as_fn_mkdir_p
3960# -------------
3961# Create "$as_dir" as a directory, including parents if necessary.
3962as_fn_mkdir_p ()
3963{
3964
3965 case $as_dir in #(
3966 -*) as_dir=./$as_dir;;
3967 esac
3968 test -d "$as_dir" || eval $as_mkdir_p || {
3969 as_dirs=
3970 while :; do
3971 case $as_dir in #(
3972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3973 *) as_qdir=$as_dir;;
3974 esac
3975 as_dirs="'$as_qdir' $as_dirs"
3976 as_dir=`$as_dirname -- "$as_dir" ||
3977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3978 X"$as_dir" : 'X\(//\)[^/]' \| \
3979 X"$as_dir" : 'X\(//\)$' \| \
3980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3981$as_echo X"$as_dir" |
3982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3983 s//\1/
3984 q
3985 }
3986 /^X\(\/\/\)[^/].*/{
3987 s//\1/
3988 q
3989 }
3990 /^X\(\/\/\)$/{
3991 s//\1/
3992 q
3993 }
3994 /^X\(\/\).*/{
3995 s//\1/
3996 q
3997 }
3998 s/.*/./; q'`
3999 test -d "$as_dir" && break
4000 done
4001 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 4002 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
bec39cab 4003
81ecdfbb
RW
4004
4005} # as_fn_mkdir_p
bec39cab 4006if mkdir -p . 2>/dev/null; then
81ecdfbb 4007 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
4008else
4009 test -d ./-p && rmdir ./-p
4010 as_mkdir_p=false
4011fi
4012
d0ac1c44
SM
4013
4014# as_fn_executable_p FILE
4015# -----------------------
4016# Test if FILE is an executable regular file.
4017as_fn_executable_p ()
4018{
4019 test -f "$1" && test -x "$1"
4020} # as_fn_executable_p
4021as_test_x='test -x'
4022as_executable_p=as_fn_executable_p
bec39cab
AC
4023
4024# Sed expression to map a string onto a valid CPP name.
4025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4026
4027# Sed expression to map a string onto a valid variable name.
4028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4029
4030
bec39cab 4031exec 6>&1
81ecdfbb
RW
4032## ----------------------------------- ##
4033## Main body of $CONFIG_STATUS script. ##
4034## ----------------------------------- ##
4035_ASEOF
4036test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4037
4038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4039# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 4040# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
4041# values after options handling.
4042ac_log="
bec39cab 4043This file was extended by $as_me, which was
d0ac1c44 4044generated by GNU Autoconf 2.69. Invocation command line was
bec39cab
AC
4045
4046 CONFIG_FILES = $CONFIG_FILES
4047 CONFIG_HEADERS = $CONFIG_HEADERS
4048 CONFIG_LINKS = $CONFIG_LINKS
4049 CONFIG_COMMANDS = $CONFIG_COMMANDS
4050 $ $0 $@
4051
81ecdfbb
RW
4052on `(hostname || uname -n) 2>/dev/null | sed 1q`
4053"
4054
bec39cab
AC
4055_ACEOF
4056
81ecdfbb
RW
4057case $ac_config_files in *"
4058"*) set x $ac_config_files; shift; ac_config_files=$*;;
4059esac
bec39cab 4060
bec39cab 4061
bec39cab 4062
81ecdfbb
RW
4063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4064# Files that config.status was made for.
4065config_files="$ac_config_files"
bec39cab 4066
81ecdfbb 4067_ACEOF
bec39cab 4068
81ecdfbb 4069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4070ac_cs_usage="\
81ecdfbb
RW
4071\`$as_me' instantiates files and other configuration actions
4072from templates according to the current configuration. Unless the files
4073and actions are specified as TAGs, all are instantiated by default.
bec39cab 4074
81ecdfbb 4075Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
4076
4077 -h, --help print this help, then exit
81ecdfbb 4078 -V, --version print version number and configuration settings, then exit
d0ac1c44 4079 --config print configuration, then exit
81ecdfbb
RW
4080 -q, --quiet, --silent
4081 do not print progress messages
bec39cab
AC
4082 -d, --debug don't remove temporary files
4083 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
4084 --file=FILE[:TEMPLATE]
4085 instantiate the configuration file FILE
bec39cab
AC
4086
4087Configuration files:
4088$config_files
4089
81ecdfbb 4090Report bugs to the package provider."
bec39cab 4091
81ecdfbb
RW
4092_ACEOF
4093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 4094ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
bec39cab
AC
4095ac_cs_version="\\
4096config.status
d0ac1c44
SM
4097configured by $0, generated by GNU Autoconf 2.69,
4098 with options \\"\$ac_cs_config\\"
bec39cab 4099
d0ac1c44 4100Copyright (C) 2012 Free Software Foundation, Inc.
bec39cab
AC
4101This config.status script is free software; the Free Software Foundation
4102gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
4103
4104ac_pwd='$ac_pwd'
4105srcdir='$srcdir'
4106test -n "\$AWK" || AWK=awk
bec39cab
AC
4107_ACEOF
4108
81ecdfbb
RW
4109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4110# The default lists apply if the user does not specify any file.
bec39cab
AC
4111ac_need_defaults=:
4112while test $# != 0
4113do
4114 case $1 in
d0ac1c44 4115 --*=?*)
81ecdfbb
RW
4116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
4118 ac_shift=:
4119 ;;
d0ac1c44
SM
4120 --*=)
4121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4122 ac_optarg=
4123 ac_shift=:
4124 ;;
81ecdfbb 4125 *)
bec39cab
AC
4126 ac_option=$1
4127 ac_optarg=$2
4128 ac_shift=shift
4129 ;;
bec39cab
AC
4130 esac
4131
4132 case $ac_option in
4133 # Handling of the options.
bec39cab
AC
4134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4135 ac_cs_recheck=: ;;
81ecdfbb
RW
4136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4137 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
4138 --config | --confi | --conf | --con | --co | --c )
4139 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 4140 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
4141 debug=: ;;
4142 --file | --fil | --fi | --f )
4143 $ac_shift
81ecdfbb
RW
4144 case $ac_optarg in
4145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 4146 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
4147 esac
4148 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab 4149 ac_need_defaults=false;;
81ecdfbb
RW
4150 --he | --h | --help | --hel | -h )
4151 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
4152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4154 ac_cs_silent=: ;;
4155
4156 # This is an error.
d0ac1c44 4157 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 4158Try \`$0 --help' for more information." ;;
bec39cab 4159
81ecdfbb
RW
4160 *) as_fn_append ac_config_targets " $1"
4161 ac_need_defaults=false ;;
c906108c 4162
c906108c 4163 esac
bec39cab
AC
4164 shift
4165done
4166
4167ac_configure_extra_args=
4168
4169if $ac_cs_silent; then
4170 exec 6>/dev/null
4171 ac_configure_extra_args="$ac_configure_extra_args --silent"
4172fi
4173
4174_ACEOF
81ecdfbb 4175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 4176if \$ac_cs_recheck; then
d0ac1c44 4177 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
4178 shift
4179 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4180 CONFIG_SHELL='$SHELL'
4181 export CONFIG_SHELL
4182 exec "\$@"
bec39cab
AC
4183fi
4184
4185_ACEOF
81ecdfbb
RW
4186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4187exec 5>>config.log
4188{
4189 echo
4190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4191## Running $as_me. ##
4192_ASBOX
4193 $as_echo "$ac_log"
4194} >&5
c906108c 4195
81ecdfbb
RW
4196_ACEOF
4197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4198_ACEOF
c906108c 4199
81ecdfbb 4200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4201
81ecdfbb 4202# Handling of arguments.
bec39cab
AC
4203for ac_config_target in $ac_config_targets
4204do
81ecdfbb 4205 case $ac_config_target in
497c491b 4206 "lib/pdtrace") CONFIG_FILES="$CONFIG_FILES lib/pdtrace" ;;
81ecdfbb 4207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb 4208
d0ac1c44 4209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 4210 esac
bec39cab
AC
4211done
4212
81ecdfbb 4213
bec39cab
AC
4214# If the user did not use the arguments to specify the items to instantiate,
4215# then the envvar interface is used. Set only those that are not.
4216# We use the long form for the default assignment because of an extremely
4217# bizarre bug on SunOS 4.1.3.
4218if $ac_need_defaults; then
4219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4220fi
4221
4222# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 4223# simply because there is no reason against having it here, and in addition,
bec39cab 4224# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
4225# Hook for its removal unless debugging.
4226# Note that there is a small window in which the directory will not be cleaned:
4227# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
4228$debug ||
4229{
d0ac1c44 4230 tmp= ac_tmp=
81ecdfbb 4231 trap 'exit_status=$?
d0ac1c44
SM
4232 : "${ac_tmp:=$tmp}"
4233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
4234' 0
4235 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 4236}
bec39cab
AC
4237# Create a (secure) tmp directory for tmp files.
4238
4239{
81ecdfbb 4240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 4241 test -d "$tmp"
bec39cab
AC
4242} ||
4243{
81ecdfbb
RW
4244 tmp=./conf$$-$RANDOM
4245 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
4246} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4247ac_tmp=$tmp
81ecdfbb
RW
4248
4249# Set up the scripts for CONFIG_FILES section.
4250# No need to generate them if there are no CONFIG_FILES.
4251# This happens for instance with `./config.status config.h'.
4252if test -n "$CONFIG_FILES"; then
4253
4254
4255ac_cr=`echo X | tr X '\015'`
4256# On cygwin, bash can eat \r inside `` if the user requested igncr.
4257# But we know of no other shell where ac_cr would be empty at this
4258# point, so we can use a bashism as a fallback.
4259if test "x$ac_cr" = x; then
4260 eval ac_cr=\$\'\\r\'
4261fi
4262ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4263if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 4264 ac_cs_awk_cr='\\r'
81ecdfbb
RW
4265else
4266 ac_cs_awk_cr=$ac_cr
4267fi
4268
d0ac1c44 4269echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
4270_ACEOF
4271
4272
bec39cab 4273{
81ecdfbb
RW
4274 echo "cat >conf$$subs.awk <<_ACEOF" &&
4275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4276 echo "_ACEOF"
4277} >conf$$subs.sh ||
d0ac1c44
SM
4278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4279ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
4280ac_delim='%!_!# '
4281for ac_last_try in false false false false false :; do
4282 . ./conf$$subs.sh ||
d0ac1c44 4283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
4284
4285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4286 if test $ac_delim_n = $ac_delim_num; then
4287 break
4288 elif $ac_last_try; then
d0ac1c44 4289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
4290 else
4291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4292 fi
4293done
4294rm -f conf$$subs.sh
4295
4296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 4297cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
4298_ACEOF
4299sed -n '
4300h
4301s/^/S["/; s/!.*/"]=/
4302p
4303g
4304s/^[^!]*!//
4305:repl
4306t repl
4307s/'"$ac_delim"'$//
4308t delim
4309:nl
4310h
d0ac1c44 4311s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
4312t more1
4313s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4314p
4315n
4316b repl
4317:more1
4318s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4319p
4320g
4321s/.\{148\}//
4322t nl
4323:delim
4324h
d0ac1c44 4325s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
4326t more2
4327s/["\\]/\\&/g; s/^/"/; s/$/"/
4328p
4329b
4330:more2
4331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4332p
4333g
4334s/.\{148\}//
4335t delim
4336' <conf$$subs.awk | sed '
4337/^[^""]/{
4338 N
4339 s/\n//
4340}
4341' >>$CONFIG_STATUS || ac_write_fail=1
4342rm -f conf$$subs.awk
4343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4344_ACAWK
d0ac1c44 4345cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
4346 for (key in S) S_is_set[key] = 1
4347 FS = "\a"
4348
4349}
4350{
4351 line = $ 0
4352 nfields = split(line, field, "@")
4353 substed = 0
4354 len = length(field[1])
4355 for (i = 2; i < nfields; i++) {
4356 key = field[i]
4357 keylen = length(key)
4358 if (S_is_set[key]) {
4359 value = S[key]
4360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4361 len += length(value) + length(field[++i])
4362 substed = 1
4363 } else
4364 len += 1 + keylen
4365 }
4366
4367 print line
bec39cab
AC
4368}
4369
81ecdfbb
RW
4370_ACAWK
4371_ACEOF
4372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4373if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4375else
4376 cat
d0ac1c44
SM
4377fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
bec39cab
AC
4379_ACEOF
4380
d0ac1c44
SM
4381# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4382# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
4383# trailing colons and then remove the whole line if VPATH becomes empty
4384# (actually we leave an empty line to preserve line numbers).
4385if test "x$srcdir" = x.; then
d0ac1c44
SM
4386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4387h
4388s///
4389s/^/:/
4390s/[ ]*$/:/
4391s/:\$(srcdir):/:/g
4392s/:\${srcdir}:/:/g
4393s/:@srcdir@:/:/g
4394s/^:*//
81ecdfbb 4395s/:*$//
d0ac1c44
SM
4396x
4397s/\(=[ ]*\).*/\1/
4398G
4399s/\n//
81ecdfbb
RW
4400s/^[^=]*=[ ]*$//
4401}'
4402fi
c906108c 4403
81ecdfbb
RW
4404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4405fi # test -n "$CONFIG_FILES"
c906108c 4406
c906108c 4407
81ecdfbb
RW
4408eval set X " :F $CONFIG_FILES "
4409shift
4410for ac_tag
4411do
4412 case $ac_tag in
4413 :[FHLC]) ac_mode=$ac_tag; continue;;
4414 esac
4415 case $ac_mode$ac_tag in
4416 :[FHL]*:*);;
d0ac1c44 4417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
4418 :[FH]-) ac_tag=-:-;;
4419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4420 esac
4421 ac_save_IFS=$IFS
4422 IFS=:
4423 set x $ac_tag
4424 IFS=$ac_save_IFS
4425 shift
4426 ac_file=$1
4427 shift
bec39cab 4428
81ecdfbb
RW
4429 case $ac_mode in
4430 :L) ac_source=$1;;
4431 :[FH])
4432 ac_file_inputs=
4433 for ac_f
4434 do
4435 case $ac_f in
d0ac1c44 4436 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
4437 *) # Look for the file first in the build tree, then in the source tree
4438 # (if the path is not absolute). The absolute path cannot be DOS-style,
4439 # because $ac_f cannot contain `:'.
4440 test -f "$ac_f" ||
4441 case $ac_f in
4442 [\\/$]*) false;;
4443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4444 esac ||
d0ac1c44 4445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
4446 esac
4447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4448 as_fn_append ac_file_inputs " '$ac_f'"
4449 done
4450
4451 # Let's still pretend it is `configure' which instantiates (i.e., don't
4452 # use $as_me), people would be surprised to read:
4453 # /* config.h. Generated by config.status. */
4454 configure_input='Generated from '`
4455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4456 `' by configure.'
4457 if test x"$ac_file" != x-; then
4458 configure_input="$ac_file. $configure_input"
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4460$as_echo "$as_me: creating $ac_file" >&6;}
bec39cab 4461 fi
81ecdfbb
RW
4462 # Neutralize special characters interpreted by sed in replacement strings.
4463 case $configure_input in #(
4464 *\&* | *\|* | *\\* )
4465 ac_sed_conf_input=`$as_echo "$configure_input" |
4466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4467 *) ac_sed_conf_input=$configure_input;;
4468 esac
c906108c 4469
81ecdfbb 4470 case $ac_tag in
d0ac1c44
SM
4471 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
4473 esac
4474 ;;
bec39cab
AC
4475 esac
4476
81ecdfbb 4477 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
4478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4479 X"$ac_file" : 'X\(//\)[^/]' \| \
4480 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4482$as_echo X"$ac_file" |
4483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4484 s//\1/
4485 q
4486 }
4487 /^X\(\/\/\)[^/].*/{
4488 s//\1/
4489 q
4490 }
4491 /^X\(\/\/\)$/{
4492 s//\1/
4493 q
4494 }
4495 /^X\(\/\).*/{
4496 s//\1/
4497 q
4498 }
4499 s/.*/./; q'`
4500 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
4501 ac_builddir=.
4502
81ecdfbb
RW
4503case "$ac_dir" in
4504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4505*)
4506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4507 # A ".." for each directory in $ac_dir_suffix.
4508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4509 case $ac_top_builddir_sub in
4510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4512 esac ;;
4513esac
4514ac_abs_top_builddir=$ac_pwd
4515ac_abs_builddir=$ac_pwd$ac_dir_suffix
4516# for backward compatibility:
4517ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
4518
4519case $srcdir in
81ecdfbb 4520 .) # We are building in place.
bec39cab 4521 ac_srcdir=.
81ecdfbb
RW
4522 ac_top_srcdir=$ac_top_builddir_sub
4523 ac_abs_top_srcdir=$ac_pwd ;;
4524 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 4525 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4526 ac_top_srcdir=$srcdir
4527 ac_abs_top_srcdir=$srcdir ;;
4528 *) # Relative name.
4529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4530 ac_top_srcdir=$ac_top_build_prefix$srcdir
4531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 4532esac
81ecdfbb 4533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 4534
bec39cab 4535
81ecdfbb
RW
4536 case $ac_mode in
4537 :F)
4538 #
4539 # CONFIG_FILE
4540 #
bec39cab 4541
81ecdfbb 4542_ACEOF
bec39cab 4543
81ecdfbb
RW
4544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4545# If the template does not know about datarootdir, expand it.
4546# FIXME: This hack should be removed a few years after 2.60.
4547ac_datarootdir_hack=; ac_datarootdir_seen=
4548ac_sed_dataroot='
4549/datarootdir/ {
4550 p
4551 q
4552}
4553/@datadir@/p
4554/@docdir@/p
4555/@infodir@/p
4556/@localedir@/p
4557/@mandir@/p'
4558case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4559*datarootdir*) ac_datarootdir_seen=yes;;
4560*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4562$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
bec39cab 4563_ACEOF
81ecdfbb
RW
4564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4565 ac_datarootdir_hack='
4566 s&@datadir@&$datadir&g
4567 s&@docdir@&$docdir&g
4568 s&@infodir@&$infodir&g
4569 s&@localedir@&$localedir&g
4570 s&@mandir@&$mandir&g
4571 s&\\\${datarootdir}&$datarootdir&g' ;;
4572esac
4573_ACEOF
4574
4575# Neutralize VPATH when `$srcdir' = `.'.
4576# Shell code in configure.ac might set extrasub.
4577# FIXME: do we really want to maintain this feature?
4578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4579ac_sed_extra="$ac_vpsub
bec39cab
AC
4580$extrasub
4581_ACEOF
81ecdfbb 4582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
4583:t
4584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
4585s|@configure_input@|$ac_sed_conf_input|;t t
4586s&@top_builddir@&$ac_top_builddir_sub&;t t
4587s&@top_build_prefix@&$ac_top_build_prefix&;t t
4588s&@srcdir@&$ac_srcdir&;t t
4589s&@abs_srcdir@&$ac_abs_srcdir&;t t
4590s&@top_srcdir@&$ac_top_srcdir&;t t
4591s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4592s&@builddir@&$ac_builddir&;t t
4593s&@abs_builddir@&$ac_abs_builddir&;t t
4594s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4595$ac_datarootdir_hack
4596"
d0ac1c44
SM
4597eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4598 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
4599
4600test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
4601 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4603 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4605which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 4606$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4607which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 4608
d0ac1c44 4609 rm -f "$ac_tmp/stdin"
81ecdfbb 4610 case $ac_file in
d0ac1c44
SM
4611 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4612 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 4613 esac \
d0ac1c44 4614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
4615 ;;
4616
bec39cab 4617
bec39cab 4618
81ecdfbb
RW
4619 esac
4620
497c491b
JM
4621
4622 case $ac_file$ac_mode in
4623 "lib/pdtrace":F) chmod +x lib/pdtrace ;;
4624
4625 esac
81ecdfbb
RW
4626done # for ac_tag
4627
bec39cab 4628
81ecdfbb 4629as_fn_exit 0
bec39cab 4630_ACEOF
bec39cab
AC
4631ac_clean_files=$ac_clean_files_save
4632
81ecdfbb 4633test $ac_write_fail = 0 ||
d0ac1c44 4634 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 4635
bec39cab
AC
4636
4637# configure is writing to config.log, and then calls config.status.
4638# config.status does its own redirection, appending to config.log.
4639# Unfortunately, on DOS this fails, as config.log is still kept open
4640# by configure, so config.status won't be able to write to it; its
4641# output is simply discarded. So we exec the FD to /dev/null,
4642# effectively closing config.log, so it can be properly (re)opened and
4643# appended to by config.status. When coming back to configure, we
4644# need to make the FD available again.
4645if test "$no_create" != yes; then
4646 ac_cs_success=:
4647 ac_config_status_args=
4648 test "$silent" = yes &&
4649 ac_config_status_args="$ac_config_status_args --quiet"
4650 exec 5>/dev/null
4651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4652 exec 5>>config.log
4653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4654 # would make configure fail if this is the last instruction.
d0ac1c44 4655 $ac_cs_success || as_fn_exit 1
bec39cab 4656fi
a13c5393
YQ
4657
4658#
4659# CONFIG_SUBDIRS section.
4660#
4661if test "$no_recursion" != yes; then
4662
4663 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4664 # so they do not pile up.
4665 ac_sub_configure_args=
4666 ac_prev=
4667 eval "set x $ac_configure_args"
4668 shift
4669 for ac_arg
4670 do
4671 if test -n "$ac_prev"; then
4672 ac_prev=
4673 continue
4674 fi
4675 case $ac_arg in
4676 -cache-file | --cache-file | --cache-fil | --cache-fi \
4677 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4678 ac_prev=cache_file ;;
4679 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4680 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4681 | --c=*)
4682 ;;
4683 --config-cache | -C)
4684 ;;
4685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4686 ac_prev=srcdir ;;
4687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4688 ;;
4689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4690 ac_prev=prefix ;;
4691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4692 ;;
4693 --disable-option-checking)
4694 ;;
4695 *)
4696 case $ac_arg in
4697 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4698 esac
4699 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4700 esac
4701 done
4702
4703 # Always prepend --prefix to ensure using the same prefix
4704 # in subdir configurations.
4705 ac_arg="--prefix=$prefix"
4706 case $ac_arg in
4707 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4708 esac
4709 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4710
4711 # Pass --silent
4712 if test "$silent" = yes; then
4713 ac_sub_configure_args="--silent $ac_sub_configure_args"
4714 fi
4715
4716 # Always prepend --disable-option-checking to silence warnings, since
4717 # different subdirs can have different --enable and --with options.
4718 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4719
4720 ac_popdir=`pwd`
4721 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4722
4723 # Do not complain, so a configure script can configure whichever
4724 # parts of a large source tree are present.
4725 test -d "$srcdir/$ac_dir" || continue
4726
4727 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4729 $as_echo "$ac_msg" >&6
4730 as_dir="$ac_dir"; as_fn_mkdir_p
4731 ac_builddir=.
4732
4733case "$ac_dir" in
4734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4735*)
4736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4737 # A ".." for each directory in $ac_dir_suffix.
4738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4739 case $ac_top_builddir_sub in
4740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4742 esac ;;
4743esac
4744ac_abs_top_builddir=$ac_pwd
4745ac_abs_builddir=$ac_pwd$ac_dir_suffix
4746# for backward compatibility:
4747ac_top_builddir=$ac_top_build_prefix
4748
4749case $srcdir in
4750 .) # We are building in place.
4751 ac_srcdir=.
4752 ac_top_srcdir=$ac_top_builddir_sub
4753 ac_abs_top_srcdir=$ac_pwd ;;
4754 [\\/]* | ?:[\\/]* ) # Absolute name.
4755 ac_srcdir=$srcdir$ac_dir_suffix;
4756 ac_top_srcdir=$srcdir
4757 ac_abs_top_srcdir=$srcdir ;;
4758 *) # Relative name.
4759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4760 ac_top_srcdir=$ac_top_build_prefix$srcdir
4761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4762esac
4763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4764
4765
4766 cd "$ac_dir"
4767
4768 # Check for guested configure; otherwise get Cygnus style configure.
4769 if test -f "$ac_srcdir/configure.gnu"; then
4770 ac_sub_configure=$ac_srcdir/configure.gnu
4771 elif test -f "$ac_srcdir/configure"; then
4772 ac_sub_configure=$ac_srcdir/configure
4773 elif test -f "$ac_srcdir/configure.in"; then
4774 # This should be Cygnus configure.
4775 ac_sub_configure=$ac_aux_dir/configure
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
4778$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4779 ac_sub_configure=
4780 fi
4781
4782 # The recursion is here.
4783 if test -n "$ac_sub_configure"; then
4784 # Make the cache file name correct relative to the subdirectory.
4785 case $cache_file in
4786 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4787 *) # Relative name.
4788 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4789 esac
4790
4791 { $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
4792$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4793 # The eval makes quoting arguments work.
4794 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4795 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 4796 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
a13c5393
YQ
4797 fi
4798
4799 cd "$ac_popdir"
4800 done
4801fi
81ecdfbb
RW
4802if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4804$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4805fi
c906108c 4806
This page took 2.464398 seconds and 4 git commands to generate.